From cea807f9bbb5a5bc8f262d9c3a7977b6aa7d1f4a Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 2 Oct 2026 17:01:19 +0900 Subject: [PATCH] Keep vocabulary property arrays independent Clones shared property arrays with their sources, so dereferencing a clone replaced values on the original without updating its trust state or cached JSON-LD. Plural constructor and clone inputs also retained caller-owned arrays. Copy arrays at these three ownership boundaries. Keep nested objects and URLs shared, preserve sparse inputs, and retain the public API and trust policy. Cover lookup and serialization isolation, caller and frozen arrays, cache reuse, and embedded object identity in regressions. Regenerate all runtime snapshots and add changelog fragments. Fixes https://github.com/fedify-dev/fedify/issues/1207 Assisted-by: Codex:gpt-6-astra Assisted-by: Claude Code:claude-fable-5-1 --- CHANGES.md | 17 + .../vocab-tools/clone-array-ownership.md | 8 + changes.d/vocab/clone-array-ownership.md | 10 + .../src/__snapshots__/class.test.ts.deno.snap | 902 ++++++++++-------- .../src/__snapshots__/class.test.ts.node.snap | 902 ++++++++++-------- .../src/__snapshots__/class.test.ts.snap | 902 ++++++++++-------- packages/vocab-tools/src/constructor.ts | 9 +- packages/vocab/src/vocab.test.ts | 212 ++++ 8 files changed, 1704 insertions(+), 1258 deletions(-) create mode 100644 changes.d/vocab-tools/clone-array-ownership.md create mode 100644 changes.d/vocab/clone-array-ownership.md diff --git a/CHANGES.md b/CHANGES.md index c21733fd1..025e6dc1e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,23 @@ Version 2.0.31 To be released. +### @fedify/vocab + + - Fixed shared property arrays in vocabulary objects so dereferencing a + clone no longer changes its source's properties or serialization. + Constructors and `clone()` also copy supplied plural-value arrays, + allowing frozen arrays and preventing changes to the caller's arrays. + Nested objects and URLs retain their identity. [[#1207], [#1208]] + +[#1207]: https://github.com/fedify-dev/fedify/issues/1207 +[#1208]: https://github.com/fedify-dev/fedify/pull/1208 + +### @fedify/vocab-tools + + - Fixed generated constructors and `clone()` methods to copy property + arrays, preventing a clone's remote lookups from changing its source and + preserving arrays supplied by callers. [[#1207], [#1208]] + Version 2.0.30 -------------- diff --git a/changes.d/vocab-tools/clone-array-ownership.md b/changes.d/vocab-tools/clone-array-ownership.md new file mode 100644 index 000000000..f652906e1 --- /dev/null +++ b/changes.d/vocab-tools/clone-array-ownership.md @@ -0,0 +1,8 @@ +--- +links: + '#1207': https://github.com/fedify-dev/fedify/issues/1207 + '#1208': https://github.com/fedify-dev/fedify/pull/1208 +--- + - Fixed generated constructors and `clone()` methods to copy property + arrays, preventing a clone's remote lookups from changing its source and + preserving arrays supplied by callers. [[#1207], [#1208]] diff --git a/changes.d/vocab/clone-array-ownership.md b/changes.d/vocab/clone-array-ownership.md new file mode 100644 index 000000000..c6bbd8dca --- /dev/null +++ b/changes.d/vocab/clone-array-ownership.md @@ -0,0 +1,10 @@ +--- +links: + '#1207': https://github.com/fedify-dev/fedify/issues/1207 + '#1208': https://github.com/fedify-dev/fedify/pull/1208 +--- + - Fixed shared property arrays in vocabulary objects so dereferencing a + clone no longer changes its source's properties or serialization. + Constructors and `clone()` also copy supplied plural-value arrays, + allowing frozen arrays and preventing changes to the caller's arrays. + Nested objects and URLs retain their identity. [[#1207], [#1208]] diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap index 3bd349750..0e836653c 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.deno.snap @@ -241,7 +241,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); for (let i = 0; i < values.attachments.length; i++) { this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i); @@ -281,7 +281,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); for (let i = 0; i < values.attributions.length; i++) { this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i); @@ -321,7 +321,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); for (let i = 0; i < values.audiences.length; i++) { this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i); @@ -361,7 +361,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -376,7 +376,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); for (let i = 0; i < values.contexts.length; i++) { this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i); @@ -416,7 +416,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -444,7 +444,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); for (let i = 0; i < values.generators.length; i++) { this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i); @@ -484,7 +484,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); for (let i = 0; i < values.icons.length; i++) { this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i); @@ -524,7 +524,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); for (let i = 0; i < values.images.length; i++) { this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i); @@ -564,7 +564,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); for (let i = 0; i < values.replyTargets.length; i++) { this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i); @@ -604,7 +604,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); for (let i = 0; i < values.locations.length; i++) { this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i); @@ -644,7 +644,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -762,7 +762,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -777,7 +777,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); for (let i = 0; i < values.tags.length; i++) { this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i); @@ -830,7 +830,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -866,7 +866,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); for (let i = 0; i < values.tos.length; i++) { this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i); @@ -906,7 +906,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); for (let i = 0; i < values.btos.length; i++) { this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i); @@ -946,7 +946,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); for (let i = 0; i < values.ccs.length; i++) { this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i); @@ -986,7 +986,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); for (let i = 0; i < values.bccs.length; i++) { this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i); @@ -1078,7 +1078,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); for (let i = 0; i < values.proofs.length; i++) { this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i); @@ -1097,7 +1097,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -1141,13 +1142,13 @@ proofs?: (DataIntegrityProof | URL)[];} { id: values.id ?? this.id }, options ); - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); if (\\"attachments\\" in values && values.attachments != null) { if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(); for (let i = 0; i < values.attachments.length; i++) { @@ -1161,7 +1162,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); 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) { // @ts-ignore: type is checked above. @@ -1188,7 +1189,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(); for (let i = 0; i < values.attributions.length; i++) { @@ -1202,7 +1203,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); if (\\"audience\\" in values && values.audience != null) { if (values.audience instanceof Object || values.audience instanceof URL) { // @ts-ignore: type is checked above. @@ -1229,7 +1230,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(); for (let i = 0; i < values.audiences.length; i++) { @@ -1243,7 +1244,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if (\\"content\\" in values && values.content != null) { if (typeof values.content === \\"string\\" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1270,7 +1271,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -1279,13 +1280,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); if (\\"contexts\\" in values && values.contexts != null) { if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(); for (let i = 0; i < values.contexts.length; i++) { @@ -1299,7 +1300,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1326,7 +1327,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -1335,7 +1336,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime; + clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice(); if (\\"endTime\\" in values && values.endTime != null) { if (isTemporalInstant(values.endTime)) { // @ts-ignore: type is checked above. @@ -1348,13 +1349,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); if (\\"generators\\" in values && values.generators != null) { if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(); for (let i = 0; i < values.generators.length; i++) { @@ -1368,7 +1369,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); if (\\"icon\\" in values && values.icon != null) { if (values.icon instanceof Image || values.icon instanceof URL) { // @ts-ignore: type is checked above. @@ -1395,7 +1396,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(); for (let i = 0; i < values.icons.length; i++) { @@ -1409,7 +1410,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); if (\\"image\\" in values && values.image != null) { if (values.image instanceof Image || values.image instanceof URL) { // @ts-ignore: type is checked above. @@ -1436,7 +1437,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(); for (let i = 0; i < values.images.length; i++) { @@ -1450,7 +1451,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); if (\\"replyTarget\\" in values && values.replyTarget != null) { if (values.replyTarget instanceof Object || values.replyTarget instanceof Link || values.replyTarget instanceof URL) { // @ts-ignore: type is checked above. @@ -1477,7 +1478,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(); for (let i = 0; i < values.replyTargets.length; i++) { @@ -1491,7 +1492,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); if (\\"location\\" in values && values.location != null) { if (values.location instanceof Object || values.location instanceof Link || values.location instanceof URL) { // @ts-ignore: type is checked above. @@ -1518,7 +1519,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(); for (let i = 0; i < values.locations.length; i++) { @@ -1532,7 +1533,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if (\\"preview\\" in values && values.preview != null) { if (values.preview instanceof Link || values.preview instanceof Object || values.preview instanceof URL) { // @ts-ignore: type is checked above. @@ -1559,7 +1560,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -1573,7 +1574,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published; + clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice(); if (\\"published\\" in values && values.published != null) { if (isTemporalInstant(values.published)) { // @ts-ignore: type is checked above. @@ -1586,7 +1587,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); + clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); if (\\"replies\\" in values && values.replies != null) { if (values.replies instanceof Collection || values.replies instanceof URL) { // @ts-ignore: type is checked above. @@ -1599,7 +1600,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); + clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); if (\\"shares\\" in values && values.shares != null) { if (values.shares instanceof Collection || values.shares instanceof URL) { // @ts-ignore: type is checked above. @@ -1612,7 +1613,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); + clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); if (\\"likes\\" in values && values.likes != null) { if (values.likes instanceof Collection || values.likes instanceof URL) { // @ts-ignore: type is checked above. @@ -1625,7 +1626,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); + clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); if (\\"emojiReactions\\" in values && values.emojiReactions != null) { if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) { // @ts-ignore: type is checked above. @@ -1638,7 +1639,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime; + clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice(); if (\\"startTime\\" in values && values.startTime != null) { if (isTemporalInstant(values.startTime)) { // @ts-ignore: type is checked above. @@ -1651,7 +1652,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice(); if (\\"summary\\" in values && values.summary != null) { if (typeof values.summary === \\"string\\" || values.summary instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1678,7 +1679,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -1687,13 +1688,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); if (\\"tags\\" in values && values.tags != null) { if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(); for (let i = 0; i < values.tags.length; i++) { @@ -1707,7 +1708,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated; + clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice(); if (\\"updated\\" in values && values.updated != null) { if (isTemporalInstant(values.updated)) { // @ts-ignore: type is checked above. @@ -1720,7 +1721,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice(); if (\\"url\\" in values && values.url != null) { if (values.url instanceof URL || values.url instanceof Link) { // @ts-ignore: type is checked above. @@ -1747,7 +1748,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -1756,7 +1757,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); if (\\"to\\" in values && values.to != null) { if (values.to instanceof Object || values.to instanceof URL) { // @ts-ignore: type is checked above. @@ -1783,7 +1784,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(); for (let i = 0; i < values.tos.length; i++) { @@ -1797,7 +1798,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); if (\\"bto\\" in values && values.bto != null) { if (values.bto instanceof Object || values.bto instanceof URL) { // @ts-ignore: type is checked above. @@ -1824,7 +1825,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(); for (let i = 0; i < values.btos.length; i++) { @@ -1838,7 +1839,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); if (\\"cc\\" in values && values.cc != null) { if (values.cc instanceof Object || values.cc instanceof URL) { // @ts-ignore: type is checked above. @@ -1865,7 +1866,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(); for (let i = 0; i < values.ccs.length; i++) { @@ -1879,7 +1880,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); if (\\"bcc\\" in values && values.bcc != null) { if (values.bcc instanceof Object || values.bcc instanceof URL) { // @ts-ignore: type is checked above. @@ -1906,7 +1907,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(); for (let i = 0; i < values.bccs.length; i++) { @@ -1920,7 +1921,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -1933,7 +1934,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration; + clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice(); if (\\"duration\\" in values && values.duration != null) { if (isTemporalDuration(values.duration)) { // @ts-ignore: type is checked above. @@ -1946,7 +1947,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive; + clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice(); if (\\"sensitive\\" in values && values.sensitive != null) { if (typeof values.sensitive === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -1959,7 +1960,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source; + clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice(); if (\\"source\\" in values && values.source != null) { if (values.source instanceof Source) { // @ts-ignore: type is checked above. @@ -1972,7 +1973,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); if (\\"proof\\" in values && values.proof != null) { if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) { // @ts-ignore: type is checked above. @@ -1999,7 +2000,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(); for (let i = 0; i < values.proofs.length; i++) { @@ -11823,7 +11824,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12185,7 +12187,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12223,7 +12226,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -12720,7 +12723,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); for (let i = 0; i < values.actors.length; i++) { this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i); @@ -12760,7 +12763,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -12800,7 +12803,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); for (let i = 0; i < values.targets.length; i++) { this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i); @@ -12840,7 +12843,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); for (let i = 0; i < values.results.length; i++) { this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i); @@ -12880,7 +12883,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); for (let i = 0; i < values.origins.length; i++) { this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i); @@ -12920,7 +12923,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); for (let i = 0; i < values.instruments.length; i++) { this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i); @@ -12939,7 +12942,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12983,7 +12987,7 @@ instruments?: (Object | URL)[];} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); + const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); 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) { // @ts-ignore: type is checked above. @@ -13010,7 +13014,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(); for (let i = 0; i < values.actors.length; i++) { @@ -13024,7 +13028,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if (\\"object\\" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -13051,7 +13055,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -13065,7 +13069,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); if (\\"target\\" in values && values.target != null) { if (values.target instanceof Object || values.target instanceof URL) { // @ts-ignore: type is checked above. @@ -13092,7 +13096,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(); for (let i = 0; i < values.targets.length; i++) { @@ -13106,7 +13110,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); if (\\"result\\" in values && values.result != null) { if (values.result instanceof Object || values.result instanceof URL) { // @ts-ignore: type is checked above. @@ -13133,7 +13137,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(); for (let i = 0; i < values.results.length; i++) { @@ -13147,7 +13151,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); if (\\"origin\\" in values && values.origin != null) { if (values.origin instanceof Object || values.origin instanceof URL) { // @ts-ignore: type is checked above. @@ -13174,7 +13178,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(); for (let i = 0; i < values.origins.length; i++) { @@ -13188,7 +13192,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); if (\\"instrument\\" in values && values.instrument != null) { if (values.instrument instanceof Object || values.instrument instanceof URL) { // @ts-ignore: type is checked above. @@ -13215,7 +13219,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(); for (let i = 0; i < values.instruments.length; i++) { @@ -16180,7 +16184,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -16594,7 +16599,8 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -16622,7 +16628,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} { id: values.id ?? this.id }, options ); - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -16635,7 +16641,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} ); } } - clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value; + clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice(); if (\\"value\\" in values && values.value != null) { if (typeof values.value === \\"string\\" || values.value instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -17233,7 +17239,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17248,7 +17254,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -17277,7 +17284,7 @@ endpoints?: (URL)[];} { id: values.id ?? this.id }, options ); - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice(); if (\\"endpoint\\" in values && values.endpoint != null) { if (values.endpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -17304,7 +17311,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17683,7 +17690,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -18113,7 +18121,8 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -18141,7 +18150,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | { id: values.id ?? this.id }, options ); - clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite; + clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice(); if (\\"cryptosuite\\" in values && values.cryptosuite != null) { if (values.cryptosuite == \\"eddsa-jcs-2022\\") { // @ts-ignore: type is checked above. @@ -18154,7 +18163,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); + clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); if (\\"verificationMethod\\" in values && values.verificationMethod != null) { if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -18167,7 +18176,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose; + clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice(); if (\\"proofPurpose\\" in values && values.proofPurpose != null) { if (values.proofPurpose === \\"assertionMethod\\" || values.proofPurpose === \\"authentication\\" || values.proofPurpose === \\"capabilityInvocation\\" || values.proofPurpose === \\"capabilityDelegation\\" || @@ -18182,7 +18191,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue; + clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice(); if (\\"proofValue\\" in values && values.proofValue != null) { if (values.proofValue instanceof Uint8Array) { // @ts-ignore: type is checked above. @@ -18195,7 +18204,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac; + clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice(); if (\\"created\\" in values && values.created != null) { if (isTemporalInstant(values.created)) { // @ts-ignore: type is checked above. @@ -19158,7 +19167,8 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -19186,7 +19196,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi { id: values.id ?? this.id }, options ); - clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); + clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); 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) { // @ts-ignore: type is checked above. @@ -19199,7 +19209,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi ); } } - clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem; + clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice(); if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20073,7 +20083,8 @@ controller?: Application | Group | Organization | Person | Service | URL | null; * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -20101,7 +20112,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; { id: values.id ?? this.id }, options ); - clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); + clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); 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) { // @ts-ignore: type is checked above. @@ -20114,7 +20125,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; ); } } - clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase; + clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice(); if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20913,7 +20924,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21259,7 +21271,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21600,7 +21613,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22006,7 +22020,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22042,7 +22056,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -22082,7 +22096,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -22205,7 +22219,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -22323,7 +22337,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -22363,7 +22377,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -22408,7 +22422,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22451,7 +22466,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -22478,7 +22493,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22487,7 +22502,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -22514,7 +22529,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -22528,7 +22543,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -22555,7 +22570,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -22569,7 +22584,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22582,7 +22597,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22595,7 +22610,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22608,7 +22623,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -22621,7 +22636,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -22634,7 +22649,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -22647,7 +22662,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -22660,7 +22675,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -22673,13 +22688,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -22693,7 +22708,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -22706,7 +22721,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22719,7 +22734,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22732,7 +22747,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22745,7 +22760,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22758,7 +22773,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -22771,7 +22786,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -22798,7 +22813,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -22812,7 +22827,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -22839,7 +22854,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -22853,7 +22868,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -22866,7 +22881,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -28884,7 +28899,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29237,7 +29253,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29583,7 +29600,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29621,7 +29639,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -30096,7 +30114,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -30134,7 +30153,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if (\\"width\\" in values && values.width != null) { if (typeof values.width === \\"number\\" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -30147,7 +30166,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if (\\"height\\" in values && values.height != null) { if (typeof values.height === \\"number\\" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -30667,7 +30686,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31018,7 +31038,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31364,7 +31385,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31790,7 +31812,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -31913,7 +31935,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31951,7 +31974,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems; + const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice(); if (\\"totalItems\\" in values && values.totalItems != null) { if (typeof values.totalItems === \\"number\\" && Number.isInteger(values.totalItems) && values.totalItems >= 0) { // @ts-ignore: type is checked above. @@ -31964,7 +31987,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); + clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); if (\\"current\\" in values && values.current != null) { if (values.current instanceof CollectionPage || values.current instanceof URL) { // @ts-ignore: type is checked above. @@ -31977,7 +32000,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); + clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); if (\\"first\\" in values && values.first != null) { if (values.first instanceof CollectionPage || values.first instanceof URL) { // @ts-ignore: type is checked above. @@ -31990,7 +32013,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); + clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); if (\\"last\\" in values && values.last != null) { if (values.last instanceof CollectionPage || values.last instanceof URL) { // @ts-ignore: type is checked above. @@ -32003,13 +32026,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -32023,7 +32046,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); + clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); if (\\"likesOf\\" in values && values.likesOf != null) { if (values.likesOf instanceof Object || values.likesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32036,7 +32059,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); + clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); if (\\"sharesOf\\" in values && values.sharesOf != null) { if (values.sharesOf instanceof Object || values.sharesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32049,7 +32072,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); + clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); if (\\"repliesOf\\" in values && values.repliesOf != null) { if (values.repliesOf instanceof Object || values.repliesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32062,7 +32085,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); + clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); if (\\"inboxOf\\" in values && values.inboxOf != null) { if (values.inboxOf instanceof Object || values.inboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32075,7 +32098,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); + clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); if (\\"outboxOf\\" in values && values.outboxOf != null) { if (values.outboxOf instanceof Object || values.outboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32088,7 +32111,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); + clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); if (\\"followersOf\\" in values && values.followersOf != null) { if (values.followersOf instanceof Object || values.followersOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32101,7 +32124,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); + clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); if (\\"followingOf\\" in values && values.followingOf != null) { if (values.followingOf instanceof Object || values.followingOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32114,7 +32137,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); + clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); if (\\"likedOf\\" in values && values.likedOf != null) { if (values.likedOf instanceof Object || values.likedOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36438,7 +36461,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -36476,7 +36500,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); + const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); if (\\"partOf\\" in values && values.partOf != null) { if (values.partOf instanceof Collection || values.partOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36489,7 +36513,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); + clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); if (\\"next\\" in values && values.next != null) { if (values.next instanceof CollectionPage || values.next instanceof URL) { // @ts-ignore: type is checked above. @@ -36502,7 +36526,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); + clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); if (\\"prev\\" in values && values.prev != null) { if (values.prev instanceof CollectionPage || values.prev instanceof URL) { // @ts-ignore: type is checked above. @@ -37784,7 +37808,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38124,7 +38149,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38462,7 +38488,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38932,7 +38959,8 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -38960,7 +38988,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint { id: values.id ?? this.id }, options ); - clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl; + clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice(); if (\\"proxyUrl\\" in values && values.proxyUrl != null) { if (values.proxyUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -38973,7 +39001,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint; + clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice(); if (\\"oauthAuthorizationEndpoint\\" in values && values.oauthAuthorizationEndpoint != null) { if (values.oauthAuthorizationEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38986,7 +39014,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint; + clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice(); if (\\"oauthTokenEndpoint\\" in values && values.oauthTokenEndpoint != null) { if (values.oauthTokenEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38999,7 +39027,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey; + clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice(); if (\\"provideClientKey\\" in values && values.provideClientKey != null) { if (values.provideClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39012,7 +39040,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey; + clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice(); if (\\"signClientKey\\" in values && values.signClientKey != null) { if (values.signClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39025,7 +39053,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox; + clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice(); if (\\"sharedInbox\\" in values && values.sharedInbox != null) { if (values.sharedInbox instanceof URL) { // @ts-ignore: type is checked above. @@ -39973,7 +40001,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40325,7 +40354,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40667,7 +40697,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41073,7 +41104,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41109,7 +41140,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -41149,7 +41180,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -41272,7 +41303,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -41390,7 +41421,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -41430,7 +41461,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -41475,7 +41506,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41518,7 +41550,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -41545,7 +41577,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41554,7 +41586,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -41581,7 +41613,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -41595,7 +41627,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -41622,7 +41654,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -41636,7 +41668,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41649,7 +41681,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41662,7 +41694,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41675,7 +41707,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -41688,7 +41720,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -41701,7 +41733,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -41714,7 +41746,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -41727,7 +41759,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -41740,13 +41772,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -41760,7 +41792,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -41773,7 +41805,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41786,7 +41818,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41799,7 +41831,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41812,7 +41844,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41825,7 +41857,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -41838,7 +41870,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -41865,7 +41897,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -41879,7 +41911,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -41906,7 +41938,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -41920,7 +41952,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -41933,7 +41965,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -48050,7 +48082,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === \\"string\\")) { // @ts-ignore: type is checked above. - this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48099,7 +48131,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48153,7 +48185,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -48172,7 +48204,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -48202,7 +48235,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num { id: values.id ?? this.id }, options ); - clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href; + clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice(); if (\\"href\\" in values && values.href != null) { if (values.href instanceof URL) { // @ts-ignore: type is checked above. @@ -48215,7 +48248,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice(); if (\\"rel\\" in values && values.rel != null) { if (typeof values.rel === \\"string\\") { // @ts-ignore: type is checked above. @@ -48242,7 +48275,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === \\"string\\")) { // @ts-ignore: type is checked above. - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48251,7 +48284,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -48264,7 +48297,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -48291,7 +48324,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48300,7 +48333,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang; + clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice(); if (\\"language\\" in values && values.language != null) { if (values.language instanceof Intl.Locale) { // @ts-ignore: type is checked above. @@ -48313,7 +48346,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if (\\"height\\" in values && values.height != null) { if (typeof values.height === \\"number\\" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -48326,7 +48359,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if (\\"width\\" in values && values.width != null) { if (typeof values.width === \\"number\\" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -48339,13 +48372,13 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if (\\"previews\\" in values && values.previews != null) { if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -49697,7 +49730,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50015,7 +50049,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50367,7 +50402,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50711,7 +50747,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51051,7 +51088,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51391,7 +51429,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51731,7 +51770,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52069,7 +52109,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52387,7 +52428,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52714,7 +52756,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53062,7 +53105,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53100,7 +53144,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -53552,7 +53596,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -53571,7 +53615,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53609,13 +53654,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54286,7 +54331,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -54318,7 +54363,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -54356,13 +54402,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54376,7 +54422,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex; + clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice(); if (\\"startIndex\\" in values && values.startIndex != null) { if (typeof values.startIndex === \\"number\\" && Number.isInteger(values.startIndex) && values.startIndex >= 0) { // @ts-ignore: type is checked above. @@ -55206,7 +55252,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55242,7 +55288,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -55282,7 +55328,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -55405,7 +55451,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -55523,7 +55569,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -55563,7 +55609,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -55608,7 +55654,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -55651,7 +55698,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -55678,7 +55725,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55687,7 +55734,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -55714,7 +55761,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -55728,7 +55775,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -55755,7 +55802,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -55769,7 +55816,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55782,7 +55829,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55795,7 +55842,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55808,7 +55855,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -55821,7 +55868,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -55834,7 +55881,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -55847,7 +55894,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -55860,7 +55907,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -55873,13 +55920,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -55893,7 +55940,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -55906,7 +55953,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55919,7 +55966,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55932,7 +55979,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55945,7 +55992,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55958,7 +56005,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -55971,7 +56018,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -55998,7 +56045,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -56012,7 +56059,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -56039,7 +56086,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -56053,7 +56100,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -56066,7 +56113,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -62075,7 +62122,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62492,7 +62540,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62528,7 +62576,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -62568,7 +62616,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -62691,7 +62739,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -62809,7 +62857,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -62849,7 +62897,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -62894,7 +62942,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62937,7 +62986,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -62964,7 +63013,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62973,7 +63022,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -63000,7 +63049,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -63014,7 +63063,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -63041,7 +63090,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -63055,7 +63104,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63068,7 +63117,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63081,7 +63130,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63094,7 +63143,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -63107,7 +63156,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -63120,7 +63169,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -63133,7 +63182,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -63146,7 +63195,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -63159,13 +63208,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -63179,7 +63228,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -63192,7 +63241,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63205,7 +63254,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63218,7 +63267,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63231,7 +63280,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63244,7 +63293,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -63257,7 +63306,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -63284,7 +63333,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -63298,7 +63347,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -63325,7 +63374,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -63339,7 +63388,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -63352,7 +63401,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -69448,7 +69497,8 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -69486,7 +69536,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy; + const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice(); if (\\"accuracy\\" in values && values.accuracy != null) { if (typeof values.accuracy === \\"number\\" && !Number.isNaN(values.accuracy)) { // @ts-ignore: type is checked above. @@ -69499,7 +69549,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude; + clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice(); if (\\"altitude\\" in values && values.altitude != null) { if (typeof values.altitude === \\"number\\" && !Number.isNaN(values.altitude)) { // @ts-ignore: type is checked above. @@ -69512,7 +69562,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude; + clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice(); if (\\"latitude\\" in values && values.latitude != null) { if (typeof values.latitude === \\"number\\" && !Number.isNaN(values.latitude)) { // @ts-ignore: type is checked above. @@ -69525,7 +69575,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude; + clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice(); if (\\"longitude\\" in values && values.longitude != null) { if (typeof values.longitude === \\"number\\" && !Number.isNaN(values.longitude)) { // @ts-ignore: type is checked above. @@ -69538,7 +69588,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius; + clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice(); if (\\"radius\\" in values && values.radius != null) { if (typeof values.radius === \\"number\\" && !Number.isNaN(values.radius)) { // @ts-ignore: type is checked above. @@ -69551,7 +69601,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units; + clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice(); 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) { // @ts-ignore: type is checked above. @@ -70468,7 +70518,8 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -70506,7 +70557,7 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); + const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); if (\\"describes\\" in values && values.describes != null) { if (values.describes instanceof Object || values.describes instanceof URL) { // @ts-ignore: type is checked above. @@ -71166,7 +71217,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); for (let i = 0; i < values.exclusiveOptions.length; i++) { this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i); @@ -71185,7 +71236,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); for (let i = 0; i < values.inclusiveOptions.length; i++) { this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i); @@ -71243,7 +71294,8 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -71287,13 +71339,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); + const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); if (\\"exclusiveOptions\\" in values && values.exclusiveOptions != null) { if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(); for (let i = 0; i < values.exclusiveOptions.length; i++) { @@ -71307,13 +71359,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); if (\\"inclusiveOptions\\" in values && values.inclusiveOptions != null) { if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(); for (let i = 0; i < values.inclusiveOptions.length; i++) { @@ -71327,7 +71379,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed; + clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice(); if (\\"closed\\" in values && values.closed != null) { if (isTemporalInstant(values.closed) || typeof values.closed === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -71340,7 +71392,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount; + clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice(); if (\\"voters\\" in values && values.voters != null) { if (typeof values.voters === \\"number\\" && Number.isInteger(values.voters) && values.voters >= 0) { // @ts-ignore: type is checked above. @@ -71353,7 +71405,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -72541,7 +72593,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -72881,7 +72934,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73269,7 +73323,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -73309,7 +73363,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); for (let i = 0; i < values.relationships.length; i++) { this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i); @@ -73328,7 +73382,8 @@ relationships?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73368,7 +73423,7 @@ relationships?: (Object | URL)[];} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); + const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); if (\\"subject\\" in values && values.subject != null) { if (values.subject instanceof Object || values.subject instanceof URL) { // @ts-ignore: type is checked above. @@ -73381,7 +73436,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if (\\"object\\" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -73408,7 +73463,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -73422,7 +73477,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); if (\\"relationship\\" in values && values.relationship != null) { if (values.relationship instanceof Object || values.relationship instanceof URL) { // @ts-ignore: type is checked above. @@ -73449,7 +73504,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(); for (let i = 0; i < values.relationships.length; i++) { @@ -74957,7 +75012,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75363,7 +75419,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75399,7 +75455,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -75439,7 +75495,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -75562,7 +75618,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -75680,7 +75736,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -75720,7 +75776,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -75765,7 +75821,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75808,7 +75865,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -75835,7 +75892,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75844,7 +75901,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -75871,7 +75928,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -75885,7 +75942,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -75912,7 +75969,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -75926,7 +75983,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -75939,7 +75996,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75952,7 +76009,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75965,7 +76022,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -75978,7 +76035,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -75991,7 +76048,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -76004,7 +76061,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -76017,7 +76074,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -76030,13 +76087,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -76050,7 +76107,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -76063,7 +76120,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76076,7 +76133,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76089,7 +76146,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76102,7 +76159,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76115,7 +76172,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -76128,7 +76185,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -76155,7 +76212,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -76169,7 +76226,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -76196,7 +76253,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -76210,7 +76267,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -76223,7 +76280,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -82310,7 +82367,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82338,7 +82395,8 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -82367,7 +82425,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} { id: values.id ?? this.id }, options ); - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if (\\"content\\" in values && values.content != null) { if (typeof values.content === \\"string\\" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -82394,7 +82452,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82403,7 +82461,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -82920,7 +82978,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83260,7 +83319,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83609,7 +83669,8 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83647,7 +83708,7 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} // @ts-ignore: \$warning is not recognized as a property, but it is. options = { ...options, \$warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted; + const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice(); if (\\"deleted\\" in values && values.deleted != null) { if (isTemporalInstant(values.deleted)) { // @ts-ignore: type is checked above. @@ -84072,7 +84133,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84417,7 +84479,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84760,7 +84823,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85092,7 +85156,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85442,7 +85507,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap index 05c47acd7..e4bd0d941 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.node.snap @@ -239,7 +239,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); for (let i = 0; i < values.attachments.length; i++) { this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i); @@ -279,7 +279,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); for (let i = 0; i < values.attributions.length; i++) { this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i); @@ -319,7 +319,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); for (let i = 0; i < values.audiences.length; i++) { this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i); @@ -359,7 +359,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -374,7 +374,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); for (let i = 0; i < values.contexts.length; i++) { this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i); @@ -414,7 +414,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -442,7 +442,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); for (let i = 0; i < values.generators.length; i++) { this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i); @@ -482,7 +482,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); for (let i = 0; i < values.icons.length; i++) { this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i); @@ -522,7 +522,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); for (let i = 0; i < values.images.length; i++) { this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i); @@ -562,7 +562,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); for (let i = 0; i < values.replyTargets.length; i++) { this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i); @@ -602,7 +602,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); for (let i = 0; i < values.locations.length; i++) { this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i); @@ -642,7 +642,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -760,7 +760,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -775,7 +775,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); for (let i = 0; i < values.tags.length; i++) { this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i); @@ -828,7 +828,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -864,7 +864,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); for (let i = 0; i < values.tos.length; i++) { this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i); @@ -904,7 +904,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); for (let i = 0; i < values.btos.length; i++) { this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i); @@ -944,7 +944,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); for (let i = 0; i < values.ccs.length; i++) { this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i); @@ -984,7 +984,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); for (let i = 0; i < values.bccs.length; i++) { this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i); @@ -1076,7 +1076,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); for (let i = 0; i < values.proofs.length; i++) { this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i); @@ -1095,7 +1095,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -1139,13 +1140,13 @@ proofs?: (DataIntegrityProof | URL)[];} { id: values.id ?? this.id }, options ); - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); if (\\"attachments\\" in values && values.attachments != null) { if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(); for (let i = 0; i < values.attachments.length; i++) { @@ -1159,7 +1160,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); 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) { // @ts-ignore: type is checked above. @@ -1186,7 +1187,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(); for (let i = 0; i < values.attributions.length; i++) { @@ -1200,7 +1201,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); if (\\"audience\\" in values && values.audience != null) { if (values.audience instanceof Object || values.audience instanceof URL) { // @ts-ignore: type is checked above. @@ -1227,7 +1228,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(); for (let i = 0; i < values.audiences.length; i++) { @@ -1241,7 +1242,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if (\\"content\\" in values && values.content != null) { if (typeof values.content === \\"string\\" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1268,7 +1269,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -1277,13 +1278,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); if (\\"contexts\\" in values && values.contexts != null) { if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(); for (let i = 0; i < values.contexts.length; i++) { @@ -1297,7 +1298,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1324,7 +1325,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -1333,7 +1334,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime; + clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice(); if (\\"endTime\\" in values && values.endTime != null) { if (isTemporalInstant(values.endTime)) { // @ts-ignore: type is checked above. @@ -1346,13 +1347,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); if (\\"generators\\" in values && values.generators != null) { if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(); for (let i = 0; i < values.generators.length; i++) { @@ -1366,7 +1367,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); if (\\"icon\\" in values && values.icon != null) { if (values.icon instanceof Image || values.icon instanceof URL) { // @ts-ignore: type is checked above. @@ -1393,7 +1394,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(); for (let i = 0; i < values.icons.length; i++) { @@ -1407,7 +1408,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); if (\\"image\\" in values && values.image != null) { if (values.image instanceof Image || values.image instanceof URL) { // @ts-ignore: type is checked above. @@ -1434,7 +1435,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(); for (let i = 0; i < values.images.length; i++) { @@ -1448,7 +1449,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); if (\\"replyTarget\\" in values && values.replyTarget != null) { if (values.replyTarget instanceof Object || values.replyTarget instanceof Link || values.replyTarget instanceof URL) { // @ts-ignore: type is checked above. @@ -1475,7 +1476,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(); for (let i = 0; i < values.replyTargets.length; i++) { @@ -1489,7 +1490,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); if (\\"location\\" in values && values.location != null) { if (values.location instanceof Object || values.location instanceof Link || values.location instanceof URL) { // @ts-ignore: type is checked above. @@ -1516,7 +1517,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(); for (let i = 0; i < values.locations.length; i++) { @@ -1530,7 +1531,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if (\\"preview\\" in values && values.preview != null) { if (values.preview instanceof Link || values.preview instanceof Object || values.preview instanceof URL) { // @ts-ignore: type is checked above. @@ -1557,7 +1558,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -1571,7 +1572,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published; + clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice(); if (\\"published\\" in values && values.published != null) { if (isTemporalInstant(values.published)) { // @ts-ignore: type is checked above. @@ -1584,7 +1585,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); + clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); if (\\"replies\\" in values && values.replies != null) { if (values.replies instanceof Collection || values.replies instanceof URL) { // @ts-ignore: type is checked above. @@ -1597,7 +1598,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); + clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); if (\\"shares\\" in values && values.shares != null) { if (values.shares instanceof Collection || values.shares instanceof URL) { // @ts-ignore: type is checked above. @@ -1610,7 +1611,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); + clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); if (\\"likes\\" in values && values.likes != null) { if (values.likes instanceof Collection || values.likes instanceof URL) { // @ts-ignore: type is checked above. @@ -1623,7 +1624,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); + clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); if (\\"emojiReactions\\" in values && values.emojiReactions != null) { if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) { // @ts-ignore: type is checked above. @@ -1636,7 +1637,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime; + clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice(); if (\\"startTime\\" in values && values.startTime != null) { if (isTemporalInstant(values.startTime)) { // @ts-ignore: type is checked above. @@ -1649,7 +1650,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice(); if (\\"summary\\" in values && values.summary != null) { if (typeof values.summary === \\"string\\" || values.summary instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1676,7 +1677,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -1685,13 +1686,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); if (\\"tags\\" in values && values.tags != null) { if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(); for (let i = 0; i < values.tags.length; i++) { @@ -1705,7 +1706,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated; + clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice(); if (\\"updated\\" in values && values.updated != null) { if (isTemporalInstant(values.updated)) { // @ts-ignore: type is checked above. @@ -1718,7 +1719,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice(); if (\\"url\\" in values && values.url != null) { if (values.url instanceof URL || values.url instanceof Link) { // @ts-ignore: type is checked above. @@ -1745,7 +1746,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -1754,7 +1755,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); if (\\"to\\" in values && values.to != null) { if (values.to instanceof Object || values.to instanceof URL) { // @ts-ignore: type is checked above. @@ -1781,7 +1782,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(); for (let i = 0; i < values.tos.length; i++) { @@ -1795,7 +1796,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); if (\\"bto\\" in values && values.bto != null) { if (values.bto instanceof Object || values.bto instanceof URL) { // @ts-ignore: type is checked above. @@ -1822,7 +1823,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(); for (let i = 0; i < values.btos.length; i++) { @@ -1836,7 +1837,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); if (\\"cc\\" in values && values.cc != null) { if (values.cc instanceof Object || values.cc instanceof URL) { // @ts-ignore: type is checked above. @@ -1863,7 +1864,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(); for (let i = 0; i < values.ccs.length; i++) { @@ -1877,7 +1878,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); if (\\"bcc\\" in values && values.bcc != null) { if (values.bcc instanceof Object || values.bcc instanceof URL) { // @ts-ignore: type is checked above. @@ -1904,7 +1905,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(); for (let i = 0; i < values.bccs.length; i++) { @@ -1918,7 +1919,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -1931,7 +1932,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration; + clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice(); if (\\"duration\\" in values && values.duration != null) { if (isTemporalDuration(values.duration)) { // @ts-ignore: type is checked above. @@ -1944,7 +1945,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive; + clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice(); if (\\"sensitive\\" in values && values.sensitive != null) { if (typeof values.sensitive === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -1957,7 +1958,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source; + clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice(); if (\\"source\\" in values && values.source != null) { if (values.source instanceof Source) { // @ts-ignore: type is checked above. @@ -1970,7 +1971,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); if (\\"proof\\" in values && values.proof != null) { if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) { // @ts-ignore: type is checked above. @@ -1997,7 +1998,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(); for (let i = 0; i < values.proofs.length; i++) { @@ -11821,7 +11822,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12183,7 +12185,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12221,7 +12224,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -12718,7 +12721,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); for (let i = 0; i < values.actors.length; i++) { this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i); @@ -12758,7 +12761,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -12798,7 +12801,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); for (let i = 0; i < values.targets.length; i++) { this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i); @@ -12838,7 +12841,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); for (let i = 0; i < values.results.length; i++) { this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i); @@ -12878,7 +12881,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); for (let i = 0; i < values.origins.length; i++) { this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i); @@ -12918,7 +12921,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); for (let i = 0; i < values.instruments.length; i++) { this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i); @@ -12937,7 +12940,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12981,7 +12985,7 @@ instruments?: (Object | URL)[];} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); + const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); 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) { // @ts-ignore: type is checked above. @@ -13008,7 +13012,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(); for (let i = 0; i < values.actors.length; i++) { @@ -13022,7 +13026,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if (\\"object\\" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -13049,7 +13053,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -13063,7 +13067,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); if (\\"target\\" in values && values.target != null) { if (values.target instanceof Object || values.target instanceof URL) { // @ts-ignore: type is checked above. @@ -13090,7 +13094,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(); for (let i = 0; i < values.targets.length; i++) { @@ -13104,7 +13108,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); if (\\"result\\" in values && values.result != null) { if (values.result instanceof Object || values.result instanceof URL) { // @ts-ignore: type is checked above. @@ -13131,7 +13135,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(); for (let i = 0; i < values.results.length; i++) { @@ -13145,7 +13149,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); if (\\"origin\\" in values && values.origin != null) { if (values.origin instanceof Object || values.origin instanceof URL) { // @ts-ignore: type is checked above. @@ -13172,7 +13176,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(); for (let i = 0; i < values.origins.length; i++) { @@ -13186,7 +13190,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); if (\\"instrument\\" in values && values.instrument != null) { if (values.instrument instanceof Object || values.instrument instanceof URL) { // @ts-ignore: type is checked above. @@ -13213,7 +13217,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(); for (let i = 0; i < values.instruments.length; i++) { @@ -16178,7 +16182,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -16592,7 +16597,8 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -16620,7 +16626,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} { id: values.id ?? this.id }, options ); - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -16633,7 +16639,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} ); } } - clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value; + clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice(); if (\\"value\\" in values && values.value != null) { if (typeof values.value === \\"string\\" || values.value instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -17231,7 +17237,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17246,7 +17252,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -17275,7 +17282,7 @@ endpoints?: (URL)[];} { id: values.id ?? this.id }, options ); - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice(); if (\\"endpoint\\" in values && values.endpoint != null) { if (values.endpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -17302,7 +17309,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17681,7 +17688,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -18111,7 +18119,8 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -18139,7 +18148,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | { id: values.id ?? this.id }, options ); - clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite; + clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice(); if (\\"cryptosuite\\" in values && values.cryptosuite != null) { if (values.cryptosuite == \\"eddsa-jcs-2022\\") { // @ts-ignore: type is checked above. @@ -18152,7 +18161,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); + clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); if (\\"verificationMethod\\" in values && values.verificationMethod != null) { if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -18165,7 +18174,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose; + clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice(); if (\\"proofPurpose\\" in values && values.proofPurpose != null) { if (values.proofPurpose === \\"assertionMethod\\" || values.proofPurpose === \\"authentication\\" || values.proofPurpose === \\"capabilityInvocation\\" || values.proofPurpose === \\"capabilityDelegation\\" || @@ -18180,7 +18189,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue; + clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice(); if (\\"proofValue\\" in values && values.proofValue != null) { if (values.proofValue instanceof Uint8Array) { // @ts-ignore: type is checked above. @@ -18193,7 +18202,7 @@ cryptosuite?: \\"eddsa-jcs-2022\\" | null;verificationMethod?: Multikey | URL | ); } } - clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac; + clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice(); if (\\"created\\" in values && values.created != null) { if (isTemporalInstant(values.created)) { // @ts-ignore: type is checked above. @@ -19156,7 +19165,8 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -19184,7 +19194,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi { id: values.id ?? this.id }, options ); - clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); + clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); 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) { // @ts-ignore: type is checked above. @@ -19197,7 +19207,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi ); } } - clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem; + clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice(); if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20071,7 +20081,8 @@ controller?: Application | Group | Organization | Person | Service | URL | null; * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -20099,7 +20110,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; { id: values.id ?? this.id }, options ); - clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); + clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); 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) { // @ts-ignore: type is checked above. @@ -20112,7 +20123,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; ); } } - clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase; + clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice(); if (\\"publicKey\\" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20911,7 +20922,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21257,7 +21269,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21598,7 +21611,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22004,7 +22018,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22040,7 +22054,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -22080,7 +22094,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -22203,7 +22217,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -22321,7 +22335,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -22361,7 +22375,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -22406,7 +22420,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22449,7 +22464,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -22476,7 +22491,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22485,7 +22500,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -22512,7 +22527,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -22526,7 +22541,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -22553,7 +22568,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -22567,7 +22582,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22580,7 +22595,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22593,7 +22608,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22606,7 +22621,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -22619,7 +22634,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -22632,7 +22647,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -22645,7 +22660,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -22658,7 +22673,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -22671,13 +22686,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -22691,7 +22706,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -22704,7 +22719,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22717,7 +22732,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22730,7 +22745,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22743,7 +22758,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -22756,7 +22771,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -22769,7 +22784,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -22796,7 +22811,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -22810,7 +22825,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -22837,7 +22852,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -22851,7 +22866,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -22864,7 +22879,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -28882,7 +28897,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29235,7 +29251,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29581,7 +29598,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29619,7 +29637,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -30094,7 +30112,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -30132,7 +30151,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if (\\"width\\" in values && values.width != null) { if (typeof values.width === \\"number\\" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -30145,7 +30164,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if (\\"height\\" in values && values.height != null) { if (typeof values.height === \\"number\\" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -30665,7 +30684,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31016,7 +31036,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31362,7 +31383,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31788,7 +31810,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -31911,7 +31933,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31949,7 +31972,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems; + const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice(); if (\\"totalItems\\" in values && values.totalItems != null) { if (typeof values.totalItems === \\"number\\" && Number.isInteger(values.totalItems) && values.totalItems >= 0) { // @ts-ignore: type is checked above. @@ -31962,7 +31985,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); + clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); if (\\"current\\" in values && values.current != null) { if (values.current instanceof CollectionPage || values.current instanceof URL) { // @ts-ignore: type is checked above. @@ -31975,7 +31998,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); + clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); if (\\"first\\" in values && values.first != null) { if (values.first instanceof CollectionPage || values.first instanceof URL) { // @ts-ignore: type is checked above. @@ -31988,7 +32011,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); + clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); if (\\"last\\" in values && values.last != null) { if (values.last instanceof CollectionPage || values.last instanceof URL) { // @ts-ignore: type is checked above. @@ -32001,13 +32024,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -32021,7 +32044,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); + clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); if (\\"likesOf\\" in values && values.likesOf != null) { if (values.likesOf instanceof Object || values.likesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32034,7 +32057,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); + clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); if (\\"sharesOf\\" in values && values.sharesOf != null) { if (values.sharesOf instanceof Object || values.sharesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32047,7 +32070,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); + clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); if (\\"repliesOf\\" in values && values.repliesOf != null) { if (values.repliesOf instanceof Object || values.repliesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32060,7 +32083,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); + clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); if (\\"inboxOf\\" in values && values.inboxOf != null) { if (values.inboxOf instanceof Object || values.inboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32073,7 +32096,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); + clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); if (\\"outboxOf\\" in values && values.outboxOf != null) { if (values.outboxOf instanceof Object || values.outboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32086,7 +32109,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); + clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); if (\\"followersOf\\" in values && values.followersOf != null) { if (values.followersOf instanceof Object || values.followersOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32099,7 +32122,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); + clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); if (\\"followingOf\\" in values && values.followingOf != null) { if (values.followingOf instanceof Object || values.followingOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32112,7 +32135,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); + clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); if (\\"likedOf\\" in values && values.likedOf != null) { if (values.likedOf instanceof Object || values.likedOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36436,7 +36459,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -36474,7 +36498,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); + const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); if (\\"partOf\\" in values && values.partOf != null) { if (values.partOf instanceof Collection || values.partOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36487,7 +36511,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); + clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); if (\\"next\\" in values && values.next != null) { if (values.next instanceof CollectionPage || values.next instanceof URL) { // @ts-ignore: type is checked above. @@ -36500,7 +36524,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); + clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); if (\\"prev\\" in values && values.prev != null) { if (values.prev instanceof CollectionPage || values.prev instanceof URL) { // @ts-ignore: type is checked above. @@ -37782,7 +37806,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38122,7 +38147,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38460,7 +38486,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38930,7 +38957,8 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -38958,7 +38986,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint { id: values.id ?? this.id }, options ); - clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl; + clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice(); if (\\"proxyUrl\\" in values && values.proxyUrl != null) { if (values.proxyUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -38971,7 +38999,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint; + clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice(); if (\\"oauthAuthorizationEndpoint\\" in values && values.oauthAuthorizationEndpoint != null) { if (values.oauthAuthorizationEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38984,7 +39012,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint; + clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice(); if (\\"oauthTokenEndpoint\\" in values && values.oauthTokenEndpoint != null) { if (values.oauthTokenEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38997,7 +39025,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey; + clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice(); if (\\"provideClientKey\\" in values && values.provideClientKey != null) { if (values.provideClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39010,7 +39038,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey; + clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice(); if (\\"signClientKey\\" in values && values.signClientKey != null) { if (values.signClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39023,7 +39051,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox; + clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice(); if (\\"sharedInbox\\" in values && values.sharedInbox != null) { if (values.sharedInbox instanceof URL) { // @ts-ignore: type is checked above. @@ -39971,7 +39999,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40323,7 +40352,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40665,7 +40695,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41071,7 +41102,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41107,7 +41138,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -41147,7 +41178,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -41270,7 +41301,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -41388,7 +41419,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -41428,7 +41459,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -41473,7 +41504,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41516,7 +41548,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -41543,7 +41575,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41552,7 +41584,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -41579,7 +41611,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -41593,7 +41625,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -41620,7 +41652,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -41634,7 +41666,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41647,7 +41679,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41660,7 +41692,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41673,7 +41705,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -41686,7 +41718,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -41699,7 +41731,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -41712,7 +41744,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -41725,7 +41757,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -41738,13 +41770,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -41758,7 +41790,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -41771,7 +41803,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41784,7 +41816,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41797,7 +41829,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41810,7 +41842,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -41823,7 +41855,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -41836,7 +41868,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -41863,7 +41895,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -41877,7 +41909,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -41904,7 +41936,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -41918,7 +41950,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -41931,7 +41963,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -48048,7 +48080,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === \\"string\\")) { // @ts-ignore: type is checked above. - this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48097,7 +48129,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48151,7 +48183,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -48170,7 +48202,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -48200,7 +48233,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num { id: values.id ?? this.id }, options ); - clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href; + clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice(); if (\\"href\\" in values && values.href != null) { if (values.href instanceof URL) { // @ts-ignore: type is checked above. @@ -48213,7 +48246,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice(); if (\\"rel\\" in values && values.rel != null) { if (typeof values.rel === \\"string\\") { // @ts-ignore: type is checked above. @@ -48240,7 +48273,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === \\"string\\")) { // @ts-ignore: type is checked above. - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48249,7 +48282,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -48262,7 +48295,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if (\\"name\\" in values && values.name != null) { if (typeof values.name === \\"string\\" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -48289,7 +48322,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48298,7 +48331,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang; + clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice(); if (\\"language\\" in values && values.language != null) { if (values.language instanceof Intl.Locale) { // @ts-ignore: type is checked above. @@ -48311,7 +48344,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if (\\"height\\" in values && values.height != null) { if (typeof values.height === \\"number\\" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -48324,7 +48357,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if (\\"width\\" in values && values.width != null) { if (typeof values.width === \\"number\\" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -48337,13 +48370,13 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if (\\"previews\\" in values && values.previews != null) { if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -49695,7 +49728,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50013,7 +50047,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50365,7 +50400,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50709,7 +50745,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51049,7 +51086,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51389,7 +51427,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51729,7 +51768,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52067,7 +52107,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52385,7 +52426,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52712,7 +52754,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53060,7 +53103,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53098,7 +53142,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -53550,7 +53594,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -53569,7 +53613,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53607,13 +53652,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54284,7 +54329,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -54316,7 +54361,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -54354,13 +54400,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if (\\"items\\" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54374,7 +54420,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex; + clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice(); if (\\"startIndex\\" in values && values.startIndex != null) { if (typeof values.startIndex === \\"number\\" && Number.isInteger(values.startIndex) && values.startIndex >= 0) { // @ts-ignore: type is checked above. @@ -55204,7 +55250,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55240,7 +55286,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -55280,7 +55326,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -55403,7 +55449,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -55521,7 +55567,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -55561,7 +55607,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -55606,7 +55652,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -55649,7 +55696,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -55676,7 +55723,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55685,7 +55732,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -55712,7 +55759,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -55726,7 +55773,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -55753,7 +55800,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -55767,7 +55814,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55780,7 +55827,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55793,7 +55840,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55806,7 +55853,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -55819,7 +55866,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -55832,7 +55879,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -55845,7 +55892,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -55858,7 +55905,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -55871,13 +55918,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -55891,7 +55938,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -55904,7 +55951,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55917,7 +55964,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55930,7 +55977,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55943,7 +55990,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -55956,7 +56003,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -55969,7 +56016,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -55996,7 +56043,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -56010,7 +56057,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -56037,7 +56084,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -56051,7 +56098,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -56064,7 +56111,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -62073,7 +62120,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62490,7 +62538,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62526,7 +62574,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -62566,7 +62614,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -62689,7 +62737,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -62807,7 +62855,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -62847,7 +62895,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -62892,7 +62940,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62935,7 +62984,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -62962,7 +63011,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62971,7 +63020,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -62998,7 +63047,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -63012,7 +63061,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -63039,7 +63088,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -63053,7 +63102,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63066,7 +63115,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63079,7 +63128,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63092,7 +63141,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -63105,7 +63154,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -63118,7 +63167,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -63131,7 +63180,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -63144,7 +63193,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -63157,13 +63206,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -63177,7 +63226,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -63190,7 +63239,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63203,7 +63252,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63216,7 +63265,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63229,7 +63278,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -63242,7 +63291,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -63255,7 +63304,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -63282,7 +63331,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -63296,7 +63345,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -63323,7 +63372,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -63337,7 +63386,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -63350,7 +63399,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -69446,7 +69495,8 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -69484,7 +69534,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy; + const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice(); if (\\"accuracy\\" in values && values.accuracy != null) { if (typeof values.accuracy === \\"number\\" && !Number.isNaN(values.accuracy)) { // @ts-ignore: type is checked above. @@ -69497,7 +69547,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude; + clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice(); if (\\"altitude\\" in values && values.altitude != null) { if (typeof values.altitude === \\"number\\" && !Number.isNaN(values.altitude)) { // @ts-ignore: type is checked above. @@ -69510,7 +69560,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude; + clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice(); if (\\"latitude\\" in values && values.latitude != null) { if (typeof values.latitude === \\"number\\" && !Number.isNaN(values.latitude)) { // @ts-ignore: type is checked above. @@ -69523,7 +69573,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude; + clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice(); if (\\"longitude\\" in values && values.longitude != null) { if (typeof values.longitude === \\"number\\" && !Number.isNaN(values.longitude)) { // @ts-ignore: type is checked above. @@ -69536,7 +69586,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius; + clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice(); if (\\"radius\\" in values && values.radius != null) { if (typeof values.radius === \\"number\\" && !Number.isNaN(values.radius)) { // @ts-ignore: type is checked above. @@ -69549,7 +69599,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units; + clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice(); 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) { // @ts-ignore: type is checked above. @@ -70466,7 +70516,8 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -70504,7 +70555,7 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); + const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); if (\\"describes\\" in values && values.describes != null) { if (values.describes instanceof Object || values.describes instanceof URL) { // @ts-ignore: type is checked above. @@ -71164,7 +71215,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); for (let i = 0; i < values.exclusiveOptions.length; i++) { this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i); @@ -71183,7 +71234,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); for (let i = 0; i < values.inclusiveOptions.length; i++) { this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i); @@ -71241,7 +71292,8 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -71285,13 +71337,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); + const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); if (\\"exclusiveOptions\\" in values && values.exclusiveOptions != null) { if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(); for (let i = 0; i < values.exclusiveOptions.length; i++) { @@ -71305,13 +71357,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); if (\\"inclusiveOptions\\" in values && values.inclusiveOptions != null) { if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(); for (let i = 0; i < values.inclusiveOptions.length; i++) { @@ -71325,7 +71377,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed; + clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice(); if (\\"closed\\" in values && values.closed != null) { if (isTemporalInstant(values.closed) || typeof values.closed === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -71338,7 +71390,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount; + clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice(); if (\\"voters\\" in values && values.voters != null) { if (typeof values.voters === \\"number\\" && Number.isInteger(values.voters) && values.voters >= 0) { // @ts-ignore: type is checked above. @@ -71351,7 +71403,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if (\\"quoteUrl\\" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -72539,7 +72591,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -72879,7 +72932,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73267,7 +73321,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -73307,7 +73361,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); for (let i = 0; i < values.relationships.length; i++) { this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i); @@ -73326,7 +73380,8 @@ relationships?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73366,7 +73421,7 @@ relationships?: (Object | URL)[];} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); + const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); if (\\"subject\\" in values && values.subject != null) { if (values.subject instanceof Object || values.subject instanceof URL) { // @ts-ignore: type is checked above. @@ -73379,7 +73434,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if (\\"object\\" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -73406,7 +73461,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -73420,7 +73475,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); if (\\"relationship\\" in values && values.relationship != null) { if (values.relationship instanceof Object || values.relationship instanceof URL) { // @ts-ignore: type is checked above. @@ -73447,7 +73502,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(); for (let i = 0; i < values.relationships.length; i++) { @@ -74955,7 +75010,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75361,7 +75417,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75397,7 +75453,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -75437,7 +75493,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -75560,7 +75616,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -75678,7 +75734,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -75718,7 +75774,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -75763,7 +75819,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75806,7 +75863,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if (\\"preferredUsername\\" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === \\"string\\" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -75833,7 +75890,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75842,7 +75899,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if (\\"publicKey\\" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -75869,7 +75926,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -75883,7 +75940,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if (\\"assertionMethod\\" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -75910,7 +75967,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -75924,7 +75981,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if (\\"manuallyApprovesFollowers\\" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -75937,7 +75994,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if (\\"inbox\\" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75950,7 +76007,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if (\\"outbox\\" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75963,7 +76020,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if (\\"following\\" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -75976,7 +76033,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if (\\"followers\\" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -75989,7 +76046,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if (\\"liked\\" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -76002,7 +76059,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if (\\"featured\\" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -76015,7 +76072,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if (\\"featuredTags\\" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -76028,13 +76085,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if (\\"streams\\" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -76048,7 +76105,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if (\\"endpoints\\" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -76061,7 +76118,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if (\\"discoverable\\" in values && values.discoverable != null) { if (typeof values.discoverable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76074,7 +76131,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if (\\"suspended\\" in values && values.suspended != null) { if (typeof values.suspended === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76087,7 +76144,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if (\\"memorial\\" in values && values.memorial != null) { if (typeof values.memorial === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76100,7 +76157,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if (\\"indexable\\" in values && values.indexable != null) { if (typeof values.indexable === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -76113,7 +76170,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -76126,7 +76183,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -76153,7 +76210,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -76167,7 +76224,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if (\\"service\\" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -76194,7 +76251,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -76208,7 +76265,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if (\\"followedMessage\\" in values && values.followedMessage != null) { if (typeof values.followedMessage === \\"string\\") { // @ts-ignore: type is checked above. @@ -76221,7 +76278,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if (\\"cat\\" in values && values.cat != null) { if (typeof values.cat === \\"boolean\\") { // @ts-ignore: type is checked above. @@ -82308,7 +82365,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82336,7 +82393,8 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -82365,7 +82423,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} { id: values.id ?? this.id }, options ); - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if (\\"content\\" in values && values.content != null) { if (typeof values.content === \\"string\\" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -82392,7 +82450,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === \\"string\\" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82401,7 +82459,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if (\\"mediaType\\" in values && values.mediaType != null) { if (typeof values.mediaType === \\"string\\") { // @ts-ignore: type is checked above. @@ -82918,7 +82976,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83258,7 +83317,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83607,7 +83667,8 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83645,7 +83706,7 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted; + const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice(); if (\\"deleted\\" in values && values.deleted != null) { if (isTemporalInstant(values.deleted)) { // @ts-ignore: type is checked above. @@ -84070,7 +84131,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84415,7 +84477,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84758,7 +84821,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85090,7 +85154,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85440,7 +85505,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: diff --git a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap index 4a23873a0..be1178b2e 100644 --- a/packages/vocab-tools/src/__snapshots__/class.test.ts.snap +++ b/packages/vocab-tools/src/__snapshots__/class.test.ts.snap @@ -241,7 +241,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); for (let i = 0; i < values.attachments.length; i++) { this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i); @@ -281,7 +281,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); for (let i = 0; i < values.attributions.length; i++) { this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i); @@ -321,7 +321,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); for (let i = 0; i < values.audiences.length; i++) { this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i); @@ -361,7 +361,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -376,7 +376,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); for (let i = 0; i < values.contexts.length; i++) { this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i); @@ -416,7 +416,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -444,7 +444,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); for (let i = 0; i < values.generators.length; i++) { this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i); @@ -484,7 +484,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); for (let i = 0; i < values.icons.length; i++) { this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i); @@ -524,7 +524,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); for (let i = 0; i < values.images.length; i++) { this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i); @@ -564,7 +564,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); for (let i = 0; i < values.replyTargets.length; i++) { this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i); @@ -604,7 +604,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); for (let i = 0; i < values.locations.length; i++) { this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i); @@ -644,7 +644,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -762,7 +762,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -777,7 +777,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); for (let i = 0; i < values.tags.length; i++) { this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i); @@ -830,7 +830,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -866,7 +866,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); for (let i = 0; i < values.tos.length; i++) { this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i); @@ -906,7 +906,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); for (let i = 0; i < values.btos.length; i++) { this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i); @@ -946,7 +946,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); for (let i = 0; i < values.ccs.length; i++) { this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i); @@ -986,7 +986,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); for (let i = 0; i < values.bccs.length; i++) { this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i); @@ -1078,7 +1078,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); for (let i = 0; i < values.proofs.length; i++) { this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i); @@ -1097,7 +1097,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -1141,13 +1142,13 @@ proofs?: (DataIntegrityProof | URL)[];} { id: values.id ?? this.id }, options ); - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment); if ("attachments" in values && values.attachments != null) { if (Array.isArray(values.attachments) && values.attachments.every(v => v instanceof Object || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments; + clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice(); clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(); for (let i = 0; i < values.attachments.length; i++) { @@ -1161,7 +1162,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo); 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) { // @ts-ignore: type is checked above. @@ -1188,7 +1189,7 @@ proofs?: (DataIntegrityProof | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions; + clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice(); clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(); for (let i = 0; i < values.attributions.length; i++) { @@ -1202,7 +1203,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience); if ("audience" in values && values.audience != null) { if (values.audience instanceof Object || values.audience instanceof URL) { // @ts-ignore: type is checked above. @@ -1229,7 +1230,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.audiences) && values.audiences.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences; + clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice(); clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(); for (let i = 0; i < values.audiences.length; i++) { @@ -1243,7 +1244,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if ("content" in values && values.content != null) { if (typeof values.content === "string" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1270,7 +1271,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -1279,13 +1280,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context); if ("contexts" in values && values.contexts != null) { if (Array.isArray(values.contexts) && values.contexts.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts; + clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice(); clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(); for (let i = 0; i < values.contexts.length; i++) { @@ -1299,7 +1300,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if ("name" in values && values.name != null) { if (typeof values.name === "string" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1326,7 +1327,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.names) && values.names.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -1335,7 +1336,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime; + clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice(); if ("endTime" in values && values.endTime != null) { if (isTemporalInstant(values.endTime)) { // @ts-ignore: type is checked above. @@ -1348,13 +1349,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator); if ("generators" in values && values.generators != null) { if (Array.isArray(values.generators) && values.generators.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators; + clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice(); clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(); for (let i = 0; i < values.generators.length; i++) { @@ -1368,7 +1369,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon); if ("icon" in values && values.icon != null) { if (values.icon instanceof Image || values.icon instanceof URL) { // @ts-ignore: type is checked above. @@ -1395,7 +1396,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.icons) && values.icons.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons; + clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice(); clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(); for (let i = 0; i < values.icons.length; i++) { @@ -1409,7 +1410,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image); if ("image" in values && values.image != null) { if (values.image instanceof Image || values.image instanceof URL) { // @ts-ignore: type is checked above. @@ -1436,7 +1437,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.images) && values.images.every(v => v instanceof Image || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images; + clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice(); clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(); for (let i = 0; i < values.images.length; i++) { @@ -1450,7 +1451,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo); if ("replyTarget" in values && values.replyTarget != null) { if (values.replyTarget instanceof Object || values.replyTarget instanceof Link || values.replyTarget instanceof URL) { // @ts-ignore: type is checked above. @@ -1477,7 +1478,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.replyTargets) && values.replyTargets.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets; + clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice(); clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(); for (let i = 0; i < values.replyTargets.length; i++) { @@ -1491,7 +1492,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location); if ("location" in values && values.location != null) { if (values.location instanceof Object || values.location instanceof Link || values.location instanceof URL) { // @ts-ignore: type is checked above. @@ -1518,7 +1519,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.locations) && values.locations.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations; + clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice(); clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(); for (let i = 0; i < values.locations.length; i++) { @@ -1532,7 +1533,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if ("preview" in values && values.preview != null) { if (values.preview instanceof Link || values.preview instanceof Object || values.preview instanceof URL) { // @ts-ignore: type is checked above. @@ -1559,7 +1560,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -1573,7 +1574,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published; + clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice(); if ("published" in values && values.published != null) { if (isTemporalInstant(values.published)) { // @ts-ignore: type is checked above. @@ -1586,7 +1587,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); + clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies); if ("replies" in values && values.replies != null) { if (values.replies instanceof Collection || values.replies instanceof URL) { // @ts-ignore: type is checked above. @@ -1599,7 +1600,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); + clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares); if ("shares" in values && values.shares != null) { if (values.shares instanceof Collection || values.shares instanceof URL) { // @ts-ignore: type is checked above. @@ -1612,7 +1613,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); + clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes); if ("likes" in values && values.likes != null) { if (values.likes instanceof Collection || values.likes instanceof URL) { // @ts-ignore: type is checked above. @@ -1625,7 +1626,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); + clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions); if ("emojiReactions" in values && values.emojiReactions != null) { if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) { // @ts-ignore: type is checked above. @@ -1638,7 +1639,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime; + clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice(); if ("startTime" in values && values.startTime != null) { if (isTemporalInstant(values.startTime)) { // @ts-ignore: type is checked above. @@ -1651,7 +1652,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice(); if ("summary" in values && values.summary != null) { if (typeof values.summary === "string" || values.summary instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -1678,7 +1679,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.summaries) && values.summaries.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries; + clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice(); } else { throw new TypeError( @@ -1687,13 +1688,13 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag); if ("tags" in values && values.tags != null) { if (Array.isArray(values.tags) && values.tags.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags; + clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice(); clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(); for (let i = 0; i < values.tags.length; i++) { @@ -1707,7 +1708,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated; + clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice(); if ("updated" in values && values.updated != null) { if (isTemporalInstant(values.updated)) { // @ts-ignore: type is checked above. @@ -1720,7 +1721,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice(); if ("url" in values && values.url != null) { if (values.url instanceof URL || values.url instanceof Link) { // @ts-ignore: type is checked above. @@ -1747,7 +1748,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.urls) && values.urls.every(v => v instanceof URL || v instanceof Link)) { // @ts-ignore: type is checked above. - clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls; + clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice(); } else { throw new TypeError( @@ -1756,7 +1757,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to); if ("to" in values && values.to != null) { if (values.to instanceof Object || values.to instanceof URL) { // @ts-ignore: type is checked above. @@ -1783,7 +1784,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.tos) && values.tos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos; + clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice(); clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(); for (let i = 0; i < values.tos.length; i++) { @@ -1797,7 +1798,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto); if ("bto" in values && values.bto != null) { if (values.bto instanceof Object || values.bto instanceof URL) { // @ts-ignore: type is checked above. @@ -1824,7 +1825,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.btos) && values.btos.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos; + clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice(); clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(); for (let i = 0; i < values.btos.length; i++) { @@ -1838,7 +1839,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc); if ("cc" in values && values.cc != null) { if (values.cc instanceof Object || values.cc instanceof URL) { // @ts-ignore: type is checked above. @@ -1865,7 +1866,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.ccs) && values.ccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs; + clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice(); clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(); for (let i = 0; i < values.ccs.length; i++) { @@ -1879,7 +1880,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc); if ("bcc" in values && values.bcc != null) { if (values.bcc instanceof Object || values.bcc instanceof URL) { // @ts-ignore: type is checked above. @@ -1906,7 +1907,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.bccs) && values.bccs.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs; + clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice(); clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(); for (let i = 0; i < values.bccs.length; i++) { @@ -1920,7 +1921,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if ("mediaType" in values && values.mediaType != null) { if (typeof values.mediaType === "string") { // @ts-ignore: type is checked above. @@ -1933,7 +1934,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration; + clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice(); if ("duration" in values && values.duration != null) { if (isTemporalDuration(values.duration)) { // @ts-ignore: type is checked above. @@ -1946,7 +1947,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive; + clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice(); if ("sensitive" in values && values.sensitive != null) { if (typeof values.sensitive === "boolean") { // @ts-ignore: type is checked above. @@ -1959,7 +1960,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source; + clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice(); if ("source" in values && values.source != null) { if (values.source instanceof Source) { // @ts-ignore: type is checked above. @@ -1972,7 +1973,7 @@ proofs?: (DataIntegrityProof | URL)[];} ); } } - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof); if ("proof" in values && values.proof != null) { if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) { // @ts-ignore: type is checked above. @@ -1999,7 +2000,7 @@ proofs?: (DataIntegrityProof | URL)[];} if (Array.isArray(values.proofs) && values.proofs.every(v => v instanceof DataIntegrityProof || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs; + clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice(); clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(); for (let i = 0; i < values.proofs.length; i++) { @@ -11823,7 +11824,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12185,7 +12187,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12223,7 +12226,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as ChatMessage;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if ("quoteUrl" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -12720,7 +12723,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); for (let i = 0; i < values.actors.length; i++) { this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i); @@ -12760,7 +12763,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -12800,7 +12803,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); for (let i = 0; i < values.targets.length; i++) { this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i); @@ -12840,7 +12843,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); for (let i = 0; i < values.results.length; i++) { this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i); @@ -12880,7 +12883,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); for (let i = 0; i < values.origins.length; i++) { this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i); @@ -12920,7 +12923,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); for (let i = 0; i < values.instruments.length; i++) { this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i); @@ -12939,7 +12942,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -12983,7 +12987,7 @@ instruments?: (Object | URL)[];} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); + const clone = super.clone(values, options) as unknown as Activity;clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor); 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) { // @ts-ignore: type is checked above. @@ -13010,7 +13014,7 @@ instruments?: (Object | URL)[];} 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)) { // @ts-ignore: type is checked above. - clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors; + clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice(); clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(); for (let i = 0; i < values.actors.length; i++) { @@ -13024,7 +13028,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if ("object" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -13051,7 +13055,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -13065,7 +13069,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target); if ("target" in values && values.target != null) { if (values.target instanceof Object || values.target instanceof URL) { // @ts-ignore: type is checked above. @@ -13092,7 +13096,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.targets) && values.targets.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets; + clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice(); clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(); for (let i = 0; i < values.targets.length; i++) { @@ -13106,7 +13110,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result); if ("result" in values && values.result != null) { if (values.result instanceof Object || values.result instanceof URL) { // @ts-ignore: type is checked above. @@ -13133,7 +13137,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.results) && values.results.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results; + clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice(); clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(); for (let i = 0; i < values.results.length; i++) { @@ -13147,7 +13151,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin); if ("origin" in values && values.origin != null) { if (values.origin instanceof Object || values.origin instanceof URL) { // @ts-ignore: type is checked above. @@ -13174,7 +13178,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.origins) && values.origins.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins; + clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice(); clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(); for (let i = 0; i < values.origins.length; i++) { @@ -13188,7 +13192,7 @@ instruments?: (Object | URL)[];} ); } } - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument); if ("instrument" in values && values.instrument != null) { if (values.instrument instanceof Object || values.instrument instanceof URL) { // @ts-ignore: type is checked above. @@ -13215,7 +13219,7 @@ instruments?: (Object | URL)[];} if (Array.isArray(values.instruments) && values.instruments.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments; + clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice(); clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(); for (let i = 0; i < values.instruments.length; i++) { @@ -16180,7 +16184,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -16594,7 +16599,8 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -16622,7 +16628,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} { id: values.id ?? this.id }, options ); - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if ("name" in values && values.name != null) { if (typeof values.name === "string" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -16635,7 +16641,7 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;} ); } } - clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value; + clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice(); if ("value" in values && values.value != null) { if (typeof values.value === "string" || values.value instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -17233,7 +17239,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17248,7 +17254,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -17277,7 +17284,7 @@ endpoints?: (URL)[];} { id: values.id ?? this.id }, options ); - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice(); if ("endpoint" in values && values.endpoint != null) { if (values.endpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -17304,7 +17311,7 @@ endpoints?: (URL)[];} if (Array.isArray(values.endpoints) && values.endpoints.every(v => v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints; + clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice(); } else { throw new TypeError( @@ -17683,7 +17690,8 @@ endpoints?: (URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -18113,7 +18121,8 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -18141,7 +18150,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null { id: values.id ?? this.id }, options ); - clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite; + clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice(); if ("cryptosuite" in values && values.cryptosuite != null) { if (values.cryptosuite == "eddsa-jcs-2022") { // @ts-ignore: type is checked above. @@ -18154,7 +18163,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null ); } } - clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); + clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod); if ("verificationMethod" in values && values.verificationMethod != null) { if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -18167,7 +18176,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null ); } } - clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose; + clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice(); if ("proofPurpose" in values && values.proofPurpose != null) { if (values.proofPurpose === "assertionMethod" || values.proofPurpose === "authentication" || values.proofPurpose === "capabilityInvocation" || values.proofPurpose === "capabilityDelegation" || @@ -18182,7 +18191,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null ); } } - clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue; + clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice(); if ("proofValue" in values && values.proofValue != null) { if (values.proofValue instanceof Uint8Array) { // @ts-ignore: type is checked above. @@ -18195,7 +18204,7 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null ); } } - clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac; + clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice(); if ("created" in values && values.created != null) { if (isTemporalInstant(values.created)) { // @ts-ignore: type is checked above. @@ -19158,7 +19167,8 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -19186,7 +19196,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi { id: values.id ?? this.id }, options ); - clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); + clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner); 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) { // @ts-ignore: type is checked above. @@ -19199,7 +19209,7 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi ); } } - clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem; + clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice(); if ("publicKey" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20073,7 +20083,8 @@ controller?: Application | Group | Organization | Person | Service | URL | null; * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -20101,7 +20112,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; { id: values.id ?? this.id }, options ); - clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); + clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller); 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) { // @ts-ignore: type is checked above. @@ -20114,7 +20125,7 @@ controller?: Application | Group | Organization | Person | Service | URL | null; ); } } - clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase; + clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice(); if ("publicKey" in values && values.publicKey != null) { if ( // @ts-ignore: CryptoKey exists in the global scope. @@ -20913,7 +20924,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21259,7 +21271,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -21600,7 +21613,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22006,7 +22020,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22042,7 +22056,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -22082,7 +22096,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -22205,7 +22219,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -22323,7 +22337,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -22363,7 +22377,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -22408,7 +22422,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -22451,7 +22466,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Application;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if ("preferredUsername" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -22478,7 +22493,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -22487,7 +22502,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if ("publicKey" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -22514,7 +22529,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -22528,7 +22543,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if ("assertionMethod" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -22555,7 +22570,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -22569,7 +22584,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === "boolean") { // @ts-ignore: type is checked above. @@ -22582,7 +22597,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if ("inbox" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22595,7 +22610,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if ("outbox" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -22608,7 +22623,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if ("following" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -22621,7 +22636,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if ("followers" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -22634,7 +22649,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if ("liked" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -22647,7 +22662,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if ("featured" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -22660,7 +22675,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if ("featuredTags" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -22673,13 +22688,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if ("streams" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -22693,7 +22708,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if ("endpoints" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -22706,7 +22721,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if ("discoverable" in values && values.discoverable != null) { if (typeof values.discoverable === "boolean") { // @ts-ignore: type is checked above. @@ -22719,7 +22734,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if ("suspended" in values && values.suspended != null) { if (typeof values.suspended === "boolean") { // @ts-ignore: type is checked above. @@ -22732,7 +22747,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if ("memorial" in values && values.memorial != null) { if (typeof values.memorial === "boolean") { // @ts-ignore: type is checked above. @@ -22745,7 +22760,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if ("indexable" in values && values.indexable != null) { if (typeof values.indexable === "boolean") { // @ts-ignore: type is checked above. @@ -22758,7 +22773,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -22771,7 +22786,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -22798,7 +22813,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -22812,7 +22827,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if ("service" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -22839,7 +22854,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -22853,7 +22868,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if ("followedMessage" in values && values.followedMessage != null) { if (typeof values.followedMessage === "string") { // @ts-ignore: type is checked above. @@ -22866,7 +22881,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if ("cat" in values && values.cat != null) { if (typeof values.cat === "boolean") { // @ts-ignore: type is checked above. @@ -28884,7 +28899,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29237,7 +29253,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29583,7 +29600,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -29621,7 +29639,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Article;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if ("quoteUrl" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -30096,7 +30114,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -30134,7 +30153,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + const clone = super.clone(values, options) as unknown as Document;clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if ("width" in values && values.width != null) { if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -30147,7 +30166,7 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if ("height" in values && values.height != null) { if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -30667,7 +30686,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31018,7 +31038,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31364,7 +31385,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31790,7 +31812,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -31913,7 +31935,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -31951,7 +31974,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems; + const clone = super.clone(values, options) as unknown as Collection;clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice(); if ("totalItems" in values && values.totalItems != null) { if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) { // @ts-ignore: type is checked above. @@ -31964,7 +31987,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); + clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current); if ("current" in values && values.current != null) { if (values.current instanceof CollectionPage || values.current instanceof URL) { // @ts-ignore: type is checked above. @@ -31977,7 +32000,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); + clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first); if ("first" in values && values.first != null) { if (values.first instanceof CollectionPage || values.first instanceof URL) { // @ts-ignore: type is checked above. @@ -31990,7 +32013,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); + clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last); if ("last" in values && values.last != null) { if (values.last instanceof CollectionPage || values.last instanceof URL) { // @ts-ignore: type is checked above. @@ -32003,13 +32026,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if ("items" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -32023,7 +32046,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); + clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf); if ("likesOf" in values && values.likesOf != null) { if (values.likesOf instanceof Object || values.likesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32036,7 +32059,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); + clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf); if ("sharesOf" in values && values.sharesOf != null) { if (values.sharesOf instanceof Object || values.sharesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32049,7 +32072,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); + clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf); if ("repliesOf" in values && values.repliesOf != null) { if (values.repliesOf instanceof Object || values.repliesOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32062,7 +32085,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); + clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf); if ("inboxOf" in values && values.inboxOf != null) { if (values.inboxOf instanceof Object || values.inboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32075,7 +32098,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); + clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf); if ("outboxOf" in values && values.outboxOf != null) { if (values.outboxOf instanceof Object || values.outboxOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32088,7 +32111,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); + clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf); if ("followersOf" in values && values.followersOf != null) { if (values.followersOf instanceof Object || values.followersOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32101,7 +32124,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); + clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf); if ("followingOf" in values && values.followingOf != null) { if (values.followingOf instanceof Object || values.followingOf instanceof URL) { // @ts-ignore: type is checked above. @@ -32114,7 +32137,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); + clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf); if ("likedOf" in values && values.likedOf != null) { if (values.likedOf instanceof Object || values.likedOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36438,7 +36461,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -36476,7 +36500,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); + const clone = super.clone(values, options) as unknown as CollectionPage;clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf); if ("partOf" in values && values.partOf != null) { if (values.partOf instanceof Collection || values.partOf instanceof URL) { // @ts-ignore: type is checked above. @@ -36489,7 +36513,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); + clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next); if ("next" in values && values.next != null) { if (values.next instanceof CollectionPage || values.next instanceof URL) { // @ts-ignore: type is checked above. @@ -36502,7 +36526,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); + clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev); if ("prev" in values && values.prev != null) { if (values.prev instanceof CollectionPage || values.prev instanceof URL) { // @ts-ignore: type is checked above. @@ -37784,7 +37808,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38124,7 +38149,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38462,7 +38488,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -38932,7 +38959,8 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -38960,7 +38988,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint { id: values.id ?? this.id }, options ); - clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl; + clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice(); if ("proxyUrl" in values && values.proxyUrl != null) { if (values.proxyUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -38973,7 +39001,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint; + clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice(); if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) { if (values.oauthAuthorizationEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38986,7 +39014,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint; + clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice(); if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) { if (values.oauthTokenEndpoint instanceof URL) { // @ts-ignore: type is checked above. @@ -38999,7 +39027,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey; + clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice(); if ("provideClientKey" in values && values.provideClientKey != null) { if (values.provideClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39012,7 +39040,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey; + clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice(); if ("signClientKey" in values && values.signClientKey != null) { if (values.signClientKey instanceof URL) { // @ts-ignore: type is checked above. @@ -39025,7 +39053,7 @@ proxyUrl?: URL | null;oauthAuthorizationEndpoint?: URL | null;oauthTokenEndpoint ); } } - clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox; + clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice(); if ("sharedInbox" in values && values.sharedInbox != null) { if (values.sharedInbox instanceof URL) { // @ts-ignore: type is checked above. @@ -39973,7 +40001,8 @@ proofs?: (DataIntegrityProof | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40325,7 +40354,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -40667,7 +40697,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41073,7 +41104,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41109,7 +41140,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -41149,7 +41180,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -41272,7 +41303,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -41390,7 +41421,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -41430,7 +41461,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -41475,7 +41506,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -41518,7 +41550,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Group;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if ("preferredUsername" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -41545,7 +41577,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -41554,7 +41586,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if ("publicKey" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -41581,7 +41613,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -41595,7 +41627,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if ("assertionMethod" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -41622,7 +41654,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -41636,7 +41668,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === "boolean") { // @ts-ignore: type is checked above. @@ -41649,7 +41681,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if ("inbox" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41662,7 +41694,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if ("outbox" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -41675,7 +41707,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if ("following" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -41688,7 +41720,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if ("followers" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -41701,7 +41733,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if ("liked" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -41714,7 +41746,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if ("featured" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -41727,7 +41759,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if ("featuredTags" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -41740,13 +41772,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if ("streams" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -41760,7 +41792,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if ("endpoints" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -41773,7 +41805,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if ("discoverable" in values && values.discoverable != null) { if (typeof values.discoverable === "boolean") { // @ts-ignore: type is checked above. @@ -41786,7 +41818,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if ("suspended" in values && values.suspended != null) { if (typeof values.suspended === "boolean") { // @ts-ignore: type is checked above. @@ -41799,7 +41831,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if ("memorial" in values && values.memorial != null) { if (typeof values.memorial === "boolean") { // @ts-ignore: type is checked above. @@ -41812,7 +41844,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if ("indexable" in values && values.indexable != null) { if (typeof values.indexable === "boolean") { // @ts-ignore: type is checked above. @@ -41825,7 +41857,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -41838,7 +41870,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -41865,7 +41897,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -41879,7 +41911,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if ("service" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -41906,7 +41938,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -41920,7 +41952,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if ("followedMessage" in values && values.followedMessage != null) { if (typeof values.followedMessage === "string") { // @ts-ignore: type is checked above. @@ -41933,7 +41965,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if ("cat" in values && values.cat != null) { if (typeof values.cat === "boolean") { // @ts-ignore: type is checked above. @@ -48050,7 +48082,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === "string")) { // @ts-ignore: type is checked above. - this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48099,7 +48131,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48153,7 +48185,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); for (let i = 0; i < values.previews.length; i++) { this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i); @@ -48172,7 +48204,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -48202,7 +48235,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num { id: values.id ?? this.id }, options ); - clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href; + clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice(); if ("href" in values && values.href != null) { if (values.href instanceof URL) { // @ts-ignore: type is checked above. @@ -48215,7 +48248,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice(); if ("rel" in values && values.rel != null) { if (typeof values.rel === "string") { // @ts-ignore: type is checked above. @@ -48242,7 +48275,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.rels) && values.rels.every(v => typeof v === "string")) { // @ts-ignore: type is checked above. - clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels; + clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice(); } else { throw new TypeError( @@ -48251,7 +48284,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if ("mediaType" in values && values.mediaType != null) { if (typeof values.mediaType === "string") { // @ts-ignore: type is checked above. @@ -48264,7 +48297,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice(); if ("name" in values && values.name != null) { if (typeof values.name === "string" || values.name instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -48291,7 +48324,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num if (Array.isArray(values.names) && values.names.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names; + clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice(); } else { throw new TypeError( @@ -48300,7 +48333,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang; + clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice(); if ("language" in values && values.language != null) { if (values.language instanceof Intl.Locale) { // @ts-ignore: type is checked above. @@ -48313,7 +48346,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height; + clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice(); if ("height" in values && values.height != null) { if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) { // @ts-ignore: type is checked above. @@ -48326,7 +48359,7 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width; + clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice(); if ("width" in values && values.width != null) { if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) { // @ts-ignore: type is checked above. @@ -48339,13 +48372,13 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num ); } } - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview); if ("previews" in values && values.previews != null) { if (Array.isArray(values.previews) && values.previews.every(v => v instanceof Link || v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews; + clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice(); clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(); for (let i = 0; i < values.previews.length; i++) { @@ -49697,7 +49730,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50015,7 +50049,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50367,7 +50402,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -50711,7 +50747,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51051,7 +51088,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51391,7 +51429,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -51731,7 +51770,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52069,7 +52109,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52387,7 +52428,8 @@ names?: ((string | LanguageString))[];language?: Intl.Locale | null;height?: num * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -52714,7 +52756,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53062,7 +53105,8 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53100,7 +53144,7 @@ proofs?: (DataIntegrityProof | URL)[];quoteUrl?: URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + const clone = super.clone(values, options) as unknown as Note;clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if ("quoteUrl" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -53552,7 +53596,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -53571,7 +53615,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -53609,13 +53654,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollection;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if ("items" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54286,7 +54331,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); for (let i = 0; i < values.items.length; i++) { this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i); @@ -54318,7 +54363,8 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -54356,13 +54402,13 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); + const clone = super.clone(values, options) as unknown as OrderedCollectionPage;clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items); if ("items" in values && values.items != null) { if (Array.isArray(values.items) && values.items.every(v => v instanceof Object || v instanceof Link || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items; + clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice(); clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(); for (let i = 0; i < values.items.length; i++) { @@ -54376,7 +54422,7 @@ proofs?: (DataIntegrityProof | URL)[];totalItems?: number | null;current?: Colle ); } } - clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex; + clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice(); if ("startIndex" in values && values.startIndex != null) { if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) { // @ts-ignore: type is checked above. @@ -55206,7 +55252,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55242,7 +55288,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -55282,7 +55328,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -55405,7 +55451,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -55523,7 +55569,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -55563,7 +55609,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -55608,7 +55654,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -55651,7 +55698,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Organization;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if ("preferredUsername" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -55678,7 +55725,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -55687,7 +55734,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if ("publicKey" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -55714,7 +55761,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -55728,7 +55775,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if ("assertionMethod" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -55755,7 +55802,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -55769,7 +55816,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === "boolean") { // @ts-ignore: type is checked above. @@ -55782,7 +55829,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if ("inbox" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55795,7 +55842,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if ("outbox" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -55808,7 +55855,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if ("following" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -55821,7 +55868,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if ("followers" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -55834,7 +55881,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if ("liked" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -55847,7 +55894,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if ("featured" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -55860,7 +55907,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if ("featuredTags" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -55873,13 +55920,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if ("streams" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -55893,7 +55940,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if ("endpoints" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -55906,7 +55953,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if ("discoverable" in values && values.discoverable != null) { if (typeof values.discoverable === "boolean") { // @ts-ignore: type is checked above. @@ -55919,7 +55966,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if ("suspended" in values && values.suspended != null) { if (typeof values.suspended === "boolean") { // @ts-ignore: type is checked above. @@ -55932,7 +55979,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if ("memorial" in values && values.memorial != null) { if (typeof values.memorial === "boolean") { // @ts-ignore: type is checked above. @@ -55945,7 +55992,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if ("indexable" in values && values.indexable != null) { if (typeof values.indexable === "boolean") { // @ts-ignore: type is checked above. @@ -55958,7 +56005,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -55971,7 +56018,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -55998,7 +56045,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -56012,7 +56059,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if ("service" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -56039,7 +56086,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -56053,7 +56100,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if ("followedMessage" in values && values.followedMessage != null) { if (typeof values.followedMessage === "string") { // @ts-ignore: type is checked above. @@ -56066,7 +56113,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if ("cat" in values && values.cat != null) { if (typeof values.cat === "boolean") { // @ts-ignore: type is checked above. @@ -62075,7 +62122,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62492,7 +62540,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62528,7 +62576,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -62568,7 +62616,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -62691,7 +62739,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -62809,7 +62857,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -62849,7 +62897,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -62894,7 +62942,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -62937,7 +62986,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Person;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if ("preferredUsername" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -62964,7 +63013,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -62973,7 +63022,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if ("publicKey" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -63000,7 +63049,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -63014,7 +63063,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if ("assertionMethod" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -63041,7 +63090,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -63055,7 +63104,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === "boolean") { // @ts-ignore: type is checked above. @@ -63068,7 +63117,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if ("inbox" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63081,7 +63130,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if ("outbox" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -63094,7 +63143,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if ("following" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -63107,7 +63156,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if ("followers" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -63120,7 +63169,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if ("liked" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -63133,7 +63182,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if ("featured" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -63146,7 +63195,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if ("featuredTags" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -63159,13 +63208,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if ("streams" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -63179,7 +63228,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if ("endpoints" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -63192,7 +63241,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if ("discoverable" in values && values.discoverable != null) { if (typeof values.discoverable === "boolean") { // @ts-ignore: type is checked above. @@ -63205,7 +63254,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if ("suspended" in values && values.suspended != null) { if (typeof values.suspended === "boolean") { // @ts-ignore: type is checked above. @@ -63218,7 +63267,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if ("memorial" in values && values.memorial != null) { if (typeof values.memorial === "boolean") { // @ts-ignore: type is checked above. @@ -63231,7 +63280,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if ("indexable" in values && values.indexable != null) { if (typeof values.indexable === "boolean") { // @ts-ignore: type is checked above. @@ -63244,7 +63293,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -63257,7 +63306,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -63284,7 +63333,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -63298,7 +63347,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if ("service" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -63325,7 +63374,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -63339,7 +63388,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if ("followedMessage" in values && values.followedMessage != null) { if (typeof values.followedMessage === "string") { // @ts-ignore: type is checked above. @@ -63352,7 +63401,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if ("cat" in values && values.cat != null) { if (typeof values.cat === "boolean") { // @ts-ignore: type is checked above. @@ -69448,7 +69497,8 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -69486,7 +69536,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy; + const clone = super.clone(values, options) as unknown as Place;clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice(); if ("accuracy" in values && values.accuracy != null) { if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) { // @ts-ignore: type is checked above. @@ -69499,7 +69549,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude; + clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice(); if ("altitude" in values && values.altitude != null) { if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) { // @ts-ignore: type is checked above. @@ -69512,7 +69562,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude; + clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice(); if ("latitude" in values && values.latitude != null) { if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) { // @ts-ignore: type is checked above. @@ -69525,7 +69575,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude; + clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice(); if ("longitude" in values && values.longitude != null) { if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) { // @ts-ignore: type is checked above. @@ -69538,7 +69588,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius; + clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice(); if ("radius" in values && values.radius != null) { if (typeof values.radius === "number" && !Number.isNaN(values.radius)) { // @ts-ignore: type is checked above. @@ -69551,7 +69601,7 @@ proofs?: (DataIntegrityProof | URL)[];accuracy?: number | null;altitude?: number ); } } - clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units; + clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice(); 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) { // @ts-ignore: type is checked above. @@ -70468,7 +70518,8 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -70506,7 +70557,7 @@ proofs?: (DataIntegrityProof | URL)[];describes?: Object | URL | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); + const clone = super.clone(values, options) as unknown as Profile;clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes); if ("describes" in values && values.describes != null) { if (values.describes instanceof Object || values.describes instanceof URL) { // @ts-ignore: type is checked above. @@ -71166,7 +71217,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); for (let i = 0; i < values.exclusiveOptions.length; i++) { this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i); @@ -71185,7 +71236,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); for (let i = 0; i < values.inclusiveOptions.length; i++) { this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i); @@ -71243,7 +71294,8 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -71287,13 +71339,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); + const clone = super.clone(values, options) as unknown as Question;clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf); if ("exclusiveOptions" in values && values.exclusiveOptions != null) { if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions; + clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice(); clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(); for (let i = 0; i < values.exclusiveOptions.length; i++) { @@ -71307,13 +71359,13 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf); if ("inclusiveOptions" in values && values.inclusiveOptions != null) { if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions; + clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice(); clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(); for (let i = 0; i < values.inclusiveOptions.length; i++) { @@ -71327,7 +71379,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed; + clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice(); if ("closed" in values && values.closed != null) { if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") { // @ts-ignore: type is checked above. @@ -71340,7 +71392,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount; + clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice(); if ("voters" in values && values.voters != null) { if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) { // @ts-ignore: type is checked above. @@ -71353,7 +71405,7 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti ); } } - clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl; + clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice(); if ("quoteUrl" in values && values.quoteUrl != null) { if (values.quoteUrl instanceof URL) { // @ts-ignore: type is checked above. @@ -72541,7 +72593,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -72881,7 +72934,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73269,7 +73323,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); for (let i = 0; i < values.objects.length; i++) { this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i); @@ -73309,7 +73363,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); for (let i = 0; i < values.relationships.length; i++) { this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i); @@ -73328,7 +73382,8 @@ relationships?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -73368,7 +73423,7 @@ relationships?: (Object | URL)[];} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); + const clone = super.clone(values, options) as unknown as Relationship;clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject); if ("subject" in values && values.subject != null) { if (values.subject instanceof Object || values.subject instanceof URL) { // @ts-ignore: type is checked above. @@ -73381,7 +73436,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object); if ("object" in values && values.object != null) { if (values.object instanceof Object || values.object instanceof URL) { // @ts-ignore: type is checked above. @@ -73408,7 +73463,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.objects) && values.objects.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects; + clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice(); clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(); for (let i = 0; i < values.objects.length; i++) { @@ -73422,7 +73477,7 @@ relationships?: (Object | URL)[];} ); } } - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship); if ("relationship" in values && values.relationship != null) { if (values.relationship instanceof Object || values.relationship instanceof URL) { // @ts-ignore: type is checked above. @@ -73449,7 +73504,7 @@ relationships?: (Object | URL)[];} if (Array.isArray(values.relationships) && values.relationships.every(v => v instanceof Object || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships; + clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice(); clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(); for (let i = 0; i < values.relationships.length; i++) { @@ -74957,7 +75012,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75363,7 +75419,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75399,7 +75455,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); for (let i = 0; i < values.publicKeys.length; i++) { this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i); @@ -75439,7 +75495,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); for (let i = 0; i < values.assertionMethods.length; i++) { this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i); @@ -75562,7 +75618,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); for (let i = 0; i < values.streams.length; i++) { this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i); @@ -75680,7 +75736,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); for (let i = 0; i < values.aliases.length; i++) { this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i); @@ -75720,7 +75776,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); for (let i = 0; i < values.services.length; i++) { this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i); @@ -75765,7 +75821,8 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -75808,7 +75865,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername; + const clone = super.clone(values, options) as unknown as Service;clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice(); if ("preferredUsername" in values && values.preferredUsername != null) { if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -75835,7 +75892,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames; + clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice(); } else { throw new TypeError( @@ -75844,7 +75901,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey); if ("publicKey" in values && values.publicKey != null) { if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) { // @ts-ignore: type is checked above. @@ -75871,7 +75928,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.publicKeys) && values.publicKeys.every(v => v instanceof CryptographicKey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys; + clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice(); clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(); for (let i = 0; i < values.publicKeys.length; i++) { @@ -75885,7 +75942,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod); if ("assertionMethod" in values && values.assertionMethod != null) { if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) { // @ts-ignore: type is checked above. @@ -75912,7 +75969,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.assertionMethods) && values.assertionMethods.every(v => v instanceof Multikey || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods; + clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice(); clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(); for (let i = 0; i < values.assertionMethods.length; i++) { @@ -75926,7 +75983,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers; + clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice(); if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) { if (typeof values.manuallyApprovesFollowers === "boolean") { // @ts-ignore: type is checked above. @@ -75939,7 +75996,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); + clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox); if ("inbox" in values && values.inbox != null) { if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75952,7 +76009,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); + clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox); if ("outbox" in values && values.outbox != null) { if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) { // @ts-ignore: type is checked above. @@ -75965,7 +76022,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); + clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following); if ("following" in values && values.following != null) { if (values.following instanceof Collection || values.following instanceof URL) { // @ts-ignore: type is checked above. @@ -75978,7 +76035,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); + clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers); if ("followers" in values && values.followers != null) { if (values.followers instanceof Collection || values.followers instanceof URL) { // @ts-ignore: type is checked above. @@ -75991,7 +76048,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); + clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked); if ("liked" in values && values.liked != null) { if (values.liked instanceof Collection || values.liked instanceof URL) { // @ts-ignore: type is checked above. @@ -76004,7 +76061,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); + clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured); if ("featured" in values && values.featured != null) { if (values.featured instanceof Collection || values.featured instanceof URL) { // @ts-ignore: type is checked above. @@ -76017,7 +76074,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); + clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags); if ("featuredTags" in values && values.featuredTags != null) { if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) { // @ts-ignore: type is checked above. @@ -76030,13 +76087,13 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams); if ("streams" in values && values.streams != null) { if (Array.isArray(values.streams) && values.streams.every(v => v instanceof Collection || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams; + clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice(); clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(); for (let i = 0; i < values.streams.length; i++) { @@ -76050,7 +76107,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints; + clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice(); if ("endpoints" in values && values.endpoints != null) { if (values.endpoints instanceof Endpoints) { // @ts-ignore: type is checked above. @@ -76063,7 +76120,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable; + clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice(); if ("discoverable" in values && values.discoverable != null) { if (typeof values.discoverable === "boolean") { // @ts-ignore: type is checked above. @@ -76076,7 +76133,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended; + clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice(); if ("suspended" in values && values.suspended != null) { if (typeof values.suspended === "boolean") { // @ts-ignore: type is checked above. @@ -76089,7 +76146,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial; + clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice(); if ("memorial" in values && values.memorial != null) { if (typeof values.memorial === "boolean") { // @ts-ignore: type is checked above. @@ -76102,7 +76159,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable; + clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice(); if ("indexable" in values && values.indexable != null) { if (typeof values.indexable === "boolean") { // @ts-ignore: type is checked above. @@ -76115,7 +76172,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); + clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo); 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) { // @ts-ignore: type is checked above. @@ -76128,7 +76185,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs); 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) { // @ts-ignore: type is checked above. @@ -76155,7 +76212,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | 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)) { // @ts-ignore: type is checked above. - clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases; + clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice(); clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(); for (let i = 0; i < values.aliases.length; i++) { @@ -76169,7 +76226,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service); if ("service" in values && values.service != null) { if (values.service instanceof DidService || values.service instanceof URL) { // @ts-ignore: type is checked above. @@ -76196,7 +76253,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | if (Array.isArray(values.services) && values.services.every(v => v instanceof DidService || v instanceof URL)) { // @ts-ignore: type is checked above. - clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services; + clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice(); clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(); for (let i = 0; i < values.services.length; i++) { @@ -76210,7 +76267,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage; + clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice(); if ("followedMessage" in values && values.followedMessage != null) { if (typeof values.followedMessage === "string") { // @ts-ignore: type is checked above. @@ -76223,7 +76280,7 @@ services?: (DidService | URL)[];followedMessage?: string | null;cat?: boolean | ); } } - clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat; + clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice(); if ("cat" in values && values.cat != null) { if (typeof values.cat === "boolean") { // @ts-ignore: type is checked above. @@ -82310,7 +82367,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82338,7 +82395,8 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ clone( values: @@ -82367,7 +82425,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} { id: values.id ?? this.id }, options ); - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice(); if ("content" in values && values.content != null) { if (typeof values.content === "string" || values.content instanceof LanguageString) { // @ts-ignore: type is checked above. @@ -82394,7 +82452,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} if (Array.isArray(values.contents) && values.contents.every(v => typeof v === "string" || v instanceof LanguageString)) { // @ts-ignore: type is checked above. - clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents; + clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice(); } else { throw new TypeError( @@ -82403,7 +82461,7 @@ contents?: ((string | LanguageString))[];mediaType?: string | null;} ); } } - clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType; + clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice(); if ("mediaType" in values && values.mediaType != null) { if (typeof values.mediaType === "string") { // @ts-ignore: type is checked above. @@ -82920,7 +82978,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83260,7 +83319,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83609,7 +83669,8 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -83647,7 +83708,7 @@ proofs?: (DataIntegrityProof | URL)[];deleted?: Temporal.Instant | null;} // @ts-ignore: $warning is not recognized as a property, but it is. options = { ...options, $warning: this._warning }; } - const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted; + const clone = super.clone(values, options) as unknown as Tombstone;clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice(); if ("deleted" in values && values.deleted != null) { if (isTemporalInstant(values.deleted)) { // @ts-ignore: type is checked above. @@ -84072,7 +84133,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84417,7 +84479,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -84760,7 +84823,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85092,7 +85156,8 @@ proofs?: (DataIntegrityProof | URL)[];width?: number | null;height?: number | nu * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: @@ -85442,7 +85507,8 @@ instruments?: (Object | URL)[];} * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ override clone( values: diff --git a/packages/vocab-tools/src/constructor.ts b/packages/vocab-tools/src/constructor.ts index 575e7b449..ff3180f03 100644 --- a/packages/vocab-tools/src/constructor.ts +++ b/packages/vocab-tools/src/constructor.ts @@ -175,7 +175,7 @@ export async function* generateConstructor( if (Array.isArray(values.${property.pluralName}) && values.${property.pluralName}.every(v => ${typeGuards})) { // @ts-ignore: type is checked above. - this.${fieldName} = values.${property.pluralName}; + this.${fieldName} = values.${property.pluralName}.slice(); `; if (!allScalarTypes) { yield ` @@ -208,7 +208,8 @@ export async function* generateCloner( * Clones this instance, optionally updating it with the given values. * @param values The values to update the clone with. * @param options The options to use for cloning. - * @returns The cloned instance. + * @returns The cloned instance with its own property arrays. Nested objects + * and URLs are shared with this instance. */ ${emitOverride(typeUri, types)} clone( values: @@ -245,7 +246,7 @@ export async function* generateCloner( const fieldName = await getFieldName(property.uri); const trustFieldName = await getFieldName(property.uri, "#_trust"); const allScalarTypes = areAllScalarTypes(property.range, types); - yield `clone.${fieldName} = this.${fieldName};`; + yield `clone.${fieldName} = this.${fieldName}.slice();`; if (!allScalarTypes) { yield `clone.${trustFieldName} = new Set(this.${trustFieldName});`; } @@ -309,7 +310,7 @@ export async function* generateCloner( if (Array.isArray(values.${property.pluralName}) && values.${property.pluralName}.every(v => ${typeGuards})) { // @ts-ignore: type is checked above. - clone.${fieldName} = values.${property.pluralName}; + clone.${fieldName} = values.${property.pluralName}.slice(); `; if (!allScalarTypes) { yield ` diff --git a/packages/vocab/src/vocab.test.ts b/packages/vocab/src/vocab.test.ts index c6b0fc545..d130f3b78 100644 --- a/packages/vocab/src/vocab.test.ts +++ b/packages/vocab/src/vocab.test.ts @@ -12,11 +12,13 @@ import { notDeepStrictEqual, ok, rejects, + strictEqual, throws, } from "node:assert/strict"; import { assertInstanceOf } from "./utils.ts"; import * as vocab from "./vocab.ts"; import { + Accept, Activity, Announce, Collection, @@ -1279,6 +1281,216 @@ test("FEP-fe34: Trust tracking in object cloning", () => { ); }); +for (const property of ["object", "attachment"] as const) { + for (const fetchOriginal of [false, true]) { + test( + `clone() isolates ${property} dereferencing (${ + fetchOriginal ? "original" : "clone" + } first)`, + async () => { + const embedded = { + id: "https://b.example/notes/1", + type: "Note", + content: "embedded", + }; + const json = { + "@context": "https://www.w3.org/ns/activitystreams", + id: "https://a.example/activities/1", + type: "Create", + [property]: embedded, + }; + const original = await Create.fromJsonLd(json, { + contextLoader: mockDocumentLoader, + }); + const copy = original.clone(); + const fetching = fetchOriginal ? original : copy; + const untouched = fetchOriginal ? copy : original; + let fetches = 0; + // deno-lint-ignore require-await + const documentLoader = async (url: string) => { + fetches++; + return { + contextUrl: null, + documentUrl: url, + document: { + "@context": "https://www.w3.org/ns/activitystreams", + ...embedded, + content: "fetched", + }, + }; + }; + const options = { documentLoader, contextLoader: mockDocumentLoader }; + const fetched = property === "object" + ? await fetching.getObject(options) + : (await Array.fromAsync(fetching.getAttachments(options)))[0]; + assertInstanceOf(fetched, Note); + deepStrictEqual(fetched.content, "fetched"); + + // Inspect the other instance before it fetches anything itself. + const trusted = { crossOrigin: "trust" as const }; + const preserved = property === "object" + ? await untouched.getObject(trusted) + : (await Array.fromAsync(untouched.getAttachments(trusted)))[0]; + assertInstanceOf(preserved, Note); + deepStrictEqual(preserved.content, "embedded"); + const serialized = await original.toJsonLd() as Record; + deepStrictEqual( + serialized[property], + fetchOriginal ? { ...embedded, content: "fetched" } : embedded, + ); + const accept = new Accept({ object: untouched }); + const acceptJson = await accept.toJsonLd() as { + object: Record; + }; + const nested = acceptJson.object; + deepStrictEqual(nested[property], embedded); + + // Successful lookups and their trust metadata belong to each instance. + const cached = property === "object" + ? await fetching.getObject(options) + : (await Array.fromAsync(fetching.getAttachments(options)))[0]; + strictEqual(cached, fetched); + deepStrictEqual(fetches, 1); + const independentlyFetched = property === "object" + ? await untouched.getObject(options) + : (await Array.fromAsync(untouched.getAttachments(options)))[0]; + assertInstanceOf(independentlyFetched, Note); + deepStrictEqual(independentlyFetched.content, "fetched"); + deepStrictEqual(fetches, 2); + const warmedClone = fetching.clone(); + strictEqual( + property === "object" + ? await warmedClone.getObject(options) + : (await Array.fromAsync(warmedClone.getAttachments(options)))[0], + fetched, + ); + deepStrictEqual(fetches, 2); + }, + ); + } +} + +for (const clone of [false, true]) { + for (const frozen of [false, true]) { + test( + `${clone ? "clone()" : "constructor"} copies ${ + frozen ? "frozen" : "mutable" + } plural arrays`, + async () => { + const items = [ + new URL("https://example.com/object"), + new URL("https://example.com/object"), + ]; + const before = items.slice(); + if (frozen) globalThis.Object.freeze(items); + const base = new Collection({}); + const collection = clone + ? base.clone({ items }) + : new Collection({ items }); + const sibling = clone + ? base.clone({ items }) + : new Collection({ items }); + const fetched = await Array.fromAsync(collection.getItems({ + documentLoader: mockDocumentLoader, + contextLoader: mockDocumentLoader, + })); + deepStrictEqual(fetched.length, 2); + deepStrictEqual(fetched.map((item) => item.name), [ + "Fetched object", + "Fetched object", + ]); + deepStrictEqual(items, before); + strictEqual(items[0], before[0]); + strictEqual(items[1], before[1]); + const siblingJson = await sibling.toJsonLd() as { items: unknown }; + deepStrictEqual(siblingJson.items, before.map(String)); + if (!frozen) { + items.push(new URL("https://example.com/extra")); + deepStrictEqual(collection.itemIds, before); + deepStrictEqual(sibling.itemIds, before); + } + }, + ); + } +} + +test("clone() copies scalar arrays without changing sparse inputs", () => { + const names = ["original"]; + const original = new Object({ names }); + names.push("caller mutation"); + deepStrictEqual(original.names, ["original"]); + const copy = original.clone(); + copy.names.push("clone mutation"); + deepStrictEqual(original.names, ["original"]); + deepStrictEqual(copy.names, ["original", "clone mutation"]); + const replacements = ["replacement"]; + const replaced = original.clone({ names: replacements }); + replacements.push("caller mutation"); + deepStrictEqual(replaced.names, ["replacement"]); + + const sparseNames = new Array(2); + sparseNames[1] = "kept"; + const sparse = new Object({ names: sparseNames }); + for ( + const instance of [ + sparse, + sparse.clone(), + sparse.clone({ names: sparse.names }), + ] + ) { + deepStrictEqual(instance.names.length, 2); + deepStrictEqual(0 in instance.names, false); + deepStrictEqual(instance.names[1], "kept"); + } +}); + +test("clone() preserves embedded object identity and trust", async () => { + const note = new Note({ id: new URL("https://b.example/note") }); + const original = new Create({ + id: new URL("https://a.example/create"), + object: note, + }); + // deno-lint-ignore require-await + const documentLoader = async () => { + throw new Error("Trusted embedded objects must not be fetched."); + }; + for ( + const instance of [ + original, + original.clone(), + original.clone({ objects: [note] }), + ] + ) { + strictEqual(await instance.getObject({ documentLoader }), note); + strictEqual(instance.objectId, note.id); + } +}); + +test("clone() isolates crossOrigin trust when fetching", async () => { + const original = new Create({ + id: new URL("https://a.example/create"), + object: new URL("https://b.example/note"), + }); + const copy = original.clone(); + // deno-lint-ignore require-await + const documentLoader = async (url: string) => ({ + contextUrl: null, + documentUrl: url, + document: { + "@context": "https://www.w3.org/ns/activitystreams", + id: "https://other.example/note", + type: "Note", + content: "cross-origin", + }, + }); + const options = { documentLoader, contextLoader: mockDocumentLoader }; + const trusted = await copy.getObject({ ...options, crossOrigin: "trust" }); + assertInstanceOf(trusted, Note); + deepStrictEqual(trusted.content, "cross-origin"); + deepStrictEqual(await original.getObject(options), null); + deepStrictEqual(original.objectId, new URL("https://b.example/note")); +}); + test("FEP-fe34: crossOrigin ignore behavior (default)", async () => { // Create a mock document loader that returns objects with different origins // deno-lint-ignore require-await