@fedify/vocab-tools 2.2.0-dev.635 → 2.2.0-dev.700

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.
@@ -10188,6 +10188,10 @@ get urls(): ((URL | Link))[] {
10188
10188
  return await ReplyAuthorization.fromJsonLd(json, options);
10189
10189
  }
10190
10190
 
10191
+ if (values[\\"@type\\"].includes(\\"https://w3id.org/valueflows/ont/vf#Proposal\\")) {
10192
+ return await Proposal.fromJsonLd(json, options);
10193
+ }
10194
+
10191
10195
  if (values[\\"@type\\"].includes(\\"https://www.w3.org/ns/activitystreams#Activity\\")) {
10192
10196
  return await Activity.fromJsonLd(json, options);
10193
10197
  }
@@ -10444,7 +10448,7 @@ get urls(): ((URL | Link))[] {
10444
10448
 
10445
10449
  const decoded =
10446
10450
  typeof v === \\"object\\" && \\"@type\\" in v
10447
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10451
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10448
10452
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10449
10453
  v,
10450
10454
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -10598,7 +10602,7 @@ get urls(): ((URL | Link))[] {
10598
10602
 
10599
10603
  const decoded =
10600
10604
  typeof v === \\"object\\" && \\"@type\\" in v
10601
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10605
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10602
10606
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10603
10607
  v,
10604
10608
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -10684,7 +10688,7 @@ get urls(): ((URL | Link))[] {
10684
10688
 
10685
10689
  const decoded =
10686
10690
  typeof v === \\"object\\" && \\"@type\\" in v
10687
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10691
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10688
10692
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10689
10693
  v,
10690
10694
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -10787,7 +10791,7 @@ get urls(): ((URL | Link))[] {
10787
10791
 
10788
10792
  const decoded =
10789
10793
  typeof v === \\"object\\" && \\"@type\\" in v
10790
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10794
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10791
10795
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10792
10796
  v,
10793
10797
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -10830,7 +10834,7 @@ get urls(): ((URL | Link))[] {
10830
10834
 
10831
10835
  const decoded =
10832
10836
  typeof v === \\"object\\" && \\"@type\\" in v
10833
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10837
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10834
10838
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10835
10839
  v,
10836
10840
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -10878,7 +10882,7 @@ get urls(): ((URL | Link))[] {
10878
10882
  v,
10879
10883
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
10880
10884
  ) : typeof v === \\"object\\" && \\"@type\\" in v
10881
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10885
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
10882
10886
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
10883
10887
  v,
10884
10888
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -11098,7 +11102,7 @@ get urls(): ((URL | Link))[] {
11098
11102
 
11099
11103
  const decoded =
11100
11104
  typeof v === \\"object\\" && \\"@type\\" in v
11101
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
11105
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
11102
11106
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
11103
11107
  v,
11104
11108
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -17528,6 +17532,574 @@ name?: string | LanguageString | null;value?: string | LanguageString | null;}
17528
17532
  const proxy = this._getCustomInspectProxy();
17529
17533
  return \\"PropertyValue \\" + inspect(proxy, options);
17530
17534
  };
17535
+ /** A quantity with a unit of measure.
17536
+ */
17537
+ export class Measure {
17538
+
17539
+ readonly #documentLoader?: DocumentLoader;
17540
+ readonly #contextLoader?: DocumentLoader;
17541
+ readonly #tracerProvider?: TracerProvider;
17542
+ readonly #warning?: {
17543
+ category: string[];
17544
+ message: string;
17545
+ values?: Record<string, unknown>;
17546
+ };
17547
+ #cachedJsonLd?: unknown;
17548
+ readonly id: URL | null;
17549
+
17550
+ protected get _documentLoader(): DocumentLoader | undefined {
17551
+ return this.#documentLoader;
17552
+ }
17553
+
17554
+ protected get _contextLoader(): DocumentLoader | undefined {
17555
+ return this.#contextLoader;
17556
+ }
17557
+
17558
+ protected get _tracerProvider(): TracerProvider | undefined {
17559
+ return this.#tracerProvider;
17560
+ }
17561
+
17562
+ protected get _warning(): {
17563
+ category: string[];
17564
+ message: string;
17565
+ values?: Record<string, unknown>;
17566
+ } | undefined {
17567
+ return this.#warning;
17568
+ }
17569
+
17570
+ protected get _cachedJsonLd(): unknown | undefined {
17571
+ return this.#cachedJsonLd;
17572
+ }
17573
+
17574
+ protected set _cachedJsonLd(value: unknown | undefined) {
17575
+ this.#cachedJsonLd = value;
17576
+ }
17577
+
17578
+ /**
17579
+ * The type URI of {@link Measure}: \`http://www.ontology-of-units-of-measure.org/resource/om-2/Measure\`.
17580
+ */
17581
+ static get typeId(): URL {
17582
+ return new URL(\\"http://www.ontology-of-units-of-measure.org/resource/om-2/Measure\\");
17583
+ }
17584
+ #_27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = [];
17585
+ #_1GQx8o2RgxRs4x9G5uT39XYBv7D: (Decimal)[] = [];
17586
+
17587
+ /**
17588
+ * Constructs a new instance of Measure with the given values.
17589
+ * @param values The values to initialize the instance with.
17590
+ * @param options The options to use for initialization.
17591
+ */
17592
+ constructor(
17593
+ values:
17594
+ {
17595
+ id?: URL | null;
17596
+ unit?: string | null;numericalValue?: Decimal | null;}
17597
+ ,
17598
+ options: {
17599
+ documentLoader?: DocumentLoader,
17600
+ contextLoader?: DocumentLoader,
17601
+ tracerProvider?: TracerProvider,
17602
+ } = {},
17603
+ ) {
17604
+
17605
+ this.#documentLoader = options.documentLoader;
17606
+ this.#contextLoader = options.contextLoader;
17607
+ this.#tracerProvider = options.tracerProvider;
17608
+ if (\\"$warning\\" in options) {
17609
+ this.#warning = options.$warning as unknown as {
17610
+ category: string[];
17611
+ message: string;
17612
+ values?: Record<string, unknown>;
17613
+ };
17614
+ }
17615
+ if (values.id == null || values.id instanceof URL) {
17616
+ this.id = values.id ?? null;
17617
+ } else {
17618
+ throw new TypeError(\\"The id must be a URL.\\");
17619
+ }
17620
+
17621
+ if (\\"unit\\" in values && values.unit != null) {
17622
+ if (typeof values.unit === \\"string\\") {
17623
+ // @ts-ignore: type is checked above.
17624
+ this.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
17625
+
17626
+ } else {
17627
+ throw new TypeError(
17628
+ \\"The unit must be of type \\" +
17629
+ \\"string\\" + \\".\\",
17630
+ );
17631
+ }
17632
+ }
17633
+
17634
+ if (\\"numericalValue\\" in values && values.numericalValue != null) {
17635
+ if (typeof values.numericalValue === \\"string\\" && isDecimal(values.numericalValue)) {
17636
+ // @ts-ignore: type is checked above.
17637
+ this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
17638
+
17639
+ } else {
17640
+ throw new TypeError(
17641
+ \\"The numericalValue must be of type \\" +
17642
+ \\"Decimal\\" + \\".\\",
17643
+ );
17644
+ }
17645
+ }
17646
+ }
17647
+
17648
+ /**
17649
+ * Clones this instance, optionally updating it with the given values.
17650
+ * @param values The values to update the clone with.
17651
+ * @param options The options to use for cloning.
17652
+ * @returns The cloned instance.
17653
+ */
17654
+ clone(
17655
+ values:
17656
+ {
17657
+ id?: URL | null;
17658
+ unit?: string | null;numericalValue?: Decimal | null;}
17659
+
17660
+ = {},
17661
+ options: {
17662
+ documentLoader?: DocumentLoader,
17663
+ contextLoader?: DocumentLoader,
17664
+ } = {}
17665
+ ): Measure {
17666
+ if (this._warning != null) {
17667
+ getLogger(this._warning.category).warn(
17668
+ this._warning.message,
17669
+ this._warning.values
17670
+ );
17671
+ // @ts-ignore: $warning is not recognized as a property, but it is.
17672
+ options = { ...options, $warning: this._warning };
17673
+ }
17674
+
17675
+ // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
17676
+ const clone: Measure = new this.constructor(
17677
+ { id: values.id ?? this.id },
17678
+ options
17679
+ );
17680
+ clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
17681
+ if (\\"unit\\" in values && values.unit != null) {
17682
+ if (typeof values.unit === \\"string\\") {
17683
+ // @ts-ignore: type is checked above.
17684
+ clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
17685
+
17686
+ } else {
17687
+ throw new TypeError(
17688
+ \\"The unit must be of type \\" +
17689
+ \\"string\\" + \\".\\",
17690
+ );
17691
+ }
17692
+ }
17693
+ clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
17694
+ if (\\"numericalValue\\" in values && values.numericalValue != null) {
17695
+ if (typeof values.numericalValue === \\"string\\" && isDecimal(values.numericalValue)) {
17696
+ // @ts-ignore: type is checked above.
17697
+ clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
17698
+
17699
+ } else {
17700
+ throw new TypeError(
17701
+ \\"The numericalValue must be of type \\" +
17702
+ \\"Decimal\\" + \\".\\",
17703
+ );
17704
+ }
17705
+ }
17706
+
17707
+ return clone;
17708
+ }
17709
+
17710
+ /** The name of the unit, according to the Ontology of units of Measure
17711
+ * classification. The recommended unit for countable items is \`\\"one\\"\`.
17712
+ *
17713
+ */
17714
+ get unit(): (string | null) {
17715
+ if (this._warning != null) {
17716
+ getLogger(this._warning.category).warn(
17717
+ this._warning.message,
17718
+ this._warning.values
17719
+ );
17720
+ }
17721
+ if (this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.length < 1) return null;
17722
+ return this.#_27fgyFbosTtMAhuepJH8K3ZGURT6[0];
17723
+ }
17724
+
17725
+ /** The amount of the resource. If not specified, arbitrary amounts can be
17726
+ * used when responding to the proposal.
17727
+ *
17728
+ */
17729
+ get numericalValue(): (Decimal | null) {
17730
+ if (this._warning != null) {
17731
+ getLogger(this._warning.category).warn(
17732
+ this._warning.message,
17733
+ this._warning.values
17734
+ );
17735
+ }
17736
+ if (this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.length < 1) return null;
17737
+ return this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D[0];
17738
+ }
17739
+
17740
+ /**
17741
+ * Converts this object to a JSON-LD structure.
17742
+ * @param options The options to use.
17743
+ * - \`format\`: The format of the output: \`compact\` or
17744
+ \`expand\`.
17745
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
17746
+ * - \`context\`: The JSON-LD context to use. Not applicable
17747
+ when \`format\` is set to \`'expand'\`.
17748
+ * @returns The JSON-LD representation of this object.
17749
+ */
17750
+ async toJsonLd(options: {
17751
+ format?: \\"compact\\" | \\"expand\\",
17752
+ contextLoader?: DocumentLoader,
17753
+ context?: string | Record<string, string> | (string | Record<string, string>)[],
17754
+ } = {}): Promise<unknown> {
17755
+ if (options.format == null && this._cachedJsonLd != null) {
17756
+ return this._cachedJsonLd;
17757
+ }
17758
+ if (options.format !== \\"compact\\" && options.context != null) {
17759
+ throw new TypeError(
17760
+ \\"The context option can only be used when the format option is set \\" +
17761
+ \\"to 'compact'.\\"
17762
+ );
17763
+ }
17764
+ options = {
17765
+ ...options,
17766
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
17767
+ };
17768
+
17769
+ if (options.format == null && this.isCompactable()) {
17770
+ const result: Record<string, unknown> = {};
17771
+ // deno-lint-ignore no-unused-vars
17772
+ let compactItems: unknown[];
17773
+
17774
+ compactItems = [];
17775
+ for (const v of this.#_27fgyFbosTtMAhuepJH8K3ZGURT6) {
17776
+ const item = (
17777
+ v
17778
+ );
17779
+ compactItems.push(item);
17780
+ }
17781
+ if (compactItems.length > 0) {
17782
+
17783
+ result[\\"hasUnit\\"]
17784
+ = compactItems.length > 1
17785
+ ? compactItems
17786
+ : compactItems[0];
17787
+
17788
+ }
17789
+
17790
+ compactItems = [];
17791
+ for (const v of this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D) {
17792
+ const item = (
17793
+ v
17794
+ );
17795
+ compactItems.push(item);
17796
+ }
17797
+ if (compactItems.length > 0) {
17798
+
17799
+ result[\\"hasNumericalValue\\"]
17800
+ = compactItems.length > 1
17801
+ ? compactItems
17802
+ : compactItems[0];
17803
+
17804
+ }
17805
+
17806
+ result[\\"type\\"] = \\"om2:Measure\\";
17807
+ if (this.id != null) result[\\"id\\"] = this.id.href;
17808
+ result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",{\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
17809
+ return result;
17810
+ }
17811
+
17812
+ // deno-lint-ignore no-unused-vars prefer-const
17813
+ let array: unknown[];
17814
+ const values: Record<string, unknown[] | string> = {};
17815
+ array = [];
17816
+ for (const v of this.#_27fgyFbosTtMAhuepJH8K3ZGURT6) {
17817
+ const element = (
17818
+ { \\"@value\\": v }
17819
+ );
17820
+ array.push(element);;
17821
+ }
17822
+ if (array.length > 0) {
17823
+ const propValue = (
17824
+ array
17825
+ );
17826
+ values[\\"http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit\\"] = propValue;
17827
+
17828
+ }
17829
+
17830
+ array = [];
17831
+ for (const v of this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D) {
17832
+ const element = (
17833
+ {
17834
+ \\"@type\\": \\"http://www.w3.org/2001/XMLSchema#decimal\\",
17835
+ \\"@value\\": v,
17836
+ }
17837
+ );
17838
+ array.push(element);;
17839
+ }
17840
+ if (array.length > 0) {
17841
+ const propValue = (
17842
+ array
17843
+ );
17844
+ values[\\"http://www.ontology-of-units-of-measure.org/resource/om-2/hasNumericalValue\\"] = propValue;
17845
+
17846
+ }
17847
+
17848
+ values[\\"@type\\"] = [\\"http://www.ontology-of-units-of-measure.org/resource/om-2/Measure\\"];
17849
+ if (this.id != null) values[\\"@id\\"] = this.id.href;
17850
+ if (options.format === \\"expand\\") {
17851
+ return await jsonld.expand(
17852
+ values,
17853
+ { documentLoader: options.contextLoader },
17854
+ );
17855
+ }
17856
+ const docContext = options.context ??
17857
+ [\\"https://www.w3.org/ns/activitystreams\\",{\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
17858
+ const compacted = await jsonld.compact(
17859
+ values,
17860
+ docContext,
17861
+ { documentLoader: options.contextLoader },
17862
+ );
17863
+ if (docContext != null) {
17864
+ // Embed context
17865
+
17866
+ }
17867
+ return compacted;
17868
+ }
17869
+
17870
+ protected isCompactable(): boolean {
17871
+
17872
+ return true;
17873
+ }
17874
+
17875
+ /**
17876
+ * Converts a JSON-LD structure to an object of this type.
17877
+ * @param json The JSON-LD structure to convert.
17878
+ * @param options The options to use.
17879
+ * - \`documentLoader\`: The loader for remote JSON-LD documents.
17880
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
17881
+ * - \`tracerProvider\`: The OpenTelemetry tracer provider to use.
17882
+ * If omitted, the global tracer provider is used.
17883
+ * @returns The object of this type.
17884
+ * @throws {TypeError} If the given \`json\` is invalid.
17885
+ */
17886
+ static async fromJsonLd(
17887
+ json: unknown,
17888
+ options: {
17889
+ documentLoader?: DocumentLoader,
17890
+ contextLoader?: DocumentLoader,
17891
+ tracerProvider?: TracerProvider,
17892
+ baseUrl?: URL,
17893
+ } = {},
17894
+ ): Promise<Measure> {
17895
+ const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
17896
+ const tracer = tracerProvider.getTracer(
17897
+ \\"@fedify/vocab-tools\\",
17898
+ \\"0.0.0\\",
17899
+ );
17900
+ return await tracer.startActiveSpan(
17901
+ \\"activitypub.parse_object\\",
17902
+ async (span) => {
17903
+ try {
17904
+ const object = await this.__fromJsonLd__Measure__(
17905
+ json, span, options);
17906
+ if (object.id != null) {
17907
+ span.setAttribute(\\"activitypub.object.id\\", object.id.href);
17908
+ }
17909
+ return object;
17910
+ } catch (error) {
17911
+ span.setStatus({
17912
+ code: SpanStatusCode.ERROR,
17913
+ message: String(error),
17914
+ });
17915
+ throw error;
17916
+ } finally {
17917
+ span.end();
17918
+ }
17919
+ },
17920
+ );
17921
+ }
17922
+
17923
+ protected static async __fromJsonLd__Measure__(
17924
+ json: unknown,
17925
+ span: Span,
17926
+ options: {
17927
+ documentLoader?: DocumentLoader,
17928
+ contextLoader?: DocumentLoader,
17929
+ tracerProvider?: TracerProvider,
17930
+ baseUrl?: URL,
17931
+ } = {},
17932
+ ): Promise<Measure> {
17933
+ if (typeof json === \\"undefined\\") {
17934
+ throw new TypeError(\\"Invalid JSON-LD: undefined.\\");
17935
+ }
17936
+ else if (json === null) throw new TypeError(\\"Invalid JSON-LD: null.\\");
17937
+ options = {
17938
+ ...options,
17939
+ documentLoader: options.documentLoader ?? getDocumentLoader(),
17940
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
17941
+ tracerProvider: options.tracerProvider ?? trace.getTracerProvider(),
17942
+ };
17943
+ // deno-lint-ignore no-explicit-any
17944
+ let values: Record<string, any[]> & { \\"@id\\"?: string };
17945
+ if (globalThis.Object.keys(json).length == 0) {
17946
+ values = {};
17947
+ } else {
17948
+ const expanded = await jsonld.expand(json, {
17949
+ documentLoader: options.contextLoader,
17950
+ keepFreeFloatingNodes: true,
17951
+ });
17952
+ values =
17953
+ // deno-lint-ignore no-explicit-any
17954
+ (expanded[0] ?? {}) as (Record<string, any[]> & { \\"@id\\"?: string });
17955
+ }
17956
+ if (options.baseUrl == null && values[\\"@id\\"] != null) {
17957
+ options = { ...options, baseUrl: new URL(values[\\"@id\\"]) };
17958
+ }
17959
+
17960
+ if (\\"@type\\" in values) {
17961
+ span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]);
17962
+ }
17963
+ if (\\"@type\\" in values &&
17964
+ !values[\\"@type\\"].every(t => t.startsWith(\\"_:\\"))) {
17965
+
17966
+ if (!values[\\"@type\\"].includes(\\"http://www.ontology-of-units-of-measure.org/resource/om-2/Measure\\")) {
17967
+ throw new TypeError(\\"Invalid type: \\" + values[\\"@type\\"]);
17968
+ }
17969
+ }
17970
+
17971
+ const instance = new this(
17972
+ { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined },
17973
+ options,
17974
+ );
17975
+ const _27fgyFbosTtMAhuepJH8K3ZGURT6: (string)[] = [];
17976
+
17977
+ let _27fgyFbosTtMAhuepJH8K3ZGURT6__array = values[\\"http://www.ontology-of-units-of-measure.org/resource/om-2/hasUnit\\"];
17978
+
17979
+ for (
17980
+ const v of _27fgyFbosTtMAhuepJH8K3ZGURT6__array == null
17981
+ ? []
17982
+ : _27fgyFbosTtMAhuepJH8K3ZGURT6__array.length === 1 && \\"@list\\" in _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0]
17983
+ ? _27fgyFbosTtMAhuepJH8K3ZGURT6__array[0][\\"@list\\"]
17984
+ : _27fgyFbosTtMAhuepJH8K3ZGURT6__array
17985
+ ) {
17986
+ if (v == null) continue;
17987
+ _27fgyFbosTtMAhuepJH8K3ZGURT6.push(v[\\"@value\\"])
17988
+ }
17989
+ instance.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = _27fgyFbosTtMAhuepJH8K3ZGURT6;
17990
+ const _1GQx8o2RgxRs4x9G5uT39XYBv7D: (Decimal)[] = [];
17991
+
17992
+ let _1GQx8o2RgxRs4x9G5uT39XYBv7D__array = values[\\"http://www.ontology-of-units-of-measure.org/resource/om-2/hasNumericalValue\\"];
17993
+
17994
+ for (
17995
+ const v of _1GQx8o2RgxRs4x9G5uT39XYBv7D__array == null
17996
+ ? []
17997
+ : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array.length === 1 && \\"@list\\" in _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0]
17998
+ ? _1GQx8o2RgxRs4x9G5uT39XYBv7D__array[0][\\"@list\\"]
17999
+ : _1GQx8o2RgxRs4x9G5uT39XYBv7D__array
18000
+ ) {
18001
+ if (v == null) continue;
18002
+ _1GQx8o2RgxRs4x9G5uT39XYBv7D.push(parseDecimal(v[\\"@value\\"]))
18003
+ }
18004
+ instance.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = _1GQx8o2RgxRs4x9G5uT39XYBv7D;
18005
+
18006
+ if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
18007
+ try {
18008
+ instance._cachedJsonLd = structuredClone(json);
18009
+ } catch {
18010
+ getLogger([\\"fedify\\", \\"vocab\\"]).warn(
18011
+ \\"Failed to cache JSON-LD: {json}\\",
18012
+ { json },
18013
+ );
18014
+ }
18015
+ }
18016
+ return instance;
18017
+ }
18018
+
18019
+ protected _getCustomInspectProxy(): Record<string, unknown> {
18020
+
18021
+ const proxy: Record<string, unknown> = {};
18022
+ if (this.id != null) {
18023
+ proxy.id = {
18024
+ [Symbol.for(\\"Deno.customInspect\\")]: (
18025
+ inspect: typeof Deno.inspect,
18026
+ options: Deno.InspectOptions,
18027
+ ): string => \\"URL \\" + inspect(this.id!.href, options),
18028
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
18029
+ _depth: number,
18030
+ options: unknown,
18031
+ inspect: (value: unknown, options: unknown) => string,
18032
+ ): string => \\"URL \\" + inspect(this.id!.href, options),
18033
+ };
18034
+ }
18035
+
18036
+ const _27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6
18037
+ // deno-lint-ignore no-explicit-any
18038
+ .map((v: any) => v instanceof URL
18039
+ ? {
18040
+ [Symbol.for(\\"Deno.customInspect\\")]: (
18041
+ inspect: typeof Deno.inspect,
18042
+ options: Deno.InspectOptions,
18043
+ ): string => \\"URL \\" + inspect(v.href, options),
18044
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
18045
+ _depth: number,
18046
+ options: unknown,
18047
+ inspect: (value: unknown, options: unknown) => string,
18048
+ ): string => \\"URL \\" + inspect(v.href, options),
18049
+ }
18050
+ : v);
18051
+
18052
+ if (_27fgyFbosTtMAhuepJH8K3ZGURT6.length == 1) {
18053
+ proxy.unit = _27fgyFbosTtMAhuepJH8K3ZGURT6[0];
18054
+ }
18055
+
18056
+ const _1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D
18057
+ // deno-lint-ignore no-explicit-any
18058
+ .map((v: any) => v instanceof URL
18059
+ ? {
18060
+ [Symbol.for(\\"Deno.customInspect\\")]: (
18061
+ inspect: typeof Deno.inspect,
18062
+ options: Deno.InspectOptions,
18063
+ ): string => \\"URL \\" + inspect(v.href, options),
18064
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
18065
+ _depth: number,
18066
+ options: unknown,
18067
+ inspect: (value: unknown, options: unknown) => string,
18068
+ ): string => \\"URL \\" + inspect(v.href, options),
18069
+ }
18070
+ : v);
18071
+
18072
+ if (_1GQx8o2RgxRs4x9G5uT39XYBv7D.length == 1) {
18073
+ proxy.numericalValue = _1GQx8o2RgxRs4x9G5uT39XYBv7D[0];
18074
+ }
18075
+
18076
+ return proxy;
18077
+ }
18078
+ }
18079
+
18080
+
18081
+ // deno-lint-ignore no-explicit-any
18082
+ (Measure.prototype as any)[Symbol.for(\\"Deno.customInspect\\")] =
18083
+ function (
18084
+ this: Measure,
18085
+ inspect: typeof Deno.inspect,
18086
+ options: Deno.InspectOptions,
18087
+ ): string {
18088
+ const proxy = this._getCustomInspectProxy();
18089
+ return \\"Measure \\" + inspect(proxy, options);
18090
+ };
18091
+
18092
+ // deno-lint-ignore no-explicit-any
18093
+ (Measure.prototype as any)[Symbol.for(\\"nodejs.util.inspect.custom\\")] =
18094
+ function (
18095
+ this: Measure,
18096
+ _depth: number,
18097
+ options: unknown,
18098
+ inspect: (value: unknown, options: unknown) => string,
18099
+ ): string {
18100
+ const proxy = this._getCustomInspectProxy();
18101
+ return \\"Measure \\" + inspect(proxy, options);
18102
+ };
17531
18103
  /** Proves that an {@link Announce} interaction has been approved by
17532
18104
  * the post author.
17533
18105
  *
@@ -26470,6 +27042,1723 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
26470
27042
  const proxy = this._getCustomInspectProxy();
26471
27043
  return \\"Multikey \\" + inspect(proxy, options);
26472
27044
  };
27045
+ /** A proposed economic transaction describing what is being offered or requested
27046
+ * in a {@link Proposal}.
27047
+ *
27048
+ */
27049
+ export class Intent {
27050
+
27051
+ readonly #documentLoader?: DocumentLoader;
27052
+ readonly #contextLoader?: DocumentLoader;
27053
+ readonly #tracerProvider?: TracerProvider;
27054
+ readonly #warning?: {
27055
+ category: string[];
27056
+ message: string;
27057
+ values?: Record<string, unknown>;
27058
+ };
27059
+ #cachedJsonLd?: unknown;
27060
+ readonly id: URL | null;
27061
+
27062
+ protected get _documentLoader(): DocumentLoader | undefined {
27063
+ return this.#documentLoader;
27064
+ }
27065
+
27066
+ protected get _contextLoader(): DocumentLoader | undefined {
27067
+ return this.#contextLoader;
27068
+ }
27069
+
27070
+ protected get _tracerProvider(): TracerProvider | undefined {
27071
+ return this.#tracerProvider;
27072
+ }
27073
+
27074
+ protected get _warning(): {
27075
+ category: string[];
27076
+ message: string;
27077
+ values?: Record<string, unknown>;
27078
+ } | undefined {
27079
+ return this.#warning;
27080
+ }
27081
+
27082
+ protected get _cachedJsonLd(): unknown | undefined {
27083
+ return this.#cachedJsonLd;
27084
+ }
27085
+
27086
+ protected set _cachedJsonLd(value: unknown | undefined) {
27087
+ this.#cachedJsonLd = value;
27088
+ }
27089
+
27090
+ /**
27091
+ * The type URI of {@link Intent}: \`https://w3id.org/valueflows/ont/vf#Intent\`.
27092
+ */
27093
+ static get typeId(): URL {
27094
+ return new URL(\\"https://w3id.org/valueflows/ont/vf#Intent\\");
27095
+ }
27096
+ #_38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = [];
27097
+ #_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo: (URL)[] = [];
27098
+ #_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity: (Measure)[] = [];
27099
+ #_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity: (Measure)[] = [];
27100
+ #_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity: (Measure)[] = [];
27101
+
27102
+ /**
27103
+ * Constructs a new instance of Intent with the given values.
27104
+ * @param values The values to initialize the instance with.
27105
+ * @param options The options to use for initialization.
27106
+ */
27107
+ constructor(
27108
+ values:
27109
+ {
27110
+ id?: URL | null;
27111
+ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measure | null;availableQuantity?: Measure | null;minimumQuantity?: Measure | null;}
27112
+ ,
27113
+ options: {
27114
+ documentLoader?: DocumentLoader,
27115
+ contextLoader?: DocumentLoader,
27116
+ tracerProvider?: TracerProvider,
27117
+ } = {},
27118
+ ) {
27119
+
27120
+ this.#documentLoader = options.documentLoader;
27121
+ this.#contextLoader = options.contextLoader;
27122
+ this.#tracerProvider = options.tracerProvider;
27123
+ if (\\"$warning\\" in options) {
27124
+ this.#warning = options.$warning as unknown as {
27125
+ category: string[];
27126
+ message: string;
27127
+ values?: Record<string, unknown>;
27128
+ };
27129
+ }
27130
+ if (values.id == null || values.id instanceof URL) {
27131
+ this.id = values.id ?? null;
27132
+ } else {
27133
+ throw new TypeError(\\"The id must be a URL.\\");
27134
+ }
27135
+
27136
+ if (\\"action\\" in values && values.action != null) {
27137
+ if (typeof values.action === \\"string\\") {
27138
+ // @ts-ignore: type is checked above.
27139
+ this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
27140
+
27141
+ } else {
27142
+ throw new TypeError(
27143
+ \\"The action must be of type \\" +
27144
+ \\"string\\" + \\".\\",
27145
+ );
27146
+ }
27147
+ }
27148
+
27149
+ if (\\"resourceConformsTo\\" in values && values.resourceConformsTo != null) {
27150
+ if (values.resourceConformsTo instanceof URL) {
27151
+ // @ts-ignore: type is checked above.
27152
+ this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
27153
+
27154
+ } else {
27155
+ throw new TypeError(
27156
+ \\"The resourceConformsTo must be of type \\" +
27157
+ \\"URL\\" + \\".\\",
27158
+ );
27159
+ }
27160
+ }
27161
+
27162
+ if (\\"resourceQuantity\\" in values && values.resourceQuantity != null) {
27163
+ if (values.resourceQuantity instanceof Measure) {
27164
+ // @ts-ignore: type is checked above.
27165
+ this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
27166
+
27167
+ } else {
27168
+ throw new TypeError(
27169
+ \\"The resourceQuantity must be of type \\" +
27170
+ \\"Measure\\" + \\".\\",
27171
+ );
27172
+ }
27173
+ }
27174
+
27175
+ if (\\"availableQuantity\\" in values && values.availableQuantity != null) {
27176
+ if (values.availableQuantity instanceof Measure) {
27177
+ // @ts-ignore: type is checked above.
27178
+ this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
27179
+
27180
+ } else {
27181
+ throw new TypeError(
27182
+ \\"The availableQuantity must be of type \\" +
27183
+ \\"Measure\\" + \\".\\",
27184
+ );
27185
+ }
27186
+ }
27187
+
27188
+ if (\\"minimumQuantity\\" in values && values.minimumQuantity != null) {
27189
+ if (values.minimumQuantity instanceof Measure) {
27190
+ // @ts-ignore: type is checked above.
27191
+ this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
27192
+
27193
+ } else {
27194
+ throw new TypeError(
27195
+ \\"The minimumQuantity must be of type \\" +
27196
+ \\"Measure\\" + \\".\\",
27197
+ );
27198
+ }
27199
+ }
27200
+ }
27201
+
27202
+ /**
27203
+ * Clones this instance, optionally updating it with the given values.
27204
+ * @param values The values to update the clone with.
27205
+ * @param options The options to use for cloning.
27206
+ * @returns The cloned instance.
27207
+ */
27208
+ clone(
27209
+ values:
27210
+ {
27211
+ id?: URL | null;
27212
+ action?: string | null;resourceConformsTo?: URL | null;resourceQuantity?: Measure | null;availableQuantity?: Measure | null;minimumQuantity?: Measure | null;}
27213
+
27214
+ = {},
27215
+ options: {
27216
+ documentLoader?: DocumentLoader,
27217
+ contextLoader?: DocumentLoader,
27218
+ } = {}
27219
+ ): Intent {
27220
+ if (this._warning != null) {
27221
+ getLogger(this._warning.category).warn(
27222
+ this._warning.message,
27223
+ this._warning.values
27224
+ );
27225
+ // @ts-ignore: $warning is not recognized as a property, but it is.
27226
+ options = { ...options, $warning: this._warning };
27227
+ }
27228
+
27229
+ // @ts-ignore: this.constructor is not recognized as a constructor, but it is.
27230
+ const clone: Intent = new this.constructor(
27231
+ { id: values.id ?? this.id },
27232
+ options
27233
+ );
27234
+ clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
27235
+ if (\\"action\\" in values && values.action != null) {
27236
+ if (typeof values.action === \\"string\\") {
27237
+ // @ts-ignore: type is checked above.
27238
+ clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
27239
+
27240
+ } else {
27241
+ throw new TypeError(
27242
+ \\"The action must be of type \\" +
27243
+ \\"string\\" + \\".\\",
27244
+ );
27245
+ }
27246
+ }
27247
+ clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
27248
+ if (\\"resourceConformsTo\\" in values && values.resourceConformsTo != null) {
27249
+ if (values.resourceConformsTo instanceof URL) {
27250
+ // @ts-ignore: type is checked above.
27251
+ clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
27252
+
27253
+ } else {
27254
+ throw new TypeError(
27255
+ \\"The resourceConformsTo must be of type \\" +
27256
+ \\"URL\\" + \\".\\",
27257
+ );
27258
+ }
27259
+ }
27260
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
27261
+ if (\\"resourceQuantity\\" in values && values.resourceQuantity != null) {
27262
+ if (values.resourceQuantity instanceof Measure) {
27263
+ // @ts-ignore: type is checked above.
27264
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
27265
+
27266
+ } else {
27267
+ throw new TypeError(
27268
+ \\"The resourceQuantity must be of type \\" +
27269
+ \\"Measure\\" + \\".\\",
27270
+ );
27271
+ }
27272
+ }
27273
+ clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
27274
+ if (\\"availableQuantity\\" in values && values.availableQuantity != null) {
27275
+ if (values.availableQuantity instanceof Measure) {
27276
+ // @ts-ignore: type is checked above.
27277
+ clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
27278
+
27279
+ } else {
27280
+ throw new TypeError(
27281
+ \\"The availableQuantity must be of type \\" +
27282
+ \\"Measure\\" + \\".\\",
27283
+ );
27284
+ }
27285
+ }
27286
+ clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
27287
+ if (\\"minimumQuantity\\" in values && values.minimumQuantity != null) {
27288
+ if (values.minimumQuantity instanceof Measure) {
27289
+ // @ts-ignore: type is checked above.
27290
+ clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
27291
+
27292
+ } else {
27293
+ throw new TypeError(
27294
+ \\"The minimumQuantity must be of type \\" +
27295
+ \\"Measure\\" + \\".\\",
27296
+ );
27297
+ }
27298
+ }
27299
+
27300
+ return clone;
27301
+ }
27302
+
27303
+ /** The type of economic transaction. The value of this property should be
27304
+ * either \`\\"deliverService\\"\` or \`\\"transfer\\"\`.
27305
+ *
27306
+ */
27307
+ get action(): (string | null) {
27308
+ if (this._warning != null) {
27309
+ getLogger(this._warning.category).warn(
27310
+ this._warning.message,
27311
+ this._warning.values
27312
+ );
27313
+ }
27314
+ if (this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.length < 1) return null;
27315
+ return this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action[0];
27316
+ }
27317
+
27318
+ /** The type of an economic resource. Could be any URI.
27319
+ *
27320
+ */
27321
+ get resourceConformsTo(): (URL | null) {
27322
+ if (this._warning != null) {
27323
+ getLogger(this._warning.category).warn(
27324
+ this._warning.message,
27325
+ this._warning.values
27326
+ );
27327
+ }
27328
+ if (this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.length < 1) return null;
27329
+ return this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo[0];
27330
+ }
27331
+
27332
+ /** The amount and unit of the economic resource.
27333
+ *
27334
+ */
27335
+ get resourceQuantity(): (Measure | null) {
27336
+ if (this._warning != null) {
27337
+ getLogger(this._warning.category).warn(
27338
+ this._warning.message,
27339
+ this._warning.values
27340
+ );
27341
+ }
27342
+ if (this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length < 1) return null;
27343
+ return this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
27344
+ }
27345
+
27346
+ /** The quantity of the offered resource currently available.
27347
+ *
27348
+ */
27349
+ get availableQuantity(): (Measure | null) {
27350
+ if (this._warning != null) {
27351
+ getLogger(this._warning.category).warn(
27352
+ this._warning.message,
27353
+ this._warning.values
27354
+ );
27355
+ }
27356
+ if (this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.length < 1) return null;
27357
+ return this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity[0];
27358
+ }
27359
+
27360
+ /** The minimum possible quantity of the resource.
27361
+ *
27362
+ */
27363
+ get minimumQuantity(): (Measure | null) {
27364
+ if (this._warning != null) {
27365
+ getLogger(this._warning.category).warn(
27366
+ this._warning.message,
27367
+ this._warning.values
27368
+ );
27369
+ }
27370
+ if (this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.length < 1) return null;
27371
+ return this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity[0];
27372
+ }
27373
+
27374
+ /**
27375
+ * Converts this object to a JSON-LD structure.
27376
+ * @param options The options to use.
27377
+ * - \`format\`: The format of the output: \`compact\` or
27378
+ \`expand\`.
27379
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
27380
+ * - \`context\`: The JSON-LD context to use. Not applicable
27381
+ when \`format\` is set to \`'expand'\`.
27382
+ * @returns The JSON-LD representation of this object.
27383
+ */
27384
+ async toJsonLd(options: {
27385
+ format?: \\"compact\\" | \\"expand\\",
27386
+ contextLoader?: DocumentLoader,
27387
+ context?: string | Record<string, string> | (string | Record<string, string>)[],
27388
+ } = {}): Promise<unknown> {
27389
+ if (options.format == null && this._cachedJsonLd != null) {
27390
+ return this._cachedJsonLd;
27391
+ }
27392
+ if (options.format !== \\"compact\\" && options.context != null) {
27393
+ throw new TypeError(
27394
+ \\"The context option can only be used when the format option is set \\" +
27395
+ \\"to 'compact'.\\"
27396
+ );
27397
+ }
27398
+ options = {
27399
+ ...options,
27400
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
27401
+ };
27402
+
27403
+ if (options.format == null && this.isCompactable()) {
27404
+ const result: Record<string, unknown> = {};
27405
+ // deno-lint-ignore no-unused-vars
27406
+ let compactItems: unknown[];
27407
+
27408
+ compactItems = [];
27409
+ for (const v of this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action) {
27410
+ const item = (
27411
+ v
27412
+ );
27413
+ compactItems.push(item);
27414
+ }
27415
+ if (compactItems.length > 0) {
27416
+
27417
+ result[\\"action\\"]
27418
+ = compactItems.length > 1
27419
+ ? compactItems
27420
+ : compactItems[0];
27421
+
27422
+ }
27423
+
27424
+ compactItems = [];
27425
+ for (const v of this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo) {
27426
+ const item = (
27427
+ v.href
27428
+ );
27429
+ compactItems.push(item);
27430
+ }
27431
+ if (compactItems.length > 0) {
27432
+
27433
+ result[\\"resourceConformsTo\\"]
27434
+ = compactItems.length > 1
27435
+ ? compactItems
27436
+ : compactItems[0];
27437
+
27438
+ }
27439
+
27440
+ compactItems = [];
27441
+ for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
27442
+ const item = (
27443
+ await v.toJsonLd({
27444
+ ...(options),
27445
+ format: undefined,
27446
+ context: undefined,
27447
+ })
27448
+ );
27449
+ compactItems.push(item);
27450
+ }
27451
+ if (compactItems.length > 0) {
27452
+
27453
+ result[\\"resourceQuantity\\"]
27454
+ = compactItems.length > 1
27455
+ ? compactItems
27456
+ : compactItems[0];
27457
+
27458
+ }
27459
+
27460
+ compactItems = [];
27461
+ for (const v of this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity) {
27462
+ const item = (
27463
+ await v.toJsonLd({
27464
+ ...(options),
27465
+ format: undefined,
27466
+ context: undefined,
27467
+ })
27468
+ );
27469
+ compactItems.push(item);
27470
+ }
27471
+ if (compactItems.length > 0) {
27472
+
27473
+ result[\\"availableQuantity\\"]
27474
+ = compactItems.length > 1
27475
+ ? compactItems
27476
+ : compactItems[0];
27477
+
27478
+ }
27479
+
27480
+ compactItems = [];
27481
+ for (const v of this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity) {
27482
+ const item = (
27483
+ await v.toJsonLd({
27484
+ ...(options),
27485
+ format: undefined,
27486
+ context: undefined,
27487
+ })
27488
+ );
27489
+ compactItems.push(item);
27490
+ }
27491
+ if (compactItems.length > 0) {
27492
+
27493
+ result[\\"minimumQuantity\\"]
27494
+ = compactItems.length > 1
27495
+ ? compactItems
27496
+ : compactItems[0];
27497
+
27498
+ }
27499
+
27500
+ result[\\"type\\"] = \\"Intent\\";
27501
+ if (this.id != null) result[\\"id\\"] = this.id.href;
27502
+ result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"Intent\\":\\"vf:Intent\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
27503
+ return result;
27504
+ }
27505
+
27506
+ // deno-lint-ignore no-unused-vars prefer-const
27507
+ let array: unknown[];
27508
+ const values: Record<string, unknown[] | string> = {};
27509
+ array = [];
27510
+ for (const v of this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action) {
27511
+ const element = (
27512
+ { \\"@value\\": v }
27513
+ );
27514
+ array.push(element);;
27515
+ }
27516
+ if (array.length > 0) {
27517
+ const propValue = (
27518
+ array
27519
+ );
27520
+ values[\\"https://w3id.org/valueflows/ont/vf#action\\"] = propValue;
27521
+
27522
+ }
27523
+
27524
+ array = [];
27525
+ for (const v of this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo) {
27526
+ const element = (
27527
+ { \\"@id\\": v.href }
27528
+ );
27529
+ array.push(element);;
27530
+ }
27531
+ if (array.length > 0) {
27532
+ const propValue = (
27533
+ array
27534
+ );
27535
+ values[\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\"] = propValue;
27536
+
27537
+ }
27538
+
27539
+ array = [];
27540
+ for (const v of this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity) {
27541
+ const element = (
27542
+ await v.toJsonLd(options)
27543
+ );
27544
+ array.push(element);;
27545
+ }
27546
+ if (array.length > 0) {
27547
+ const propValue = (
27548
+ array
27549
+ );
27550
+ values[\\"https://w3id.org/valueflows/ont/vf#resourceQuantity\\"] = propValue;
27551
+
27552
+ }
27553
+
27554
+ array = [];
27555
+ for (const v of this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity) {
27556
+ const element = (
27557
+ await v.toJsonLd(options)
27558
+ );
27559
+ array.push(element);;
27560
+ }
27561
+ if (array.length > 0) {
27562
+ const propValue = (
27563
+ array
27564
+ );
27565
+ values[\\"https://w3id.org/valueflows/ont/vf#availableQuantity\\"] = propValue;
27566
+
27567
+ }
27568
+
27569
+ array = [];
27570
+ for (const v of this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity) {
27571
+ const element = (
27572
+ await v.toJsonLd(options)
27573
+ );
27574
+ array.push(element);;
27575
+ }
27576
+ if (array.length > 0) {
27577
+ const propValue = (
27578
+ array
27579
+ );
27580
+ values[\\"https://w3id.org/valueflows/ont/vf#minimumQuantity\\"] = propValue;
27581
+
27582
+ }
27583
+
27584
+ values[\\"@type\\"] = [\\"https://w3id.org/valueflows/ont/vf#Intent\\"];
27585
+ if (this.id != null) values[\\"@id\\"] = this.id.href;
27586
+ if (options.format === \\"expand\\") {
27587
+ return await jsonld.expand(
27588
+ values,
27589
+ { documentLoader: options.contextLoader },
27590
+ );
27591
+ }
27592
+ const docContext = options.context ??
27593
+ [\\"https://www.w3.org/ns/activitystreams\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"Intent\\":\\"vf:Intent\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
27594
+ const compacted = await jsonld.compact(
27595
+ values,
27596
+ docContext,
27597
+ { documentLoader: options.contextLoader },
27598
+ );
27599
+ if (docContext != null) {
27600
+ // Embed context
27601
+
27602
+ }
27603
+ return compacted;
27604
+ }
27605
+
27606
+ protected isCompactable(): boolean {
27607
+
27608
+ return true;
27609
+ }
27610
+
27611
+ /**
27612
+ * Converts a JSON-LD structure to an object of this type.
27613
+ * @param json The JSON-LD structure to convert.
27614
+ * @param options The options to use.
27615
+ * - \`documentLoader\`: The loader for remote JSON-LD documents.
27616
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
27617
+ * - \`tracerProvider\`: The OpenTelemetry tracer provider to use.
27618
+ * If omitted, the global tracer provider is used.
27619
+ * @returns The object of this type.
27620
+ * @throws {TypeError} If the given \`json\` is invalid.
27621
+ */
27622
+ static async fromJsonLd(
27623
+ json: unknown,
27624
+ options: {
27625
+ documentLoader?: DocumentLoader,
27626
+ contextLoader?: DocumentLoader,
27627
+ tracerProvider?: TracerProvider,
27628
+ baseUrl?: URL,
27629
+ } = {},
27630
+ ): Promise<Intent> {
27631
+ const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
27632
+ const tracer = tracerProvider.getTracer(
27633
+ \\"@fedify/vocab-tools\\",
27634
+ \\"0.0.0\\",
27635
+ );
27636
+ return await tracer.startActiveSpan(
27637
+ \\"activitypub.parse_object\\",
27638
+ async (span) => {
27639
+ try {
27640
+ const object = await this.__fromJsonLd__Intent__(
27641
+ json, span, options);
27642
+ if (object.id != null) {
27643
+ span.setAttribute(\\"activitypub.object.id\\", object.id.href);
27644
+ }
27645
+ return object;
27646
+ } catch (error) {
27647
+ span.setStatus({
27648
+ code: SpanStatusCode.ERROR,
27649
+ message: String(error),
27650
+ });
27651
+ throw error;
27652
+ } finally {
27653
+ span.end();
27654
+ }
27655
+ },
27656
+ );
27657
+ }
27658
+
27659
+ protected static async __fromJsonLd__Intent__(
27660
+ json: unknown,
27661
+ span: Span,
27662
+ options: {
27663
+ documentLoader?: DocumentLoader,
27664
+ contextLoader?: DocumentLoader,
27665
+ tracerProvider?: TracerProvider,
27666
+ baseUrl?: URL,
27667
+ } = {},
27668
+ ): Promise<Intent> {
27669
+ if (typeof json === \\"undefined\\") {
27670
+ throw new TypeError(\\"Invalid JSON-LD: undefined.\\");
27671
+ }
27672
+ else if (json === null) throw new TypeError(\\"Invalid JSON-LD: null.\\");
27673
+ options = {
27674
+ ...options,
27675
+ documentLoader: options.documentLoader ?? getDocumentLoader(),
27676
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
27677
+ tracerProvider: options.tracerProvider ?? trace.getTracerProvider(),
27678
+ };
27679
+ // deno-lint-ignore no-explicit-any
27680
+ let values: Record<string, any[]> & { \\"@id\\"?: string };
27681
+ if (globalThis.Object.keys(json).length == 0) {
27682
+ values = {};
27683
+ } else {
27684
+ const expanded = await jsonld.expand(json, {
27685
+ documentLoader: options.contextLoader,
27686
+ keepFreeFloatingNodes: true,
27687
+ });
27688
+ values =
27689
+ // deno-lint-ignore no-explicit-any
27690
+ (expanded[0] ?? {}) as (Record<string, any[]> & { \\"@id\\"?: string });
27691
+ }
27692
+ if (options.baseUrl == null && values[\\"@id\\"] != null) {
27693
+ options = { ...options, baseUrl: new URL(values[\\"@id\\"]) };
27694
+ }
27695
+
27696
+ if (\\"@type\\" in values) {
27697
+ span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]);
27698
+ }
27699
+ if (\\"@type\\" in values &&
27700
+ !values[\\"@type\\"].every(t => t.startsWith(\\"_:\\"))) {
27701
+
27702
+ if (!values[\\"@type\\"].includes(\\"https://w3id.org/valueflows/ont/vf#Intent\\")) {
27703
+ throw new TypeError(\\"Invalid type: \\" + values[\\"@type\\"]);
27704
+ }
27705
+ }
27706
+
27707
+ const instance = new this(
27708
+ { id: \\"@id\\" in values ? new URL(values[\\"@id\\"] as string) : undefined },
27709
+ options,
27710
+ );
27711
+ const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action: (string)[] = [];
27712
+
27713
+ let _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array = values[\\"https://w3id.org/valueflows/ont/vf#action\\"];
27714
+
27715
+ for (
27716
+ const v of _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array == null
27717
+ ? []
27718
+ : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array.length === 1 && \\"@list\\" in _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0]
27719
+ ? _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array[0][\\"@list\\"]
27720
+ : _38VmZKmXJSBy3AvgqNa9GVqbdphy_action__array
27721
+ ) {
27722
+ if (v == null) continue;
27723
+ _38VmZKmXJSBy3AvgqNa9GVqbdphy_action.push(v[\\"@value\\"])
27724
+ }
27725
+ instance.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = _38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
27726
+ const _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo: (URL)[] = [];
27727
+
27728
+ let _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array = values[\\"https://w3id.org/valueflows/ont/vf#resourceConformsTo\\"];
27729
+
27730
+ for (
27731
+ const v of _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array == null
27732
+ ? []
27733
+ : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array.length === 1 && \\"@list\\" in _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0]
27734
+ ? _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array[0][\\"@list\\"]
27735
+ : _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo__array
27736
+ ) {
27737
+ if (v == null) continue;
27738
+ _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.push(v[\\"@id\\"].startsWith(\\"at://\\")
27739
+ ? new URL(\\"at://\\" +
27740
+ encodeURIComponent(
27741
+ v[\\"@id\\"].includes(\\"/\\", 5)
27742
+ ? v[\\"@id\\"].slice(5, v[\\"@id\\"].indexOf(\\"/\\", 5))
27743
+ : v[\\"@id\\"].slice(5)
27744
+ ) +
27745
+ (
27746
+ v[\\"@id\\"].includes(\\"/\\", 5)
27747
+ ? v[\\"@id\\"].slice(v[\\"@id\\"].indexOf(\\"/\\", 5))
27748
+ : \\"\\"
27749
+ )
27750
+ )
27751
+ : URL.canParse(v[\\"@id\\"]) && (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))
27752
+ ? new URL(v[\\"@id\\"])
27753
+ : new URL(v[\\"@id\\"], (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"]))))
27754
+ }
27755
+ instance.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
27756
+ const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity: (Measure)[] = [];
27757
+
27758
+ let _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array = values[\\"https://w3id.org/valueflows/ont/vf#resourceQuantity\\"];
27759
+
27760
+ for (
27761
+ const v of _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array == null
27762
+ ? []
27763
+ : _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array.length === 1 && \\"@list\\" in _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array[0]
27764
+ ? _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array[0][\\"@list\\"]
27765
+ : _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity__array
27766
+ ) {
27767
+ if (v == null) continue;
27768
+ _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.push(await Measure.fromJsonLd(
27769
+ v,
27770
+ { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
27771
+ ))
27772
+ }
27773
+ instance.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
27774
+ const _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity: (Measure)[] = [];
27775
+
27776
+ let _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array = values[\\"https://w3id.org/valueflows/ont/vf#availableQuantity\\"];
27777
+
27778
+ for (
27779
+ const v of _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array == null
27780
+ ? []
27781
+ : _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array.length === 1 && \\"@list\\" in _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array[0]
27782
+ ? _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array[0][\\"@list\\"]
27783
+ : _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity__array
27784
+ ) {
27785
+ if (v == null) continue;
27786
+ _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.push(await Measure.fromJsonLd(
27787
+ v,
27788
+ { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
27789
+ ))
27790
+ }
27791
+ instance.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
27792
+ const _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity: (Measure)[] = [];
27793
+
27794
+ let _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array = values[\\"https://w3id.org/valueflows/ont/vf#minimumQuantity\\"];
27795
+
27796
+ for (
27797
+ const v of _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array == null
27798
+ ? []
27799
+ : _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array.length === 1 && \\"@list\\" in _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array[0]
27800
+ ? _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array[0][\\"@list\\"]
27801
+ : _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity__array
27802
+ ) {
27803
+ if (v == null) continue;
27804
+ _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.push(await Measure.fromJsonLd(
27805
+ v,
27806
+ { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
27807
+ ))
27808
+ }
27809
+ instance.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
27810
+
27811
+ if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
27812
+ try {
27813
+ instance._cachedJsonLd = structuredClone(json);
27814
+ } catch {
27815
+ getLogger([\\"fedify\\", \\"vocab\\"]).warn(
27816
+ \\"Failed to cache JSON-LD: {json}\\",
27817
+ { json },
27818
+ );
27819
+ }
27820
+ }
27821
+ return instance;
27822
+ }
27823
+
27824
+ protected _getCustomInspectProxy(): Record<string, unknown> {
27825
+
27826
+ const proxy: Record<string, unknown> = {};
27827
+ if (this.id != null) {
27828
+ proxy.id = {
27829
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27830
+ inspect: typeof Deno.inspect,
27831
+ options: Deno.InspectOptions,
27832
+ ): string => \\"URL \\" + inspect(this.id!.href, options),
27833
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27834
+ _depth: number,
27835
+ options: unknown,
27836
+ inspect: (value: unknown, options: unknown) => string,
27837
+ ): string => \\"URL \\" + inspect(this.id!.href, options),
27838
+ };
27839
+ }
27840
+
27841
+ const _38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action
27842
+ // deno-lint-ignore no-explicit-any
27843
+ .map((v: any) => v instanceof URL
27844
+ ? {
27845
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27846
+ inspect: typeof Deno.inspect,
27847
+ options: Deno.InspectOptions,
27848
+ ): string => \\"URL \\" + inspect(v.href, options),
27849
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27850
+ _depth: number,
27851
+ options: unknown,
27852
+ inspect: (value: unknown, options: unknown) => string,
27853
+ ): string => \\"URL \\" + inspect(v.href, options),
27854
+ }
27855
+ : v);
27856
+
27857
+ if (_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.length == 1) {
27858
+ proxy.action = _38VmZKmXJSBy3AvgqNa9GVqbdphy_action[0];
27859
+ }
27860
+
27861
+ const _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo
27862
+ // deno-lint-ignore no-explicit-any
27863
+ .map((v: any) => v instanceof URL
27864
+ ? {
27865
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27866
+ inspect: typeof Deno.inspect,
27867
+ options: Deno.InspectOptions,
27868
+ ): string => \\"URL \\" + inspect(v.href, options),
27869
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27870
+ _depth: number,
27871
+ options: unknown,
27872
+ inspect: (value: unknown, options: unknown) => string,
27873
+ ): string => \\"URL \\" + inspect(v.href, options),
27874
+ }
27875
+ : v);
27876
+
27877
+ if (_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.length == 1) {
27878
+ proxy.resourceConformsTo = _BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo[0];
27879
+ }
27880
+
27881
+ const _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity
27882
+ // deno-lint-ignore no-explicit-any
27883
+ .map((v: any) => v instanceof URL
27884
+ ? {
27885
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27886
+ inspect: typeof Deno.inspect,
27887
+ options: Deno.InspectOptions,
27888
+ ): string => \\"URL \\" + inspect(v.href, options),
27889
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27890
+ _depth: number,
27891
+ options: unknown,
27892
+ inspect: (value: unknown, options: unknown) => string,
27893
+ ): string => \\"URL \\" + inspect(v.href, options),
27894
+ }
27895
+ : v);
27896
+
27897
+ if (_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.length == 1) {
27898
+ proxy.resourceQuantity = _2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity[0];
27899
+ }
27900
+
27901
+ const _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity
27902
+ // deno-lint-ignore no-explicit-any
27903
+ .map((v: any) => v instanceof URL
27904
+ ? {
27905
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27906
+ inspect: typeof Deno.inspect,
27907
+ options: Deno.InspectOptions,
27908
+ ): string => \\"URL \\" + inspect(v.href, options),
27909
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27910
+ _depth: number,
27911
+ options: unknown,
27912
+ inspect: (value: unknown, options: unknown) => string,
27913
+ ): string => \\"URL \\" + inspect(v.href, options),
27914
+ }
27915
+ : v);
27916
+
27917
+ if (_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.length == 1) {
27918
+ proxy.availableQuantity = _YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity[0];
27919
+ }
27920
+
27921
+ const _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity
27922
+ // deno-lint-ignore no-explicit-any
27923
+ .map((v: any) => v instanceof URL
27924
+ ? {
27925
+ [Symbol.for(\\"Deno.customInspect\\")]: (
27926
+ inspect: typeof Deno.inspect,
27927
+ options: Deno.InspectOptions,
27928
+ ): string => \\"URL \\" + inspect(v.href, options),
27929
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
27930
+ _depth: number,
27931
+ options: unknown,
27932
+ inspect: (value: unknown, options: unknown) => string,
27933
+ ): string => \\"URL \\" + inspect(v.href, options),
27934
+ }
27935
+ : v);
27936
+
27937
+ if (_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.length == 1) {
27938
+ proxy.minimumQuantity = _3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity[0];
27939
+ }
27940
+
27941
+ return proxy;
27942
+ }
27943
+ }
27944
+
27945
+
27946
+ // deno-lint-ignore no-explicit-any
27947
+ (Intent.prototype as any)[Symbol.for(\\"Deno.customInspect\\")] =
27948
+ function (
27949
+ this: Intent,
27950
+ inspect: typeof Deno.inspect,
27951
+ options: Deno.InspectOptions,
27952
+ ): string {
27953
+ const proxy = this._getCustomInspectProxy();
27954
+ return \\"Intent \\" + inspect(proxy, options);
27955
+ };
27956
+
27957
+ // deno-lint-ignore no-explicit-any
27958
+ (Intent.prototype as any)[Symbol.for(\\"nodejs.util.inspect.custom\\")] =
27959
+ function (
27960
+ this: Intent,
27961
+ _depth: number,
27962
+ options: unknown,
27963
+ inspect: (value: unknown, options: unknown) => string,
27964
+ ): string {
27965
+ const proxy = this._getCustomInspectProxy();
27966
+ return \\"Intent \\" + inspect(proxy, options);
27967
+ };
27968
+ /** A published request or offer, sometimes with what is expected in return.
27969
+ *
27970
+ * Proposals contain a primary {@link Intent} (via \`publishes\`) describing
27971
+ * what is being offered or requested, and optionally a reciprocal
27972
+ * {@link Intent} describing what is expected or offered in return.
27973
+ *
27974
+ * Note: This type extends ActivityStreams \`Object\` for practical
27975
+ * interoperability within ActivityPub federation, even though FEP-0837
27976
+ * defines \`Proposal\` as a pure ValueFlows type. Extending \`Object\`
27977
+ * provides useful inherited properties such as \`name\`, \`content\`,
27978
+ * \`attributedTo\`, \`published\`, \`to\`, and \`location\` without needing to
27979
+ * redefine them.
27980
+ *
27981
+ */
27982
+ export class Proposal extends Object {
27983
+
27984
+ /**
27985
+ * The type URI of {@link Proposal}: \`https://w3id.org/valueflows/ont/vf#Proposal\`.
27986
+ */
27987
+ static override get typeId(): URL {
27988
+ return new URL(\\"https://w3id.org/valueflows/ont/vf#Proposal\\");
27989
+ }
27990
+ #_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose: (string)[] = [];
27991
+ #_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes: (Intent)[] = [];
27992
+ #_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal: (Intent)[] = [];
27993
+ #_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased: (boolean)[] = [];
27994
+
27995
+ /**
27996
+ * Constructs a new instance of Proposal with the given values.
27997
+ * @param values The values to initialize the instance with.
27998
+ * @param options The options to use for initialization.
27999
+ */
28000
+ constructor(
28001
+ values:
28002
+ {
28003
+ id?: URL | null;
28004
+ attachments?: (Object | Link | PropertyValue | URL)[];attribution?: Application | Group | Organization | Person | Service | URL | null;
28005
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];audience?: Object | URL | null;
28006
+ audiences?: (Object | URL)[];content?: string | LanguageString | null;
28007
+ contents?: ((string | LanguageString))[];contexts?: (Object | Link | URL)[];name?: string | LanguageString | null;
28008
+ names?: ((string | LanguageString))[];endTime?: Temporal.Instant | null;generators?: (Object | Link | URL)[];icon?: Image | URL | null;
28009
+ icons?: (Image | URL)[];image?: Image | URL | null;
28010
+ images?: (Image | URL)[];replyTarget?: Object | Link | URL | null;
28011
+ replyTargets?: (Object | Link | URL)[];location?: Object | Link | URL | null;
28012
+ locations?: (Object | Link | URL)[];preview?: Link | Object | URL | null;
28013
+ previews?: (Link | Object | URL)[];published?: Temporal.Instant | null;replies?: Collection | URL | null;shares?: Collection | URL | null;likes?: Collection | URL | null;emojiReactions?: Collection | URL | null;startTime?: Temporal.Instant | null;summary?: string | LanguageString | null;
28014
+ summaries?: ((string | LanguageString))[];tags?: (Object | Link | URL)[];updated?: Temporal.Instant | null;url?: URL | Link | null;
28015
+ urls?: ((URL | Link))[];to?: Object | URL | null;
28016
+ tos?: (Object | URL)[];bto?: Object | URL | null;
28017
+ btos?: (Object | URL)[];cc?: Object | URL | null;
28018
+ ccs?: (Object | URL)[];bcc?: Object | URL | null;
28019
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
28020
+ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
28021
+ ,
28022
+ options: {
28023
+ documentLoader?: DocumentLoader,
28024
+ contextLoader?: DocumentLoader,
28025
+ tracerProvider?: TracerProvider,
28026
+ } = {},
28027
+ ) {
28028
+ super(values, options);
28029
+ if (\\"purpose\\" in values && values.purpose != null) {
28030
+ if (typeof values.purpose === \\"string\\") {
28031
+ // @ts-ignore: type is checked above.
28032
+ this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
28033
+
28034
+ } else {
28035
+ throw new TypeError(
28036
+ \\"The purpose must be of type \\" +
28037
+ \\"string\\" + \\".\\",
28038
+ );
28039
+ }
28040
+ }
28041
+
28042
+ if (\\"publishes\\" in values && values.publishes != null) {
28043
+ if (values.publishes instanceof Intent) {
28044
+ // @ts-ignore: type is checked above.
28045
+ this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
28046
+
28047
+ } else {
28048
+ throw new TypeError(
28049
+ \\"The publishes must be of type \\" +
28050
+ \\"Intent\\" + \\".\\",
28051
+ );
28052
+ }
28053
+ }
28054
+
28055
+ if (\\"reciprocal\\" in values && values.reciprocal != null) {
28056
+ if (values.reciprocal instanceof Intent) {
28057
+ // @ts-ignore: type is checked above.
28058
+ this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
28059
+
28060
+ } else {
28061
+ throw new TypeError(
28062
+ \\"The reciprocal must be of type \\" +
28063
+ \\"Intent\\" + \\".\\",
28064
+ );
28065
+ }
28066
+ }
28067
+
28068
+ if (\\"unitBased\\" in values && values.unitBased != null) {
28069
+ if (typeof values.unitBased === \\"boolean\\") {
28070
+ // @ts-ignore: type is checked above.
28071
+ this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
28072
+
28073
+ } else {
28074
+ throw new TypeError(
28075
+ \\"The unitBased must be of type \\" +
28076
+ \\"boolean\\" + \\".\\",
28077
+ );
28078
+ }
28079
+ }
28080
+ }
28081
+
28082
+ /**
28083
+ * Clones this instance, optionally updating it with the given values.
28084
+ * @param values The values to update the clone with.
28085
+ * @param options The options to use for cloning.
28086
+ * @returns The cloned instance.
28087
+ */
28088
+ override clone(
28089
+ values:
28090
+ {
28091
+ id?: URL | null;
28092
+ attachments?: (Object | Link | PropertyValue | URL)[];attribution?: Application | Group | Organization | Person | Service | URL | null;
28093
+ attributions?: (Application | Group | Organization | Person | Service | URL)[];audience?: Object | URL | null;
28094
+ audiences?: (Object | URL)[];content?: string | LanguageString | null;
28095
+ contents?: ((string | LanguageString))[];contexts?: (Object | Link | URL)[];name?: string | LanguageString | null;
28096
+ names?: ((string | LanguageString))[];endTime?: Temporal.Instant | null;generators?: (Object | Link | URL)[];icon?: Image | URL | null;
28097
+ icons?: (Image | URL)[];image?: Image | URL | null;
28098
+ images?: (Image | URL)[];replyTarget?: Object | Link | URL | null;
28099
+ replyTargets?: (Object | Link | URL)[];location?: Object | Link | URL | null;
28100
+ locations?: (Object | Link | URL)[];preview?: Link | Object | URL | null;
28101
+ previews?: (Link | Object | URL)[];published?: Temporal.Instant | null;replies?: Collection | URL | null;shares?: Collection | URL | null;likes?: Collection | URL | null;emojiReactions?: Collection | URL | null;startTime?: Temporal.Instant | null;summary?: string | LanguageString | null;
28102
+ summaries?: ((string | LanguageString))[];tags?: (Object | Link | URL)[];updated?: Temporal.Instant | null;url?: URL | Link | null;
28103
+ urls?: ((URL | Link))[];to?: Object | URL | null;
28104
+ tos?: (Object | URL)[];bto?: Object | URL | null;
28105
+ btos?: (Object | URL)[];cc?: Object | URL | null;
28106
+ ccs?: (Object | URL)[];bcc?: Object | URL | null;
28107
+ bccs?: (Object | URL)[];mediaType?: string | null;duration?: Temporal.Duration | null;sensitive?: boolean | null;source?: Source | null;proof?: DataIntegrityProof | URL | null;
28108
+ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | null;approvedBy?: URL | null;likeAuthorization?: LikeAuthorization | URL | null;replyAuthorization?: ReplyAuthorization | URL | null;announceAuthorization?: AnnounceAuthorization | URL | null;purpose?: string | null;publishes?: Intent | null;reciprocal?: Intent | null;unitBased?: boolean | null;}
28109
+
28110
+ = {},
28111
+ options: {
28112
+ documentLoader?: DocumentLoader,
28113
+ contextLoader?: DocumentLoader,
28114
+ } = {}
28115
+ ): Proposal {
28116
+ if (this._warning != null) {
28117
+ getLogger(this._warning.category).warn(
28118
+ this._warning.message,
28119
+ this._warning.values
28120
+ );
28121
+ // @ts-ignore: $warning is not recognized as a property, but it is.
28122
+ options = { ...options, $warning: this._warning };
28123
+ }
28124
+ const clone = super.clone(values, options) as unknown as Proposal;clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
28125
+ if (\\"purpose\\" in values && values.purpose != null) {
28126
+ if (typeof values.purpose === \\"string\\") {
28127
+ // @ts-ignore: type is checked above.
28128
+ clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
28129
+
28130
+ } else {
28131
+ throw new TypeError(
28132
+ \\"The purpose must be of type \\" +
28133
+ \\"string\\" + \\".\\",
28134
+ );
28135
+ }
28136
+ }
28137
+ clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
28138
+ if (\\"publishes\\" in values && values.publishes != null) {
28139
+ if (values.publishes instanceof Intent) {
28140
+ // @ts-ignore: type is checked above.
28141
+ clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
28142
+
28143
+ } else {
28144
+ throw new TypeError(
28145
+ \\"The publishes must be of type \\" +
28146
+ \\"Intent\\" + \\".\\",
28147
+ );
28148
+ }
28149
+ }
28150
+ clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
28151
+ if (\\"reciprocal\\" in values && values.reciprocal != null) {
28152
+ if (values.reciprocal instanceof Intent) {
28153
+ // @ts-ignore: type is checked above.
28154
+ clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
28155
+
28156
+ } else {
28157
+ throw new TypeError(
28158
+ \\"The reciprocal must be of type \\" +
28159
+ \\"Intent\\" + \\".\\",
28160
+ );
28161
+ }
28162
+ }
28163
+ clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
28164
+ if (\\"unitBased\\" in values && values.unitBased != null) {
28165
+ if (typeof values.unitBased === \\"boolean\\") {
28166
+ // @ts-ignore: type is checked above.
28167
+ clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
28168
+
28169
+ } else {
28170
+ throw new TypeError(
28171
+ \\"The unitBased must be of type \\" +
28172
+ \\"boolean\\" + \\".\\",
28173
+ );
28174
+ }
28175
+ }
28176
+
28177
+ return clone;
28178
+ }
28179
+
28180
+ /** The type of proposal. Possible values are \`\\"offer\\"\` and \`\\"request\\"\`.
28181
+ *
28182
+ */
28183
+ get purpose(): (string | null) {
28184
+ if (this._warning != null) {
28185
+ getLogger(this._warning.category).warn(
28186
+ this._warning.message,
28187
+ this._warning.values
28188
+ );
28189
+ }
28190
+ if (this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.length < 1) return null;
28191
+ return this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose[0];
28192
+ }
28193
+
28194
+ /** The primary intent of this proposal, describing what is being offered
28195
+ * or requested.
28196
+ *
28197
+ */
28198
+ get publishes(): (Intent | null) {
28199
+ if (this._warning != null) {
28200
+ getLogger(this._warning.category).warn(
28201
+ this._warning.message,
28202
+ this._warning.values
28203
+ );
28204
+ }
28205
+ if (this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.length < 1) return null;
28206
+ return this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes[0];
28207
+ }
28208
+
28209
+ /** The reciprocal intent of this proposal, describing what is expected
28210
+ * or offered in return.
28211
+ *
28212
+ */
28213
+ get reciprocal(): (Intent | null) {
28214
+ if (this._warning != null) {
28215
+ getLogger(this._warning.category).warn(
28216
+ this._warning.message,
28217
+ this._warning.values
28218
+ );
28219
+ }
28220
+ if (this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.length < 1) return null;
28221
+ return this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal[0];
28222
+ }
28223
+
28224
+ /** Indicates whether the quantities expressed in the proposal can be
28225
+ * multiplied or not. The default is \`false\`.
28226
+ *
28227
+ */
28228
+ get unitBased(): (boolean | null) {
28229
+ if (this._warning != null) {
28230
+ getLogger(this._warning.category).warn(
28231
+ this._warning.message,
28232
+ this._warning.values
28233
+ );
28234
+ }
28235
+ if (this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.length < 1) return null;
28236
+ return this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased[0];
28237
+ }
28238
+
28239
+ /**
28240
+ * Converts this object to a JSON-LD structure.
28241
+ * @param options The options to use.
28242
+ * - \`format\`: The format of the output: \`compact\` or
28243
+ \`expand\`.
28244
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
28245
+ * - \`context\`: The JSON-LD context to use. Not applicable
28246
+ when \`format\` is set to \`'expand'\`.
28247
+ * @returns The JSON-LD representation of this object.
28248
+ */
28249
+ override async toJsonLd(options: {
28250
+ format?: \\"compact\\" | \\"expand\\",
28251
+ contextLoader?: DocumentLoader,
28252
+ context?: string | Record<string, string> | (string | Record<string, string>)[],
28253
+ } = {}): Promise<unknown> {
28254
+ if (options.format == null && this._cachedJsonLd != null) {
28255
+ return this._cachedJsonLd;
28256
+ }
28257
+ if (options.format !== \\"compact\\" && options.context != null) {
28258
+ throw new TypeError(
28259
+ \\"The context option can only be used when the format option is set \\" +
28260
+ \\"to 'compact'.\\"
28261
+ );
28262
+ }
28263
+ options = {
28264
+ ...options,
28265
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
28266
+ };
28267
+
28268
+ if (options.format == null && this.isCompactable()) {
28269
+
28270
+ const result = await super.toJsonLd({
28271
+ ...options,
28272
+ format: undefined,
28273
+ context: undefined,
28274
+ }) as Record<string, unknown>;
28275
+
28276
+ // deno-lint-ignore no-unused-vars
28277
+ let compactItems: unknown[];
28278
+
28279
+ compactItems = [];
28280
+ for (const v of this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose) {
28281
+ const item = (
28282
+ v
28283
+ );
28284
+ compactItems.push(item);
28285
+ }
28286
+ if (compactItems.length > 0) {
28287
+
28288
+ result[\\"purpose\\"]
28289
+ = compactItems.length > 1
28290
+ ? compactItems
28291
+ : compactItems[0];
28292
+
28293
+ }
28294
+
28295
+ compactItems = [];
28296
+ for (const v of this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes) {
28297
+ const item = (
28298
+ await v.toJsonLd({
28299
+ ...(options),
28300
+ format: undefined,
28301
+ context: undefined,
28302
+ })
28303
+ );
28304
+ compactItems.push(item);
28305
+ }
28306
+ if (compactItems.length > 0) {
28307
+
28308
+ result[\\"publishes\\"]
28309
+ = compactItems.length > 1
28310
+ ? compactItems
28311
+ : compactItems[0];
28312
+
28313
+ }
28314
+
28315
+ compactItems = [];
28316
+ for (const v of this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal) {
28317
+ const item = (
28318
+ await v.toJsonLd({
28319
+ ...(options),
28320
+ format: undefined,
28321
+ context: undefined,
28322
+ })
28323
+ );
28324
+ compactItems.push(item);
28325
+ }
28326
+ if (compactItems.length > 0) {
28327
+
28328
+ result[\\"reciprocal\\"]
28329
+ = compactItems.length > 1
28330
+ ? compactItems
28331
+ : compactItems[0];
28332
+
28333
+ }
28334
+
28335
+ compactItems = [];
28336
+ for (const v of this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased) {
28337
+ const item = (
28338
+ v
28339
+ );
28340
+ compactItems.push(item);
28341
+ }
28342
+ if (compactItems.length > 0) {
28343
+
28344
+ result[\\"unitBased\\"]
28345
+ = compactItems.length > 1
28346
+ ? compactItems
28347
+ : compactItems[0];
28348
+
28349
+ }
28350
+
28351
+ result[\\"type\\"] = \\"Proposal\\";
28352
+ if (this.id != null) result[\\"id\\"] = this.id.href;
28353
+ result[\\"@context\\"] = [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"},\\"Proposal\\":\\"vf:Proposal\\",\\"Intent\\":\\"vf:Intent\\",\\"purpose\\":\\"vf:purpose\\",\\"unitBased\\":\\"vf:unitBased\\",\\"publishes\\":\\"vf:publishes\\",\\"reciprocal\\":\\"vf:reciprocal\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
28354
+ return result;
28355
+ }
28356
+
28357
+ // deno-lint-ignore no-unused-vars prefer-const
28358
+ let array: unknown[];
28359
+
28360
+ const baseValues = await super.toJsonLd({
28361
+ ...options,
28362
+ format: \\"expand\\",
28363
+ context: undefined,
28364
+ }) as unknown[];
28365
+ const values = baseValues[0] as Record<
28366
+ string,
28367
+ unknown[] | { \\"@list\\": unknown[] } | string
28368
+ >;
28369
+
28370
+ array = [];
28371
+ for (const v of this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose) {
28372
+ const element = (
28373
+ { \\"@value\\": v }
28374
+ );
28375
+ array.push(element);;
28376
+ }
28377
+ if (array.length > 0) {
28378
+ const propValue = (
28379
+ array
28380
+ );
28381
+ values[\\"https://w3id.org/valueflows/ont/vf#purpose\\"] = propValue;
28382
+
28383
+ }
28384
+
28385
+ array = [];
28386
+ for (const v of this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes) {
28387
+ const element = (
28388
+ await v.toJsonLd(options)
28389
+ );
28390
+ array.push(element);;
28391
+ }
28392
+ if (array.length > 0) {
28393
+ const propValue = (
28394
+ array
28395
+ );
28396
+ values[\\"https://w3id.org/valueflows/ont/vf#publishes\\"] = propValue;
28397
+
28398
+ }
28399
+
28400
+ array = [];
28401
+ for (const v of this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal) {
28402
+ const element = (
28403
+ await v.toJsonLd(options)
28404
+ );
28405
+ array.push(element);;
28406
+ }
28407
+ if (array.length > 0) {
28408
+ const propValue = (
28409
+ array
28410
+ );
28411
+ values[\\"https://w3id.org/valueflows/ont/vf#reciprocal\\"] = propValue;
28412
+
28413
+ }
28414
+
28415
+ array = [];
28416
+ for (const v of this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased) {
28417
+ const element = (
28418
+ { \\"@value\\": v }
28419
+ );
28420
+ array.push(element);;
28421
+ }
28422
+ if (array.length > 0) {
28423
+ const propValue = (
28424
+ array
28425
+ );
28426
+ values[\\"https://w3id.org/valueflows/ont/vf#unitBased\\"] = propValue;
28427
+
28428
+ }
28429
+
28430
+ values[\\"@type\\"] = [\\"https://w3id.org/valueflows/ont/vf#Proposal\\"];
28431
+ if (this.id != null) values[\\"@id\\"] = this.id.href;
28432
+ if (options.format === \\"expand\\") {
28433
+ return await jsonld.expand(
28434
+ values,
28435
+ { documentLoader: options.contextLoader },
28436
+ );
28437
+ }
28438
+ const docContext = options.context ??
28439
+ [\\"https://www.w3.org/ns/activitystreams\\",\\"https://w3id.org/security/data-integrity/v1\\",\\"https://gotosocial.org/ns\\",{\\"vf\\":\\"https://w3id.org/valueflows/ont/vf#\\",\\"om2\\":\\"http://www.ontology-of-units-of-measure.org/resource/om-2/\\",\\"fedibird\\":\\"http://fedibird.com/ns#\\",\\"sensitive\\":\\"as:sensitive\\",\\"emojiReactions\\":{\\"@id\\":\\"fedibird:emojiReactions\\",\\"@type\\":\\"@id\\"},\\"Proposal\\":\\"vf:Proposal\\",\\"Intent\\":\\"vf:Intent\\",\\"purpose\\":\\"vf:purpose\\",\\"unitBased\\":\\"vf:unitBased\\",\\"publishes\\":\\"vf:publishes\\",\\"reciprocal\\":\\"vf:reciprocal\\",\\"action\\":\\"vf:action\\",\\"resourceConformsTo\\":{\\"@id\\":\\"vf:resourceConformsTo\\",\\"@type\\":\\"@id\\"},\\"resourceQuantity\\":\\"vf:resourceQuantity\\",\\"availableQuantity\\":\\"vf:availableQuantity\\",\\"minimumQuantity\\":\\"vf:minimumQuantity\\",\\"hasUnit\\":\\"om2:hasUnit\\",\\"hasNumericalValue\\":\\"om2:hasNumericalValue\\"}];
28440
+ const compacted = await jsonld.compact(
28441
+ values,
28442
+ docContext,
28443
+ { documentLoader: options.contextLoader },
28444
+ );
28445
+ if (docContext != null) {
28446
+ // Embed context
28447
+
28448
+ if (\\"proof\\" in compacted &&
28449
+ compacted.proof != null) {
28450
+ if (Array.isArray(compacted.proof)) {
28451
+ for (const element of compacted.proof) {
28452
+ element[\\"@context\\"] = docContext;
28453
+ }
28454
+ } else {
28455
+ compacted.proof[\\"@context\\"] = docContext;
28456
+ }
28457
+ }
28458
+
28459
+ }
28460
+ return compacted;
28461
+ }
28462
+
28463
+ protected override isCompactable(): boolean {
28464
+
28465
+ return super.isCompactable();
28466
+ }
28467
+
28468
+ /**
28469
+ * Converts a JSON-LD structure to an object of this type.
28470
+ * @param json The JSON-LD structure to convert.
28471
+ * @param options The options to use.
28472
+ * - \`documentLoader\`: The loader for remote JSON-LD documents.
28473
+ * - \`contextLoader\`: The loader for remote JSON-LD contexts.
28474
+ * - \`tracerProvider\`: The OpenTelemetry tracer provider to use.
28475
+ * If omitted, the global tracer provider is used.
28476
+ * @returns The object of this type.
28477
+ * @throws {TypeError} If the given \`json\` is invalid.
28478
+ */
28479
+ static override async fromJsonLd(
28480
+ json: unknown,
28481
+ options: {
28482
+ documentLoader?: DocumentLoader,
28483
+ contextLoader?: DocumentLoader,
28484
+ tracerProvider?: TracerProvider,
28485
+ baseUrl?: URL,
28486
+ } = {},
28487
+ ): Promise<Proposal> {
28488
+ const tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
28489
+ const tracer = tracerProvider.getTracer(
28490
+ \\"@fedify/vocab-tools\\",
28491
+ \\"0.0.0\\",
28492
+ );
28493
+ return await tracer.startActiveSpan(
28494
+ \\"activitypub.parse_object\\",
28495
+ async (span) => {
28496
+ try {
28497
+ const object = await this.__fromJsonLd__Proposal__(
28498
+ json, span, options);
28499
+ if (object.id != null) {
28500
+ span.setAttribute(\\"activitypub.object.id\\", object.id.href);
28501
+ }
28502
+ return object;
28503
+ } catch (error) {
28504
+ span.setStatus({
28505
+ code: SpanStatusCode.ERROR,
28506
+ message: String(error),
28507
+ });
28508
+ throw error;
28509
+ } finally {
28510
+ span.end();
28511
+ }
28512
+ },
28513
+ );
28514
+ }
28515
+
28516
+ protected static async __fromJsonLd__Proposal__(
28517
+ json: unknown,
28518
+ span: Span,
28519
+ options: {
28520
+ documentLoader?: DocumentLoader,
28521
+ contextLoader?: DocumentLoader,
28522
+ tracerProvider?: TracerProvider,
28523
+ baseUrl?: URL,
28524
+ } = {},
28525
+ ): Promise<Proposal> {
28526
+ if (typeof json === \\"undefined\\") {
28527
+ throw new TypeError(\\"Invalid JSON-LD: undefined.\\");
28528
+ }
28529
+ else if (json === null) throw new TypeError(\\"Invalid JSON-LD: null.\\");
28530
+ options = {
28531
+ ...options,
28532
+ documentLoader: options.documentLoader ?? getDocumentLoader(),
28533
+ contextLoader: options.contextLoader ?? getDocumentLoader(),
28534
+ tracerProvider: options.tracerProvider ?? trace.getTracerProvider(),
28535
+ };
28536
+ // deno-lint-ignore no-explicit-any
28537
+ let values: Record<string, any[]> & { \\"@id\\"?: string };
28538
+ if (globalThis.Object.keys(json).length == 0) {
28539
+ values = {};
28540
+ } else {
28541
+ const expanded = await jsonld.expand(json, {
28542
+ documentLoader: options.contextLoader,
28543
+ keepFreeFloatingNodes: true,
28544
+ });
28545
+ values =
28546
+ // deno-lint-ignore no-explicit-any
28547
+ (expanded[0] ?? {}) as (Record<string, any[]> & { \\"@id\\"?: string });
28548
+ }
28549
+ if (options.baseUrl == null && values[\\"@id\\"] != null) {
28550
+ options = { ...options, baseUrl: new URL(values[\\"@id\\"]) };
28551
+ }
28552
+
28553
+ if (\\"@type\\" in values) {
28554
+ span.setAttribute(\\"activitypub.object.type\\", values[\\"@type\\"]);
28555
+ }
28556
+ if (\\"@type\\" in values &&
28557
+ !values[\\"@type\\"].every(t => t.startsWith(\\"_:\\"))) {
28558
+
28559
+ if (!values[\\"@type\\"].includes(\\"https://w3id.org/valueflows/ont/vf#Proposal\\")) {
28560
+ throw new TypeError(\\"Invalid type: \\" + values[\\"@type\\"]);
28561
+ }
28562
+ }
28563
+
28564
+ delete values[\\"@type\\"];
28565
+ const instance = await super.fromJsonLd(values, {
28566
+ ...options,
28567
+ // @ts-ignore: an internal option
28568
+ _fromSubclass: true,
28569
+ });
28570
+ if (!(instance instanceof Proposal)) {
28571
+ throw new TypeError(\\"Unexpected type: \\" + instance.constructor.name);
28572
+ }
28573
+ const _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose: (string)[] = [];
28574
+
28575
+ let _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array = values[\\"https://w3id.org/valueflows/ont/vf#purpose\\"];
28576
+
28577
+ for (
28578
+ const v of _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array == null
28579
+ ? []
28580
+ : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array.length === 1 && \\"@list\\" in _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0]
28581
+ ? _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array[0][\\"@list\\"]
28582
+ : _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose__array
28583
+ ) {
28584
+ if (v == null) continue;
28585
+ _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.push(v[\\"@value\\"])
28586
+ }
28587
+ instance.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
28588
+ const _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes: (Intent)[] = [];
28589
+
28590
+ let _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array = values[\\"https://w3id.org/valueflows/ont/vf#publishes\\"];
28591
+
28592
+ for (
28593
+ const v of _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array == null
28594
+ ? []
28595
+ : _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array.length === 1 && \\"@list\\" in _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array[0]
28596
+ ? _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array[0][\\"@list\\"]
28597
+ : _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes__array
28598
+ ) {
28599
+ if (v == null) continue;
28600
+ _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.push(await Intent.fromJsonLd(
28601
+ v,
28602
+ { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
28603
+ ))
28604
+ }
28605
+ instance.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
28606
+ const _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal: (Intent)[] = [];
28607
+
28608
+ let _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array = values[\\"https://w3id.org/valueflows/ont/vf#reciprocal\\"];
28609
+
28610
+ for (
28611
+ const v of _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array == null
28612
+ ? []
28613
+ : _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array.length === 1 && \\"@list\\" in _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array[0]
28614
+ ? _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array[0][\\"@list\\"]
28615
+ : _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal__array
28616
+ ) {
28617
+ if (v == null) continue;
28618
+ _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.push(await Intent.fromJsonLd(
28619
+ v,
28620
+ { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
28621
+ ))
28622
+ }
28623
+ instance.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
28624
+ const _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased: (boolean)[] = [];
28625
+
28626
+ let _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array = values[\\"https://w3id.org/valueflows/ont/vf#unitBased\\"];
28627
+
28628
+ for (
28629
+ const v of _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array == null
28630
+ ? []
28631
+ : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array.length === 1 && \\"@list\\" in _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0]
28632
+ ? _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array[0][\\"@list\\"]
28633
+ : _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased__array
28634
+ ) {
28635
+ if (v == null) continue;
28636
+ _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.push(v[\\"@value\\"])
28637
+ }
28638
+ instance.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
28639
+
28640
+ if (!(\\"_fromSubclass\\" in options) || !options._fromSubclass) {
28641
+ try {
28642
+ instance._cachedJsonLd = structuredClone(json);
28643
+ } catch {
28644
+ getLogger([\\"fedify\\", \\"vocab\\"]).warn(
28645
+ \\"Failed to cache JSON-LD: {json}\\",
28646
+ { json },
28647
+ );
28648
+ }
28649
+ }
28650
+ return instance;
28651
+ }
28652
+
28653
+ protected override _getCustomInspectProxy(): Record<string, unknown> {
28654
+ const proxy: Record<string, unknown> = super._getCustomInspectProxy();
28655
+ const _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose
28656
+ // deno-lint-ignore no-explicit-any
28657
+ .map((v: any) => v instanceof URL
28658
+ ? {
28659
+ [Symbol.for(\\"Deno.customInspect\\")]: (
28660
+ inspect: typeof Deno.inspect,
28661
+ options: Deno.InspectOptions,
28662
+ ): string => \\"URL \\" + inspect(v.href, options),
28663
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
28664
+ _depth: number,
28665
+ options: unknown,
28666
+ inspect: (value: unknown, options: unknown) => string,
28667
+ ): string => \\"URL \\" + inspect(v.href, options),
28668
+ }
28669
+ : v);
28670
+
28671
+ if (_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.length == 1) {
28672
+ proxy.purpose = _4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose[0];
28673
+ }
28674
+
28675
+ const _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes
28676
+ // deno-lint-ignore no-explicit-any
28677
+ .map((v: any) => v instanceof URL
28678
+ ? {
28679
+ [Symbol.for(\\"Deno.customInspect\\")]: (
28680
+ inspect: typeof Deno.inspect,
28681
+ options: Deno.InspectOptions,
28682
+ ): string => \\"URL \\" + inspect(v.href, options),
28683
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
28684
+ _depth: number,
28685
+ options: unknown,
28686
+ inspect: (value: unknown, options: unknown) => string,
28687
+ ): string => \\"URL \\" + inspect(v.href, options),
28688
+ }
28689
+ : v);
28690
+
28691
+ if (_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.length == 1) {
28692
+ proxy.publishes = _sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes[0];
28693
+ }
28694
+
28695
+ const _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal
28696
+ // deno-lint-ignore no-explicit-any
28697
+ .map((v: any) => v instanceof URL
28698
+ ? {
28699
+ [Symbol.for(\\"Deno.customInspect\\")]: (
28700
+ inspect: typeof Deno.inspect,
28701
+ options: Deno.InspectOptions,
28702
+ ): string => \\"URL \\" + inspect(v.href, options),
28703
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
28704
+ _depth: number,
28705
+ options: unknown,
28706
+ inspect: (value: unknown, options: unknown) => string,
28707
+ ): string => \\"URL \\" + inspect(v.href, options),
28708
+ }
28709
+ : v);
28710
+
28711
+ if (_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.length == 1) {
28712
+ proxy.reciprocal = _Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal[0];
28713
+ }
28714
+
28715
+ const _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased
28716
+ // deno-lint-ignore no-explicit-any
28717
+ .map((v: any) => v instanceof URL
28718
+ ? {
28719
+ [Symbol.for(\\"Deno.customInspect\\")]: (
28720
+ inspect: typeof Deno.inspect,
28721
+ options: Deno.InspectOptions,
28722
+ ): string => \\"URL \\" + inspect(v.href, options),
28723
+ [Symbol.for(\\"nodejs.util.inspect.custom\\")]: (
28724
+ _depth: number,
28725
+ options: unknown,
28726
+ inspect: (value: unknown, options: unknown) => string,
28727
+ ): string => \\"URL \\" + inspect(v.href, options),
28728
+ }
28729
+ : v);
28730
+
28731
+ if (_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.length == 1) {
28732
+ proxy.unitBased = _48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased[0];
28733
+ }
28734
+
28735
+ return proxy;
28736
+ }
28737
+ }
28738
+
28739
+
28740
+ // deno-lint-ignore no-explicit-any
28741
+ (Proposal.prototype as any)[Symbol.for(\\"Deno.customInspect\\")] =
28742
+ function (
28743
+ this: Proposal,
28744
+ inspect: typeof Deno.inspect,
28745
+ options: Deno.InspectOptions,
28746
+ ): string {
28747
+ const proxy = this._getCustomInspectProxy();
28748
+ return \\"Proposal \\" + inspect(proxy, options);
28749
+ };
28750
+
28751
+ // deno-lint-ignore no-explicit-any
28752
+ (Proposal.prototype as any)[Symbol.for(\\"nodejs.util.inspect.custom\\")] =
28753
+ function (
28754
+ this: Proposal,
28755
+ _depth: number,
28756
+ options: unknown,
28757
+ inspect: (value: unknown, options: unknown) => string,
28758
+ ): string {
28759
+ const proxy = this._getCustomInspectProxy();
28760
+ return \\"Proposal \\" + inspect(proxy, options);
28761
+ };
26473
28762
  /** Indicates that the \`actor\` accepts the \`object\`. The \`target\` property can be
26474
28763
  * used in certain circumstances to indicate the context into which the \`object\`
26475
28764
  * has been accepted.
@@ -40713,7 +43002,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40713
43002
 
40714
43003
  const decoded =
40715
43004
  typeof v === \\"object\\" && \\"@type\\" in v
40716
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
43005
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
40717
43006
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
40718
43007
  v,
40719
43008
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -53727,7 +56016,7 @@ get names(): ((string | LanguageString))[] {
53727
56016
  v,
53728
56017
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
53729
56018
  ) : typeof v === \\"object\\" && \\"@type\\" in v
53730
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
56019
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
53731
56020
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
53732
56021
  v,
53733
56022
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -58353,7 +60642,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
58353
60642
 
58354
60643
  const decoded =
58355
60644
  typeof v === \\"object\\" && \\"@type\\" in v
58356
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
60645
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
58357
60646
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
58358
60647
  v,
58359
60648
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }
@@ -59139,7 +61428,7 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
59139
61428
 
59140
61429
  const decoded =
59141
61430
  typeof v === \\"object\\" && \\"@type\\" in v
59142
- && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
61431
+ && Array.isArray(v[\\"@type\\"])&& [\\"https://www.w3.org/ns/activitystreams#Object\\",\\"http://joinmastodon.org/ns#Emoji\\",\\"http://litepub.social/ns#ChatMessage\\",\\"https://gotosocial.org/ns#AnnounceAuthorization\\",\\"https://gotosocial.org/ns#LikeApproval\\",\\"https://gotosocial.org/ns#ReplyAuthorization\\",\\"https://w3id.org/valueflows/ont/vf#Proposal\\",\\"https://www.w3.org/ns/activitystreams#Activity\\",\\"http://litepub.social/ns#EmojiReact\\",\\"https://gotosocial.org/ns#AnnounceRequest\\",\\"https://gotosocial.org/ns#LikeRequest\\",\\"https://gotosocial.org/ns#ReplyRequest\\",\\"https://www.w3.org/ns/activitystreams#Accept\\",\\"https://www.w3.org/ns/activitystreams#TentativeAccept\\",\\"https://www.w3.org/ns/activitystreams#Add\\",\\"https://www.w3.org/ns/activitystreams#Announce\\",\\"https://www.w3.org/ns/activitystreams#Create\\",\\"https://www.w3.org/ns/activitystreams#Delete\\",\\"https://www.w3.org/ns/activitystreams#Dislike\\",\\"https://www.w3.org/ns/activitystreams#Flag\\",\\"https://www.w3.org/ns/activitystreams#Follow\\",\\"https://www.w3.org/ns/activitystreams#Ignore\\",\\"https://www.w3.org/ns/activitystreams#Block\\",\\"https://www.w3.org/ns/activitystreams#IntransitiveActivity\\",\\"https://www.w3.org/ns/activitystreams#Arrive\\",\\"https://www.w3.org/ns/activitystreams#Question\\",\\"https://www.w3.org/ns/activitystreams#Travel\\",\\"https://www.w3.org/ns/activitystreams#Join\\",\\"https://www.w3.org/ns/activitystreams#Leave\\",\\"https://www.w3.org/ns/activitystreams#Like\\",\\"https://www.w3.org/ns/activitystreams#Listen\\",\\"https://www.w3.org/ns/activitystreams#Move\\",\\"https://www.w3.org/ns/activitystreams#Offer\\",\\"https://www.w3.org/ns/activitystreams#Invite\\",\\"https://www.w3.org/ns/activitystreams#Read\\",\\"https://www.w3.org/ns/activitystreams#Reject\\",\\"https://www.w3.org/ns/activitystreams#TentativeReject\\",\\"https://www.w3.org/ns/activitystreams#Remove\\",\\"https://www.w3.org/ns/activitystreams#Undo\\",\\"https://www.w3.org/ns/activitystreams#Update\\",\\"https://www.w3.org/ns/activitystreams#View\\",\\"https://www.w3.org/ns/activitystreams#Application\\",\\"https://www.w3.org/ns/activitystreams#Article\\",\\"https://www.w3.org/ns/activitystreams#Collection\\",\\"https://www.w3.org/ns/activitystreams#CollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollectionPage\\",\\"https://www.w3.org/ns/activitystreams#OrderedCollection\\",\\"https://www.w3.org/ns/activitystreams#Document\\",\\"https://www.w3.org/ns/activitystreams#Audio\\",\\"https://www.w3.org/ns/activitystreams#Image\\",\\"https://www.w3.org/ns/activitystreams#Page\\",\\"https://www.w3.org/ns/activitystreams#Video\\",\\"https://www.w3.org/ns/activitystreams#Event\\",\\"https://www.w3.org/ns/activitystreams#Group\\",\\"https://www.w3.org/ns/activitystreams#Note\\",\\"https://www.w3.org/ns/activitystreams#Organization\\",\\"https://www.w3.org/ns/activitystreams#Person\\",\\"https://www.w3.org/ns/activitystreams#Place\\",\\"https://www.w3.org/ns/activitystreams#Profile\\",\\"https://www.w3.org/ns/activitystreams#Relationship\\",\\"https://www.w3.org/ns/activitystreams#Service\\",\\"https://www.w3.org/ns/activitystreams#Tombstone\\"].some(
59143
61432
  t => v[\\"@type\\"].includes(t)) ? await Object.fromJsonLd(
59144
61433
  v,
59145
61434
  { ...options, baseUrl: (values[\\"@id\\"] == null ? options.baseUrl : new URL(values[\\"@id\\"])) }