@fedify/vocab 2.5.0-dev.2314 → 2.5.0-dev.2327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/mod.cjs +620 -534
- package/dist/mod.d.cts +172 -86
- package/dist/mod.d.ts +172 -86
- package/dist/mod.js +621 -535
- package/dist-tests/{actor-CfdHJJAR.mjs → actor-C-QEA4-v.mjs} +2 -2
- package/dist-tests/actor.test.mjs +3 -3
- package/dist-tests/{esm-DxaxLS8O.mjs → esm-Cncdk-Cm.mjs} +1 -1
- package/dist-tests/gateway.test.mjs +3 -3
- package/dist-tests/{lookup-Du3fbCa7.mjs → lookup-BcGOXMYB.mjs} +2 -2
- package/dist-tests/lookup.test.mjs +3 -3
- package/dist-tests/portable-lookup.test.mjs +4 -4
- package/dist-tests/signed-representation.test.mjs +1 -1
- package/dist-tests/translation.test.mjs +3 -3
- package/dist-tests/type.test.mjs +1 -1
- package/dist-tests/{vocab-hNQYgnUG.mjs → vocab-EFWWufqL.mjs} +620 -534
- package/dist-tests/vocab.test.mjs +226 -3
- package/package.json +4 -4
- package/src/vocab.test.ts +305 -0
package/dist/mod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Temporal } from "temporal-polyfill";
|
|
2
|
-
import { LanguageString, LanguageString as LanguageString$1, canonicalizePortableUri, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, fromCompatibleEf61Id, getDocumentLoader, haveSameFe34Origin, haveSameIriOrigin, importMultibaseKey, importPem, isDecimal, isGatewayUrl, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
|
|
2
|
+
import { LanguageString, LanguageString as LanguageString$1, canonicalizePortableUri, decodeMultibase, encodeMultibase, exportMultibaseKey, exportSpki, formatIri, fromCompatibleEf61Id, getDocumentLoader, haveSameFe34Origin, haveSameIriOrigin, importMultibaseKey, importPem, isDecimal, isGatewayUrl, normalizeLanguageTag, parseDecimal, parseGatewayUrl, parseIri, parseJsonLdId } from "@fedify/vocab-runtime";
|
|
3
3
|
import { lookupWebFinger } from "@fedify/webfinger";
|
|
4
4
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
5
5
|
import { domainToASCII, domainToUnicode } from "node:url";
|
|
@@ -12,7 +12,7 @@ import { isTemporalDuration, isTemporalInstant } from "@fedify/vocab-runtime/tem
|
|
|
12
12
|
import { delay } from "es-toolkit";
|
|
13
13
|
//#region deno.json
|
|
14
14
|
var name = "@fedify/vocab";
|
|
15
|
-
var version = "2.5.0-dev.
|
|
15
|
+
var version = "2.5.0-dev.2327+3a7ba490";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/type.ts
|
|
18
18
|
function getTypeId(object) {
|
|
@@ -75,7 +75,7 @@ function inspectIri(iri) {
|
|
|
75
75
|
}
|
|
76
76
|
function isValidLanguageTag(language) {
|
|
77
77
|
try {
|
|
78
|
-
new Intl.Locale(language);
|
|
78
|
+
new Intl.Locale(normalizeLanguageTag(language));
|
|
79
79
|
return true;
|
|
80
80
|
} catch (error) {
|
|
81
81
|
if (error instanceof RangeError) return false;
|
|
@@ -431,7 +431,7 @@ var Object$1 = class Object$1 {
|
|
|
431
431
|
if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
|
|
432
432
|
else throw new TypeError("The id must be a URL.");
|
|
433
433
|
if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
|
|
434
|
-
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
434
|
+
this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
435
435
|
for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
436
436
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
437
437
|
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) {
|
|
@@ -441,7 +441,7 @@ var Object$1 = class Object$1 {
|
|
|
441
441
|
if ("attributions" in values && values.attributions != null) {
|
|
442
442
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
|
|
443
443
|
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)) {
|
|
444
|
-
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
444
|
+
this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
445
445
|
for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
446
446
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
447
447
|
}
|
|
@@ -452,7 +452,7 @@ var Object$1 = class Object$1 {
|
|
|
452
452
|
if ("audiences" in values && values.audiences != null) {
|
|
453
453
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
|
|
454
454
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
455
|
-
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
455
|
+
this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
456
456
|
for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
457
457
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
458
458
|
}
|
|
@@ -460,24 +460,24 @@ var Object$1 = class Object$1 {
|
|
|
460
460
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
461
461
|
if ("contents" in values && values.contents != null) {
|
|
462
462
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
463
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
463
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
464
464
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
465
465
|
}
|
|
466
466
|
if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
467
|
-
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
467
|
+
this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
468
468
|
for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
469
469
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
470
470
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
471
471
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
472
472
|
if ("names" in values && values.names != null) {
|
|
473
473
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
474
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
474
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
475
475
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
476
476
|
}
|
|
477
477
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
478
478
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
479
479
|
if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
480
|
-
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
480
|
+
this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
481
481
|
for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
482
482
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
483
483
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
@@ -487,7 +487,7 @@ var Object$1 = class Object$1 {
|
|
|
487
487
|
if ("icons" in values && values.icons != null) {
|
|
488
488
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
|
|
489
489
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
490
|
-
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
490
|
+
this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
491
491
|
for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
492
492
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
493
493
|
}
|
|
@@ -498,7 +498,7 @@ var Object$1 = class Object$1 {
|
|
|
498
498
|
if ("images" in values && values.images != null) {
|
|
499
499
|
if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
|
|
500
500
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
501
|
-
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
501
|
+
this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
502
502
|
for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
503
503
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
504
504
|
}
|
|
@@ -509,7 +509,7 @@ var Object$1 = class Object$1 {
|
|
|
509
509
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
510
510
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
|
|
511
511
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
512
|
-
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
512
|
+
this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
513
513
|
for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
514
514
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
515
515
|
}
|
|
@@ -520,7 +520,7 @@ var Object$1 = class Object$1 {
|
|
|
520
520
|
if ("locations" in values && values.locations != null) {
|
|
521
521
|
if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
|
|
522
522
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
523
|
-
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
523
|
+
this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
524
524
|
for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
525
525
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
526
526
|
}
|
|
@@ -531,7 +531,7 @@ var Object$1 = class Object$1 {
|
|
|
531
531
|
if ("previews" in values && values.previews != null) {
|
|
532
532
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
|
|
533
533
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
534
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
534
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
535
535
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
536
536
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
537
537
|
}
|
|
@@ -559,11 +559,11 @@ var Object$1 = class Object$1 {
|
|
|
559
559
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
560
560
|
if ("summaries" in values && values.summaries != null) {
|
|
561
561
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
|
|
562
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
562
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
563
563
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
564
564
|
}
|
|
565
565
|
if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
566
|
-
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
566
|
+
this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
567
567
|
for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
568
568
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
569
569
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
@@ -572,7 +572,7 @@ var Object$1 = class Object$1 {
|
|
|
572
572
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
573
573
|
if ("urls" in values && values.urls != null) {
|
|
574
574
|
if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
|
|
575
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
575
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
576
576
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
577
577
|
}
|
|
578
578
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
@@ -582,7 +582,7 @@ var Object$1 = class Object$1 {
|
|
|
582
582
|
if ("tos" in values && values.tos != null) {
|
|
583
583
|
if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
|
|
584
584
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
585
|
-
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
585
|
+
this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
586
586
|
for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
587
587
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
588
588
|
}
|
|
@@ -593,7 +593,7 @@ var Object$1 = class Object$1 {
|
|
|
593
593
|
if ("btos" in values && values.btos != null) {
|
|
594
594
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
|
|
595
595
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
596
|
-
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
596
|
+
this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
597
597
|
for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
598
598
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
599
599
|
}
|
|
@@ -604,7 +604,7 @@ var Object$1 = class Object$1 {
|
|
|
604
604
|
if ("ccs" in values && values.ccs != null) {
|
|
605
605
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
|
|
606
606
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
607
|
-
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
607
|
+
this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
608
608
|
for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
609
609
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
610
610
|
}
|
|
@@ -615,7 +615,7 @@ var Object$1 = class Object$1 {
|
|
|
615
615
|
if ("bccs" in values && values.bccs != null) {
|
|
616
616
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
|
|
617
617
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
618
|
-
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
618
|
+
this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
619
619
|
for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
620
620
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
621
621
|
}
|
|
@@ -634,7 +634,7 @@ var Object$1 = class Object$1 {
|
|
|
634
634
|
if ("proofs" in values && values.proofs != null) {
|
|
635
635
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
|
|
636
636
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
637
|
-
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
637
|
+
this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
638
638
|
for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
639
639
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
640
640
|
}
|
|
@@ -654,7 +654,7 @@ var Object$1 = class Object$1 {
|
|
|
654
654
|
this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
|
|
655
655
|
this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.add(0);
|
|
656
656
|
} else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
|
|
657
|
-
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
|
|
657
|
+
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
|
|
658
658
|
else throw new TypeError("The translations must be an array of type Translation.");
|
|
659
659
|
}
|
|
660
660
|
/**
|
|
@@ -668,7 +668,8 @@ var Object$1 = class Object$1 {
|
|
|
668
668
|
*
|
|
669
669
|
* @param values The values to update the clone with.
|
|
670
670
|
* @param options The options to use for cloning.
|
|
671
|
-
* @returns The cloned instance.
|
|
671
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
672
|
+
* and URLs are shared with this instance.
|
|
672
673
|
*/
|
|
673
674
|
clone(values = {}, options = {}) {
|
|
674
675
|
if (this._warning != null) {
|
|
@@ -680,14 +681,14 @@ var Object$1 = class Object$1 {
|
|
|
680
681
|
}
|
|
681
682
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
682
683
|
copyPortableProvenance(this, clone);
|
|
683
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
|
|
684
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
|
|
684
685
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
|
|
685
686
|
if ("attachments" in values && values.attachments != null) if (Array.isArray(values.attachments) && values.attachments.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof PropertyValue || v instanceof URL)) {
|
|
686
|
-
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
|
|
687
|
+
clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
|
|
687
688
|
clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
|
|
688
689
|
for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
|
|
689
690
|
} else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
|
|
690
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
|
|
691
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
|
|
691
692
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
|
|
692
693
|
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) {
|
|
693
694
|
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
|
|
@@ -696,12 +697,12 @@ var Object$1 = class Object$1 {
|
|
|
696
697
|
if ("attributions" in values && values.attributions != null) {
|
|
697
698
|
if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
|
|
698
699
|
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)) {
|
|
699
|
-
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
|
|
700
|
+
clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
|
|
700
701
|
clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
|
|
701
702
|
for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
|
|
702
703
|
} else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
703
704
|
}
|
|
704
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
|
|
705
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
|
|
705
706
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
|
|
706
707
|
if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
|
|
707
708
|
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
|
|
@@ -710,45 +711,45 @@ var Object$1 = class Object$1 {
|
|
|
710
711
|
if ("audiences" in values && values.audiences != null) {
|
|
711
712
|
if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
|
|
712
713
|
if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
713
|
-
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
|
|
714
|
+
clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
|
|
714
715
|
clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
|
|
715
716
|
for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
|
|
716
717
|
} else throw new TypeError("The audiences must be an array of type Object | URL.");
|
|
717
718
|
}
|
|
718
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
719
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
719
720
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString$1) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
720
721
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
721
722
|
if ("contents" in values && values.contents != null) {
|
|
722
723
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
723
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
724
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
724
725
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
725
726
|
}
|
|
726
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
|
|
727
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
|
|
727
728
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
|
|
728
729
|
if ("contexts" in values && values.contexts != null) if (Array.isArray(values.contexts) && values.contexts.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
729
|
-
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
|
|
730
|
+
clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
|
|
730
731
|
clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
|
|
731
732
|
for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
|
|
732
733
|
} else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
|
|
733
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
734
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
734
735
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
735
736
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
736
737
|
if ("names" in values && values.names != null) {
|
|
737
738
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
738
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
739
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
739
740
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
740
741
|
}
|
|
741
|
-
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
|
|
742
|
+
clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
|
|
742
743
|
if ("endTime" in values && values.endTime != null) if (isTemporalInstant(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
|
|
743
744
|
else throw new TypeError("The endTime must be of type Temporal.Instant.");
|
|
744
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
|
|
745
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
|
|
745
746
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
|
|
746
747
|
if ("generators" in values && values.generators != null) if (Array.isArray(values.generators) && values.generators.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
747
|
-
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
|
|
748
|
+
clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
|
|
748
749
|
clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
|
|
749
750
|
for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
|
|
750
751
|
} else throw new TypeError("The generators must be an array of type Object | Link | URL.");
|
|
751
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
|
|
752
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
|
|
752
753
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
|
|
753
754
|
if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
|
|
754
755
|
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
|
|
@@ -757,12 +758,12 @@ var Object$1 = class Object$1 {
|
|
|
757
758
|
if ("icons" in values && values.icons != null) {
|
|
758
759
|
if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
|
|
759
760
|
if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
|
|
760
|
-
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
|
|
761
|
+
clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
|
|
761
762
|
clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
|
|
762
763
|
for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
|
|
763
764
|
} else throw new TypeError("The icons must be an array of type Image | URL.");
|
|
764
765
|
}
|
|
765
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
|
|
766
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
|
|
766
767
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
|
|
767
768
|
if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
|
|
768
769
|
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
|
|
@@ -771,12 +772,12 @@ var Object$1 = class Object$1 {
|
|
|
771
772
|
if ("images" in values && values.images != null) {
|
|
772
773
|
if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
|
|
773
774
|
if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
|
|
774
|
-
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
|
|
775
|
+
clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
|
|
775
776
|
clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
|
|
776
777
|
for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
|
|
777
778
|
} else throw new TypeError("The images must be an array of type Image | URL.");
|
|
778
779
|
}
|
|
779
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
|
|
780
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
|
|
780
781
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
|
|
781
782
|
if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
|
|
782
783
|
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
|
|
@@ -785,12 +786,12 @@ var Object$1 = class Object$1 {
|
|
|
785
786
|
if ("replyTargets" in values && values.replyTargets != null) {
|
|
786
787
|
if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
|
|
787
788
|
if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
788
|
-
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
|
|
789
|
+
clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
|
|
789
790
|
clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
|
|
790
791
|
for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
|
|
791
792
|
} else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
|
|
792
793
|
}
|
|
793
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
|
|
794
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
|
|
794
795
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
|
|
795
796
|
if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
|
|
796
797
|
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
|
|
@@ -799,12 +800,12 @@ var Object$1 = class Object$1 {
|
|
|
799
800
|
if ("locations" in values && values.locations != null) {
|
|
800
801
|
if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
|
|
801
802
|
if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
802
|
-
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
|
|
803
|
+
clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
|
|
803
804
|
clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
|
|
804
805
|
for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
|
|
805
806
|
} else throw new TypeError("The locations must be an array of type Object | Link | URL.");
|
|
806
807
|
}
|
|
807
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
808
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
808
809
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
809
810
|
if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
|
|
810
811
|
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
|
|
@@ -813,68 +814,68 @@ var Object$1 = class Object$1 {
|
|
|
813
814
|
if ("previews" in values && values.previews != null) {
|
|
814
815
|
if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
|
|
815
816
|
if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
816
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
817
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
817
818
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
818
819
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
819
820
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
820
821
|
}
|
|
821
|
-
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
|
|
822
|
+
clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
|
|
822
823
|
if ("published" in values && values.published != null) if (isTemporalInstant(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
|
|
823
824
|
else throw new TypeError("The published must be of type Temporal.Instant.");
|
|
824
|
-
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
|
|
825
|
+
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
|
|
825
826
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
|
|
826
827
|
if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
|
|
827
828
|
clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
|
|
828
829
|
clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = /* @__PURE__ */ new Set([0]);
|
|
829
830
|
} else throw new TypeError("The replies must be of type Collection | URL.");
|
|
830
|
-
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
|
|
831
|
+
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
|
|
831
832
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
|
|
832
833
|
if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
|
|
833
834
|
clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
|
|
834
835
|
clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = /* @__PURE__ */ new Set([0]);
|
|
835
836
|
} else throw new TypeError("The shares must be of type Collection | URL.");
|
|
836
|
-
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
|
|
837
|
+
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
|
|
837
838
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
|
|
838
839
|
if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
|
|
839
840
|
clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
|
|
840
841
|
clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = /* @__PURE__ */ new Set([0]);
|
|
841
842
|
} else throw new TypeError("The likes must be of type Collection | URL.");
|
|
842
|
-
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
|
|
843
|
+
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
|
|
843
844
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
|
|
844
845
|
if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
|
|
845
846
|
clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
|
|
846
847
|
clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = /* @__PURE__ */ new Set([0]);
|
|
847
848
|
} else throw new TypeError("The emojiReactions must be of type Collection | URL.");
|
|
848
|
-
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
|
|
849
|
+
clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
|
|
849
850
|
if ("startTime" in values && values.startTime != null) if (isTemporalInstant(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
|
|
850
851
|
else throw new TypeError("The startTime must be of type Temporal.Instant.");
|
|
851
|
-
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
|
|
852
|
+
clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
|
|
852
853
|
if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof LanguageString$1) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
|
|
853
854
|
else throw new TypeError("The summary must be of type string | LanguageString.");
|
|
854
855
|
if ("summaries" in values && values.summaries != null) {
|
|
855
856
|
if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
|
|
856
|
-
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
|
|
857
|
+
if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
|
|
857
858
|
else throw new TypeError("The summaries must be an array of type string | LanguageString.");
|
|
858
859
|
}
|
|
859
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
|
|
860
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
|
|
860
861
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
|
|
861
862
|
if ("tags" in values && values.tags != null) if (Array.isArray(values.tags) && values.tags.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
862
|
-
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
|
|
863
|
+
clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
|
|
863
864
|
clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
|
|
864
865
|
for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
|
|
865
866
|
} else throw new TypeError("The tags must be an array of type Object | Link | URL.");
|
|
866
|
-
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
|
|
867
|
+
clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
|
|
867
868
|
if ("updated" in values && values.updated != null) if (isTemporalInstant(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
|
|
868
869
|
else throw new TypeError("The updated must be of type Temporal.Instant.");
|
|
869
|
-
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
870
|
+
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
|
|
870
871
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
871
872
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
872
873
|
if ("urls" in values && values.urls != null) {
|
|
873
874
|
if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
|
|
874
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
875
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
875
876
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
876
877
|
}
|
|
877
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
|
|
878
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
|
|
878
879
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
|
|
879
880
|
if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
|
|
880
881
|
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
|
|
@@ -883,12 +884,12 @@ var Object$1 = class Object$1 {
|
|
|
883
884
|
if ("tos" in values && values.tos != null) {
|
|
884
885
|
if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
|
|
885
886
|
if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
886
|
-
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
|
|
887
|
+
clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
|
|
887
888
|
clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
|
|
888
889
|
for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
|
|
889
890
|
} else throw new TypeError("The tos must be an array of type Object | URL.");
|
|
890
891
|
}
|
|
891
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
|
|
892
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
|
|
892
893
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
|
|
893
894
|
if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
|
|
894
895
|
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
|
|
@@ -897,12 +898,12 @@ var Object$1 = class Object$1 {
|
|
|
897
898
|
if ("btos" in values && values.btos != null) {
|
|
898
899
|
if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
|
|
899
900
|
if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
900
|
-
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
|
|
901
|
+
clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
|
|
901
902
|
clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
|
|
902
903
|
for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
|
|
903
904
|
} else throw new TypeError("The btos must be an array of type Object | URL.");
|
|
904
905
|
}
|
|
905
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
|
|
906
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
|
|
906
907
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
|
|
907
908
|
if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
|
|
908
909
|
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
|
|
@@ -911,12 +912,12 @@ var Object$1 = class Object$1 {
|
|
|
911
912
|
if ("ccs" in values && values.ccs != null) {
|
|
912
913
|
if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
|
|
913
914
|
if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
914
|
-
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
|
|
915
|
+
clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
|
|
915
916
|
clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
|
|
916
917
|
for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
|
|
917
918
|
} else throw new TypeError("The ccs must be an array of type Object | URL.");
|
|
918
919
|
}
|
|
919
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
|
|
920
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
|
|
920
921
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
|
|
921
922
|
if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
|
|
922
923
|
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
|
|
@@ -925,24 +926,24 @@ var Object$1 = class Object$1 {
|
|
|
925
926
|
if ("bccs" in values && values.bccs != null) {
|
|
926
927
|
if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
|
|
927
928
|
if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
928
|
-
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
|
|
929
|
+
clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
|
|
929
930
|
clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
|
|
930
931
|
for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
|
|
931
932
|
} else throw new TypeError("The bccs must be an array of type Object | URL.");
|
|
932
933
|
}
|
|
933
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
934
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
934
935
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
935
936
|
else throw new TypeError("The mediaType must be of type string.");
|
|
936
|
-
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
|
|
937
|
+
clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
|
|
937
938
|
if ("duration" in values && values.duration != null) if (isTemporalDuration(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
|
|
938
939
|
else throw new TypeError("The duration must be of type Temporal.Duration.");
|
|
939
|
-
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
|
|
940
|
+
clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
|
|
940
941
|
if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
|
|
941
942
|
else throw new TypeError("The sensitive must be of type boolean.");
|
|
942
|
-
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
|
|
943
|
+
clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
|
|
943
944
|
if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
|
|
944
945
|
else throw new TypeError("The source must be of type Source.");
|
|
945
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
|
|
946
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
|
|
946
947
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
|
|
947
948
|
if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
|
|
948
949
|
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
|
|
@@ -951,37 +952,37 @@ var Object$1 = class Object$1 {
|
|
|
951
952
|
if ("proofs" in values && values.proofs != null) {
|
|
952
953
|
if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
|
|
953
954
|
if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
|
|
954
|
-
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
|
|
955
|
+
clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
|
|
955
956
|
clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
|
|
956
957
|
for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
|
|
957
958
|
} else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
|
|
958
959
|
}
|
|
959
|
-
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
|
|
960
|
+
clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
|
|
960
961
|
if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
|
|
961
962
|
else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
|
|
962
|
-
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
|
|
963
|
+
clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
|
|
963
964
|
if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
|
|
964
965
|
else throw new TypeError("The approvedBy must be of type URL.");
|
|
965
|
-
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
|
|
966
|
+
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
|
|
966
967
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
|
|
967
968
|
if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
|
|
968
969
|
clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
|
|
969
970
|
clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = /* @__PURE__ */ new Set([0]);
|
|
970
971
|
} else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
|
|
971
|
-
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
|
|
972
|
+
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
|
|
972
973
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
|
|
973
974
|
if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
|
|
974
975
|
clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
|
|
975
976
|
clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = /* @__PURE__ */ new Set([0]);
|
|
976
977
|
} else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
|
|
977
|
-
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
|
|
978
|
+
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
|
|
978
979
|
clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
|
|
979
980
|
if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
|
|
980
981
|
clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
|
|
981
982
|
clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = /* @__PURE__ */ new Set([0]);
|
|
982
983
|
} else throw new TypeError("The announceAuthorization must be of type AnnounceAuthorization | URL.");
|
|
983
|
-
clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations;
|
|
984
|
-
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations;
|
|
984
|
+
clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = this.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations.slice();
|
|
985
|
+
if ("translations" in values && values.translations != null) if (Array.isArray(values.translations) && values.translations.every((v) => v instanceof Translation)) clone.#_a1jKLXa1P1ZoKTfTM2CzmhHK3cP_translations = values.translations.slice();
|
|
985
986
|
else throw new TypeError("The translations must be an array of type Translation.");
|
|
986
987
|
return clone;
|
|
987
988
|
}
|
|
@@ -10052,7 +10053,8 @@ var Emoji = class Emoji extends Object$1 {
|
|
|
10052
10053
|
*
|
|
10053
10054
|
* @param values The values to update the clone with.
|
|
10054
10055
|
* @param options The options to use for cloning.
|
|
10055
|
-
* @returns The cloned instance.
|
|
10056
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10057
|
+
* and URLs are shared with this instance.
|
|
10056
10058
|
*/
|
|
10057
10059
|
clone(values = {}, options = {}) {
|
|
10058
10060
|
if (this._warning != null) {
|
|
@@ -10274,7 +10276,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
10274
10276
|
*
|
|
10275
10277
|
* @param values The values to update the clone with.
|
|
10276
10278
|
* @param options The options to use for cloning.
|
|
10277
|
-
* @returns The cloned instance.
|
|
10279
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
10280
|
+
* and URLs are shared with this instance.
|
|
10278
10281
|
*/
|
|
10279
10282
|
clone(values = {}, options = {}) {
|
|
10280
10283
|
if (this._warning != null) {
|
|
@@ -10285,16 +10288,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
|
|
|
10285
10288
|
};
|
|
10286
10289
|
}
|
|
10287
10290
|
const clone = super.clone(values, options);
|
|
10288
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
10291
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
10289
10292
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
10290
10293
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
10291
10294
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
10292
10295
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
|
|
10293
10296
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
10294
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
10297
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
10295
10298
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
10296
10299
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
10297
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
10300
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
10298
10301
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
10299
10302
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
10300
10303
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -11163,7 +11166,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11163
11166
|
if ("actors" in values && values.actors != null) {
|
|
11164
11167
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
|
|
11165
11168
|
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)) {
|
|
11166
|
-
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
11169
|
+
this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
11167
11170
|
for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
11168
11171
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
11169
11172
|
}
|
|
@@ -11174,7 +11177,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11174
11177
|
if ("objects" in values && values.objects != null) {
|
|
11175
11178
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
11176
11179
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11177
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
11180
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
11178
11181
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
11179
11182
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
11180
11183
|
}
|
|
@@ -11185,7 +11188,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11185
11188
|
if ("targets" in values && values.targets != null) {
|
|
11186
11189
|
if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
|
|
11187
11190
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11188
|
-
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
11191
|
+
this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
11189
11192
|
for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
11190
11193
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
11191
11194
|
}
|
|
@@ -11196,7 +11199,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11196
11199
|
if ("results" in values && values.results != null) {
|
|
11197
11200
|
if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
|
|
11198
11201
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11199
|
-
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
11202
|
+
this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
11200
11203
|
for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
11201
11204
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
11202
11205
|
}
|
|
@@ -11207,7 +11210,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11207
11210
|
if ("origins" in values && values.origins != null) {
|
|
11208
11211
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
|
|
11209
11212
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11210
|
-
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
11213
|
+
this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
11211
11214
|
for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
11212
11215
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
11213
11216
|
}
|
|
@@ -11218,7 +11221,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11218
11221
|
if ("instruments" in values && values.instruments != null) {
|
|
11219
11222
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
|
|
11220
11223
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11221
|
-
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
11224
|
+
this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
11222
11225
|
for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
11223
11226
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
11224
11227
|
}
|
|
@@ -11234,7 +11237,8 @@ var Activity = class Activity extends Object$1 {
|
|
|
11234
11237
|
*
|
|
11235
11238
|
* @param values The values to update the clone with.
|
|
11236
11239
|
* @param options The options to use for cloning.
|
|
11237
|
-
* @returns The cloned instance.
|
|
11240
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
11241
|
+
* and URLs are shared with this instance.
|
|
11238
11242
|
*/
|
|
11239
11243
|
clone(values = {}, options = {}) {
|
|
11240
11244
|
if (this._warning != null) {
|
|
@@ -11245,7 +11249,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11245
11249
|
};
|
|
11246
11250
|
}
|
|
11247
11251
|
const clone = super.clone(values, options);
|
|
11248
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
|
|
11252
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
|
|
11249
11253
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
|
|
11250
11254
|
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) {
|
|
11251
11255
|
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
|
|
@@ -11254,12 +11258,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
11254
11258
|
if ("actors" in values && values.actors != null) {
|
|
11255
11259
|
if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
|
|
11256
11260
|
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)) {
|
|
11257
|
-
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
|
|
11261
|
+
clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
|
|
11258
11262
|
clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
|
|
11259
11263
|
for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
|
|
11260
11264
|
} else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
11261
11265
|
}
|
|
11262
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
11266
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
11263
11267
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
11264
11268
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
11265
11269
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -11268,12 +11272,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
11268
11272
|
if ("objects" in values && values.objects != null) {
|
|
11269
11273
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
11270
11274
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11271
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
11275
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
11272
11276
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
11273
11277
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
11274
11278
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
11275
11279
|
}
|
|
11276
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
|
|
11280
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
|
|
11277
11281
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
|
|
11278
11282
|
if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
|
|
11279
11283
|
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
|
|
@@ -11282,12 +11286,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
11282
11286
|
if ("targets" in values && values.targets != null) {
|
|
11283
11287
|
if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
|
|
11284
11288
|
if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11285
|
-
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
|
|
11289
|
+
clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
|
|
11286
11290
|
clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
|
|
11287
11291
|
for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
|
|
11288
11292
|
} else throw new TypeError("The targets must be an array of type Object | URL.");
|
|
11289
11293
|
}
|
|
11290
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
|
|
11294
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
|
|
11291
11295
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
|
|
11292
11296
|
if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
|
|
11293
11297
|
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
|
|
@@ -11296,12 +11300,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
11296
11300
|
if ("results" in values && values.results != null) {
|
|
11297
11301
|
if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
|
|
11298
11302
|
if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11299
|
-
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
|
|
11303
|
+
clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
|
|
11300
11304
|
clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
|
|
11301
11305
|
for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
|
|
11302
11306
|
} else throw new TypeError("The results must be an array of type Object | URL.");
|
|
11303
11307
|
}
|
|
11304
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
|
|
11308
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
|
|
11305
11309
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
|
|
11306
11310
|
if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
|
|
11307
11311
|
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
|
|
@@ -11310,12 +11314,12 @@ var Activity = class Activity extends Object$1 {
|
|
|
11310
11314
|
if ("origins" in values && values.origins != null) {
|
|
11311
11315
|
if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
|
|
11312
11316
|
if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11313
|
-
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
|
|
11317
|
+
clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
|
|
11314
11318
|
clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
|
|
11315
11319
|
for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
|
|
11316
11320
|
} else throw new TypeError("The origins must be an array of type Object | URL.");
|
|
11317
11321
|
}
|
|
11318
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
|
|
11322
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
|
|
11319
11323
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
|
|
11320
11324
|
if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
|
|
11321
11325
|
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
|
|
@@ -11324,7 +11328,7 @@ var Activity = class Activity extends Object$1 {
|
|
|
11324
11328
|
if ("instruments" in values && values.instruments != null) {
|
|
11325
11329
|
if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
|
|
11326
11330
|
if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
11327
|
-
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
|
|
11331
|
+
clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
|
|
11328
11332
|
clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
|
|
11329
11333
|
for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
|
|
11330
11334
|
} else throw new TypeError("The instruments must be an array of type Object | URL.");
|
|
@@ -13656,7 +13660,8 @@ var EmojiReact = class EmojiReact extends Activity {
|
|
|
13656
13660
|
*
|
|
13657
13661
|
* @param values The values to update the clone with.
|
|
13658
13662
|
* @param options The options to use for cloning.
|
|
13659
|
-
* @returns The cloned instance.
|
|
13663
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13664
|
+
* and URLs are shared with this instance.
|
|
13660
13665
|
*/
|
|
13661
13666
|
clone(values = {}, options = {}) {
|
|
13662
13667
|
if (this._warning != null) {
|
|
@@ -13911,7 +13916,8 @@ var PropertyValue = class {
|
|
|
13911
13916
|
*
|
|
13912
13917
|
* @param values The values to update the clone with.
|
|
13913
13918
|
* @param options The options to use for cloning.
|
|
13914
|
-
* @returns The cloned instance.
|
|
13919
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
13920
|
+
* and URLs are shared with this instance.
|
|
13915
13921
|
*/
|
|
13916
13922
|
clone(values = {}, options = {}) {
|
|
13917
13923
|
if (this._warning != null) {
|
|
@@ -13923,10 +13929,10 @@ var PropertyValue = class {
|
|
|
13923
13929
|
}
|
|
13924
13930
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
13925
13931
|
copyPortableProvenance(this, clone);
|
|
13926
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
13932
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
13927
13933
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
13928
13934
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
13929
|
-
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
|
|
13935
|
+
clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
|
|
13930
13936
|
if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof LanguageString$1) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
|
|
13931
13937
|
else throw new TypeError("The value must be of type string | LanguageString.");
|
|
13932
13938
|
return clone;
|
|
@@ -14269,7 +14275,8 @@ var Measure = class {
|
|
|
14269
14275
|
*
|
|
14270
14276
|
* @param values The values to update the clone with.
|
|
14271
14277
|
* @param options The options to use for cloning.
|
|
14272
|
-
* @returns The cloned instance.
|
|
14278
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14279
|
+
* and URLs are shared with this instance.
|
|
14273
14280
|
*/
|
|
14274
14281
|
clone(values = {}, options = {}) {
|
|
14275
14282
|
if (this._warning != null) {
|
|
@@ -14281,10 +14288,10 @@ var Measure = class {
|
|
|
14281
14288
|
}
|
|
14282
14289
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
14283
14290
|
copyPortableProvenance(this, clone);
|
|
14284
|
-
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
|
|
14291
|
+
clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
|
|
14285
14292
|
if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
|
|
14286
14293
|
else throw new TypeError("The unit must be of type string.");
|
|
14287
|
-
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
|
|
14294
|
+
clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
|
|
14288
14295
|
if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && isDecimal(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
|
|
14289
14296
|
else throw new TypeError("The numericalValue must be of type Decimal.");
|
|
14290
14297
|
return clone;
|
|
@@ -14580,7 +14587,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
14580
14587
|
*
|
|
14581
14588
|
* @param values The values to update the clone with.
|
|
14582
14589
|
* @param options The options to use for cloning.
|
|
14583
|
-
* @returns The cloned instance.
|
|
14590
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
14591
|
+
* and URLs are shared with this instance.
|
|
14584
14592
|
*/
|
|
14585
14593
|
clone(values = {}, options = {}) {
|
|
14586
14594
|
if (this._warning != null) {
|
|
@@ -14591,13 +14599,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
|
|
|
14591
14599
|
};
|
|
14592
14600
|
}
|
|
14593
14601
|
const clone = super.clone(values, options);
|
|
14594
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
14602
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
14595
14603
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
14596
14604
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
14597
14605
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
14598
14606
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
|
|
14599
14607
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
14600
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
14608
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
14601
14609
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
14602
14610
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
14603
14611
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -15355,7 +15363,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
|
|
|
15355
15363
|
*
|
|
15356
15364
|
* @param values The values to update the clone with.
|
|
15357
15365
|
* @param options The options to use for cloning.
|
|
15358
|
-
* @returns The cloned instance.
|
|
15366
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15367
|
+
* and URLs are shared with this instance.
|
|
15359
15368
|
*/
|
|
15360
15369
|
clone(values = {}, options = {}) {
|
|
15361
15370
|
if (this._warning != null) {
|
|
@@ -15619,7 +15628,8 @@ var InteractionPolicy = class {
|
|
|
15619
15628
|
*
|
|
15620
15629
|
* @param values The values to update the clone with.
|
|
15621
15630
|
* @param options The options to use for cloning.
|
|
15622
|
-
* @returns The cloned instance.
|
|
15631
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
15632
|
+
* and URLs are shared with this instance.
|
|
15623
15633
|
*/
|
|
15624
15634
|
clone(values = {}, options = {}) {
|
|
15625
15635
|
if (this._warning != null) {
|
|
@@ -15631,19 +15641,19 @@ var InteractionPolicy = class {
|
|
|
15631
15641
|
}
|
|
15632
15642
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
15633
15643
|
copyPortableProvenance(this, clone);
|
|
15634
|
-
clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature;
|
|
15644
|
+
clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = this.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature.slice();
|
|
15635
15645
|
if ("canFeature" in values && values.canFeature != null) if (values.canFeature instanceof InteractionRule) clone.#_2hdwkUHmthzVPdo1ttxKsP7AGKka_canFeature = [values.canFeature];
|
|
15636
15646
|
else throw new TypeError("The canFeature must be of type InteractionRule.");
|
|
15637
|
-
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
|
|
15647
|
+
clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
|
|
15638
15648
|
if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
|
|
15639
15649
|
else throw new TypeError("The canLike must be of type InteractionRule.");
|
|
15640
|
-
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
|
|
15650
|
+
clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
|
|
15641
15651
|
if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
|
|
15642
15652
|
else throw new TypeError("The canReply must be of type InteractionRule.");
|
|
15643
|
-
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
|
|
15653
|
+
clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
|
|
15644
15654
|
if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
|
|
15645
15655
|
else throw new TypeError("The canAnnounce must be of type InteractionRule.");
|
|
15646
|
-
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
|
|
15656
|
+
clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
|
|
15647
15657
|
if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
|
|
15648
15658
|
else throw new TypeError("The canQuote must be of type InteractionRule.");
|
|
15649
15659
|
return clone;
|
|
@@ -16092,14 +16102,14 @@ var InteractionRule = class {
|
|
|
16092
16102
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
16093
16103
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
16094
16104
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
|
|
16095
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
16105
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
16096
16106
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
16097
16107
|
}
|
|
16098
16108
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
16099
16109
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
16100
16110
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
16101
16111
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
|
|
16102
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
16112
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
16103
16113
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
16104
16114
|
}
|
|
16105
16115
|
}
|
|
@@ -16114,7 +16124,8 @@ var InteractionRule = class {
|
|
|
16114
16124
|
*
|
|
16115
16125
|
* @param values The values to update the clone with.
|
|
16116
16126
|
* @param options The options to use for cloning.
|
|
16117
|
-
* @returns The cloned instance.
|
|
16127
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16128
|
+
* and URLs are shared with this instance.
|
|
16118
16129
|
*/
|
|
16119
16130
|
clone(values = {}, options = {}) {
|
|
16120
16131
|
if (this._warning != null) {
|
|
@@ -16126,20 +16137,20 @@ var InteractionRule = class {
|
|
|
16126
16137
|
}
|
|
16127
16138
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
16128
16139
|
copyPortableProvenance(this, clone);
|
|
16129
|
-
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
|
|
16140
|
+
clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
|
|
16130
16141
|
if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
|
|
16131
16142
|
else throw new TypeError("The automaticApproval must be of type URL.");
|
|
16132
16143
|
if ("automaticApprovals" in values && values.automaticApprovals != null) {
|
|
16133
16144
|
if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
|
|
16134
|
-
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
|
|
16145
|
+
if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
|
|
16135
16146
|
else throw new TypeError("The automaticApprovals must be an array of type URL.");
|
|
16136
16147
|
}
|
|
16137
|
-
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
|
|
16148
|
+
clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
|
|
16138
16149
|
if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
|
|
16139
16150
|
else throw new TypeError("The manualApproval must be of type URL.");
|
|
16140
16151
|
if ("manualApprovals" in values && values.manualApprovals != null) {
|
|
16141
16152
|
if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
|
|
16142
|
-
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
|
|
16153
|
+
if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
|
|
16143
16154
|
else throw new TypeError("The manualApprovals must be an array of type URL.");
|
|
16144
16155
|
}
|
|
16145
16156
|
return clone;
|
|
@@ -16419,7 +16430,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
16419
16430
|
*
|
|
16420
16431
|
* @param values The values to update the clone with.
|
|
16421
16432
|
* @param options The options to use for cloning.
|
|
16422
|
-
* @returns The cloned instance.
|
|
16433
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
16434
|
+
* and URLs are shared with this instance.
|
|
16423
16435
|
*/
|
|
16424
16436
|
clone(values = {}, options = {}) {
|
|
16425
16437
|
if (this._warning != null) {
|
|
@@ -16430,13 +16442,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
|
|
|
16430
16442
|
};
|
|
16431
16443
|
}
|
|
16432
16444
|
const clone = super.clone(values, options);
|
|
16433
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
16445
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
16434
16446
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
16435
16447
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
16436
16448
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
16437
16449
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
|
|
16438
16450
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
16439
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
16451
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
16440
16452
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
16441
16453
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
16442
16454
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -17193,7 +17205,8 @@ var LikeRequest = class LikeRequest extends Activity {
|
|
|
17193
17205
|
*
|
|
17194
17206
|
* @param values The values to update the clone with.
|
|
17195
17207
|
* @param options The options to use for cloning.
|
|
17196
|
-
* @returns The cloned instance.
|
|
17208
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17209
|
+
* and URLs are shared with this instance.
|
|
17197
17210
|
*/
|
|
17198
17211
|
clone(values = {}, options = {}) {
|
|
17199
17212
|
if (this._warning != null) {
|
|
@@ -17403,7 +17416,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
17403
17416
|
*
|
|
17404
17417
|
* @param values The values to update the clone with.
|
|
17405
17418
|
* @param options The options to use for cloning.
|
|
17406
|
-
* @returns The cloned instance.
|
|
17419
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
17420
|
+
* and URLs are shared with this instance.
|
|
17407
17421
|
*/
|
|
17408
17422
|
clone(values = {}, options = {}) {
|
|
17409
17423
|
if (this._warning != null) {
|
|
@@ -17414,13 +17428,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
|
|
|
17414
17428
|
};
|
|
17415
17429
|
}
|
|
17416
17430
|
const clone = super.clone(values, options);
|
|
17417
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
17431
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
17418
17432
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
17419
17433
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
17420
17434
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
17421
17435
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
|
|
17422
17436
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
17423
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
17437
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
17424
17438
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
17425
17439
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
17426
17440
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -18177,7 +18191,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
|
|
|
18177
18191
|
*
|
|
18178
18192
|
* @param values The values to update the clone with.
|
|
18179
18193
|
* @param options The options to use for cloning.
|
|
18180
|
-
* @returns The cloned instance.
|
|
18194
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
18195
|
+
* and URLs are shared with this instance.
|
|
18181
18196
|
*/
|
|
18182
18197
|
clone(values = {}, options = {}) {
|
|
18183
18198
|
if (this._warning != null) {
|
|
@@ -18387,7 +18402,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
18387
18402
|
*
|
|
18388
18403
|
* @param values The values to update the clone with.
|
|
18389
18404
|
* @param options The options to use for cloning.
|
|
18390
|
-
* @returns The cloned instance.
|
|
18405
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
18406
|
+
* and URLs are shared with this instance.
|
|
18391
18407
|
*/
|
|
18392
18408
|
clone(values = {}, options = {}) {
|
|
18393
18409
|
if (this._warning != null) {
|
|
@@ -18398,13 +18414,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
|
|
|
18398
18414
|
};
|
|
18399
18415
|
}
|
|
18400
18416
|
const clone = super.clone(values, options);
|
|
18401
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
18417
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
18402
18418
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
18403
18419
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
18404
18420
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
18405
18421
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
|
|
18406
18422
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
18407
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
18423
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
18408
18424
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
18409
18425
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
18410
18426
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -19162,7 +19178,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
|
|
|
19162
19178
|
*
|
|
19163
19179
|
* @param values The values to update the clone with.
|
|
19164
19180
|
* @param options The options to use for cloning.
|
|
19165
|
-
* @returns The cloned instance.
|
|
19181
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
19182
|
+
* and URLs are shared with this instance.
|
|
19166
19183
|
*/
|
|
19167
19184
|
clone(values = {}, options = {}) {
|
|
19168
19185
|
if (this._warning != null) {
|
|
@@ -19445,7 +19462,7 @@ var Translation = class {
|
|
|
19445
19462
|
if ("translators" in values && values.translators != null) {
|
|
19446
19463
|
if ("translator" in values && values.translator != null) throw new TypeError("Cannot initialize both translator and translators at the same time.");
|
|
19447
19464
|
if (Array.isArray(values.translators) && values.translators.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
19448
|
-
this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
|
|
19465
|
+
this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
|
|
19449
19466
|
for (let i = 0; i < values.translators.length; i++) this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
|
|
19450
19467
|
} else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
19451
19468
|
}
|
|
@@ -19459,7 +19476,7 @@ var Translation = class {
|
|
|
19459
19476
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
19460
19477
|
if ("urls" in values && values.urls != null) {
|
|
19461
19478
|
if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
|
|
19462
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
19479
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
19463
19480
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
19464
19481
|
}
|
|
19465
19482
|
}
|
|
@@ -19474,7 +19491,8 @@ var Translation = class {
|
|
|
19474
19491
|
*
|
|
19475
19492
|
* @param values The values to update the clone with.
|
|
19476
19493
|
* @param options The options to use for cloning.
|
|
19477
|
-
* @returns The cloned instance.
|
|
19494
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
19495
|
+
* and URLs are shared with this instance.
|
|
19478
19496
|
*/
|
|
19479
19497
|
clone(values = {}, options = {}) {
|
|
19480
19498
|
if (this._warning != null) {
|
|
@@ -19486,10 +19504,10 @@ var Translation = class {
|
|
|
19486
19504
|
}
|
|
19487
19505
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
19488
19506
|
copyPortableProvenance(this, clone);
|
|
19489
|
-
clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG;
|
|
19507
|
+
clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = this.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG.slice();
|
|
19490
19508
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_diXuPmFWiEqfLPhhrxg6Xc7ixZG = [values.language];
|
|
19491
19509
|
else throw new TypeError("The language must be of type Intl.Locale.");
|
|
19492
|
-
clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR;
|
|
19510
|
+
clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = this.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.slice();
|
|
19493
19511
|
clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = new Set(this.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR);
|
|
19494
19512
|
if ("translator" in values && values.translator != null) if (values.translator instanceof Application || values.translator instanceof Group || values.translator instanceof Organization || values.translator instanceof Person || values.translator instanceof Service || values.translator instanceof URL) {
|
|
19495
19513
|
clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = [values.translator];
|
|
@@ -19498,26 +19516,26 @@ var Translation = class {
|
|
|
19498
19516
|
if ("translators" in values && values.translators != null) {
|
|
19499
19517
|
if ("translator" in values && values.translator != null) throw new TypeError("Cannot update both translator and translators at the same time.");
|
|
19500
19518
|
if (Array.isArray(values.translators) && values.translators.every((v) => v instanceof Application || v instanceof Group || v instanceof Organization || v instanceof Person || v instanceof Service || v instanceof URL)) {
|
|
19501
|
-
clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators;
|
|
19519
|
+
clone.#_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = values.translators.slice();
|
|
19502
19520
|
clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR = /* @__PURE__ */ new Set();
|
|
19503
19521
|
for (let i = 0; i < values.translators.length; i++) clone.#_trust_hQqsdZa1zG8Ra1bQ3MBVsnmGnBR.add(i);
|
|
19504
19522
|
} else throw new TypeError("The translators must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
19505
19523
|
}
|
|
19506
|
-
clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7;
|
|
19524
|
+
clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = this.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7.slice();
|
|
19507
19525
|
if ("original" in values && values.original != null) if (values.original instanceof URL) clone.#_Msz9PwRg7cWkiXPL4ixyQLtuuH7 = [values.original];
|
|
19508
19526
|
else throw new TypeError("The original must be of type URL.");
|
|
19509
|
-
clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated;
|
|
19527
|
+
clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = this.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated.slice();
|
|
19510
19528
|
if ("sourceUpdated" in values && values.sourceUpdated != null) if (isTemporalInstant(values.sourceUpdated)) clone.#_yTNTBtDbKTVj9kzyXpuk3rzbcGv_sourceUpdated = [values.sourceUpdated];
|
|
19511
19529
|
else throw new TypeError("The sourceUpdated must be of type Temporal.Instant.");
|
|
19512
|
-
clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW;
|
|
19530
|
+
clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = this.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW.slice();
|
|
19513
19531
|
if ("basis" in values && values.basis != null) if (values.basis instanceof URL) clone.#_4KvkQNz1JjGs8S7iJDcGrUYETbUW = [values.basis];
|
|
19514
19532
|
else throw new TypeError("The basis must be of type URL.");
|
|
19515
|
-
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
|
|
19533
|
+
clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
|
|
19516
19534
|
if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
|
|
19517
19535
|
else throw new TypeError("The url must be of type URL | Link.");
|
|
19518
19536
|
if ("urls" in values && values.urls != null) {
|
|
19519
19537
|
if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
|
|
19520
|
-
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
|
|
19538
|
+
if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
|
|
19521
19539
|
else throw new TypeError("The urls must be an array of type URL | Link.");
|
|
19522
19540
|
}
|
|
19523
19541
|
return clone;
|
|
@@ -20180,7 +20198,7 @@ var Translation = class {
|
|
|
20180
20198
|
let _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array = values["https://schema.org/inLanguage"];
|
|
20181
20199
|
for (const v of _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array == null ? [] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array.length === 1 && "@list" in _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0] ? _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array[0]["@list"] : _diXuPmFWiEqfLPhhrxg6Xc7ixZG__array) {
|
|
20182
20200
|
if (v == null) continue;
|
|
20183
|
-
const decoded = new Intl.Locale(v["@value"]);
|
|
20201
|
+
const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
|
|
20184
20202
|
if (typeof decoded === "undefined") {
|
|
20185
20203
|
shouldCacheJsonLd = false;
|
|
20186
20204
|
continue;
|
|
@@ -20384,7 +20402,8 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
20384
20402
|
*
|
|
20385
20403
|
* @param values The values to update the clone with.
|
|
20386
20404
|
* @param options The options to use for cloning.
|
|
20387
|
-
* @returns The cloned instance.
|
|
20405
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
20406
|
+
* and URLs are shared with this instance.
|
|
20388
20407
|
*/
|
|
20389
20408
|
clone(values = {}, options = {}) {
|
|
20390
20409
|
if (this._warning != null) {
|
|
@@ -20395,13 +20414,13 @@ var FeatureAuthorization = class FeatureAuthorization extends Object$1 {
|
|
|
20395
20414
|
};
|
|
20396
20415
|
}
|
|
20397
20416
|
const clone = super.clone(values, options);
|
|
20398
|
-
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
|
|
20417
|
+
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
|
|
20399
20418
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
|
|
20400
20419
|
if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
|
|
20401
20420
|
clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
|
|
20402
20421
|
clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = /* @__PURE__ */ new Set([0]);
|
|
20403
20422
|
} else throw new TypeError("The interactingObject must be of type Object | URL.");
|
|
20404
|
-
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
|
|
20423
|
+
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
|
|
20405
20424
|
clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
|
|
20406
20425
|
if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
|
|
20407
20426
|
clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
|
|
@@ -21156,7 +21175,8 @@ var FeatureRequest = class FeatureRequest extends Activity {
|
|
|
21156
21175
|
*
|
|
21157
21176
|
* @param values The values to update the clone with.
|
|
21158
21177
|
* @param options The options to use for cloning.
|
|
21159
|
-
* @returns The cloned instance.
|
|
21178
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21179
|
+
* and URLs are shared with this instance.
|
|
21160
21180
|
*/
|
|
21161
21181
|
clone(values = {}, options = {}) {
|
|
21162
21182
|
if (this._warning != null) {
|
|
@@ -21380,7 +21400,7 @@ var Collection = class Collection extends Object$1 {
|
|
|
21380
21400
|
this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
|
|
21381
21401
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
21382
21402
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
21383
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
21403
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
21384
21404
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
21385
21405
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
21386
21406
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
@@ -21427,7 +21447,8 @@ var Collection = class Collection extends Object$1 {
|
|
|
21427
21447
|
*
|
|
21428
21448
|
* @param values The values to update the clone with.
|
|
21429
21449
|
* @param options The options to use for cloning.
|
|
21430
|
-
* @returns The cloned instance.
|
|
21450
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
21451
|
+
* and URLs are shared with this instance.
|
|
21431
21452
|
*/
|
|
21432
21453
|
clone(values = {}, options = {}) {
|
|
21433
21454
|
if (this._warning != null) {
|
|
@@ -21438,77 +21459,77 @@ var Collection = class Collection extends Object$1 {
|
|
|
21438
21459
|
};
|
|
21439
21460
|
}
|
|
21440
21461
|
const clone = super.clone(values, options);
|
|
21441
|
-
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
|
|
21462
|
+
clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
|
|
21442
21463
|
if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
|
|
21443
21464
|
else throw new TypeError("The totalItems must be of type number.");
|
|
21444
|
-
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
|
|
21465
|
+
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
|
|
21445
21466
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
|
|
21446
21467
|
if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
|
|
21447
21468
|
clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
|
|
21448
21469
|
clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = /* @__PURE__ */ new Set([0]);
|
|
21449
21470
|
} else throw new TypeError("The current must be of type CollectionPage | URL.");
|
|
21450
|
-
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
|
|
21471
|
+
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
|
|
21451
21472
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
|
|
21452
21473
|
if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
|
|
21453
21474
|
clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
|
|
21454
21475
|
clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = /* @__PURE__ */ new Set([0]);
|
|
21455
21476
|
} else throw new TypeError("The first must be of type CollectionPage | URL.");
|
|
21456
|
-
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
|
|
21477
|
+
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
|
|
21457
21478
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
|
|
21458
21479
|
if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
|
|
21459
21480
|
clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
|
|
21460
21481
|
clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = /* @__PURE__ */ new Set([0]);
|
|
21461
21482
|
} else throw new TypeError("The last must be of type CollectionPage | URL.");
|
|
21462
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
21483
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
21463
21484
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
21464
21485
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
21465
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
21486
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
21466
21487
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
21467
21488
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
21468
21489
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
21469
|
-
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
|
|
21490
|
+
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
|
|
21470
21491
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
|
|
21471
21492
|
if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
|
|
21472
21493
|
clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
|
|
21473
21494
|
clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = /* @__PURE__ */ new Set([0]);
|
|
21474
21495
|
} else throw new TypeError("The likesOf must be of type Object | URL.");
|
|
21475
|
-
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
|
|
21496
|
+
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
|
|
21476
21497
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
|
|
21477
21498
|
if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
|
|
21478
21499
|
clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
|
|
21479
21500
|
clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = /* @__PURE__ */ new Set([0]);
|
|
21480
21501
|
} else throw new TypeError("The sharesOf must be of type Object | URL.");
|
|
21481
|
-
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
|
|
21502
|
+
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
|
|
21482
21503
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
|
|
21483
21504
|
if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
|
|
21484
21505
|
clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
|
|
21485
21506
|
clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = /* @__PURE__ */ new Set([0]);
|
|
21486
21507
|
} else throw new TypeError("The repliesOf must be of type Object | URL.");
|
|
21487
|
-
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
|
|
21508
|
+
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
|
|
21488
21509
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
|
|
21489
21510
|
if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
|
|
21490
21511
|
clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
|
|
21491
21512
|
clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = /* @__PURE__ */ new Set([0]);
|
|
21492
21513
|
} else throw new TypeError("The inboxOf must be of type Object | URL.");
|
|
21493
|
-
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
|
|
21514
|
+
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
|
|
21494
21515
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
|
|
21495
21516
|
if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
|
|
21496
21517
|
clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
|
|
21497
21518
|
clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = /* @__PURE__ */ new Set([0]);
|
|
21498
21519
|
} else throw new TypeError("The outboxOf must be of type Object | URL.");
|
|
21499
|
-
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
|
|
21520
|
+
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
|
|
21500
21521
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
|
|
21501
21522
|
if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
|
|
21502
21523
|
clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
|
|
21503
21524
|
clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = /* @__PURE__ */ new Set([0]);
|
|
21504
21525
|
} else throw new TypeError("The followersOf must be of type Object | URL.");
|
|
21505
|
-
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
|
|
21526
|
+
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
|
|
21506
21527
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
|
|
21507
21528
|
if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
|
|
21508
21529
|
clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
|
|
21509
21530
|
clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = /* @__PURE__ */ new Set([0]);
|
|
21510
21531
|
} else throw new TypeError("The followingOf must be of type Object | URL.");
|
|
21511
|
-
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
|
|
21532
|
+
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
|
|
21512
21533
|
clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
|
|
21513
21534
|
if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
|
|
21514
21535
|
clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
|
|
@@ -25172,7 +25193,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25172
25193
|
constructor(values, options = {}) {
|
|
25173
25194
|
super(values, options);
|
|
25174
25195
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
25175
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
25196
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
25176
25197
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
25177
25198
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
25178
25199
|
}
|
|
@@ -25187,7 +25208,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25187
25208
|
*
|
|
25188
25209
|
* @param values The values to update the clone with.
|
|
25189
25210
|
* @param options The options to use for cloning.
|
|
25190
|
-
* @returns The cloned instance.
|
|
25211
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
25212
|
+
* and URLs are shared with this instance.
|
|
25191
25213
|
*/
|
|
25192
25214
|
clone(values = {}, options = {}) {
|
|
25193
25215
|
if (this._warning != null) {
|
|
@@ -25198,10 +25220,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
|
|
|
25198
25220
|
};
|
|
25199
25221
|
}
|
|
25200
25222
|
const clone = super.clone(values, options);
|
|
25201
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
25223
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
25202
25224
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
25203
25225
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
25204
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
25226
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
25205
25227
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
25206
25228
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
25207
25229
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
@@ -25835,7 +25857,8 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
25835
25857
|
*
|
|
25836
25858
|
* @param values The values to update the clone with.
|
|
25837
25859
|
* @param options The options to use for cloning.
|
|
25838
|
-
* @returns The cloned instance.
|
|
25860
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
25861
|
+
* and URLs are shared with this instance.
|
|
25839
25862
|
*/
|
|
25840
25863
|
clone(values = {}, options = {}) {
|
|
25841
25864
|
if (this._warning != null) {
|
|
@@ -25846,10 +25869,10 @@ var FeaturedCollection = class FeaturedCollection extends OrderedCollection {
|
|
|
25846
25869
|
};
|
|
25847
25870
|
}
|
|
25848
25871
|
const clone = super.clone(values, options);
|
|
25849
|
-
clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic;
|
|
25872
|
+
clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = this.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic.slice();
|
|
25850
25873
|
if ("topic" in values && values.topic != null) if (values.topic instanceof Hashtag) clone.#_pc4UXYHNrYa2zyQ8Bh7zvdZRKnZ_topic = [values.topic];
|
|
25851
25874
|
else throw new TypeError("The topic must be of type Hashtag.");
|
|
25852
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
25875
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
25853
25876
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
25854
25877
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
25855
25878
|
return clone;
|
|
@@ -26171,7 +26194,8 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
26171
26194
|
*
|
|
26172
26195
|
* @param values The values to update the clone with.
|
|
26173
26196
|
* @param options The options to use for cloning.
|
|
26174
|
-
* @returns The cloned instance.
|
|
26197
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
26198
|
+
* and URLs are shared with this instance.
|
|
26175
26199
|
*/
|
|
26176
26200
|
clone(values = {}, options = {}) {
|
|
26177
26201
|
if (this._warning != null) {
|
|
@@ -26182,13 +26206,13 @@ var FeaturedItem = class FeaturedItem extends Object$1 {
|
|
|
26182
26206
|
};
|
|
26183
26207
|
}
|
|
26184
26208
|
const clone = super.clone(values, options);
|
|
26185
|
-
clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject;
|
|
26209
|
+
clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = this.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject.slice();
|
|
26186
26210
|
clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = new Set(this.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject);
|
|
26187
26211
|
if ("featuredObject" in values && values.featuredObject != null) if (values.featuredObject instanceof Object$1 || values.featuredObject instanceof URL) {
|
|
26188
26212
|
clone.#_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = [values.featuredObject];
|
|
26189
26213
|
clone.#_trust_Ht5F1pFtcuyJkybWck37rPhwyQv_featuredObject = /* @__PURE__ */ new Set([0]);
|
|
26190
26214
|
} else throw new TypeError("The featuredObject must be of type Object | URL.");
|
|
26191
|
-
clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization;
|
|
26215
|
+
clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = this.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization.slice();
|
|
26192
26216
|
clone.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = new Set(this.#_trust_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization);
|
|
26193
26217
|
if ("featureAuthorization" in values && values.featureAuthorization != null) if (values.featureAuthorization instanceof FeatureAuthorization || values.featureAuthorization instanceof URL) {
|
|
26194
26218
|
clone.#_2gG5sxnwav2sb69C22RbERtJ8rba_featureAuthorization = [values.featureAuthorization];
|
|
@@ -26986,7 +27010,7 @@ var DidService = class {
|
|
|
26986
27010
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
26987
27011
|
if ("endpoints" in values && values.endpoints != null) {
|
|
26988
27012
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
|
|
26989
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
27013
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
26990
27014
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
26991
27015
|
}
|
|
26992
27016
|
}
|
|
@@ -27001,7 +27025,8 @@ var DidService = class {
|
|
|
27001
27025
|
*
|
|
27002
27026
|
* @param values The values to update the clone with.
|
|
27003
27027
|
* @param options The options to use for cloning.
|
|
27004
|
-
* @returns The cloned instance.
|
|
27028
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27029
|
+
* and URLs are shared with this instance.
|
|
27005
27030
|
*/
|
|
27006
27031
|
clone(values = {}, options = {}) {
|
|
27007
27032
|
if (this._warning != null) {
|
|
@@ -27013,12 +27038,12 @@ var DidService = class {
|
|
|
27013
27038
|
}
|
|
27014
27039
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
27015
27040
|
copyPortableProvenance(this, clone);
|
|
27016
|
-
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
|
|
27041
|
+
clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
|
|
27017
27042
|
if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
|
|
27018
27043
|
else throw new TypeError("The endpoint must be of type URL.");
|
|
27019
27044
|
if ("endpoints" in values && values.endpoints != null) {
|
|
27020
27045
|
if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
|
|
27021
|
-
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
|
|
27046
|
+
if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
|
|
27022
27047
|
else throw new TypeError("The endpoints must be an array of type URL.");
|
|
27023
27048
|
}
|
|
27024
27049
|
return clone;
|
|
@@ -27235,7 +27260,8 @@ var Export = class Export extends DidService {
|
|
|
27235
27260
|
*
|
|
27236
27261
|
* @param values The values to update the clone with.
|
|
27237
27262
|
* @param options The options to use for cloning.
|
|
27238
|
-
* @returns The cloned instance.
|
|
27263
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27264
|
+
* and URLs are shared with this instance.
|
|
27239
27265
|
*/
|
|
27240
27266
|
clone(values = {}, options = {}) {
|
|
27241
27267
|
if (this._warning != null) {
|
|
@@ -27489,7 +27515,8 @@ var DataIntegrityProof = class {
|
|
|
27489
27515
|
*
|
|
27490
27516
|
* @param values The values to update the clone with.
|
|
27491
27517
|
* @param options The options to use for cloning.
|
|
27492
|
-
* @returns The cloned instance.
|
|
27518
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
27519
|
+
* and URLs are shared with this instance.
|
|
27493
27520
|
*/
|
|
27494
27521
|
clone(values = {}, options = {}) {
|
|
27495
27522
|
if (this._warning != null) {
|
|
@@ -27501,22 +27528,22 @@ var DataIntegrityProof = class {
|
|
|
27501
27528
|
}
|
|
27502
27529
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
27503
27530
|
copyPortableProvenance(this, clone);
|
|
27504
|
-
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
|
|
27531
|
+
clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
|
|
27505
27532
|
if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
|
|
27506
27533
|
else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
|
|
27507
|
-
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
|
|
27534
|
+
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
|
|
27508
27535
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
|
|
27509
27536
|
if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
|
|
27510
27537
|
clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
|
|
27511
27538
|
clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = /* @__PURE__ */ new Set([0]);
|
|
27512
27539
|
} else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
|
|
27513
|
-
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
|
|
27540
|
+
clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
|
|
27514
27541
|
if ("proofPurpose" in values && values.proofPurpose != null) if (values.proofPurpose === "assertionMethod" || values.proofPurpose === "authentication" || values.proofPurpose === "capabilityInvocation" || values.proofPurpose === "capabilityDelegation" || values.proofPurpose === "keyAgreement") clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = [values.proofPurpose];
|
|
27515
27542
|
else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
|
|
27516
|
-
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
|
|
27543
|
+
clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
|
|
27517
27544
|
if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
|
|
27518
27545
|
else throw new TypeError("The proofValue must be of type Uint8Array.");
|
|
27519
|
-
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
|
|
27546
|
+
clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
|
|
27520
27547
|
if ("created" in values && values.created != null) if (isTemporalInstant(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
|
|
27521
27548
|
else throw new TypeError("The created must be of type Temporal.Instant.");
|
|
27522
27549
|
return clone;
|
|
@@ -28152,7 +28179,8 @@ var CryptographicKey = class {
|
|
|
28152
28179
|
*
|
|
28153
28180
|
* @param values The values to update the clone with.
|
|
28154
28181
|
* @param options The options to use for cloning.
|
|
28155
|
-
* @returns The cloned instance.
|
|
28182
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
28183
|
+
* and URLs are shared with this instance.
|
|
28156
28184
|
*/
|
|
28157
28185
|
clone(values = {}, options = {}) {
|
|
28158
28186
|
if (this._warning != null) {
|
|
@@ -28164,13 +28192,13 @@ var CryptographicKey = class {
|
|
|
28164
28192
|
}
|
|
28165
28193
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
28166
28194
|
copyPortableProvenance(this, clone);
|
|
28167
|
-
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
|
|
28195
|
+
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
|
|
28168
28196
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
|
|
28169
28197
|
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) {
|
|
28170
28198
|
clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
|
|
28171
28199
|
clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = /* @__PURE__ */ new Set([0]);
|
|
28172
28200
|
} else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
|
|
28173
|
-
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
|
|
28201
|
+
clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
|
|
28174
28202
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
|
|
28175
28203
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
28176
28204
|
return clone;
|
|
@@ -28805,7 +28833,8 @@ var Multikey = class {
|
|
|
28805
28833
|
*
|
|
28806
28834
|
* @param values The values to update the clone with.
|
|
28807
28835
|
* @param options The options to use for cloning.
|
|
28808
|
-
* @returns The cloned instance.
|
|
28836
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
28837
|
+
* and URLs are shared with this instance.
|
|
28809
28838
|
*/
|
|
28810
28839
|
clone(values = {}, options = {}) {
|
|
28811
28840
|
if (this._warning != null) {
|
|
@@ -28817,13 +28846,13 @@ var Multikey = class {
|
|
|
28817
28846
|
}
|
|
28818
28847
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
28819
28848
|
copyPortableProvenance(this, clone);
|
|
28820
|
-
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
|
|
28849
|
+
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
|
|
28821
28850
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
|
|
28822
28851
|
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) {
|
|
28823
28852
|
clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
|
|
28824
28853
|
clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = /* @__PURE__ */ new Set([0]);
|
|
28825
28854
|
} else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
|
|
28826
|
-
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
|
|
28855
|
+
clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
|
|
28827
28856
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
|
|
28828
28857
|
else throw new TypeError("The publicKey must be of type CryptoKey.");
|
|
28829
28858
|
return clone;
|
|
@@ -29417,7 +29446,8 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
29417
29446
|
*
|
|
29418
29447
|
* @param values The values to update the clone with.
|
|
29419
29448
|
* @param options The options to use for cloning.
|
|
29420
|
-
* @returns The cloned instance.
|
|
29449
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
29450
|
+
* and URLs are shared with this instance.
|
|
29421
29451
|
*/
|
|
29422
29452
|
clone(values = {}, options = {}) {
|
|
29423
29453
|
if (this._warning != null) {
|
|
@@ -29428,10 +29458,10 @@ var Agreement = class Agreement extends Object$1 {
|
|
|
29428
29458
|
};
|
|
29429
29459
|
}
|
|
29430
29460
|
const clone = super.clone(values, options);
|
|
29431
|
-
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
|
|
29461
|
+
clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
|
|
29432
29462
|
if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
|
|
29433
29463
|
else throw new TypeError("The stipulates must be of type Commitment.");
|
|
29434
|
-
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
|
|
29464
|
+
clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
|
|
29435
29465
|
if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
|
|
29436
29466
|
else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
|
|
29437
29467
|
return clone;
|
|
@@ -29836,7 +29866,8 @@ var Commitment = class {
|
|
|
29836
29866
|
*
|
|
29837
29867
|
* @param values The values to update the clone with.
|
|
29838
29868
|
* @param options The options to use for cloning.
|
|
29839
|
-
* @returns The cloned instance.
|
|
29869
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
29870
|
+
* and URLs are shared with this instance.
|
|
29840
29871
|
*/
|
|
29841
29872
|
clone(values = {}, options = {}) {
|
|
29842
29873
|
if (this._warning != null) {
|
|
@@ -29848,10 +29879,10 @@ var Commitment = class {
|
|
|
29848
29879
|
}
|
|
29849
29880
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
29850
29881
|
copyPortableProvenance(this, clone);
|
|
29851
|
-
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
|
|
29882
|
+
clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
|
|
29852
29883
|
if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
|
|
29853
29884
|
else throw new TypeError("The satisfies must be of type URL.");
|
|
29854
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
29885
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
29855
29886
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
29856
29887
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
29857
29888
|
return clone;
|
|
@@ -30217,7 +30248,8 @@ var Intent = class {
|
|
|
30217
30248
|
*
|
|
30218
30249
|
* @param values The values to update the clone with.
|
|
30219
30250
|
* @param options The options to use for cloning.
|
|
30220
|
-
* @returns The cloned instance.
|
|
30251
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
30252
|
+
* and URLs are shared with this instance.
|
|
30221
30253
|
*/
|
|
30222
30254
|
clone(values = {}, options = {}) {
|
|
30223
30255
|
if (this._warning != null) {
|
|
@@ -30229,19 +30261,19 @@ var Intent = class {
|
|
|
30229
30261
|
}
|
|
30230
30262
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
30231
30263
|
copyPortableProvenance(this, clone);
|
|
30232
|
-
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
|
|
30264
|
+
clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
|
|
30233
30265
|
if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
|
|
30234
30266
|
else throw new TypeError("The action must be of type string.");
|
|
30235
|
-
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
|
|
30267
|
+
clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
|
|
30236
30268
|
if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
|
|
30237
30269
|
else throw new TypeError("The resourceConformsTo must be of type URL.");
|
|
30238
|
-
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
|
|
30270
|
+
clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
|
|
30239
30271
|
if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
|
|
30240
30272
|
else throw new TypeError("The resourceQuantity must be of type Measure.");
|
|
30241
|
-
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
|
|
30273
|
+
clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
|
|
30242
30274
|
if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
|
|
30243
30275
|
else throw new TypeError("The availableQuantity must be of type Measure.");
|
|
30244
|
-
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
|
|
30276
|
+
clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
|
|
30245
30277
|
if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
|
|
30246
30278
|
else throw new TypeError("The minimumQuantity must be of type Measure.");
|
|
30247
30279
|
return clone;
|
|
@@ -30703,7 +30735,8 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
30703
30735
|
*
|
|
30704
30736
|
* @param values The values to update the clone with.
|
|
30705
30737
|
* @param options The options to use for cloning.
|
|
30706
|
-
* @returns The cloned instance.
|
|
30738
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
30739
|
+
* and URLs are shared with this instance.
|
|
30707
30740
|
*/
|
|
30708
30741
|
clone(values = {}, options = {}) {
|
|
30709
30742
|
if (this._warning != null) {
|
|
@@ -30714,16 +30747,16 @@ var Proposal = class Proposal extends Object$1 {
|
|
|
30714
30747
|
};
|
|
30715
30748
|
}
|
|
30716
30749
|
const clone = super.clone(values, options);
|
|
30717
|
-
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
|
|
30750
|
+
clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
|
|
30718
30751
|
if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
|
|
30719
30752
|
else throw new TypeError("The purpose must be of type string.");
|
|
30720
|
-
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
|
|
30753
|
+
clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
|
|
30721
30754
|
if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
|
|
30722
30755
|
else throw new TypeError("The publishes must be of type Intent.");
|
|
30723
|
-
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
|
|
30756
|
+
clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
|
|
30724
30757
|
if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
|
|
30725
30758
|
else throw new TypeError("The reciprocal must be of type Intent.");
|
|
30726
|
-
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
|
|
30759
|
+
clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
|
|
30727
30760
|
if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
|
|
30728
30761
|
else throw new TypeError("The unitBased must be of type boolean.");
|
|
30729
30762
|
return clone;
|
|
@@ -31162,7 +31195,8 @@ var Accept = class Accept extends Activity {
|
|
|
31162
31195
|
*
|
|
31163
31196
|
* @param values The values to update the clone with.
|
|
31164
31197
|
* @param options The options to use for cloning.
|
|
31165
|
-
* @returns The cloned instance.
|
|
31198
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31199
|
+
* and URLs are shared with this instance.
|
|
31166
31200
|
*/
|
|
31167
31201
|
clone(values = {}, options = {}) {
|
|
31168
31202
|
if (this._warning != null) {
|
|
@@ -31357,7 +31391,8 @@ var Add = class Add extends Activity {
|
|
|
31357
31391
|
*
|
|
31358
31392
|
* @param values The values to update the clone with.
|
|
31359
31393
|
* @param options The options to use for cloning.
|
|
31360
|
-
* @returns The cloned instance.
|
|
31394
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31395
|
+
* and URLs are shared with this instance.
|
|
31361
31396
|
*/
|
|
31362
31397
|
clone(values = {}, options = {}) {
|
|
31363
31398
|
if (this._warning != null) {
|
|
@@ -31550,7 +31585,8 @@ var Announce = class Announce extends Activity {
|
|
|
31550
31585
|
*
|
|
31551
31586
|
* @param values The values to update the clone with.
|
|
31552
31587
|
* @param options The options to use for cloning.
|
|
31553
|
-
* @returns The cloned instance.
|
|
31588
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31589
|
+
* and URLs are shared with this instance.
|
|
31554
31590
|
*/
|
|
31555
31591
|
clone(values = {}, options = {}) {
|
|
31556
31592
|
if (this._warning != null) {
|
|
@@ -31800,7 +31836,7 @@ var Application = class Application extends Object$1 {
|
|
|
31800
31836
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
31801
31837
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
31802
31838
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
31803
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
31839
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
31804
31840
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
31805
31841
|
}
|
|
31806
31842
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -31810,7 +31846,7 @@ var Application = class Application extends Object$1 {
|
|
|
31810
31846
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
31811
31847
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
31812
31848
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
31813
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
31849
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
31814
31850
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
31815
31851
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
31816
31852
|
}
|
|
@@ -31821,7 +31857,7 @@ var Application = class Application extends Object$1 {
|
|
|
31821
31857
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
31822
31858
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
31823
31859
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
31824
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
31860
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
31825
31861
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
31826
31862
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
31827
31863
|
}
|
|
@@ -31829,7 +31865,7 @@ var Application = class Application extends Object$1 {
|
|
|
31829
31865
|
else throw new TypeError("The gateway must be of type URL.");
|
|
31830
31866
|
if ("gateways" in values && values.gateways != null) {
|
|
31831
31867
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
31832
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
31868
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
31833
31869
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
31834
31870
|
}
|
|
31835
31871
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
@@ -31867,7 +31903,7 @@ var Application = class Application extends Object$1 {
|
|
|
31867
31903
|
this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
|
|
31868
31904
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
31869
31905
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
31870
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
31906
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
31871
31907
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
31872
31908
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
31873
31909
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -31891,7 +31927,7 @@ var Application = class Application extends Object$1 {
|
|
|
31891
31927
|
if ("aliases" in values && values.aliases != null) {
|
|
31892
31928
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
31893
31929
|
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)) {
|
|
31894
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
31930
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
31895
31931
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
31896
31932
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
31897
31933
|
}
|
|
@@ -31902,7 +31938,7 @@ var Application = class Application extends Object$1 {
|
|
|
31902
31938
|
if ("services" in values && values.services != null) {
|
|
31903
31939
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
31904
31940
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
31905
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
31941
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
31906
31942
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
31907
31943
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
31908
31944
|
}
|
|
@@ -31922,7 +31958,8 @@ var Application = class Application extends Object$1 {
|
|
|
31922
31958
|
*
|
|
31923
31959
|
* @param values The values to update the clone with.
|
|
31924
31960
|
* @param options The options to use for cloning.
|
|
31925
|
-
* @returns The cloned instance.
|
|
31961
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
31962
|
+
* and URLs are shared with this instance.
|
|
31926
31963
|
*/
|
|
31927
31964
|
clone(values = {}, options = {}) {
|
|
31928
31965
|
if (this._warning != null) {
|
|
@@ -31933,15 +31970,15 @@ var Application = class Application extends Object$1 {
|
|
|
31933
31970
|
};
|
|
31934
31971
|
}
|
|
31935
31972
|
const clone = super.clone(values, options);
|
|
31936
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
31973
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
31937
31974
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
31938
31975
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
31939
31976
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
31940
31977
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
31941
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
31978
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
31942
31979
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
31943
31980
|
}
|
|
31944
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
31981
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
31945
31982
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
31946
31983
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
31947
31984
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -31950,12 +31987,12 @@ var Application = class Application extends Object$1 {
|
|
|
31950
31987
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
31951
31988
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
31952
31989
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
31953
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
31990
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
31954
31991
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
31955
31992
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
31956
31993
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
31957
31994
|
}
|
|
31958
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
31995
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
31959
31996
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
31960
31997
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
31961
31998
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -31964,99 +32001,99 @@ var Application = class Application extends Object$1 {
|
|
|
31964
32001
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
31965
32002
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
31966
32003
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
31967
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
32004
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
31968
32005
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
31969
32006
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
31970
32007
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
31971
32008
|
}
|
|
31972
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
32009
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
|
|
31973
32010
|
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
31974
32011
|
else throw new TypeError("The gateway must be of type URL.");
|
|
31975
32012
|
if ("gateways" in values && values.gateways != null) {
|
|
31976
32013
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
31977
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
32014
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
31978
32015
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
31979
32016
|
}
|
|
31980
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
32017
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
31981
32018
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
31982
32019
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
31983
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
32020
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
31984
32021
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
31985
32022
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
31986
32023
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
31987
32024
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
|
|
31988
32025
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
31989
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
32026
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
31990
32027
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
31991
32028
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
31992
32029
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
31993
32030
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
|
|
31994
32031
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
31995
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
32032
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
31996
32033
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
31997
32034
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
31998
32035
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
31999
32036
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
|
|
32000
32037
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
32001
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
32038
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
32002
32039
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
32003
32040
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
32004
32041
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
32005
32042
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
|
|
32006
32043
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
32007
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
32044
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
32008
32045
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
32009
32046
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
32010
32047
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
32011
32048
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
|
|
32012
32049
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
32013
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
32050
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
32014
32051
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
32015
32052
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
32016
32053
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
32017
32054
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
|
|
32018
32055
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
32019
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
32056
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
32020
32057
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
32021
32058
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
32022
32059
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
32023
32060
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
|
|
32024
32061
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
32025
|
-
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
|
|
32062
|
+
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
|
|
32026
32063
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
|
|
32027
32064
|
if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
|
|
32028
32065
|
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
|
|
32029
32066
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
|
|
32030
32067
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
32031
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
32068
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
32032
32069
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
32033
32070
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
32034
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
32071
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
32035
32072
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
32036
32073
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
32037
32074
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
32038
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
32075
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
32039
32076
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
32040
32077
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
32041
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
32078
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
32042
32079
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
32043
32080
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
32044
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
32081
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
32045
32082
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
32046
32083
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
32047
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
32084
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
32048
32085
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
32049
32086
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
32050
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
32087
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
32051
32088
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
32052
32089
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
32053
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
32090
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
32054
32091
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
32055
32092
|
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) {
|
|
32056
32093
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
32057
32094
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
|
|
32058
32095
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
32059
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
32096
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
32060
32097
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
32061
32098
|
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) {
|
|
32062
32099
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -32065,12 +32102,12 @@ var Application = class Application extends Object$1 {
|
|
|
32065
32102
|
if ("aliases" in values && values.aliases != null) {
|
|
32066
32103
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
32067
32104
|
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)) {
|
|
32068
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
32105
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
32069
32106
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
32070
32107
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
32071
32108
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
32072
32109
|
}
|
|
32073
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
32110
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
32074
32111
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
32075
32112
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
32076
32113
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -32079,15 +32116,15 @@ var Application = class Application extends Object$1 {
|
|
|
32079
32116
|
if ("services" in values && values.services != null) {
|
|
32080
32117
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
32081
32118
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
32082
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
32119
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
32083
32120
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
32084
32121
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
32085
32122
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
32086
32123
|
}
|
|
32087
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
32124
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
32088
32125
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
32089
32126
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
32090
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
32127
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
32091
32128
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
32092
32129
|
else throw new TypeError("The cat must be of type boolean.");
|
|
32093
32130
|
return clone;
|
|
@@ -37200,7 +37237,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
|
|
|
37200
37237
|
*
|
|
37201
37238
|
* @param values The values to update the clone with.
|
|
37202
37239
|
* @param options The options to use for cloning.
|
|
37203
|
-
* @returns The cloned instance.
|
|
37240
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
37241
|
+
* and URLs are shared with this instance.
|
|
37204
37242
|
*/
|
|
37205
37243
|
clone(values = {}, options = {}) {
|
|
37206
37244
|
if (this._warning != null) {
|
|
@@ -37396,7 +37434,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
|
|
|
37396
37434
|
*
|
|
37397
37435
|
* @param values The values to update the clone with.
|
|
37398
37436
|
* @param options The options to use for cloning.
|
|
37399
|
-
* @returns The cloned instance.
|
|
37437
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
37438
|
+
* and URLs are shared with this instance.
|
|
37400
37439
|
*/
|
|
37401
37440
|
clone(values = {}, options = {}) {
|
|
37402
37441
|
if (this._warning != null) {
|
|
@@ -37602,7 +37641,8 @@ var Article = class Article extends Object$1 {
|
|
|
37602
37641
|
*
|
|
37603
37642
|
* @param values The values to update the clone with.
|
|
37604
37643
|
* @param options The options to use for cloning.
|
|
37605
|
-
* @returns The cloned instance.
|
|
37644
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
37645
|
+
* and URLs are shared with this instance.
|
|
37606
37646
|
*/
|
|
37607
37647
|
clone(values = {}, options = {}) {
|
|
37608
37648
|
if (this._warning != null) {
|
|
@@ -37613,16 +37653,16 @@ var Article = class Article extends Object$1 {
|
|
|
37613
37653
|
};
|
|
37614
37654
|
}
|
|
37615
37655
|
const clone = super.clone(values, options);
|
|
37616
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
37656
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
37617
37657
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
37618
37658
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
37619
37659
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
37620
37660
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
|
|
37621
37661
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
37622
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
37662
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
37623
37663
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
37624
37664
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
37625
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
37665
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
37626
37666
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
37627
37667
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
37628
37668
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -38491,7 +38531,8 @@ var Document = class Document extends Object$1 {
|
|
|
38491
38531
|
*
|
|
38492
38532
|
* @param values The values to update the clone with.
|
|
38493
38533
|
* @param options The options to use for cloning.
|
|
38494
|
-
* @returns The cloned instance.
|
|
38534
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
38535
|
+
* and URLs are shared with this instance.
|
|
38495
38536
|
*/
|
|
38496
38537
|
clone(values = {}, options = {}) {
|
|
38497
38538
|
if (this._warning != null) {
|
|
@@ -38502,13 +38543,13 @@ var Document = class Document extends Object$1 {
|
|
|
38502
38543
|
};
|
|
38503
38544
|
}
|
|
38504
38545
|
const clone = super.clone(values, options);
|
|
38505
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
38546
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
38506
38547
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
38507
38548
|
else throw new TypeError("The width must be of type number.");
|
|
38508
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
38549
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
38509
38550
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
38510
38551
|
else throw new TypeError("The height must be of type number.");
|
|
38511
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
38552
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
|
|
38512
38553
|
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
38513
38554
|
else throw new TypeError("The digestMultibase must be of type string.");
|
|
38514
38555
|
return clone;
|
|
@@ -38851,7 +38892,8 @@ var Audio = class Audio extends Document {
|
|
|
38851
38892
|
*
|
|
38852
38893
|
* @param values The values to update the clone with.
|
|
38853
38894
|
* @param options The options to use for cloning.
|
|
38854
|
-
* @returns The cloned instance.
|
|
38895
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
38896
|
+
* and URLs are shared with this instance.
|
|
38855
38897
|
*/
|
|
38856
38898
|
clone(values = {}, options = {}) {
|
|
38857
38899
|
if (this._warning != null) {
|
|
@@ -39059,7 +39101,8 @@ var Ignore = class Ignore extends Activity {
|
|
|
39059
39101
|
*
|
|
39060
39102
|
* @param values The values to update the clone with.
|
|
39061
39103
|
* @param options The options to use for cloning.
|
|
39062
|
-
* @returns The cloned instance.
|
|
39104
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39105
|
+
* and URLs are shared with this instance.
|
|
39063
39106
|
*/
|
|
39064
39107
|
clone(values = {}, options = {}) {
|
|
39065
39108
|
if (this._warning != null) {
|
|
@@ -39254,7 +39297,8 @@ var Block = class Block extends Ignore {
|
|
|
39254
39297
|
*
|
|
39255
39298
|
* @param values The values to update the clone with.
|
|
39256
39299
|
* @param options The options to use for cloning.
|
|
39257
|
-
* @returns The cloned instance.
|
|
39300
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39301
|
+
* and URLs are shared with this instance.
|
|
39258
39302
|
*/
|
|
39259
39303
|
clone(values = {}, options = {}) {
|
|
39260
39304
|
if (this._warning != null) {
|
|
@@ -39465,7 +39509,8 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
39465
39509
|
*
|
|
39466
39510
|
* @param values The values to update the clone with.
|
|
39467
39511
|
* @param options The options to use for cloning.
|
|
39468
|
-
* @returns The cloned instance.
|
|
39512
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
39513
|
+
* and URLs are shared with this instance.
|
|
39469
39514
|
*/
|
|
39470
39515
|
clone(values = {}, options = {}) {
|
|
39471
39516
|
if (this._warning != null) {
|
|
@@ -39476,19 +39521,19 @@ var CollectionPage = class CollectionPage extends Collection {
|
|
|
39476
39521
|
};
|
|
39477
39522
|
}
|
|
39478
39523
|
const clone = super.clone(values, options);
|
|
39479
|
-
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
|
|
39524
|
+
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
|
|
39480
39525
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
|
|
39481
39526
|
if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
|
|
39482
39527
|
clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
|
|
39483
39528
|
clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = /* @__PURE__ */ new Set([0]);
|
|
39484
39529
|
} else throw new TypeError("The partOf must be of type Collection | URL.");
|
|
39485
|
-
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
|
|
39530
|
+
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
|
|
39486
39531
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
|
|
39487
39532
|
if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
|
|
39488
39533
|
clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
|
|
39489
39534
|
clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = /* @__PURE__ */ new Set([0]);
|
|
39490
39535
|
} else throw new TypeError("The next must be of type CollectionPage | URL.");
|
|
39491
|
-
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
|
|
39536
|
+
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
|
|
39492
39537
|
clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
|
|
39493
39538
|
if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
|
|
39494
39539
|
clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
|
|
@@ -40563,7 +40608,8 @@ var Create = class Create extends Activity {
|
|
|
40563
40608
|
*
|
|
40564
40609
|
* @param values The values to update the clone with.
|
|
40565
40610
|
* @param options The options to use for cloning.
|
|
40566
|
-
* @returns The cloned instance.
|
|
40611
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
40612
|
+
* and URLs are shared with this instance.
|
|
40567
40613
|
*/
|
|
40568
40614
|
clone(values = {}, options = {}) {
|
|
40569
40615
|
if (this._warning != null) {
|
|
@@ -40785,7 +40831,8 @@ var Delete = class Delete extends Activity {
|
|
|
40785
40831
|
*
|
|
40786
40832
|
* @param values The values to update the clone with.
|
|
40787
40833
|
* @param options The options to use for cloning.
|
|
40788
|
-
* @returns The cloned instance.
|
|
40834
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
40835
|
+
* and URLs are shared with this instance.
|
|
40789
40836
|
*/
|
|
40790
40837
|
clone(values = {}, options = {}) {
|
|
40791
40838
|
if (this._warning != null) {
|
|
@@ -41002,7 +41049,8 @@ var Dislike = class Dislike extends Activity {
|
|
|
41002
41049
|
*
|
|
41003
41050
|
* @param values The values to update the clone with.
|
|
41004
41051
|
* @param options The options to use for cloning.
|
|
41005
|
-
* @returns The cloned instance.
|
|
41052
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
41053
|
+
* and URLs are shared with this instance.
|
|
41006
41054
|
*/
|
|
41007
41055
|
clone(values = {}, options = {}) {
|
|
41008
41056
|
if (this._warning != null) {
|
|
@@ -41270,7 +41318,8 @@ var Endpoints = class {
|
|
|
41270
41318
|
*
|
|
41271
41319
|
* @param values The values to update the clone with.
|
|
41272
41320
|
* @param options The options to use for cloning.
|
|
41273
|
-
* @returns The cloned instance.
|
|
41321
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
41322
|
+
* and URLs are shared with this instance.
|
|
41274
41323
|
*/
|
|
41275
41324
|
clone(values = {}, options = {}) {
|
|
41276
41325
|
if (this._warning != null) {
|
|
@@ -41282,25 +41331,25 @@ var Endpoints = class {
|
|
|
41282
41331
|
}
|
|
41283
41332
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
41284
41333
|
copyPortableProvenance(this, clone);
|
|
41285
|
-
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
|
|
41334
|
+
clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
|
|
41286
41335
|
if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
|
|
41287
41336
|
else throw new TypeError("The proxyUrl must be of type URL.");
|
|
41288
|
-
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
|
|
41337
|
+
clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
|
|
41289
41338
|
if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
|
|
41290
41339
|
else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
|
|
41291
|
-
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
|
|
41340
|
+
clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
|
|
41292
41341
|
if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
|
|
41293
41342
|
else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
|
|
41294
|
-
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
|
|
41343
|
+
clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
|
|
41295
41344
|
if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
|
|
41296
41345
|
else throw new TypeError("The provideClientKey must be of type URL.");
|
|
41297
|
-
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
|
|
41346
|
+
clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
|
|
41298
41347
|
if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
|
|
41299
41348
|
else throw new TypeError("The signClientKey must be of type URL.");
|
|
41300
|
-
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
|
|
41349
|
+
clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
|
|
41301
41350
|
if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
|
|
41302
41351
|
else throw new TypeError("The sharedInbox must be of type URL.");
|
|
41303
|
-
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia;
|
|
41352
|
+
clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = this.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia.slice();
|
|
41304
41353
|
if ("uploadMedia" in values && values.uploadMedia != null) if (values.uploadMedia instanceof URL) clone.#_KukVKGqFRETxAxXA15YCYAA7XAT_uploadMedia = [values.uploadMedia];
|
|
41305
41354
|
else throw new TypeError("The uploadMedia must be of type URL.");
|
|
41306
41355
|
return clone;
|
|
@@ -41799,7 +41848,8 @@ var Event = class Event extends Object$1 {
|
|
|
41799
41848
|
*
|
|
41800
41849
|
* @param values The values to update the clone with.
|
|
41801
41850
|
* @param options The options to use for cloning.
|
|
41802
|
-
* @returns The cloned instance.
|
|
41851
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
41852
|
+
* and URLs are shared with this instance.
|
|
41803
41853
|
*/
|
|
41804
41854
|
clone(values = {}, options = {}) {
|
|
41805
41855
|
if (this._warning != null) {
|
|
@@ -42006,7 +42056,8 @@ var Flag = class Flag extends Activity {
|
|
|
42006
42056
|
*
|
|
42007
42057
|
* @param values The values to update the clone with.
|
|
42008
42058
|
* @param options The options to use for cloning.
|
|
42009
|
-
* @returns The cloned instance.
|
|
42059
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
42060
|
+
* and URLs are shared with this instance.
|
|
42010
42061
|
*/
|
|
42011
42062
|
clone(values = {}, options = {}) {
|
|
42012
42063
|
if (this._warning != null) {
|
|
@@ -42200,7 +42251,8 @@ var Follow = class Follow extends Activity {
|
|
|
42200
42251
|
*
|
|
42201
42252
|
* @param values The values to update the clone with.
|
|
42202
42253
|
* @param options The options to use for cloning.
|
|
42203
|
-
* @returns The cloned instance.
|
|
42254
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
42255
|
+
* and URLs are shared with this instance.
|
|
42204
42256
|
*/
|
|
42205
42257
|
clone(values = {}, options = {}) {
|
|
42206
42258
|
if (this._warning != null) {
|
|
@@ -42424,7 +42476,7 @@ var Group = class Group extends Object$1 {
|
|
|
42424
42476
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
42425
42477
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
42426
42478
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
42427
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
42479
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
42428
42480
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
42429
42481
|
}
|
|
42430
42482
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -42434,7 +42486,7 @@ var Group = class Group extends Object$1 {
|
|
|
42434
42486
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
42435
42487
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
42436
42488
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
42437
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
42489
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
42438
42490
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
42439
42491
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
42440
42492
|
}
|
|
@@ -42445,7 +42497,7 @@ var Group = class Group extends Object$1 {
|
|
|
42445
42497
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
42446
42498
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
42447
42499
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
42448
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
42500
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
42449
42501
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
42450
42502
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
42451
42503
|
}
|
|
@@ -42453,7 +42505,7 @@ var Group = class Group extends Object$1 {
|
|
|
42453
42505
|
else throw new TypeError("The gateway must be of type URL.");
|
|
42454
42506
|
if ("gateways" in values && values.gateways != null) {
|
|
42455
42507
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
42456
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
42508
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
42457
42509
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
42458
42510
|
}
|
|
42459
42511
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
@@ -42491,7 +42543,7 @@ var Group = class Group extends Object$1 {
|
|
|
42491
42543
|
this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
|
|
42492
42544
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
42493
42545
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
42494
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
42546
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
42495
42547
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
42496
42548
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
42497
42549
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -42515,7 +42567,7 @@ var Group = class Group extends Object$1 {
|
|
|
42515
42567
|
if ("aliases" in values && values.aliases != null) {
|
|
42516
42568
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
42517
42569
|
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)) {
|
|
42518
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
42570
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
42519
42571
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
42520
42572
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
42521
42573
|
}
|
|
@@ -42526,7 +42578,7 @@ var Group = class Group extends Object$1 {
|
|
|
42526
42578
|
if ("services" in values && values.services != null) {
|
|
42527
42579
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
42528
42580
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
42529
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
42581
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
42530
42582
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
42531
42583
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
42532
42584
|
}
|
|
@@ -42546,7 +42598,8 @@ var Group = class Group extends Object$1 {
|
|
|
42546
42598
|
*
|
|
42547
42599
|
* @param values The values to update the clone with.
|
|
42548
42600
|
* @param options The options to use for cloning.
|
|
42549
|
-
* @returns The cloned instance.
|
|
42601
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
42602
|
+
* and URLs are shared with this instance.
|
|
42550
42603
|
*/
|
|
42551
42604
|
clone(values = {}, options = {}) {
|
|
42552
42605
|
if (this._warning != null) {
|
|
@@ -42557,15 +42610,15 @@ var Group = class Group extends Object$1 {
|
|
|
42557
42610
|
};
|
|
42558
42611
|
}
|
|
42559
42612
|
const clone = super.clone(values, options);
|
|
42560
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
42613
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
42561
42614
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
42562
42615
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
42563
42616
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
42564
42617
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
42565
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
42618
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
42566
42619
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
42567
42620
|
}
|
|
42568
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
42621
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
42569
42622
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
42570
42623
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
42571
42624
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -42574,12 +42627,12 @@ var Group = class Group extends Object$1 {
|
|
|
42574
42627
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
42575
42628
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
42576
42629
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
42577
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
42630
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
42578
42631
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
42579
42632
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
42580
42633
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
42581
42634
|
}
|
|
42582
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
42635
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
42583
42636
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
42584
42637
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
42585
42638
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -42588,99 +42641,99 @@ var Group = class Group extends Object$1 {
|
|
|
42588
42641
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
42589
42642
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
42590
42643
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
42591
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
42644
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
42592
42645
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
42593
42646
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
42594
42647
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
42595
42648
|
}
|
|
42596
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
42649
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
|
|
42597
42650
|
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
42598
42651
|
else throw new TypeError("The gateway must be of type URL.");
|
|
42599
42652
|
if ("gateways" in values && values.gateways != null) {
|
|
42600
42653
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
42601
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
42654
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
42602
42655
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
42603
42656
|
}
|
|
42604
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
42657
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
42605
42658
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
42606
42659
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
42607
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
42660
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
42608
42661
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
42609
42662
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
42610
42663
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
42611
42664
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
|
|
42612
42665
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
42613
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
42666
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
42614
42667
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
42615
42668
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
42616
42669
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
42617
42670
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
|
|
42618
42671
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
42619
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
42672
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
42620
42673
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
42621
42674
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
42622
42675
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
42623
42676
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
|
|
42624
42677
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
42625
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
42678
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
42626
42679
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
42627
42680
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
42628
42681
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
42629
42682
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
|
|
42630
42683
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
42631
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
42684
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
42632
42685
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
42633
42686
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
42634
42687
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
42635
42688
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
|
|
42636
42689
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
42637
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
42690
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
42638
42691
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
42639
42692
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
42640
42693
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
42641
42694
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
|
|
42642
42695
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
42643
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
42696
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
42644
42697
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
42645
42698
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
42646
42699
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
42647
42700
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
|
|
42648
42701
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
42649
|
-
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
|
|
42702
|
+
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
|
|
42650
42703
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
|
|
42651
42704
|
if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
|
|
42652
42705
|
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
|
|
42653
42706
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
|
|
42654
42707
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
42655
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
42708
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
42656
42709
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
42657
42710
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
42658
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
42711
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
42659
42712
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
42660
42713
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
42661
42714
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
42662
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
42715
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
42663
42716
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
42664
42717
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
42665
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
42718
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
42666
42719
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
42667
42720
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
42668
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
42721
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
42669
42722
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
42670
42723
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
42671
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
42724
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
42672
42725
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
42673
42726
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
42674
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
42727
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
42675
42728
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
42676
42729
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
42677
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
42730
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
42678
42731
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
42679
42732
|
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) {
|
|
42680
42733
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
42681
42734
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
|
|
42682
42735
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
42683
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
42736
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
42684
42737
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
42685
42738
|
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) {
|
|
42686
42739
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -42689,12 +42742,12 @@ var Group = class Group extends Object$1 {
|
|
|
42689
42742
|
if ("aliases" in values && values.aliases != null) {
|
|
42690
42743
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
42691
42744
|
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)) {
|
|
42692
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
42745
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
42693
42746
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
42694
42747
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
42695
42748
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
42696
42749
|
}
|
|
42697
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
42750
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
42698
42751
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
42699
42752
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
42700
42753
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -42703,15 +42756,15 @@ var Group = class Group extends Object$1 {
|
|
|
42703
42756
|
if ("services" in values && values.services != null) {
|
|
42704
42757
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
42705
42758
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
42706
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
42759
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
42707
42760
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
42708
42761
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
42709
42762
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
42710
42763
|
}
|
|
42711
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
42764
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
42712
42765
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
42713
42766
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
42714
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
42767
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
42715
42768
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
42716
42769
|
else throw new TypeError("The cat must be of type boolean.");
|
|
42717
42770
|
return clone;
|
|
@@ -47885,7 +47938,7 @@ var Link = class Link {
|
|
|
47885
47938
|
else throw new TypeError("The rel must be of type string.");
|
|
47886
47939
|
if ("rels" in values && values.rels != null) {
|
|
47887
47940
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
|
|
47888
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
47941
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
47889
47942
|
else throw new TypeError("The rels must be an array of type string.");
|
|
47890
47943
|
}
|
|
47891
47944
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -47896,7 +47949,7 @@ var Link = class Link {
|
|
|
47896
47949
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
47897
47950
|
if ("names" in values && values.names != null) {
|
|
47898
47951
|
if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
|
|
47899
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
47952
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
47900
47953
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
47901
47954
|
}
|
|
47902
47955
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
@@ -47906,7 +47959,7 @@ var Link = class Link {
|
|
|
47906
47959
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
47907
47960
|
else throw new TypeError("The width must be of type number.");
|
|
47908
47961
|
if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
47909
|
-
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
47962
|
+
this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
47910
47963
|
for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
47911
47964
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
47912
47965
|
}
|
|
@@ -47921,7 +47974,8 @@ var Link = class Link {
|
|
|
47921
47974
|
*
|
|
47922
47975
|
* @param values The values to update the clone with.
|
|
47923
47976
|
* @param options The options to use for cloning.
|
|
47924
|
-
* @returns The cloned instance.
|
|
47977
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
47978
|
+
* and URLs are shared with this instance.
|
|
47925
47979
|
*/
|
|
47926
47980
|
clone(values = {}, options = {}) {
|
|
47927
47981
|
if (this._warning != null) {
|
|
@@ -47933,44 +47987,44 @@ var Link = class Link {
|
|
|
47933
47987
|
}
|
|
47934
47988
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
47935
47989
|
copyPortableProvenance(this, clone);
|
|
47936
|
-
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
|
|
47990
|
+
clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
|
|
47937
47991
|
if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
|
|
47938
47992
|
else throw new TypeError("The href must be of type URL.");
|
|
47939
|
-
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
|
|
47993
|
+
clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
|
|
47940
47994
|
if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
|
|
47941
47995
|
else throw new TypeError("The rel must be of type string.");
|
|
47942
47996
|
if ("rels" in values && values.rels != null) {
|
|
47943
47997
|
if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
|
|
47944
|
-
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
|
|
47998
|
+
if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
|
|
47945
47999
|
else throw new TypeError("The rels must be an array of type string.");
|
|
47946
48000
|
}
|
|
47947
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
48001
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
47948
48002
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
47949
48003
|
else throw new TypeError("The mediaType must be of type string.");
|
|
47950
|
-
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase;
|
|
48004
|
+
clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = this.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase.slice();
|
|
47951
48005
|
if ("digestMultibase" in values && values.digestMultibase != null) if (typeof values.digestMultibase === "string") clone.#_2ydcBe182LRq82jFGE6Rxw6VfvEM_digestMultibase = [values.digestMultibase];
|
|
47952
48006
|
else throw new TypeError("The digestMultibase must be of type string.");
|
|
47953
|
-
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
|
|
48007
|
+
clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
|
|
47954
48008
|
if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof LanguageString$1) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
|
|
47955
48009
|
else throw new TypeError("The name must be of type string | LanguageString.");
|
|
47956
48010
|
if ("names" in values && values.names != null) {
|
|
47957
48011
|
if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
|
|
47958
|
-
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
|
|
48012
|
+
if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
|
|
47959
48013
|
else throw new TypeError("The names must be an array of type string | LanguageString.");
|
|
47960
48014
|
}
|
|
47961
|
-
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
|
|
48015
|
+
clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
|
|
47962
48016
|
if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
|
|
47963
48017
|
else throw new TypeError("The language must be of type Intl.Locale.");
|
|
47964
|
-
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
|
|
48018
|
+
clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
|
|
47965
48019
|
if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
|
|
47966
48020
|
else throw new TypeError("The height must be of type number.");
|
|
47967
|
-
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
|
|
48021
|
+
clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
|
|
47968
48022
|
if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
|
|
47969
48023
|
else throw new TypeError("The width must be of type number.");
|
|
47970
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
|
|
48024
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
|
|
47971
48025
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
|
|
47972
48026
|
if ("previews" in values && values.previews != null) if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
|
|
47973
|
-
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
|
|
48027
|
+
clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
|
|
47974
48028
|
clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
|
|
47975
48029
|
for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
|
|
47976
48030
|
} else throw new TypeError("The previews must be an array of type Link | Object | URL.");
|
|
@@ -48665,7 +48719,7 @@ var Link = class Link {
|
|
|
48665
48719
|
let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
|
|
48666
48720
|
for (const v of _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array == null ? [] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array.length === 1 && "@list" in _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0] ? _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array[0]["@list"] : _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array) {
|
|
48667
48721
|
if (v == null) continue;
|
|
48668
|
-
const decoded = new Intl.Locale(v["@value"]);
|
|
48722
|
+
const decoded = new Intl.Locale(normalizeLanguageTag(v["@value"]));
|
|
48669
48723
|
if (typeof decoded === "undefined") {
|
|
48670
48724
|
shouldCacheJsonLd = false;
|
|
48671
48725
|
continue;
|
|
@@ -48903,7 +48957,8 @@ var Hashtag = class Hashtag extends Link {
|
|
|
48903
48957
|
*
|
|
48904
48958
|
* @param values The values to update the clone with.
|
|
48905
48959
|
* @param options The options to use for cloning.
|
|
48906
|
-
* @returns The cloned instance.
|
|
48960
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
48961
|
+
* and URLs are shared with this instance.
|
|
48907
48962
|
*/
|
|
48908
48963
|
clone(values = {}, options = {}) {
|
|
48909
48964
|
if (this._warning != null) {
|
|
@@ -49097,7 +49152,8 @@ var Image = class Image extends Document {
|
|
|
49097
49152
|
*
|
|
49098
49153
|
* @param values The values to update the clone with.
|
|
49099
49154
|
* @param options The options to use for cloning.
|
|
49100
|
-
* @returns The cloned instance.
|
|
49155
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
49156
|
+
* and URLs are shared with this instance.
|
|
49101
49157
|
*/
|
|
49102
49158
|
clone(values = {}, options = {}) {
|
|
49103
49159
|
if (this._warning != null) {
|
|
@@ -49306,7 +49362,8 @@ var Offer = class Offer extends Activity {
|
|
|
49306
49362
|
*
|
|
49307
49363
|
* @param values The values to update the clone with.
|
|
49308
49364
|
* @param options The options to use for cloning.
|
|
49309
|
-
* @returns The cloned instance.
|
|
49365
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
49366
|
+
* and URLs are shared with this instance.
|
|
49310
49367
|
*/
|
|
49311
49368
|
clone(values = {}, options = {}) {
|
|
49312
49369
|
if (this._warning != null) {
|
|
@@ -49499,7 +49556,8 @@ var Invite = class Invite extends Offer {
|
|
|
49499
49556
|
*
|
|
49500
49557
|
* @param values The values to update the clone with.
|
|
49501
49558
|
* @param options The options to use for cloning.
|
|
49502
|
-
* @returns The cloned instance.
|
|
49559
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
49560
|
+
* and URLs are shared with this instance.
|
|
49503
49561
|
*/
|
|
49504
49562
|
clone(values = {}, options = {}) {
|
|
49505
49563
|
if (this._warning != null) {
|
|
@@ -49691,7 +49749,8 @@ var Join = class Join extends Activity {
|
|
|
49691
49749
|
*
|
|
49692
49750
|
* @param values The values to update the clone with.
|
|
49693
49751
|
* @param options The options to use for cloning.
|
|
49694
|
-
* @returns The cloned instance.
|
|
49752
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
49753
|
+
* and URLs are shared with this instance.
|
|
49695
49754
|
*/
|
|
49696
49755
|
clone(values = {}, options = {}) {
|
|
49697
49756
|
if (this._warning != null) {
|
|
@@ -49883,7 +49942,8 @@ var Leave = class Leave extends Activity {
|
|
|
49883
49942
|
*
|
|
49884
49943
|
* @param values The values to update the clone with.
|
|
49885
49944
|
* @param options The options to use for cloning.
|
|
49886
|
-
* @returns The cloned instance.
|
|
49945
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
49946
|
+
* and URLs are shared with this instance.
|
|
49887
49947
|
*/
|
|
49888
49948
|
clone(values = {}, options = {}) {
|
|
49889
49949
|
if (this._warning != null) {
|
|
@@ -50075,7 +50135,8 @@ var Like = class Like extends Activity {
|
|
|
50075
50135
|
*
|
|
50076
50136
|
* @param values The values to update the clone with.
|
|
50077
50137
|
* @param options The options to use for cloning.
|
|
50078
|
-
* @returns The cloned instance.
|
|
50138
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50139
|
+
* and URLs are shared with this instance.
|
|
50079
50140
|
*/
|
|
50080
50141
|
clone(values = {}, options = {}) {
|
|
50081
50142
|
if (this._warning != null) {
|
|
@@ -50270,7 +50331,8 @@ var Listen = class Listen extends Activity {
|
|
|
50270
50331
|
*
|
|
50271
50332
|
* @param values The values to update the clone with.
|
|
50272
50333
|
* @param options The options to use for cloning.
|
|
50273
|
-
* @returns The cloned instance.
|
|
50334
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50335
|
+
* and URLs are shared with this instance.
|
|
50274
50336
|
*/
|
|
50275
50337
|
clone(values = {}, options = {}) {
|
|
50276
50338
|
if (this._warning != null) {
|
|
@@ -50461,7 +50523,8 @@ var Mention = class Mention extends Link {
|
|
|
50461
50523
|
*
|
|
50462
50524
|
* @param values The values to update the clone with.
|
|
50463
50525
|
* @param options The options to use for cloning.
|
|
50464
|
-
* @returns The cloned instance.
|
|
50526
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50527
|
+
* and URLs are shared with this instance.
|
|
50465
50528
|
*/
|
|
50466
50529
|
clone(values = {}, options = {}) {
|
|
50467
50530
|
if (this._warning != null) {
|
|
@@ -50657,7 +50720,8 @@ var Move = class Move extends Activity {
|
|
|
50657
50720
|
*
|
|
50658
50721
|
* @param values The values to update the clone with.
|
|
50659
50722
|
* @param options The options to use for cloning.
|
|
50660
|
-
* @returns The cloned instance.
|
|
50723
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50724
|
+
* and URLs are shared with this instance.
|
|
50661
50725
|
*/
|
|
50662
50726
|
clone(values = {}, options = {}) {
|
|
50663
50727
|
if (this._warning != null) {
|
|
@@ -50864,7 +50928,8 @@ var Note = class Note extends Object$1 {
|
|
|
50864
50928
|
*
|
|
50865
50929
|
* @param values The values to update the clone with.
|
|
50866
50930
|
* @param options The options to use for cloning.
|
|
50867
|
-
* @returns The cloned instance.
|
|
50931
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
50932
|
+
* and URLs are shared with this instance.
|
|
50868
50933
|
*/
|
|
50869
50934
|
clone(values = {}, options = {}) {
|
|
50870
50935
|
if (this._warning != null) {
|
|
@@ -50875,16 +50940,16 @@ var Note = class Note extends Object$1 {
|
|
|
50875
50940
|
};
|
|
50876
50941
|
}
|
|
50877
50942
|
const clone = super.clone(values, options);
|
|
50878
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
50943
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
50879
50944
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
50880
50945
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
50881
50946
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
50882
50947
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
|
|
50883
50948
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
50884
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
50949
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
50885
50950
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
50886
50951
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
50887
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
50952
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
50888
50953
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
50889
50954
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
50890
50955
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -51738,7 +51803,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
51738
51803
|
constructor(values, options = {}) {
|
|
51739
51804
|
super(values, options);
|
|
51740
51805
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
51741
|
-
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
51806
|
+
this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
51742
51807
|
for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
51743
51808
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
51744
51809
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
@@ -51755,7 +51820,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
51755
51820
|
*
|
|
51756
51821
|
* @param values The values to update the clone with.
|
|
51757
51822
|
* @param options The options to use for cloning.
|
|
51758
|
-
* @returns The cloned instance.
|
|
51823
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
51824
|
+
* and URLs are shared with this instance.
|
|
51759
51825
|
*/
|
|
51760
51826
|
clone(values = {}, options = {}) {
|
|
51761
51827
|
if (this._warning != null) {
|
|
@@ -51766,14 +51832,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
|
|
|
51766
51832
|
};
|
|
51767
51833
|
}
|
|
51768
51834
|
const clone = super.clone(values, options);
|
|
51769
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
|
|
51835
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
|
|
51770
51836
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
|
|
51771
51837
|
if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
|
|
51772
|
-
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
|
|
51838
|
+
clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
|
|
51773
51839
|
clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
|
|
51774
51840
|
for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
|
|
51775
51841
|
} else throw new TypeError("The items must be an array of type Object | Link | URL.");
|
|
51776
|
-
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
|
|
51842
|
+
clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
|
|
51777
51843
|
if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
|
|
51778
51844
|
else throw new TypeError("The startIndex must be of type number.");
|
|
51779
51845
|
return clone;
|
|
@@ -52473,7 +52539,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52473
52539
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
52474
52540
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
52475
52541
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
52476
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
52542
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
52477
52543
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
52478
52544
|
}
|
|
52479
52545
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -52483,7 +52549,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52483
52549
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
52484
52550
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
52485
52551
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
52486
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
52552
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
52487
52553
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
52488
52554
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
52489
52555
|
}
|
|
@@ -52494,7 +52560,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52494
52560
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
52495
52561
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
52496
52562
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
52497
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
52563
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
52498
52564
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
52499
52565
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
52500
52566
|
}
|
|
@@ -52502,7 +52568,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52502
52568
|
else throw new TypeError("The gateway must be of type URL.");
|
|
52503
52569
|
if ("gateways" in values && values.gateways != null) {
|
|
52504
52570
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
52505
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
52571
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
52506
52572
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
52507
52573
|
}
|
|
52508
52574
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
@@ -52540,7 +52606,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52540
52606
|
this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
|
|
52541
52607
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
52542
52608
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
52543
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
52609
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
52544
52610
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
52545
52611
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
52546
52612
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -52564,7 +52630,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52564
52630
|
if ("aliases" in values && values.aliases != null) {
|
|
52565
52631
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
52566
52632
|
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)) {
|
|
52567
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
52633
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
52568
52634
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
52569
52635
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
52570
52636
|
}
|
|
@@ -52575,7 +52641,7 @@ var Organization = class Organization extends Object$1 {
|
|
|
52575
52641
|
if ("services" in values && values.services != null) {
|
|
52576
52642
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
52577
52643
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
52578
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
52644
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
52579
52645
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
52580
52646
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
52581
52647
|
}
|
|
@@ -52595,7 +52661,8 @@ var Organization = class Organization extends Object$1 {
|
|
|
52595
52661
|
*
|
|
52596
52662
|
* @param values The values to update the clone with.
|
|
52597
52663
|
* @param options The options to use for cloning.
|
|
52598
|
-
* @returns The cloned instance.
|
|
52664
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
52665
|
+
* and URLs are shared with this instance.
|
|
52599
52666
|
*/
|
|
52600
52667
|
clone(values = {}, options = {}) {
|
|
52601
52668
|
if (this._warning != null) {
|
|
@@ -52606,15 +52673,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
52606
52673
|
};
|
|
52607
52674
|
}
|
|
52608
52675
|
const clone = super.clone(values, options);
|
|
52609
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
52676
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
52610
52677
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
52611
52678
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
52612
52679
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
52613
52680
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
52614
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
52681
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
52615
52682
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
52616
52683
|
}
|
|
52617
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
52684
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
52618
52685
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
52619
52686
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
52620
52687
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -52623,12 +52690,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
52623
52690
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
52624
52691
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
52625
52692
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
52626
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
52693
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
52627
52694
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
52628
52695
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
52629
52696
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
52630
52697
|
}
|
|
52631
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
52698
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
52632
52699
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
52633
52700
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
52634
52701
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -52637,99 +52704,99 @@ var Organization = class Organization extends Object$1 {
|
|
|
52637
52704
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
52638
52705
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
52639
52706
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
52640
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
52707
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
52641
52708
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
52642
52709
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
52643
52710
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
52644
52711
|
}
|
|
52645
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
52712
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
|
|
52646
52713
|
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
52647
52714
|
else throw new TypeError("The gateway must be of type URL.");
|
|
52648
52715
|
if ("gateways" in values && values.gateways != null) {
|
|
52649
52716
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
52650
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
52717
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
52651
52718
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
52652
52719
|
}
|
|
52653
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
52720
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
52654
52721
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
52655
52722
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
52656
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
52723
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
52657
52724
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
52658
52725
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
52659
52726
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
52660
52727
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
|
|
52661
52728
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
52662
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
52729
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
52663
52730
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
52664
52731
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
52665
52732
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
52666
52733
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
|
|
52667
52734
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
52668
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
52735
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
52669
52736
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
52670
52737
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
52671
52738
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
52672
52739
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
|
|
52673
52740
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
52674
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
52741
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
52675
52742
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
52676
52743
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
52677
52744
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
52678
52745
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
|
|
52679
52746
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
52680
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
52747
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
52681
52748
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
52682
52749
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
52683
52750
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
52684
52751
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
|
|
52685
52752
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
52686
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
52753
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
52687
52754
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
52688
52755
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
52689
52756
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
52690
52757
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
|
|
52691
52758
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
52692
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
52759
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
52693
52760
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
52694
52761
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
52695
52762
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
52696
52763
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
|
|
52697
52764
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
52698
|
-
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
|
|
52765
|
+
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
|
|
52699
52766
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
|
|
52700
52767
|
if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
|
|
52701
52768
|
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
|
|
52702
52769
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
|
|
52703
52770
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
52704
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
52771
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
52705
52772
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
52706
52773
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
52707
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
52774
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
52708
52775
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
52709
52776
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
52710
52777
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
52711
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
52778
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
52712
52779
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
52713
52780
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
52714
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
52781
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
52715
52782
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
52716
52783
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
52717
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
52784
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
52718
52785
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
52719
52786
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
52720
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
52787
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
52721
52788
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
52722
52789
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
52723
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
52790
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
52724
52791
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
52725
52792
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
52726
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
52793
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
52727
52794
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
52728
52795
|
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) {
|
|
52729
52796
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
52730
52797
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
|
|
52731
52798
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
52732
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
52799
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
52733
52800
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
52734
52801
|
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) {
|
|
52735
52802
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -52738,12 +52805,12 @@ var Organization = class Organization extends Object$1 {
|
|
|
52738
52805
|
if ("aliases" in values && values.aliases != null) {
|
|
52739
52806
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
52740
52807
|
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)) {
|
|
52741
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
52808
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
52742
52809
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
52743
52810
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
52744
52811
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
52745
52812
|
}
|
|
52746
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
52813
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
52747
52814
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
52748
52815
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
52749
52816
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -52752,15 +52819,15 @@ var Organization = class Organization extends Object$1 {
|
|
|
52752
52819
|
if ("services" in values && values.services != null) {
|
|
52753
52820
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
52754
52821
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
52755
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
52822
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
52756
52823
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
52757
52824
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
52758
52825
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
52759
52826
|
}
|
|
52760
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
52827
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
52761
52828
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
52762
52829
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
52763
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
52830
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
52764
52831
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
52765
52832
|
else throw new TypeError("The cat must be of type boolean.");
|
|
52766
52833
|
return clone;
|
|
@@ -57871,7 +57938,8 @@ var Page = class Page extends Document {
|
|
|
57871
57938
|
*
|
|
57872
57939
|
* @param values The values to update the clone with.
|
|
57873
57940
|
* @param options The options to use for cloning.
|
|
57874
|
-
* @returns The cloned instance.
|
|
57941
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
57942
|
+
* and URLs are shared with this instance.
|
|
57875
57943
|
*/
|
|
57876
57944
|
clone(values = {}, options = {}) {
|
|
57877
57945
|
if (this._warning != null) {
|
|
@@ -58108,7 +58176,7 @@ var Person = class Person extends Object$1 {
|
|
|
58108
58176
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
58109
58177
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
58110
58178
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
58111
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
58179
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
58112
58180
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
58113
58181
|
}
|
|
58114
58182
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -58118,7 +58186,7 @@ var Person = class Person extends Object$1 {
|
|
|
58118
58186
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
58119
58187
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
58120
58188
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
58121
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
58189
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
58122
58190
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
58123
58191
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
58124
58192
|
}
|
|
@@ -58129,7 +58197,7 @@ var Person = class Person extends Object$1 {
|
|
|
58129
58197
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
58130
58198
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
58131
58199
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
58132
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
58200
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
58133
58201
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
58134
58202
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
58135
58203
|
}
|
|
@@ -58137,7 +58205,7 @@ var Person = class Person extends Object$1 {
|
|
|
58137
58205
|
else throw new TypeError("The gateway must be of type URL.");
|
|
58138
58206
|
if ("gateways" in values && values.gateways != null) {
|
|
58139
58207
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
58140
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
58208
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
58141
58209
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
58142
58210
|
}
|
|
58143
58211
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
@@ -58175,7 +58243,7 @@ var Person = class Person extends Object$1 {
|
|
|
58175
58243
|
this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
|
|
58176
58244
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
58177
58245
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
58178
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
58246
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
58179
58247
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
58180
58248
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
58181
58249
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -58199,7 +58267,7 @@ var Person = class Person extends Object$1 {
|
|
|
58199
58267
|
if ("aliases" in values && values.aliases != null) {
|
|
58200
58268
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
58201
58269
|
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)) {
|
|
58202
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
58270
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
58203
58271
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
58204
58272
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
58205
58273
|
}
|
|
@@ -58210,7 +58278,7 @@ var Person = class Person extends Object$1 {
|
|
|
58210
58278
|
if ("services" in values && values.services != null) {
|
|
58211
58279
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
58212
58280
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
58213
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
58281
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
58214
58282
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
58215
58283
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
58216
58284
|
}
|
|
@@ -58230,7 +58298,8 @@ var Person = class Person extends Object$1 {
|
|
|
58230
58298
|
*
|
|
58231
58299
|
* @param values The values to update the clone with.
|
|
58232
58300
|
* @param options The options to use for cloning.
|
|
58233
|
-
* @returns The cloned instance.
|
|
58301
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
58302
|
+
* and URLs are shared with this instance.
|
|
58234
58303
|
*/
|
|
58235
58304
|
clone(values = {}, options = {}) {
|
|
58236
58305
|
if (this._warning != null) {
|
|
@@ -58241,15 +58310,15 @@ var Person = class Person extends Object$1 {
|
|
|
58241
58310
|
};
|
|
58242
58311
|
}
|
|
58243
58312
|
const clone = super.clone(values, options);
|
|
58244
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
58313
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
58245
58314
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
58246
58315
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
58247
58316
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
58248
58317
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
58249
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
58318
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
58250
58319
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
58251
58320
|
}
|
|
58252
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
58321
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
58253
58322
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
58254
58323
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
58255
58324
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -58258,12 +58327,12 @@ var Person = class Person extends Object$1 {
|
|
|
58258
58327
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
58259
58328
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
58260
58329
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
58261
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
58330
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
58262
58331
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
58263
58332
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
58264
58333
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
58265
58334
|
}
|
|
58266
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
58335
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
58267
58336
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
58268
58337
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
58269
58338
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -58272,99 +58341,99 @@ var Person = class Person extends Object$1 {
|
|
|
58272
58341
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
58273
58342
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
58274
58343
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
58275
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
58344
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
58276
58345
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
58277
58346
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
58278
58347
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
58279
58348
|
}
|
|
58280
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
58349
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
|
|
58281
58350
|
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
58282
58351
|
else throw new TypeError("The gateway must be of type URL.");
|
|
58283
58352
|
if ("gateways" in values && values.gateways != null) {
|
|
58284
58353
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
58285
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
58354
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
58286
58355
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
58287
58356
|
}
|
|
58288
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
58357
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
58289
58358
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
58290
58359
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
58291
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
58360
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
58292
58361
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
58293
58362
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
58294
58363
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
58295
58364
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
|
|
58296
58365
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
58297
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
58366
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
58298
58367
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
58299
58368
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
58300
58369
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
58301
58370
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
|
|
58302
58371
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
58303
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
58372
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
58304
58373
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
58305
58374
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
58306
58375
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
58307
58376
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
|
|
58308
58377
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
58309
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
58378
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
58310
58379
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
58311
58380
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
58312
58381
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
58313
58382
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
|
|
58314
58383
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
58315
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
58384
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
58316
58385
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
58317
58386
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
58318
58387
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
58319
58388
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
|
|
58320
58389
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
58321
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
58390
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
58322
58391
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
58323
58392
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
58324
58393
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
58325
58394
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
|
|
58326
58395
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
58327
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
58396
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
58328
58397
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
58329
58398
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
58330
58399
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
58331
58400
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
|
|
58332
58401
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
58333
|
-
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
|
|
58402
|
+
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
|
|
58334
58403
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
|
|
58335
58404
|
if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
|
|
58336
58405
|
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
|
|
58337
58406
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
|
|
58338
58407
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
58339
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
58408
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
58340
58409
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
58341
58410
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
58342
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
58411
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
58343
58412
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
58344
58413
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
58345
58414
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
58346
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
58415
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
58347
58416
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
58348
58417
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
58349
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
58418
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
58350
58419
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
58351
58420
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
58352
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
58421
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
58353
58422
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
58354
58423
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
58355
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
58424
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
58356
58425
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
58357
58426
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
58358
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
58427
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
58359
58428
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
58360
58429
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
58361
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
58430
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
58362
58431
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
58363
58432
|
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) {
|
|
58364
58433
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
58365
58434
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
|
|
58366
58435
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
58367
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
58436
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
58368
58437
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
58369
58438
|
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) {
|
|
58370
58439
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -58373,12 +58442,12 @@ var Person = class Person extends Object$1 {
|
|
|
58373
58442
|
if ("aliases" in values && values.aliases != null) {
|
|
58374
58443
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
58375
58444
|
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)) {
|
|
58376
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
58445
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
58377
58446
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
58378
58447
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
58379
58448
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
58380
58449
|
}
|
|
58381
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
58450
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
58382
58451
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
58383
58452
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
58384
58453
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -58387,15 +58456,15 @@ var Person = class Person extends Object$1 {
|
|
|
58387
58456
|
if ("services" in values && values.services != null) {
|
|
58388
58457
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
58389
58458
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
58390
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
58459
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
58391
58460
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
58392
58461
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
58393
58462
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
58394
58463
|
}
|
|
58395
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
58464
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
58396
58465
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
58397
58466
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
58398
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
58467
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
58399
58468
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
58400
58469
|
else throw new TypeError("The cat must be of type boolean.");
|
|
58401
58470
|
return clone;
|
|
@@ -63526,7 +63595,8 @@ var Place = class Place extends Object$1 {
|
|
|
63526
63595
|
*
|
|
63527
63596
|
* @param values The values to update the clone with.
|
|
63528
63597
|
* @param options The options to use for cloning.
|
|
63529
|
-
* @returns The cloned instance.
|
|
63598
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
63599
|
+
* and URLs are shared with this instance.
|
|
63530
63600
|
*/
|
|
63531
63601
|
clone(values = {}, options = {}) {
|
|
63532
63602
|
if (this._warning != null) {
|
|
@@ -63537,22 +63607,22 @@ var Place = class Place extends Object$1 {
|
|
|
63537
63607
|
};
|
|
63538
63608
|
}
|
|
63539
63609
|
const clone = super.clone(values, options);
|
|
63540
|
-
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
|
|
63610
|
+
clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
|
|
63541
63611
|
if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
|
|
63542
63612
|
else throw new TypeError("The accuracy must be of type number.");
|
|
63543
|
-
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
|
|
63613
|
+
clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
|
|
63544
63614
|
if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
|
|
63545
63615
|
else throw new TypeError("The altitude must be of type number.");
|
|
63546
|
-
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
|
|
63616
|
+
clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
|
|
63547
63617
|
if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
|
|
63548
63618
|
else throw new TypeError("The latitude must be of type number.");
|
|
63549
|
-
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
|
|
63619
|
+
clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
|
|
63550
63620
|
if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
|
|
63551
63621
|
else throw new TypeError("The longitude must be of type number.");
|
|
63552
|
-
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
|
|
63622
|
+
clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
|
|
63553
63623
|
if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
|
|
63554
63624
|
else throw new TypeError("The radius must be of type number.");
|
|
63555
|
-
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
|
|
63625
|
+
clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
|
|
63556
63626
|
if ("units" in values && values.units != null) if (values.units == "cm" || values.units == "feet" || values.units == "inches" || values.units == "km" || values.units == "m" || values.units == "miles" || values.units instanceof URL) clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = [values.units];
|
|
63557
63627
|
else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
|
|
63558
63628
|
return clone;
|
|
@@ -64037,7 +64107,8 @@ var Profile = class Profile extends Object$1 {
|
|
|
64037
64107
|
*
|
|
64038
64108
|
* @param values The values to update the clone with.
|
|
64039
64109
|
* @param options The options to use for cloning.
|
|
64040
|
-
* @returns The cloned instance.
|
|
64110
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
64111
|
+
* and URLs are shared with this instance.
|
|
64041
64112
|
*/
|
|
64042
64113
|
clone(values = {}, options = {}) {
|
|
64043
64114
|
if (this._warning != null) {
|
|
@@ -64048,7 +64119,7 @@ var Profile = class Profile extends Object$1 {
|
|
|
64048
64119
|
};
|
|
64049
64120
|
}
|
|
64050
64121
|
const clone = super.clone(values, options);
|
|
64051
|
-
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
|
|
64122
|
+
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
|
|
64052
64123
|
clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
|
|
64053
64124
|
if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
|
|
64054
64125
|
clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
|
|
@@ -64531,11 +64602,11 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
64531
64602
|
constructor(values, options = {}) {
|
|
64532
64603
|
super(values, options);
|
|
64533
64604
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
64534
|
-
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
64605
|
+
this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
64535
64606
|
for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
64536
64607
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
64537
64608
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
64538
|
-
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
64609
|
+
this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
64539
64610
|
for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
64540
64611
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
64541
64612
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
@@ -64564,7 +64635,8 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
64564
64635
|
*
|
|
64565
64636
|
* @param values The values to update the clone with.
|
|
64566
64637
|
* @param options The options to use for cloning.
|
|
64567
|
-
* @returns The cloned instance.
|
|
64638
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
64639
|
+
* and URLs are shared with this instance.
|
|
64568
64640
|
*/
|
|
64569
64641
|
clone(values = {}, options = {}) {
|
|
64570
64642
|
if (this._warning != null) {
|
|
@@ -64575,36 +64647,36 @@ var Question = class Question extends IntransitiveActivity {
|
|
|
64575
64647
|
};
|
|
64576
64648
|
}
|
|
64577
64649
|
const clone = super.clone(values, options);
|
|
64578
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
|
|
64650
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
|
|
64579
64651
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
|
|
64580
64652
|
if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
64581
|
-
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
|
|
64653
|
+
clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
|
|
64582
64654
|
clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
|
|
64583
64655
|
for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
|
|
64584
64656
|
} else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
|
|
64585
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
|
|
64657
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
|
|
64586
64658
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
|
|
64587
64659
|
if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
64588
|
-
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
|
|
64660
|
+
clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
|
|
64589
64661
|
clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
|
|
64590
64662
|
for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
|
|
64591
64663
|
} else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
|
|
64592
|
-
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
|
|
64664
|
+
clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
|
|
64593
64665
|
if ("closed" in values && values.closed != null) if (isTemporalInstant(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
|
|
64594
64666
|
else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
|
|
64595
|
-
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
|
|
64667
|
+
clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
|
|
64596
64668
|
if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
|
|
64597
64669
|
else throw new TypeError("The voters must be of type number.");
|
|
64598
|
-
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
|
|
64670
|
+
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
|
|
64599
64671
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
|
|
64600
64672
|
if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
|
|
64601
64673
|
clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
|
|
64602
64674
|
clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = /* @__PURE__ */ new Set([0]);
|
|
64603
64675
|
} else throw new TypeError("The quote must be of type Object | URL.");
|
|
64604
|
-
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
|
|
64676
|
+
clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
|
|
64605
64677
|
if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
|
|
64606
64678
|
else throw new TypeError("The quoteUrl must be of type URL.");
|
|
64607
|
-
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
|
|
64679
|
+
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
|
|
64608
64680
|
clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
|
|
64609
64681
|
if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
|
|
64610
64682
|
clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
|
|
@@ -66016,7 +66088,8 @@ var Read = class Read extends Activity {
|
|
|
66016
66088
|
*
|
|
66017
66089
|
* @param values The values to update the clone with.
|
|
66018
66090
|
* @param options The options to use for cloning.
|
|
66019
|
-
* @returns The cloned instance.
|
|
66091
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
66092
|
+
* and URLs are shared with this instance.
|
|
66020
66093
|
*/
|
|
66021
66094
|
clone(values = {}, options = {}) {
|
|
66022
66095
|
if (this._warning != null) {
|
|
@@ -66208,7 +66281,8 @@ var Reject = class Reject extends Activity {
|
|
|
66208
66281
|
*
|
|
66209
66282
|
* @param values The values to update the clone with.
|
|
66210
66283
|
* @param options The options to use for cloning.
|
|
66211
|
-
* @returns The cloned instance.
|
|
66284
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
66285
|
+
* and URLs are shared with this instance.
|
|
66212
66286
|
*/
|
|
66213
66287
|
clone(values = {}, options = {}) {
|
|
66214
66288
|
if (this._warning != null) {
|
|
@@ -66411,7 +66485,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66411
66485
|
if ("objects" in values && values.objects != null) {
|
|
66412
66486
|
if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
|
|
66413
66487
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
66414
|
-
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
66488
|
+
this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
66415
66489
|
for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
66416
66490
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
66417
66491
|
}
|
|
@@ -66422,7 +66496,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66422
66496
|
if ("relationships" in values && values.relationships != null) {
|
|
66423
66497
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
|
|
66424
66498
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
66425
|
-
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
66499
|
+
this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
66426
66500
|
for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
66427
66501
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
66428
66502
|
}
|
|
@@ -66438,7 +66512,8 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66438
66512
|
*
|
|
66439
66513
|
* @param values The values to update the clone with.
|
|
66440
66514
|
* @param options The options to use for cloning.
|
|
66441
|
-
* @returns The cloned instance.
|
|
66515
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
66516
|
+
* and URLs are shared with this instance.
|
|
66442
66517
|
*/
|
|
66443
66518
|
clone(values = {}, options = {}) {
|
|
66444
66519
|
if (this._warning != null) {
|
|
@@ -66449,13 +66524,13 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66449
66524
|
};
|
|
66450
66525
|
}
|
|
66451
66526
|
const clone = super.clone(values, options);
|
|
66452
|
-
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
|
|
66527
|
+
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
|
|
66453
66528
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
|
|
66454
66529
|
if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
|
|
66455
66530
|
clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
|
|
66456
66531
|
clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = /* @__PURE__ */ new Set([0]);
|
|
66457
66532
|
} else throw new TypeError("The subject must be of type Object | URL.");
|
|
66458
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
|
|
66533
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
|
|
66459
66534
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
|
|
66460
66535
|
if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
|
|
66461
66536
|
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
|
|
@@ -66464,12 +66539,12 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66464
66539
|
if ("objects" in values && values.objects != null) {
|
|
66465
66540
|
if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
|
|
66466
66541
|
if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
66467
|
-
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
|
|
66542
|
+
clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
|
|
66468
66543
|
clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
|
|
66469
66544
|
for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
|
|
66470
66545
|
} else throw new TypeError("The objects must be an array of type Object | URL.");
|
|
66471
66546
|
}
|
|
66472
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
|
|
66547
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
|
|
66473
66548
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
|
|
66474
66549
|
if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
|
|
66475
66550
|
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
|
|
@@ -66478,7 +66553,7 @@ var Relationship = class Relationship extends Object$1 {
|
|
|
66478
66553
|
if ("relationships" in values && values.relationships != null) {
|
|
66479
66554
|
if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
|
|
66480
66555
|
if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
|
|
66481
|
-
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
|
|
66556
|
+
clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
|
|
66482
66557
|
clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
|
|
66483
66558
|
for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
|
|
66484
66559
|
} else throw new TypeError("The relationships must be an array of type Object | URL.");
|
|
@@ -67652,7 +67727,8 @@ var Remove = class Remove extends Activity {
|
|
|
67652
67727
|
*
|
|
67653
67728
|
* @param values The values to update the clone with.
|
|
67654
67729
|
* @param options The options to use for cloning.
|
|
67655
|
-
* @returns The cloned instance.
|
|
67730
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
67731
|
+
* and URLs are shared with this instance.
|
|
67656
67732
|
*/
|
|
67657
67733
|
clone(values = {}, options = {}) {
|
|
67658
67734
|
if (this._warning != null) {
|
|
@@ -67873,7 +67949,7 @@ var Service = class Service extends Object$1 {
|
|
|
67873
67949
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
67874
67950
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
67875
67951
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
|
|
67876
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
67952
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
67877
67953
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
67878
67954
|
}
|
|
67879
67955
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
@@ -67883,7 +67959,7 @@ var Service = class Service extends Object$1 {
|
|
|
67883
67959
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
67884
67960
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
|
|
67885
67961
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
67886
|
-
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
67962
|
+
this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
67887
67963
|
for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
67888
67964
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
67889
67965
|
}
|
|
@@ -67894,7 +67970,7 @@ var Service = class Service extends Object$1 {
|
|
|
67894
67970
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
67895
67971
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
|
|
67896
67972
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
67897
|
-
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
67973
|
+
this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
67898
67974
|
for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
67899
67975
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
67900
67976
|
}
|
|
@@ -67902,7 +67978,7 @@ var Service = class Service extends Object$1 {
|
|
|
67902
67978
|
else throw new TypeError("The gateway must be of type URL.");
|
|
67903
67979
|
if ("gateways" in values && values.gateways != null) {
|
|
67904
67980
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot initialize both gateway and gateways at the same time.");
|
|
67905
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
67981
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) this.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
67906
67982
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
67907
67983
|
}
|
|
67908
67984
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
@@ -67940,7 +68016,7 @@ var Service = class Service extends Object$1 {
|
|
|
67940
68016
|
this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.add(0);
|
|
67941
68017
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
67942
68018
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
67943
|
-
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
68019
|
+
this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
67944
68020
|
for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
67945
68021
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
67946
68022
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
@@ -67964,7 +68040,7 @@ var Service = class Service extends Object$1 {
|
|
|
67964
68040
|
if ("aliases" in values && values.aliases != null) {
|
|
67965
68041
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
|
|
67966
68042
|
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)) {
|
|
67967
|
-
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
68043
|
+
this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
67968
68044
|
for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
67969
68045
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
67970
68046
|
}
|
|
@@ -67975,7 +68051,7 @@ var Service = class Service extends Object$1 {
|
|
|
67975
68051
|
if ("services" in values && values.services != null) {
|
|
67976
68052
|
if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
|
|
67977
68053
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
67978
|
-
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
68054
|
+
this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
67979
68055
|
for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
67980
68056
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
67981
68057
|
}
|
|
@@ -67995,7 +68071,8 @@ var Service = class Service extends Object$1 {
|
|
|
67995
68071
|
*
|
|
67996
68072
|
* @param values The values to update the clone with.
|
|
67997
68073
|
* @param options The options to use for cloning.
|
|
67998
|
-
* @returns The cloned instance.
|
|
68074
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
68075
|
+
* and URLs are shared with this instance.
|
|
67999
68076
|
*/
|
|
68000
68077
|
clone(values = {}, options = {}) {
|
|
68001
68078
|
if (this._warning != null) {
|
|
@@ -68006,15 +68083,15 @@ var Service = class Service extends Object$1 {
|
|
|
68006
68083
|
};
|
|
68007
68084
|
}
|
|
68008
68085
|
const clone = super.clone(values, options);
|
|
68009
|
-
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
|
|
68086
|
+
clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
|
|
68010
68087
|
if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof LanguageString$1) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
|
|
68011
68088
|
else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
|
|
68012
68089
|
if ("preferredUsernames" in values && values.preferredUsernames != null) {
|
|
68013
68090
|
if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
|
|
68014
|
-
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
|
|
68091
|
+
if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
|
|
68015
68092
|
else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
|
|
68016
68093
|
}
|
|
68017
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
|
|
68094
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
|
|
68018
68095
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
|
|
68019
68096
|
if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
|
|
68020
68097
|
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
|
|
@@ -68023,12 +68100,12 @@ var Service = class Service extends Object$1 {
|
|
|
68023
68100
|
if ("publicKeys" in values && values.publicKeys != null) {
|
|
68024
68101
|
if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
|
|
68025
68102
|
if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
|
|
68026
|
-
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
|
|
68103
|
+
clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
|
|
68027
68104
|
clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
|
|
68028
68105
|
for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
|
|
68029
68106
|
} else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
|
|
68030
68107
|
}
|
|
68031
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
|
|
68108
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
|
|
68032
68109
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
|
|
68033
68110
|
if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
|
|
68034
68111
|
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
|
|
@@ -68037,99 +68114,99 @@ var Service = class Service extends Object$1 {
|
|
|
68037
68114
|
if ("assertionMethods" in values && values.assertionMethods != null) {
|
|
68038
68115
|
if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
|
|
68039
68116
|
if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
|
|
68040
|
-
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
|
|
68117
|
+
clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
|
|
68041
68118
|
clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
|
|
68042
68119
|
for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
|
|
68043
68120
|
} else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
|
|
68044
68121
|
}
|
|
68045
|
-
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3;
|
|
68122
|
+
clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = this.#_hQiaHhZP8hqxckxTBrpsGNs57E3.slice();
|
|
68046
68123
|
if ("gateway" in values && values.gateway != null) if (values.gateway instanceof URL && isGatewayUrl(values.gateway)) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = [values.gateway];
|
|
68047
68124
|
else throw new TypeError("The gateway must be of type URL.");
|
|
68048
68125
|
if ("gateways" in values && values.gateways != null) {
|
|
68049
68126
|
if ("gateway" in values && values.gateway != null) throw new TypeError("Cannot update both gateway and gateways at the same time.");
|
|
68050
|
-
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways;
|
|
68127
|
+
if (Array.isArray(values.gateways) && values.gateways.every((v) => v instanceof URL && isGatewayUrl(v))) clone.#_hQiaHhZP8hqxckxTBrpsGNs57E3 = values.gateways.slice();
|
|
68051
68128
|
else throw new TypeError("The gateways must be an array of type URL.");
|
|
68052
68129
|
}
|
|
68053
|
-
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
|
|
68130
|
+
clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
|
|
68054
68131
|
if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
|
|
68055
68132
|
else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
|
|
68056
|
-
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
|
|
68133
|
+
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
|
|
68057
68134
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
|
|
68058
68135
|
if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
|
|
68059
68136
|
clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
|
|
68060
68137
|
clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = /* @__PURE__ */ new Set([0]);
|
|
68061
68138
|
} else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
68062
|
-
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
|
|
68139
|
+
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
|
|
68063
68140
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
|
|
68064
68141
|
if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
|
|
68065
68142
|
clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
|
|
68066
68143
|
clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = /* @__PURE__ */ new Set([0]);
|
|
68067
68144
|
} else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
|
|
68068
|
-
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
|
|
68145
|
+
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
|
|
68069
68146
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
|
|
68070
68147
|
if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
|
|
68071
68148
|
clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
|
|
68072
68149
|
clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = /* @__PURE__ */ new Set([0]);
|
|
68073
68150
|
} else throw new TypeError("The following must be of type Collection | URL.");
|
|
68074
|
-
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
|
|
68151
|
+
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
|
|
68075
68152
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
|
|
68076
68153
|
if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
|
|
68077
68154
|
clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
|
|
68078
68155
|
clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = /* @__PURE__ */ new Set([0]);
|
|
68079
68156
|
} else throw new TypeError("The followers must be of type Collection | URL.");
|
|
68080
|
-
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
|
|
68157
|
+
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
|
|
68081
68158
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
|
|
68082
68159
|
if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
|
|
68083
68160
|
clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
|
|
68084
68161
|
clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = /* @__PURE__ */ new Set([0]);
|
|
68085
68162
|
} else throw new TypeError("The liked must be of type Collection | URL.");
|
|
68086
|
-
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
|
|
68163
|
+
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
|
|
68087
68164
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
|
|
68088
68165
|
if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
|
|
68089
68166
|
clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
|
|
68090
68167
|
clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = /* @__PURE__ */ new Set([0]);
|
|
68091
68168
|
} else throw new TypeError("The featured must be of type Collection | URL.");
|
|
68092
|
-
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
|
|
68169
|
+
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
|
|
68093
68170
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
|
|
68094
68171
|
if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
|
|
68095
68172
|
clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
|
|
68096
68173
|
clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = /* @__PURE__ */ new Set([0]);
|
|
68097
68174
|
} else throw new TypeError("The featuredTags must be of type Collection | URL.");
|
|
68098
|
-
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections;
|
|
68175
|
+
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = this.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections.slice();
|
|
68099
68176
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = new Set(this.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections);
|
|
68100
68177
|
if ("featuredCollections" in values && values.featuredCollections != null) if (values.featuredCollections instanceof Collection || values.featuredCollections instanceof URL) {
|
|
68101
68178
|
clone.#_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = [values.featuredCollections];
|
|
68102
68179
|
clone.#_trust_43Vdn8myiwHqPANJwoAEF3Yy3vsd_featuredCollections = /* @__PURE__ */ new Set([0]);
|
|
68103
68180
|
} else throw new TypeError("The featuredCollections must be of type Collection | URL.");
|
|
68104
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
|
|
68181
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
|
|
68105
68182
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
|
|
68106
68183
|
if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
|
|
68107
|
-
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
|
|
68184
|
+
clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
|
|
68108
68185
|
clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
|
|
68109
68186
|
for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
|
|
68110
68187
|
} else throw new TypeError("The streams must be an array of type Collection | URL.");
|
|
68111
|
-
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
|
|
68188
|
+
clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
|
|
68112
68189
|
if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
|
|
68113
68190
|
else throw new TypeError("The endpoints must be of type Endpoints.");
|
|
68114
|
-
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
|
|
68191
|
+
clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
|
|
68115
68192
|
if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
|
|
68116
68193
|
else throw new TypeError("The discoverable must be of type boolean.");
|
|
68117
|
-
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
|
|
68194
|
+
clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
|
|
68118
68195
|
if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
|
|
68119
68196
|
else throw new TypeError("The suspended must be of type boolean.");
|
|
68120
|
-
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
|
|
68197
|
+
clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
|
|
68121
68198
|
if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
|
|
68122
68199
|
else throw new TypeError("The memorial must be of type boolean.");
|
|
68123
|
-
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
|
|
68200
|
+
clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
|
|
68124
68201
|
if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
|
|
68125
68202
|
else throw new TypeError("The indexable must be of type boolean.");
|
|
68126
|
-
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
|
|
68203
|
+
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
|
|
68127
68204
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
|
|
68128
68205
|
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) {
|
|
68129
68206
|
clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
|
|
68130
68207
|
clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = /* @__PURE__ */ new Set([0]);
|
|
68131
68208
|
} else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
|
|
68132
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
|
|
68209
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
|
|
68133
68210
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
|
|
68134
68211
|
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) {
|
|
68135
68212
|
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
|
|
@@ -68138,12 +68215,12 @@ var Service = class Service extends Object$1 {
|
|
|
68138
68215
|
if ("aliases" in values && values.aliases != null) {
|
|
68139
68216
|
if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
|
|
68140
68217
|
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)) {
|
|
68141
|
-
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
|
|
68218
|
+
clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
|
|
68142
68219
|
clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
|
|
68143
68220
|
for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
|
|
68144
68221
|
} else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
|
|
68145
68222
|
}
|
|
68146
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
|
|
68223
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
|
|
68147
68224
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
|
|
68148
68225
|
if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
|
|
68149
68226
|
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
|
|
@@ -68152,15 +68229,15 @@ var Service = class Service extends Object$1 {
|
|
|
68152
68229
|
if ("services" in values && values.services != null) {
|
|
68153
68230
|
if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
|
|
68154
68231
|
if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
|
|
68155
|
-
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
|
|
68232
|
+
clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
|
|
68156
68233
|
clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
|
|
68157
68234
|
for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
|
|
68158
68235
|
} else throw new TypeError("The services must be an array of type DidService | URL.");
|
|
68159
68236
|
}
|
|
68160
|
-
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
|
|
68237
|
+
clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
|
|
68161
68238
|
if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
|
|
68162
68239
|
else throw new TypeError("The followedMessage must be of type string.");
|
|
68163
|
-
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
|
|
68240
|
+
clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
|
|
68164
68241
|
if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
|
|
68165
68242
|
else throw new TypeError("The cat must be of type boolean.");
|
|
68166
68243
|
return clone;
|
|
@@ -73317,7 +73394,7 @@ var Source = class {
|
|
|
73317
73394
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
73318
73395
|
if ("contents" in values && values.contents != null) {
|
|
73319
73396
|
if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
|
|
73320
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
73397
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
73321
73398
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
73322
73399
|
}
|
|
73323
73400
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
@@ -73334,7 +73411,8 @@ var Source = class {
|
|
|
73334
73411
|
*
|
|
73335
73412
|
* @param values The values to update the clone with.
|
|
73336
73413
|
* @param options The options to use for cloning.
|
|
73337
|
-
* @returns The cloned instance.
|
|
73414
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
73415
|
+
* and URLs are shared with this instance.
|
|
73338
73416
|
*/
|
|
73339
73417
|
clone(values = {}, options = {}) {
|
|
73340
73418
|
if (this._warning != null) {
|
|
@@ -73346,15 +73424,15 @@ var Source = class {
|
|
|
73346
73424
|
}
|
|
73347
73425
|
const clone = new this.constructor({ id: values.id ?? this.id }, options);
|
|
73348
73426
|
copyPortableProvenance(this, clone);
|
|
73349
|
-
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
|
|
73427
|
+
clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
|
|
73350
73428
|
if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof LanguageString$1) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
|
|
73351
73429
|
else throw new TypeError("The content must be of type string | LanguageString.");
|
|
73352
73430
|
if ("contents" in values && values.contents != null) {
|
|
73353
73431
|
if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
|
|
73354
|
-
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
|
|
73432
|
+
if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof LanguageString$1)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
|
|
73355
73433
|
else throw new TypeError("The contents must be an array of type string | LanguageString.");
|
|
73356
73434
|
}
|
|
73357
|
-
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
|
|
73435
|
+
clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
|
|
73358
73436
|
if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
|
|
73359
73437
|
else throw new TypeError("The mediaType must be of type string.");
|
|
73360
73438
|
return clone;
|
|
@@ -73629,7 +73707,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
|
|
|
73629
73707
|
*
|
|
73630
73708
|
* @param values The values to update the clone with.
|
|
73631
73709
|
* @param options The options to use for cloning.
|
|
73632
|
-
* @returns The cloned instance.
|
|
73710
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
73711
|
+
* and URLs are shared with this instance.
|
|
73633
73712
|
*/
|
|
73634
73713
|
clone(values = {}, options = {}) {
|
|
73635
73714
|
if (this._warning != null) {
|
|
@@ -73821,7 +73900,8 @@ var TentativeReject = class TentativeReject extends Reject {
|
|
|
73821
73900
|
*
|
|
73822
73901
|
* @param values The values to update the clone with.
|
|
73823
73902
|
* @param options The options to use for cloning.
|
|
73824
|
-
* @returns The cloned instance.
|
|
73903
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
73904
|
+
* and URLs are shared with this instance.
|
|
73825
73905
|
*/
|
|
73826
73906
|
clone(values = {}, options = {}) {
|
|
73827
73907
|
if (this._warning != null) {
|
|
@@ -74008,7 +74088,7 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
74008
74088
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
74009
74089
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
74010
74090
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
|
|
74011
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
74091
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
74012
74092
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
74013
74093
|
}
|
|
74014
74094
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
@@ -74025,7 +74105,8 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
74025
74105
|
*
|
|
74026
74106
|
* @param values The values to update the clone with.
|
|
74027
74107
|
* @param options The options to use for cloning.
|
|
74028
|
-
* @returns The cloned instance.
|
|
74108
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
74109
|
+
* and URLs are shared with this instance.
|
|
74029
74110
|
*/
|
|
74030
74111
|
clone(values = {}, options = {}) {
|
|
74031
74112
|
if (this._warning != null) {
|
|
@@ -74036,15 +74117,15 @@ var Tombstone = class Tombstone extends Object$1 {
|
|
|
74036
74117
|
};
|
|
74037
74118
|
}
|
|
74038
74119
|
const clone = super.clone(values, options);
|
|
74039
|
-
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
|
|
74120
|
+
clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
|
|
74040
74121
|
if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
|
|
74041
74122
|
else throw new TypeError("The formerType must be of type $EntityType.");
|
|
74042
74123
|
if ("formerTypes" in values && values.formerTypes != null) {
|
|
74043
74124
|
if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
|
|
74044
|
-
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
|
|
74125
|
+
if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
|
|
74045
74126
|
else throw new TypeError("The formerTypes must be an array of type $EntityType.");
|
|
74046
74127
|
}
|
|
74047
|
-
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
|
|
74128
|
+
clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
|
|
74048
74129
|
if ("deleted" in values && values.deleted != null) if (isTemporalInstant(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
|
|
74049
74130
|
else throw new TypeError("The deleted must be of type Temporal.Instant.");
|
|
74050
74131
|
return clone;
|
|
@@ -74349,7 +74430,8 @@ var Travel = class Travel extends IntransitiveActivity {
|
|
|
74349
74430
|
*
|
|
74350
74431
|
* @param values The values to update the clone with.
|
|
74351
74432
|
* @param options The options to use for cloning.
|
|
74352
|
-
* @returns The cloned instance.
|
|
74433
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
74434
|
+
* and URLs are shared with this instance.
|
|
74353
74435
|
*/
|
|
74354
74436
|
clone(values = {}, options = {}) {
|
|
74355
74437
|
if (this._warning != null) {
|
|
@@ -74546,7 +74628,8 @@ var Undo = class Undo extends Activity {
|
|
|
74546
74628
|
*
|
|
74547
74629
|
* @param values The values to update the clone with.
|
|
74548
74630
|
* @param options The options to use for cloning.
|
|
74549
|
-
* @returns The cloned instance.
|
|
74631
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
74632
|
+
* and URLs are shared with this instance.
|
|
74550
74633
|
*/
|
|
74551
74634
|
clone(values = {}, options = {}) {
|
|
74552
74635
|
if (this._warning != null) {
|
|
@@ -74750,7 +74833,8 @@ var Update = class Update extends Activity {
|
|
|
74750
74833
|
*
|
|
74751
74834
|
* @param values The values to update the clone with.
|
|
74752
74835
|
* @param options The options to use for cloning.
|
|
74753
|
-
* @returns The cloned instance.
|
|
74836
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
74837
|
+
* and URLs are shared with this instance.
|
|
74754
74838
|
*/
|
|
74755
74839
|
clone(values = {}, options = {}) {
|
|
74756
74840
|
if (this._warning != null) {
|
|
@@ -75000,7 +75084,8 @@ var Video = class Video extends Document {
|
|
|
75000
75084
|
*
|
|
75001
75085
|
* @param values The values to update the clone with.
|
|
75002
75086
|
* @param options The options to use for cloning.
|
|
75003
|
-
* @returns The cloned instance.
|
|
75087
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
75088
|
+
* and URLs are shared with this instance.
|
|
75004
75089
|
*/
|
|
75005
75090
|
clone(values = {}, options = {}) {
|
|
75006
75091
|
if (this._warning != null) {
|
|
@@ -75207,7 +75292,8 @@ var View = class View extends Activity {
|
|
|
75207
75292
|
*
|
|
75208
75293
|
* @param values The values to update the clone with.
|
|
75209
75294
|
* @param options The options to use for cloning.
|
|
75210
|
-
* @returns The cloned instance.
|
|
75295
|
+
* @returns The cloned instance with its own property arrays. Nested objects
|
|
75296
|
+
* and URLs are shared with this instance.
|
|
75211
75297
|
*/
|
|
75212
75298
|
clone(values = {}, options = {}) {
|
|
75213
75299
|
if (this._warning != null) {
|