@standards/schema 1.0.0-alpha.412 → 1.0.0-alpha.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all-Bldqj4jl.d.ts +4360 -0
- package/dist/all-BxsoHW0V.js +4 -0
- package/dist/all-C27HT84u.mjs +4 -0
- package/dist/all-CmG4j3B_.d.mts +4360 -0
- package/dist/api/index.d.mts +386 -764
- package/dist/api/index.d.ts +386 -764
- package/dist/api/index.js +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/{exceptions-C420ndUi.d.ts → exceptions-BIqEbF4H.d.mts} +0 -2
- package/dist/{exceptions-C420ndUi.d.mts → exceptions-BIqEbF4H.d.ts} +0 -2
- package/dist/exceptions.d.mts +1 -1
- package/dist/exceptions.d.ts +1 -1
- package/dist/exceptions.js +1 -1
- package/dist/exceptions.mjs +1 -1
- package/dist/{index-BcSCcPYP.d.mts → index-BGdQIO0V.d.mts} +5902 -5866
- package/dist/{index-DML62rLJ.d.ts → index-DIo9VcVh.d.ts} +5902 -5866
- package/dist/index.d.mts +5 -10
- package/dist/index.d.ts +5 -10
- package/dist/index.js +1653 -1
- package/dist/index.mjs +1653 -1
- package/dist/local-path-CDRPquGU.js +2 -0
- package/dist/local-path-PA4ZoNKq.mjs +2 -0
- package/dist/primitives-DpBFjzxV.mjs +11 -0
- package/dist/primitives-s7GS1T3w.js +11 -0
- package/dist/record-operation-C-qr4zs3.js +2 -0
- package/dist/record-operation-DM8ZJvmH.mjs +2 -0
- package/dist/{utils-Damrow3z.d.ts → utils-CIVBFpC3.d.mts} +11 -1
- package/dist/{utils-BwO5qkWb.d.mts → utils-iNW5feob.d.ts} +11 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/validation/all.d.mts +1 -4
- package/dist/validation/all.d.ts +1 -4
- package/dist/validation/all.js +1 -1
- package/dist/validation/all.mjs +1 -1
- package/package.json +2 -172
- package/dist/all-B1wPXYWF.d.mts +0 -2967
- package/dist/all-BPIA8DP2.mjs +0 -2
- package/dist/all-C46IPclG.js +0 -2
- package/dist/all-LNCDQFk5.d.ts +0 -2967
- package/dist/attributes-HkhFubZE.d.ts +0 -561
- package/dist/attributes-oDsTQ689.d.mts +0 -561
- package/dist/checkbox-BN3EcJMd.d.ts +0 -10
- package/dist/checkbox-Dd8-zfTD.d.mts +0 -10
- package/dist/config-YSw2jzWj.js +0 -2
- package/dist/config-iUwnquKr.mjs +0 -2
- package/dist/core-DAxRlJ5i.js +0 -2
- package/dist/core-rKI7Q9_U.mjs +0 -2
- package/dist/date-CEi4zU-G.d.ts +0 -23
- package/dist/date-CTR5SI6F.d.mts +0 -23
- package/dist/index-BEKmQS4Q.d.mts +0 -269
- package/dist/index-BW5-F7CG.d.mts +0 -52
- package/dist/index-CtcIhiFv.d.ts +0 -269
- package/dist/index-Cxr1ytkx.d.ts +0 -52
- package/dist/index-Dl5E_5ex.d.mts +0 -100
- package/dist/index-DungcUbX.d.ts +0 -100
- package/dist/number-BeaqB8WD.d.ts +0 -10
- package/dist/number-CwD0yOIv.d.mts +0 -10
- package/dist/object-5-wnsH0o.js +0 -4
- package/dist/object-BF5y6bgs.mjs +0 -4
- package/dist/objects-CkhVZFNC.d.mts +0 -478
- package/dist/objects-DDtMv0oN.d.ts +0 -478
- package/dist/phone-BGJea5sr.mjs +0 -2
- package/dist/phone-DHXyNkVY.js +0 -2
- package/dist/primitives-BCJLtpaI.mjs +0 -11
- package/dist/primitives-CVbrjJ24.js +0 -11
- package/dist/record-aggregates-BrLE4IsX.mjs +0 -2
- package/dist/record-aggregates-BuOfVWPJ.js +0 -2
- package/dist/record-operation-B1J86dGW.js +0 -2
- package/dist/record-operation-BTmK3mBi.mjs +0 -2
- package/dist/rolldown-runtime-DETHMehu.js +0 -2
- package/dist/text-BaxaZ5Vv.mjs +0 -2
- package/dist/text-Bf12HDTw.d.mts +0 -10
- package/dist/text-DVrTGjjX.js +0 -2
- package/dist/text-Dim46h6u.d.ts +0 -10
- package/dist/validation/complex/currency.d.mts +0 -13
- package/dist/validation/complex/currency.d.ts +0 -13
- package/dist/validation/complex/currency.js +0 -2
- package/dist/validation/complex/currency.mjs +0 -2
- package/dist/validation/complex/location.d.mts +0 -20
- package/dist/validation/complex/location.d.ts +0 -20
- package/dist/validation/complex/location.js +0 -2
- package/dist/validation/complex/location.mjs +0 -2
- package/dist/validation/complex/phone.d.mts +0 -20
- package/dist/validation/complex/phone.d.ts +0 -20
- package/dist/validation/complex/phone.js +0 -2
- package/dist/validation/complex/phone.mjs +0 -2
- package/dist/validation/complex/relation.d.mts +0 -23
- package/dist/validation/complex/relation.d.ts +0 -23
- package/dist/validation/complex/relation.js +0 -2
- package/dist/validation/complex/relation.mjs +0 -2
- package/dist/validation/complex/richtext.d.mts +0 -11
- package/dist/validation/complex/richtext.d.ts +0 -11
- package/dist/validation/complex/richtext.js +0 -2
- package/dist/validation/complex/richtext.mjs +0 -2
- package/dist/validation/complex/select.d.mts +0 -18
- package/dist/validation/complex/select.d.ts +0 -18
- package/dist/validation/complex/select.js +0 -2
- package/dist/validation/complex/select.mjs +0 -2
- package/dist/validation/complex/user.d.mts +0 -11
- package/dist/validation/complex/user.d.ts +0 -11
- package/dist/validation/complex/user.js +0 -2
- package/dist/validation/complex/user.mjs +0 -2
- package/dist/validation/computed/formula.d.mts +0 -12
- package/dist/validation/computed/formula.d.ts +0 -12
- package/dist/validation/computed/formula.js +0 -2
- package/dist/validation/computed/formula.mjs +0 -2
- package/dist/validation/computed/rollup.d.mts +0 -12
- package/dist/validation/computed/rollup.d.ts +0 -12
- package/dist/validation/computed/rollup.js +0 -2
- package/dist/validation/computed/rollup.mjs +0 -2
- package/dist/validation/config/index.d.mts +0 -3
- package/dist/validation/config/index.d.ts +0 -3
- package/dist/validation/config/index.js +0 -2
- package/dist/validation/config/index.mjs +0 -2
- package/dist/validation/core/index.d.mts +0 -3
- package/dist/validation/core/index.d.ts +0 -3
- package/dist/validation/core/index.js +0 -2
- package/dist/validation/core/index.mjs +0 -2
- package/dist/validation/object/index.d.mts +0 -3
- package/dist/validation/object/index.d.ts +0 -3
- package/dist/validation/object/index.js +0 -2
- package/dist/validation/object/index.mjs +0 -2
- package/dist/validation/primitives/checkbox.d.mts +0 -3
- package/dist/validation/primitives/checkbox.d.ts +0 -3
- package/dist/validation/primitives/checkbox.js +0 -2
- package/dist/validation/primitives/checkbox.mjs +0 -2
- package/dist/validation/primitives/date.d.mts +0 -3
- package/dist/validation/primitives/date.d.ts +0 -3
- package/dist/validation/primitives/date.js +0 -2
- package/dist/validation/primitives/date.mjs +0 -2
- package/dist/validation/primitives/number.d.mts +0 -3
- package/dist/validation/primitives/number.d.ts +0 -3
- package/dist/validation/primitives/number.js +0 -2
- package/dist/validation/primitives/number.mjs +0 -2
- package/dist/validation/primitives/text.d.mts +0 -3
- package/dist/validation/primitives/text.d.ts +0 -3
- package/dist/validation/primitives/text.js +0 -2
- package/dist/validation/primitives/text.mjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,1654 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
import{ACTIONABLE_DECISION_KINDS as e,AGGREGATE_BUCKETS as t,AGGREGATE_MEASURES as n,DECISION_INBOX_STATES as r,DECISION_KINDS as i,DECISION_LINE_MAX_LENGTH as a,DECISION_LINK_TARGET_TYPES as o,DECISION_LIST_STATES as s,DECISION_READ_STATES as c,DECISION_SETTINGS_AREAS as l,DECISION_TITLE_MAX_LENGTH as u,DECISION_TRANSFERS_KEY as d,DECISION_TYPES_V1 as f,DECISION_TYPE_ACCESS_GRANTED as p,DECISION_TYPE_AGENT_APPROVAL as m,DECISION_TYPE_AGENT_MESSAGE as ee,DECISION_TYPE_AGENT_QUESTION as te,DECISION_TYPE_AGENT_REVIEW as ne,DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED as re,DECISION_TYPE_AGENT_SETUP as ie,DECISION_TYPE_BUNDLE_SETUP as ae,DECISION_TYPE_CONNECTOR_CONNECTION_ERROR as oe,DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED as se,DECISION_TYPE_ENVIRONMENT_BUILD_FAILED as ce,DECISION_TYPE_KINDS as h,DECISION_TYPE_PERSON as le,DECISION_TYPE_RECORD_ASSIGNED as ue,DECISION_TYPE_RECORD_MENTIONED as de,DECISION_WORK_STATES as fe,HIERARCHY_ATTRIBUTE_IDS as pe,HIERARCHY_ATTRIBUTE_NAMES as me,HIERARCHY_CHILD_IDS_LIMIT as he,MAX_AGGREGATE_GROUPS as ge,SYSTEM_ATTRIBUTES as _e,SYSTEM_ATTRIBUTE_I18N_KEYS as ve,decisionThreadKey as ye,decisionTransferBy as be,decisionTransfersOf as xe,formatDecisionLink as Se,getHierarchyAttributes as Ce,getObjectSystemAttributes as we,getSystemAttributeI18nKey as Te,getSystemAttributeList as Ee,isActionableDecisionKind as De,isHierarchyAttribute as Oe,isManagedSystemAttribute as ke,parseDecisionLink as Ae}from"./record-aggregates-BrLE4IsX.mjs";import{AGENDA_BLOCK as g,ARTIFACT_PREVIEW_EXTENSION as je,ATTRIBUTE_FILTER_OPERATORS as Me,ATTRIBUTE_TYPES as Ne,BLOCK_CONTEXTS as Pe,BLOCK_PERIODS as Fe,BLOCK_WIDTHS as _,CARD_BLOCK as v,CHART_BLOCK as Ie,CHART_KINDS as Le,CONTENT_PLACEMENT_CONTEXTS as Re,DECISIONS_BLOCK as ze,DEFAULT_LAYOUT_TRAITS as Be,GROUPABLE_ATTRIBUTE_TYPES as Ve,HEADING_BLOCK as He,INVENTORY_LIMIT as Ue,LOCATION_FILTER_PROPERTIES as We,MAILBOX_BLOCK as Ge,MEASURABLE_ATTRIBUTE_TYPES as Ke,MEETINGS_UPCOMING_BLOCK as qe,METRIC_BLOCK as Je,NATIVE_BLOCKS as Ye,NO_VALUE_OPERATORS as Xe,OPERATORS_BY_TYPE as Ze,PAGE_GRID_COLUMNS as Qe,QUALIFIED_SEPARATOR as $e,QUERY_OBJECT as et,RECORD_LINKS_BLOCK as tt,RECORD_LINKS_CONTENT as y,RECORD_OBJECT as nt,RELATION_TARGET_ANY as rt,REMOVED_OPERATOR_REPLACEMENTS as it,RecordQuery as at,SYNONYM_ALIASES as ot,SYSTEM_FILTER_ATTRIBUTE_TYPES as st,TEXT_BLOCK as ct,attributeFilterTarget as lt,attributeInventory as ut,blockObjectInputs as dt,buildQualifiedAttribute as ft,canonicalizeFilterValue as pt,capped as mt,collectContentViewCatalogue as ht,collectQualifiedRuleIssues as gt,collectionContentSourceSchema as _t,collectionSourceAddress as vt,collectionSourceAddressOf as yt,columnsSchema as bt,contentExtensionRegistry as b,contentReadObjects as xt,contentViewDefinitionSchema as x,contentViewDefinitionSchemaFor as St,currentActor as Ct,defineBlock as wt,describeViewIssue as Tt,displayAttributesSchema as Et,draftContentViewDefinitionSchema as Dt,draftContentViewDefinitionSchemaFor as Ot,edgePropertyFilterTarget as kt,extractCurrencyFilterValue as At,extractFilterValue as jt,filterOperatorsOfType as Mt,filterStateSchema as Nt,filterTargetsOf as Pt,findGridViolation as Ft,findGroupViolation as It,findLayoutRuleViolation as Lt,findRelationAttribute as Rt,findRowLimitViolation as zt,getAttributeCapabilities as Bt,getAttributeFilterOperators as Vt,getOperatorPolarity as Ht,getRollupFilterOperators as Ut,gridPositionSchema as Wt,groupSizeMessage as Gt,groupedMembers as Kt,inferInverseCardinality as qt,input as Jt,invalidViewMessage as Yt,isAttributeFilterable as Xt,isAttributeGroupable as Zt,isAttributeKanbanGroupable as Qt,isAttributeSearchable as $t,isAttributeSortable as en,isBilateralRelation as tn,isCalendarDay as nn,isCollectionContent as rn,isDynamicValue as an,isLocationFilterProperty as on,isLocationPartOperator as sn,isNoValueOperator as cn,isRelativeDateValue as ln,isSetMembershipOperator as un,isUniversalRelation as dn,layoutTraitsOf as fn,locationPartFilterTarget as pn,memberlessGroups as mn,metricComparePeriod as hn,normalizeFilterRule as gn,normalizeForEdgeRpc as _n,normalizeOperator as vn,now as yn,overlaps as bn,pageTraitsOf as xn,parseBlockParameters as S,parseQualifiedAttribute as Sn,publishedViewContentDefinitionSchema as C,query as Cn,recordQueryDefinitionSchema as wn,relationAcceptsObject as Tn,relationTargetsOf as En,requireContentPlacement as Dn,requireRecordContentContext as On,requireSingleRelationTarget as kn,resolveCollectionActions as An,resolveContentNavigation as jn,resolveEffectiveFilterType as Mn,resolveIsWithinBounds as Nn,resolveUtcDayBounds as Pn,singleRelationTarget as Fn,sortsSchema as In,sourcedAttributeOf as Ln,systemColumnFilterTarget as Rn,toMultiValueOperator as zn,toUtcDayString as Bn,today as Vn,validateContentViewCatalogue as Hn,validateQualifiedRule as Un,validateStoredViews as Wn}from"./all-BPIA8DP2.mjs";import{AccessDeniedError as Gn,AggregateValidationError as Kn,AmbiguousSchemaChangeError as qn,AttributeInUseError as Jn,AttributeNotFoundError as Yn,ConcurrentModificationError as Xn,DuplicateError as w,ExportTooLargeError as Zn,ForbiddenError as Qn,InvalidPermissionGrantError as $n,LogoProviderUnavailableError as er,LogoSearchRateLimitedError as tr,MemoryNotFoundError as nr,NotFoundError as rr,NotImplementedError as ir,ObjectNotFoundError as ar,ObjectReferencedError as or,OrphanSystemAttributeError as sr,PageReferencedError as cr,ProtectedResourceError as lr,ProtectedRoleError as ur,QueryTimeoutError as dr,RealtimeDeliveryError as fr,RealtimeRateLimitedError as pr,RealtimeSubscriptionError as mr,RecordNotFoundError as hr,RecordReferencedError as gr,RepositoryError as _r,ReservedObjectNameError as T,RoleNotFoundError as vr,SchemaError as E,SchemaErrorCode as D,SearchBackendError as yr,SearchPathNotIndexedError as br,StorageError as xr,SyncCascadeError as Sr,SyncConflictError as Cr,SyncError as wr,SystemEntityImmutableError as Tr,ToolGroupGrantError as Er,ValidationError as O,WorkspaceInvariantReason as Dr,isAttributeInUseError as Or,isNotFoundError as kr,isObjectReferencedError as Ar,isProtectedResourceError as jr,isRecordReferencedError as Mr,isSchemaError as Nr,isValidationError as Pr}from"./exceptions.mjs";import{ACCESS_LEVELS as Fr,ACCESS_ROLES as Ir,AGENT_ASIDE_ANSWER_MAX_LENGTH as Lr,AGENT_ASIDE_HISTORY_LIMIT as Rr,AGENT_ASIDE_QUESTION_MAX_LENGTH as zr,AGENT_AVATAR_EXPRESSIONS as Br,AGENT_AVATAR_TYPES as Vr,AGENT_MESSAGE_KIND as Hr,AGENT_NOTIFICATION_KIND as Ur,AGENT_SESSION_ACCESS_ROLES as Wr,AGENT_SESSION_LIST_ORDERS as Gr,AGENT_SESSION_ORIGINS as Kr,AGENT_SESSION_PROVENANCES as qr,AGENT_STARTERS_MAX as Jr,AGENT_STARTER_MAX_LENGTH as Yr,AGENT_SYSTEM_PROMPT_MAX_LENGTH as Xr,AGENT_TASK_KINDS as Zr,ALL_CATALOG_TOOL_NAMES as Qr,ALWAYS_KINDS as $r,APPROVAL_FAMILY_TOOL_NAMES as ei,ARCHITECT_PUBLICATION_KIND as ti,ASK_QUESTIONS_ANSWER_MAX_LENGTH as ni,ASK_QUESTIONS_ANSWER_MAX_VALUES as ri,ASK_QUESTIONS_MAX_BATCH as ii,ASK_QUESTIONS_TOOL_NAME as ai,AUDIT_ACTIONS as oi,AUDIT_AGENT_SESSION_METADATA_KEY as si,AUDIT_RESOURCE_TYPES as ci,AgentBuilder as k,BROWSER_LAUNCH_TOOL_NAME as li,BROWSER_TOOL_NAMES as ui,BUNDLE_LOCALES as di,BUNDLE_SETUP_PROMPT_MAX_LENGTH as fi,CONNECTION_GRANT_PROVIDERS as pi,CONTINUATION_KEY_PATTERN as mi,CONVERSATION_SURFACES as hi,COPY_VERB_NAME as gi,CORE_RECORD_TOOL_NAMES as _i,CORE_TOOL_NAMES as vi,COUNT_MODES as yi,DEFAULT_AGENT_EXECUTION_CONFIG as bi,DEFAULT_AGENT_TOOL_GROUPS as xi,DEFAULT_APPROVAL_POLICY as Si,DEFAULT_BLUEPRINT_TOOL_GROUPS as Ci,DEFAULT_DAILY_ACTIVITY_DAYS as wi,DEFAULT_MEETING_BOT_DISPLAY_NAME as Ti,DEFAULT_PROACTIVE_TENANT_MONTHLY_LIMIT_USD as Ei,DEFAULT_TENANT_SETTINGS as Di,DEVICE_ACCESS_ROLES as Oi,DISCARD_ARCHITECT_DRAFT_TOOL_NAME as ki,DOCUMENT_SORT_MODES as Ai,DRAFT_WRITE_TOOL_NAMES as ji,EMAIL_CATEGORY_DEFAULT_COLOR as Mi,EMAIL_CATEGORY_DEFAULT_ICON as Ni,EMAIL_CATEGORY_DESCRIPTION_MAX as Pi,EMAIL_CATEGORY_DESCRIPTION_MIN as Fi,EMAIL_CATEGORY_LIMIT as Ii,EMAIL_CATEGORY_NAME_MAX as Li,ENVIRONMENT_BUILD_LOG_STEP_PREFIX as Ri,ENVIRONMENT_HARNESSES as zi,ENVIRONMENT_HARNESS_SANDBOX_WORKDIR as Bi,ENVIRONMENT_HARNESS_WORKDIR as Vi,ENVIRONMENT_IMAGES as Hi,ENVIRONMENT_MEMORY_GB_PER_VCPU as Ui,ENVIRONMENT_NAME_MAX_CHARS as Wi,ENVIRONMENT_NETWORK_ALLOW_MAX as Gi,ENVIRONMENT_SCRIPT_MAX_BYTES as Ki,ENVIRONMENT_SIZES as qi,ENVIRONMENT_SIZE_VCPUS as Ji,ENVIRONMENT_STANDARDS_WORKDIR as Yi,ENV_VAR_KEY_PATTERN as Xi,ESTIMATED_COUNT_CAP as Zi,FILE_URLS_MAX_IDS as Qi,GET_ARCHITECT_DRAFT_TOOL_NAME as $i,GITHUB_TRIGGER_CATALOG as ea,GRANT_ENABLES as ta,HITL_TOOL_NAMES as na,INFERENCE_REASONING_OPTIONS as ra,INFERENCE_ROUTING_MODES as ia,INFERENCE_SPEEDS as aa,LAST_RUN_ERROR_MAX_LENGTH as oa,MAILBOX_LIST_MODES as sa,MAIL_DRAFT_BODY_MAX_CHARS as ca,MAIL_SIGNATURE_MAX_CHARS as la,MAIL_SUBJECT_MAX_CHARS as ua,MAX_DAILY_ACTIVITY_DAYS as da,MAX_TODOS as fa,MAX_TODO_DESCRIPTION_CHARS as pa,MAX_TODO_ID_CHARS as ma,MCP_SERVER_NAME_MAX_LENGTH as ha,MEETING_BOT_IMAGE as ga,MEETING_BOT_IMAGE_BASE64_MAX_LENGTH as _a,MEETING_BOT_NO_CREDITS as va,MEETING_BOT_SILENT_REASON as ya,MEETING_RESPONSES as ba,MEMORY_SPEND_LIMIT_PATTERN as xa,McpOAuthCompletionMode as Sa,NATIVE_TOOL_GROUPS as Ca,NATIVE_TOOL_GROUP_CATALOG as wa,NO_RECORDING as Ta,OPEN_TOOL_PART_STATES as Ea,OPERATION_MAX_STEPS as Da,PROACTIVE_AGENT_NAMES as Oa,PROVIDER_DRAFT_LABEL as ka,PROVIDER_NAMES as Aa,PUBLIC_MAIL_DOMAINS as ja,QUESTION_FAMILY_TOOL_NAMES as Ma,RECENT_ACTIVITY_LEDGER_LIMIT as Na,RECIPIENT_IDENTITIES_MAX as Pa,RECORDING_OVERRIDES as Fa,RECORDING_POLICIES as Ia,RECORD_ACCESS_ROLES as La,RECORD_ACCESS_SOURCES as Ra,RECORD_DRIVE_CURSOR_MAX_LENGTH as za,RECORD_DRIVE_PAGE_DEFAULT_LIMIT as Ba,RECORD_DRIVE_PAGE_MAX_LIMIT as Va,RECORD_GRAPH_DEFAULT_LIMIT_PER_NODE as Ha,RECORD_GRAPH_MAX_LIMIT_PER_NODE as Ua,RECORD_GRAPH_MAX_NODES as Wa,RECORD_IMAGE_MAX_BYTES as Ga,REPLY_MODES as Ka,REQUEST_DESIGN_REVIEW_TOOL_NAME as qa,REQUEST_SETUP_TOOL_NAME as Ja,RESOURCE_GRANT_KINDS as Ya,RESOURCE_KIND_CATALOG as Xa,ROUTING_PRICE_CEILINGS as Za,SEND_VERB_NAME as Qa,SESSION_INFERENCE_PATCH_KEYS as $a,SLACK_TRIGGER_CATALOG as eo,SPEAKS_THROUGH_SEND_METADATA_KEY as to,SURFACE_TOOL_NAMES as no,SYSTEM_EMAIL_CATEGORIES as ro,SYSTEM_EMAIL_CATEGORY_NAMES as io,SYSTEM_PART_CODES as ao,TASK_DEMAND_LEVELS as oo,TODO_PHASES as so,TODO_PLAN_STATUSES as co,TODO_STATUSES as lo,TOOL_APPROVAL_STATES as uo,TOOL_IMPACT_COUNT_KEYS as fo,TRIAGE_ACTIONS as po,TRIGGER_EVENT_TYPES as mo,TURN_OUTCOMES as ho,UNSHAREABLE_OBJECT_NAMES as go,USERS_RESOLVE_MAX_IDS as _o,USER_STATUSES as vo,USER_WORK_POSTURES as yo,VERB_NAMES as bo,agent as xo,agentAvatarFromMetadata as So,agentAvatarSchema as Co,agentDataChunk as wo,agentDisplayName as To,agentInferencePreferencesSchema as Eo,agentMessageAttachmentSchema as Do,agentMessagePartSchema as Oo,agentScheduleSchema as ko,agentSessionInferenceOverridesInputSchema as Ao,agentSessionInferenceOverridesSchema as jo,agentSessionMessageSchema as Mo,agentStartersSchema as No,agentTriggerBaseSchema as Po,agentTriggerPatchSchema as Fo,agentTriggerSchema as Io,agentUIValidationError as Lo,artifactQuoteSchema as Ro,askQuestionsOutputSchema as zo,assertCustomAgentUIMessageChunk as Bo,assertSessionState as Vo,canonicalToolGroups as Ho,classificationRestoreSchema as Uo,classifyEmailSchema as Wo,cliDefaultModelOf as Go,compareAgentSessionMessages as Ko,compiledHarnessModels as qo,connectionGrantKindsOf as Jo,connectorTriggerMatchSchema as Yo,customDataChunkSchemas as Xo,decodeAgentSessionListCursor as Zo,deriveViewerAccess as Qo,durableDateSchema as $o,emailCategoryCreateSchema as es,emailCategoryDeleteSchema as ts,emailCategoryScopeQuerySchema as ns,emailCategoryUpdateSchema as rs,emailRuleScopeSchema as is,encodeAgentSessionListCursor as as,environmentHarness as os,environmentWorkdir as ss,findEnvironmentHarness as cs,githubConditionSchema as ls,githubTriggerMatchSchema as us,grantKindOf as ds,harnessModelChoices as fs,humanRequestId as ps,humanRequestKind as ms,imageModelIdSchema as hs,inferenceReasoningSchema as gs,inferenceRoutingSchema as _s,inferenceSpeedSchema as vs,isAgentMessageMetadata as ys,isAgentNotificationMetadata as bs,isAgentUIDataName as xs,isAgentWrittenAuditEntry as Ss,isArchitectPublicationMetadata as Cs,isAwaitingHuman as ws,isBlocking as Ts,isEnvironmentHarnessId as Es,isMailProvider as Ds,isMailboxListMode as Os,isNativeToolGroup as ks,isOpenToolPartState as As,isParkedOnHuman as js,isProviderDraft as Ms,isPublicMailDomain as Ns,isQuestionPart as Ps,isReplyMode as Fs,isResourceGrant as Is,isRoutineActorMetadata as Ls,isSessionInferencePatch as Rs,isSystemEmailCategory as zs,isSystemEmailCategoryName as Bs,isSystemPartCode as Vs,isToolApprovalState as Hs,isToolImpactCountKey as Us,lockingSendCall as Ws,meetingBotDispatchRequestSchema as Gs,meetingBotDispatchResponseSchema as Ks,meetingBotNotificationSchema as qs,meetingTranscriptSegmentSchema as Js,mentionReferenceSchema as Ys,mergeSessionInferencePatch as Xs,modelDefinitionSchema as Zs,modelReferenceSchema as Qs,needsManageWhenUnattended as $s,normalizedMeetingTranscriptSchema as ec,openRequests as tc,orderAgentSessionMessages as nc,parseAgentDefinitionAccessRole as rc,parseAgentSessionAccessRole as ic,parseCountMode as ac,parseDeviceAccessRole as oc,parseMergedAgentTrigger as sc,parseOptionalCountMode as cc,parsePageAccessRole as lc,parseRecordAccessRole as uc,parseToolGroupGrant as dc,providerNameSchema as fc,readAskQuestionsResult as pc,recentActivityEntryKey as mc,recordGraphNodeKey as hc,recordGraphRequestSchema as gc,recordMeetingsCount as _c,recordOperationSchema as vc,refineTrigger as yc,resourceGrant as bc,routedMessageInferenceSchema as xc,sessionInferencePatchSchema as Sc,slackConditionSchema as Cc,slackTriggerMatchSchema as wc,todoItemSchema as Tc,todoPlanSchema as Ec,toolImpactSchema as Dc,utf8ByteLength as Oc}from"./record-operation-BTmK3mBi.mjs";import"./zod-locale.mjs";import{ATTRIBUTE_NAME_SCHEMA as kc,LIST_VIEW_TAB_VISIBILITIES as Ac,NATIVE_OBJECT_NAMES as jc,OBJECT_NAME_SCHEMA as Mc,RECORD_LIST_SCOPES as Nc,RESERVED_ATTRIBUTE_NAMES as Pc,RESERVED_OBJECT_NAMES as Fc,RESOURCE_VISIBILITIES as Ic,SCHEMA_LIMITS as A,SYSTEM_FIELD_NAMES as Lc,assertUniqueBy as Rc,colorIdSchema as zc,iconNameSchema as j,isNativeObjectName as M,isPlainRecord as Bc,parseRecordListScope as Vc,parseResourceVisibility as Hc,validateAttributeName as Uc,validateIconName as Wc,validateLabel as Gc,validateObjectName as Kc,validateOptions as N,validateViewName as qc}from"./primitives-BCJLtpaI.mjs";import{COMPUTED_RETURN_TYPES as Jc,SIMPLE_PROPERTY_TYPES as Yc,WIRE_OFFERED_BASE_CONFIG as Xc,WIRE_OMITTED_CONFIG_KEYS as Zc,attributeConfigSchemas as Qc,datePrecisionIssues as $c,getAttributeConfigSchema as el,getAttributeConfigWriteSchema as tl,parseAttributeConfig as nl,parseAttributeConfigForCreate as rl,parseAttributeConfigForUpdate as il,propertyAttributeSchema as al,propertyAttributeWireSchema as ol,propertySchemaSchema as sl,propertySchemaWireSchema as cl,refuseForeignKeys as ll,selectOptionWriteSchema as ul,statusGroupSchema as dl,statusOptionWriteSchema as fl,wireHiddenTypeConfigMask as pl,wireOmittedConfigKeysFor as ml,withoutUnknownOptionKeys as hl}from"./config-iUwnquKr.mjs";import{NonJsonValueError as gl,asTenantId as _l,asUserId as vl,canonicalStringify as P,deepEqual as yl,generateId as bl,indexBy as xl,sameStableValue as Sl,serializeCanonicalJson as Cl,serializeStableJson as wl}from"./utils-DaejNWxh.mjs";import{createAttributeValidator as Tl,createFormAttributeValidator as El,createObjectValidator as Dl,isEmptyValue as Ol,isNullishOrEmptyString as kl,isValuePresent as Al,rejectUnknownAttributesOrThrow as jl,validateAttribute as Ml,validateDraft as Nl,validateDraftOrThrow as Pl,validateObject as Fl,validateObjectOrThrow as Il}from"./object-BF5y6bgs.mjs";import{TEXT_FORMAT_PATTERNS as Ll,resolveTextPattern as Rl}from"./text-BaxaZ5Vv.mjs";import{DEFAULT_VALIDATION_MESSAGES as zl,formatZodErrors as Bl}from"./core-rKI7Q9_U.mjs";import{formatPhoneForDisplay as Vl,getIso2 as Hl,normalizeCountrylessPhoneNumber as Ul,normalizePhoneNumber as Wl}from"./phone-BGJea5sr.mjs";import*as F from"zod";import{colorIdFromString as Gl,getCountryByIso2 as Kl,isValidCurrencyCode as ql,isValidIso3 as Jl}from"@standards/constants";import{parsePhoneNumberFromString as Yl}from"libphonenumber-js";const Xl=`__stndrdsNativeUiPartIds`,Zl=1;function invalidNativePartIds(){throw new O(`Native agent UI part IDs metadata is invalid`,[])}function isPlainRecord$1(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function nativeAgentUIPartIdMetadataKey(e,t){if(e.type===`text`||e.type===`reasoning`)return`${e.type}:${t}`;if(e.type===`tool`)return`tool:${e.toolCallId}`}function parseNativeAgentUIPartIdsMetadata(e){let t=e.metadata?.[Xl];isPlainRecord$1(t)||invalidNativePartIds(),(Object.keys(t).length!==2||t.schemaVersion!==1||!isPlainRecord$1(t.partIds))&&invalidNativePartIds();let n=new Map;for(let[t,r]of e.parts.entries()){let e=nativeAgentUIPartIdMetadataKey(r,t);if(!e||n.has(e)){e&&invalidNativePartIds();continue}n.set(e,r)}let r=Object.entries(t.partIds);r.length!==n.size&&invalidNativePartIds();let i=new Map,a={};for(let[e,t]of r){let r=n.get(e);r&&typeof t==`string`&&t.length>0||invalidNativePartIds();let o=i.get(t);o&&(r.type===`tool`||o!==r.type)&&invalidNativePartIds(),r.type===`tool`&&t!==r.toolCallId&&invalidNativePartIds(),i.set(t,r.type),a[e]=t}return a}const Ql=`/v1/device-worker/channel`,$l=262144,eu=1e4,tu=2e3,nu=2e3,ru=2e4,iu=4008,au={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${Ql}`}function computeRetryDelay(e,t,n){return Math.min(n.initialMs*2**e,n.maxMs)+Math.floor(t()*250)}function computeReconnectDelay(e,t=Math.random){return computeRetryDelay(e,t,au)}const ou=[`worker_disconnected`,`cancelled`,`timed_out`,`execution_failed`];var DeviceChannelProtocolError=class extends E{constructor(e){super(e,D.DEVICE_CHANNEL_PROTOCOL),this._tag=`DeviceChannelProtocolError`,this.name=`DeviceChannelProtocolError`}};const su=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],cu=[`ready`,`permission_missing`,`no_session`,`unavailable`],lu=F.strictObject({state:F.enum(cu),version:F.string().min(1)}),I={id:F.uuid(),leaseToken:F.string().min(1)},uu=F.discriminatedUnion(`type`,[F.strictObject({type:F.literal(`authenticate`),credential:F.string().regex(/^Device \S+$/),protocol:F.number().int().positive().optional(),desktop:lu.optional(),shell:F.enum(su).optional()}),F.strictObject({type:F.literal(`running`),...I}),F.strictObject({type:F.literal(`heartbeat`),...I}),F.strictObject({type:F.literal(`output`),...I,stdout:F.string().optional(),stderr:F.string().optional()}),F.strictObject({type:F.literal(`complete`),...I,result:F.strictObject({stdout:F.string().optional(),stderr:F.string().optional(),exitCode:F.number().int(),success:F.boolean(),errorCode:F.enum(ou).optional()}),background:F.strictObject({pid:F.number().int(),logPath:F.string().min(1)}).optional()}),F.strictObject({type:F.literal(`pong`)})]),du=F.discriminatedUnion(`type`,[F.strictObject({type:F.literal(`ready`),device:F.strictObject({id:F.string(),name:F.string(),capability:F.enum([`shell`,`browser`])}),protocol:F.number().int().positive().optional()}),F.strictObject({type:F.literal(`command`),...I,kind:F.enum([`shell`,`browser`]),intent:F.string(),timeoutMs:F.number().int(),command:F.string().optional(),cwd:F.string().nullable().optional(),rootSessionId:F.string().min(1).optional(),background:F.boolean().optional()}),F.strictObject({type:F.literal(`release_session`),rootSessionId:F.string().min(1)}),F.strictObject({type:F.literal(`cancel`),id:F.uuid(),reason:F.enum([`cancelled`,`timed_out`,`revoked`])}),F.strictObject({type:F.literal(`reauthenticate`)}),F.strictObject({type:F.literal(`revoked`)}),F.strictObject({type:F.literal(`ping`)})]);function parseDeviceChannelFrame(e,t){let n;try{n=JSON.parse(t)}catch{throw new DeviceChannelProtocolError(`Frame is not JSON`)}let r=e.safeParse(n);if(!r.success)throw new DeviceChannelProtocolError(`Frame does not match the channel protocol`);return r.data}function parseWorkerFrame(e){return parseDeviceChannelFrame(uu,e)}function parseServerFrame(e){return parseDeviceChannelFrame(du,e)}const fu=5;function isFormDefinition(e){return typeof e==`object`&&!!e&&`slots`in e&&`steps`in e&&`name`in e&&typeof e.name==`string`&&Array.isArray(e.slots)&&Array.isArray(e.steps)}const L=[`relation`,`multiRelation`,`formula`,`rollup`,`document`,`richtext`,`user`];function isFormSlotFieldRef(e){return e.type===`slot`}function isFormFreeFieldRef(e){return e.type===`free`}function resolveFieldRequired(e){return e.readOnly===!0?!1:e.fieldRequired===void 0?e.slotMode===`create`&&e.attributeRequired===!0:e.fieldRequired}function getSlotFieldTargets(e){return e.additionalSlotIds?.length?[e.slotId,...e.additionalSlotIds]:[e.slotId]}function formFieldKey(e){return isFormSlotFieldRef(e)?`${e.slotId}.${e.attribute}`:`free.${e.attribute.name}`}function formFieldFlatKey(e){return isFormSlotFieldRef(e)?e.attribute:e.attribute.name}function readFormFieldValue(e,t){return e[formFieldKey(t)]??e[formFieldFlatKey(t)]}function isFormFieldsRow(e){return e.type===`fields`}function isFormHeadingRow(e){return e.type===`heading`}function isFormSeparatorRow(e){return e.type===`separator`}function isFormTextRow(e){return e.type===`text`}function moveWidensAudience(e){return e.added.length>0||!e.workspaceBefore&&e.workspaceAfter}function resolvePropertyDefinitions(e){let t=e.properties;if(!t)return[];if(Array.isArray(t))return t;let n=t;return Array.isArray(n.definitions)?n.definitions:[]}function hasOptions(e){return e.type===`select`||e.type===`status`||e.type===`multiselect`}function schemaGroupKey(e){return`${e.kind}:${e.name}`}function refuse$3(e){throw new O(e,[{path:[`label`],message:e}])}function parseSchemaGroupPresentation(e){let t=e??{},n={};if(t.label!==void 0){let e=t.label;if(e===null)n.label=null;else if(typeof e!=`string`)refuse$3(`Label must be a string`);else{let t=e.trim();t.length===0&&refuse$3(`Label must not be empty`),t.length>A.labelLength&&refuse$3(`Label is too long (max ${A.labelLength} characters)`),n.label=t}}return n}const R=/^(?:core|bundle:.+)$/u;function parseSchemaOwner(e){if(e===null)return null;if(!R.test(e))throw new O(`Invalid schema owner "${e}"`,[]);return e}const pu=16e3,mu=3200,hu=6400,gu=16e3,_u=65536,vu=15e3,yu=1e4,bu=5e3,xu=`google/gemini-3.5-transcribe-live`,Su={maxDurationMs:3e5,dailyDurationMs:36e5,monthlyDurationMs:72e6,tenantMonthlyBudgetMicrousd:5e7,globalMonthlyBudgetMicrousd:5e7,estimatedMicrousdPerSecond:150,reservationMultiplier:2},Cu=[`web`,`presentation`,`document`,`spreadsheet`,`image`,`code`,`other`],wu=[`ephemeral`,`conversation`,`persistent`],Tu=[`source`,`preview`,`entrypoint`,`asset`];var NoopGeocodingAdapter=class{async autocomplete(){return await Promise.resolve([])}async geocode(){return await Promise.resolve(null)}};const Eu=6048e5,Du=36e5,Ou=2592e6,ku=6e4,Au=[`square`,`landscape`,`portrait`];function imageModelFormatDefect(e){if(e.formats.length===0)return`declares no output format`;for(let t of e.formats)if(e.requests[t]===void 0)return`declares the format "${t}" without a request`;for(let t of Object.keys(e.requests))if(!e.formats.includes(t))return`carries a request for the undeclared format "${t}"`}function declaredImageRequests(e){let t={};for(let n of e.formats){let r=e.requests[n];r!==void 0&&(t[n]=r)}return t}const ju=[`storage.bytes`,`members.seats`,`data.live_records`,`email.mailboxes`,`calendar.connections`],Mu=new Set([`data.live_records`,`email.mailboxes`,`calendar.connections`]);function computeByteMagnitude(e){if(e<=0)return{value:0,unitIndex:0};let t=1e3,n=Math.min(4,Math.floor(Math.log(e)/Math.log(t)));return{value:Number.parseFloat((e/t**n).toFixed(1)),unitIndex:n}}const Nu=[`B`,`KB`,`MB`,`GB`,`TB`];function formatByteSize(e){let{value:t,unitIndex:n}=computeByteMagnitude(e);return`${t} ${Nu[n]}`}const Pu=Object.freeze([`text`,`number`,`checkbox`,`date`,`phone`,`currency`,`status`,`select`,`multiselect`,`location`]);function buildPropertySchema(e){let t=[];for(let n of e){let e=n.build();if(!Pu.includes(e.type))throw Error(`Property type "${e.type}" is not supported in .qualifyWith()`);t.push(e)}return{definitions:t}}const Fu=[`UPPER`,`LOWER`,`capitalize`,`trim`],Iu=[`prefix`,`suffix`,`wrap`,`default`],z=[...Fu,...Iu],Lu=/^\s*where\s*(?::(.*))?$/s,Ru=`[A-Za-z_][A-Za-z0-9_]*`,zu=/^[^\s,()|{}="']+$/,Bu=RegExp(`^(${Ru})\\s*=\\s*(.*)$`),Vu=RegExp(`^(${Ru})\\s+in\\s*\\(([^()]*)\\)$`);function isWherePipe(e){return Lu.test(e)}function parseWherePipe(e){let t=e.match(Lu)?.[1]?.trim();if(!t)return null;let n=t.match(Vu);if(n){let e=n[2].split(`,`).map(e=>e.trim());return e.every(e=>zu.test(e))?{property:n[1],values:e}:null}let r=t.match(Bu);return r&&zu.test(r[2])?{property:r[1],values:[r[2]]}:null}const B=F.string().min(1,`labelExpression cannot be empty`).refine(e=>isLabelExpression(e),{message:`labelExpression must contain at least one {{ attribute }} interpolation`}).refine(e=>!/\{\{\s*\}\}/.test(e),{message:`labelExpression contains empty {{ }} interpolation`}).refine(e=>{let t=/(?<!\|)\|(?!\|)\s*(\w+)(?::[^|}]*)?/g,n;for(;(n=t.exec(e))!==null;){let e=n[1];if(!z.includes(e))return!1}return!0},{message:`Invalid pipe name. Valid pipes: ${z.join(`, `)}`});function validateLabelExpression(e){let t=B.safeParse(e);return t.success?{success:!0,attributes:extractAttributeNames(e)}:{success:!1,error:t.error.issues[0]?.message??`Invalid labelExpression`}}function applyPipe(e,t){let{name:n,args:r}=parsePipeExpression(t);switch(n){case`UPPER`:return e.toUpperCase();case`LOWER`:return e.toLowerCase();case`capitalize`:return e.replace(/(^|\s)\S/g,e=>e.toUpperCase());case`trim`:return e.trim();case`prefix`:return e?`${r[0]??``}${e}`:``;case`suffix`:return e?`${e}${r[0]??``}`:``;case`wrap`:return e?`${r[0]??``}${e}${r[1]??``}`:``;case`default`:return e||r[0]||``;default:return e}}function applyPipes(e,t){let n=e;for(let e of t)n=applyPipe(n,e);return n}function getValue(e,t){return t.split(`.`).reduce((e,t)=>{if(typeof e==`object`&&e)return e[t]},e)}const Hu=`(Untitled)`;function parsePipeExpression(e){let t=e.match(/^(\w+)(?::(.*))?$/);if(!t)return{name:e,args:[]};let n=t[1],r=t[2];if(!r)return{name:n,args:[]};let i=[],a=/["']([^"']*?)["']/g,o;for(;(o=a.exec(r))!==null;)i.push(o[1]);return{name:n,args:i}}function*templateBlocks(e){let t=0;for(;t<e.length;){let n=e.indexOf(`{{`,t);if(n<0)return;let r=e.indexOf(`}`,n+2);if(r<0)return;if(e[r+1]!==`}`){t=r+1;continue}t=r+2;let i=e.slice(n+2,r);i.length>0&&(yield{start:n,end:t,expr:i})}}function resolveLabelBlock(e,t){let n=e.split(`||`).map(e=>e.trim()),r=n[n.length-1].split(`|`).map(e=>e.trim());n[n.length-1]=r[0];let i=r.slice(1).filter(Boolean),a=n.filter(Boolean),o=``;for(let e of a){let n=toText(getValue(t,e));if(n!==``){o=n;break}}return applyPipes(o,i)}function renderLabelExpression(e,t,n=Hu){let r=[],i=0;for(let n of templateBlocks(e))r.push(e.slice(i,n.start),resolveLabelBlock(n.expr,t)),i=n.end;return r.push(e.slice(i)),r.join(``).trim()||n}function toText(e){if(e==null||typeof e==`function`)return``;if(typeof e!=`object`)return String(e);if(Array.isArray(e))return e.map(toText).filter(Boolean).join(`,`);let t=e.toString;return typeof t==`function`&&t!==Object.prototype.toString?String(e):``}function isLabelExpression(e){let t=0;for(;t<e.length;){let n=e.indexOf(`{{`,t);if(n<0)return!1;let r=e.indexOf(`}}`,n+2);if(r<0)return!1;if(e.slice(n+2,r).trim().length>0)return!0;t=r+2}return!1}function extractAttributePaths(e){let t=[];for(let n of templateBlocks(e)){let e=n.expr.trim();if(!e)continue;let r=e.split(`||`).map(e=>e.trim()),i=r[r.length-1];r[r.length-1]=i.split(`|`)[0].trim();for(let e of r)e&&!t.includes(e)&&t.push(e)}return t}function extractAttributeNames(e){let t=extractAttributePaths(e).map(e=>e.split(`.`)[0]).filter(e=>e.length>0);return[...new Set(t)]}const Uu=/^\{\{\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}$/;function getSingleAttributeFromExpression(e){let t=e.trim().match(Uu);return t?t[1]:null}function getEditableLabelAttribute(e,t){let n=getSingleAttributeFromExpression(e);if(n===null)return null;let r=t.find(e=>e.name===n);return!r||r.type!==`text`||Bt(r).authoring.readOnly?null:r}const Wu=[{id:`data`,capabilities:[{id:`forms`,resources:[`forms`],levels:[{id:`fill`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]},{id:`manage`,add:[`manage`]}]}]},{id:`structure`,capabilities:[{id:`schema`,resources:[`architect`],levels:[{id:`use`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]}]},{id:`pages`,resources:[`pages`],levels:[{id:`read`,add:[`read`]},{id:`create`,add:[`create`,`update`,`delete`]}]}]},{id:`ai`,capabilities:[{id:`agents`,resources:[`agents`],levels:[{id:`chat`,add:[`read`]},{id:`build`,add:[`create`,`update`,`delete`]},{id:`manage`,add:[`manage`]}]},{id:`environments`,resources:[`environments`],levels:[{id:`use`,add:[`read`]},{id:`create`,add:[`create`]}]},{id:`browser-profiles`,resources:[`browser-profiles`],levels:[{id:`use`,add:[`create`]}]},{id:`private-secrets`,resources:[`private-secrets`],levels:[{id:`use`,add:[`create`]}]},{id:`routine-audiences`,resources:[`routine-audiences`],levels:[{id:`use`,add:[`create`]}]},{id:`supervision`,resources:[`supervision`],levels:[{id:`use`,add:[`create`]}]}]},{id:`files`,capabilities:[{id:`files`,resources:[`files`,`documents`],levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]}]},{id:`team`,capabilities:[{id:`people`,resources:[`people`],levels:[{id:`view`,add:[`read`]},{id:`invite`,add:[`create`]},{id:`manage`,add:[`update`,`delete`]}]}]},{id:`integrations`,capabilities:[{id:`connectors`,resources:[`connectors`],levels:[{id:`use`,add:[`read`,`create`,`update`,`delete`]}]},{id:`api-keys`,resources:[`api-keys`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`env-vars`,resources:[`env-vars`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`devices`,resources:[`devices`],levels:[{id:`manage`,add:[`manage`]}]}]},{id:`administration`,capabilities:[{id:`settings`,resources:[`settings`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`update`,`delete`,`manage`]}]},{id:`audit`,resources:[`audit`],levels:[{id:`view`,add:[`read`]}]},{id:`billing`,resources:[`billing`],levels:[{id:`view`,add:[`read`]}]}]}],V=`none`,Gu=`custom`,H={actions:[`read`,`create`,`update`,`delete`],purge:`manage`,levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]},U=Wu.flatMap(e=>e.capabilities),Ku=U.flatMap(e=>e.resources),qu=new Map(U.flatMap(e=>e.resources.map(t=>[t,e])));function isCatalogResource(e){return qu.has(e)}function capabilityForResource(e){let t=qu.get(e);if(!t)throw new E(`Unknown catalog resource "${e}"`,D.INVARIANT_VIOLATION);return t}function sameActions(e,t){let n=new Set(e),r=new Set(t);return n.size===r.size&&[...n].every(e=>r.has(e))}function levelActions(e,t){let n=new Set;for(let r of e.levels){for(let e of r.add)n.add(e);if(r.id===t)return[...n]}return[]}function levelFloor(e,t){let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=V;for(let t of e.levels){if(!t.add.every(e=>r.has(e)))break;i=t.id}return i}function levelOf(e,t){if(t.length===0)return V;let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=new Set;for(let t of e.levels){for(let e of t.add)i.add(e);if(i.size===r.size&&[...r].every(e=>i.has(e)))return t.id}return Gu}const Ju=[`read`,`create`,`update`,`delete`,`manage`],Yu=F.object({scope:F.enum([`object`,`system`]),target:F.string().min(1),actions:F.array(F.enum(Ju))}).strict();function findGrantIssues(e,t){let n=[],r=new Map;for(let i of e){let e=Yu.safeParse(i);if(!e.success){let e=typeof i==`object`&&i&&`target`in i?String(i.target):`?`;n.push({target:e,reason:`shape`});continue}let a=e.data;if(a.scope===`system`){if(!isCatalogResource(a.target)){n.push({target:a.target,reason:`unknown-resource`});continue}if(levelOf(capabilityForResource(a.target),a.actions)===`custom`){n.push({target:a.target,reason:`off-level`});continue}r.set(a.target,a.actions);continue}if(a.target!==`*`&&!t.objectNames.has(a.target)){n.push({target:a.target,reason:`unknown-object`});continue}let o=a.target===`*`?[...H.actions,H.purge]:H.actions;a.actions.every(e=>o.includes(e))||n.push({target:a.target,reason:`object-action`})}let i=new Set;for(let[e,t]of r){let a=capabilityForResource(e);if(!i.has(a)){for(let o of a.resources)if(!sameActions(t,r.get(o)??[])){n.push({target:e,reason:`split-capability`}),i.add(a);break}}}return n}const Xu=`memory`,Zu=4e3,Qu=`workspace`,W={name:`name`,description:`description`,content:`content`,profileOf:`profileOf`,profileActor:`profileActor`,subjects:`subjects`,subjectId:`subjectId`};function textValue(e){return typeof e==`string`?e:``}function memoryPageViewOf(e){let{values:t}=e;return{id:e.id,name:textValue(t[W.name]),description:textValue(t[W.description]),content:textValue(t[W.content]),visibility:e.visibility,ownedBy:e.ownedBy,updatedAt:new Date(e.updatedAt).toISOString()}}const $u={meetingHour:`0.80`,computeVcpuHour:`0.20`,browserHour:`0.60`},ed=[`meeting.recording`,`sandbox.agent`,`sandbox.harness`,`sandbox.build`,`browser.session`];function isMeteredChargeKind(e){return ed.includes(e)}const td=/^\d+(?:\.\d+)?$/u;function meteredUsd(e,t){if(!td.test(e))throw new O(`Invalid metered rate "${e}"`,[]);if(!(t>=0&&t<=2**53-1))throw new O(`Invalid metered duration "${t}"`,[]);let[n=`0`,r=``]=e.split(`.`),i=BigInt(n+r)*BigInt(t.toFixed(12).replace(`.`,``)),a=10n**BigInt(r.length+12-4),o=(i+a-1n)/a,s=10n**BigInt(4),c=(o%s).toString().padStart(4,`0`).replace(/0+$/u,``);return c?`${o/s}.${c}`:`${o/s}`}const nd=`@standards/schema`;function createStandardSchemaProps(e){return{version:1,vendor:nd,validate:t=>{let n=e.safeParse(t);return n.success?{value:n.data}:{issues:n.error.issues.map(e=>({message:e.message,path:e.path}))}}}}function isStandardSchema(e){return typeof e==`object`&&!!e&&`~standard`in e&&typeof e[`~standard`]==`object`&&e[`~standard`].version===1}function asMutableArray(e){return e}var BaseAttributeBuilder=class{get"~standard"(){return createStandardSchemaProps(Tl(this.build()))}constructor(e,t,n){Uc(t),Gc(n),this.attr={name:t,label:n,type:e,required:!1,system:!0}}setRequired(e){this.attr.required=e}asRequiredState(){return this}asPhantomState(){return this}runtime(){return this.attr.system=!1,this}hidden(){return this.attr.hidden=!0,this}placeholder(e){return this.attr.placeholder=e,this}description(e){return this.attr.description=e,this}icon(e){return Wc(e,`attribute "${this.attr.name}"`),this.attr.icon=e,this}order(e){return this.attr.order=e,this}defaultValue(e){return(`defaultValue`in this.attr||![`formula`,`rollup`].includes(this.attr.type))&&(this.attr.defaultValue=e),this}metadata(e){return this.attr.metadata=e,this}build(){return this.attr}},TextAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`text`,e,t)}minLength(e){return this.attr.minLength=e,this}maxLength(e){return this.attr.maxLength=e,this}pattern(e){return this.attr.pattern=e,this.attr.format=void 0,this}multiline(e=!0){return this.attr.multiline=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}email(){return this.attr.format=`email`,this.attr.pattern=void 0,this}url(){return this.attr.format=`url`,this.attr.pattern=void 0,this}slug(){return this.attr.format=`slug`,this.attr.pattern=void 0,this}};function text(e,t){return new TextAttributeBuilder(e,t)}var RichtextAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`richtext`,e,t)}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function richtext(e,t){return new RichtextAttributeBuilder(e,t)}var NumberAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`number`,e,t)}min(e){return this.attr.min=e,this}max(e){return this.attr.max=e,this}integer(){return this.attr.unit=`integer`,this.attr.decimals=0,this}decimal(e=2){return this.attr.unit=`decimal`,this.attr.decimals=e,this}percentage(){return this.attr.unit=`percentage`,this}renderAs(e){return this.attr.renderAs=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function number(e,t){return new NumberAttributeBuilder(e,t)}var CheckboxAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`checkbox`,e,t)}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function checkbox(e,t){return new CheckboxAttributeBuilder(e,t)}var DateAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`date`,e,t)}format(e){return this.attr.dateFormat=e,this}precision(e){return this.attr.precision=e,this}build(){let[e]=$c(`date`,this.attr);if(e!==void 0)throw new O(e.message,[{path:[`precision`],message:e.message}]);return super.build()}minDate(e){return this.attr.minDate=e,this}maxDate(e){return this.attr.maxDate=e,this}endDate(){return this.attr.endDate=!0,this.asPhantomState()}includeTime(){return this.attr.includeTime=!0,this}timeFormat(e){return this.attr.timeFormat=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function date(e,t){return new DateAttributeBuilder(e,t)}var PhoneAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`phone`,e,t)}defaultCountry(e){return this.attr.defaultCountryCode=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function phone(e,t){return new PhoneAttributeBuilder(e,t)}var CurrencyAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`currency`,e,t)}defaultCurrency(e){return this.attr.defaultCurrency=e,this}allowedCurrencies(e){return this.attr.allowedCurrencies=e,this}allowNegative(e=!0){return this.attr.allowNegative=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function currency(e,t){return new CurrencyAttributeBuilder(e,t)}var StatusAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`status`,e,t)}options(e){let t=asMutableArray(e);return N(this.attr.name??`unknown`,t),this.attr.options=t,this.asPhantomState()}option(e){this.attr.options||(this.attr.options=[]);let t=[...this.attr.options,e];return N(this.attr.name??`unknown`,t),this.attr.options.push(e),this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function status(e,t){return new StatusAttributeBuilder(e,t)}var SelectAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`select`,e,t)}options(e){let t=asMutableArray(e);return N(this.attr.name??`unknown`,t),this.attr.options=t,this.asPhantomState()}option(e){this.attr.options||(this.attr.options=[]);let t=[...this.attr.options,e];return N(this.attr.name??`unknown`,t),this.attr.options.push(e),this}renderAs(e){return this.attr.renderAs=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function select(e,t){return new SelectAttributeBuilder(e,t)}var MultiselectAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`multiselect`,e,t)}options(e){let t=asMutableArray(e);return N(this.attr.name??`unknown`,t),this.attr.options=t,this.asPhantomState()}option(e){this.attr.options||(this.attr.options=[]);let t=[...this.attr.options,e];return N(this.attr.name??`unknown`,t),this.attr.options.push(e),this}renderAs(e){return this.attr.renderAs=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function multiselect(e,t){return new MultiselectAttributeBuilder(e,t)}var LocationAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`location`,e,t)}granularity(e){return this.attr.granularity=e,this}defaultCountry(e){return this.attr.defaultCountry=e,this}allowedCountries(e){return this.attr.allowedCountries=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function location(e,t){return new LocationAttributeBuilder(e,t)}var UserAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`user`,e,t),this.attr.types=[`user`,`agent`]}types(e){let t=[...new Set(e)];if(t.length===0)throw Error(`[AttributeBuilder] user.types must contain at least one type.`);return this.attr.types=t,this}multiple(){return this.attr.multiple=!0,this}notifiesOnAssign(){return this.attr.notifiesOnAssign=!0,this}actors(){return this.attr.actors=!0,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function user(e,t){return new UserAttributeBuilder(e,t)}var BaseRelationAttributeBuilder=class extends BaseAttributeBuilder{to(e,t){let n={object:e,...t};return this.attr.targets?.push(n),this}toAny(){return this.attr.targets=[{object:`*`}],this}qualifyWith(...e){let t=this.attr.targets;if(!t||t.length===0)throw Error(`.qualifyWith() must be called AFTER .to(). Example: relation("companies", "Companies").to("companies").qualifyWith(...)`);return this.attr.properties=buildPropertySchema(e),this}bilateral(e){let t=this.attr.targets;if(!t||t.length===0)throw Error(`.bilateral() must be called AFTER .to(). Example: relation("company", "Company").to("companies").bilateral({ ... })`);if(t.length>1)throw Error(`Bilateral relations are not supported for polymorphic relations (multiple .to() targets).`);if(dn(this.attr))throw Error(`Bilateral relations are not supported for universal relations (.toAny()).`);let n=t[0]?.object;if(!n)throw new O(`Bilateral relation requires one target object`,[{path:[`bilateral`,`object`],message:`Bilateral relation requires one target object`}]);if(e.object&&e.object!==n){let t=`Bilateral inverse object ${e.object} must match relation target ${n}`;throw new O(t,[{path:[`bilateral`,`object`],message:t}])}return this.attr.bilateral={...e,object:n},this}},SingleRelationAttributeBuilder=class extends BaseRelationAttributeBuilder{constructor(e,t){super(`relation`,e,t),this.attr.cardinality=`one`,this.attr.targets=[]}many(){let e=new MultiRelationAttributeBuilder(this.attr.name,this.attr.label??``,{targets:this.attr.targets,isRequired:this.attr.required});return this.attr.system===!1&&e.runtime(),this.attr.hidden&&e.hidden(),this.attr.placeholder&&e.placeholder(this.attr.placeholder),this.attr.description&&e.description(this.attr.description),this.attr.icon&&e.icon(this.attr.icon),this.attr.order!==void 0&&e.order(this.attr.order),this.attr.metadata&&e.metadata(this.attr.metadata),e}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}},MultiRelationAttributeBuilder=class extends BaseRelationAttributeBuilder{constructor(e,t,n){super(`relation`,e,t),this.attr.cardinality=`many`,this.attr.targets=n?.targets??[],this.attr.defaultValue=[],n?.isRequired&&this.setRequired(!0)}maxItems(e){return this.attr.maxItems=e,this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function relation(e,t){return new SingleRelationAttributeBuilder(e,t)}var FormulaAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`formula`,e,t),this.attr.required=!1}expression(e){return this.attr.expression=e,this}returns(e){return this.attr.returnType=e,this}decimals(e){return this.attr.decimals=e,this}currency(e){return this.attr.currencyCode=e,this}required(){throw Error(`Formula attributes cannot be required: they are computed read-only values. Remove .required() from this attribute definition.`)}optional(){return this}};function formula(e,t){return new FormulaAttributeBuilder(e,t)}var RollupAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`rollup`,e,t),this.attr.required=!1}from(e){return this.attr.relationAttribute=e,this}aggregate(e){return this.attr.targetAttribute=e,this}using(e){return this.attr.function=e,this}decimals(e){return this.attr.decimals=e,this}path(e){return this.attr.relationPath=e,this}targetType(e){return this.attr.targetAttributeType=e,this}targetOptions(e){return this.attr.targetAttributeOptions=asMutableArray(e),this}targetCurrency(e){return this.attr.targetCurrencyCode=e,this}build(){let e=this.attr.function,t=this.attr.targetAttributeType;if(e===`original`&&t!==void 0&&t!==`select`&&t!==`status`&&t!==`multiselect`){let e=this.attr.relationAttribute??`relation`,n=this.attr.targetAttribute??`field`;throw new E(`Rollup "${this.attr.name}": .using("original") only supports a "select", "status", or "multiselect" target, but .targetType("${t}") was given. To surface a plain ${t} value from a related record, use a formula instead — e.g. formula("${this.attr.name}", "…").expression("${e}.${n}").`,D.VALIDATION_FAILED)}return super.build()}required(){throw Error(`Rollup attributes cannot be required: they are computed read-only values. Remove .required() from this attribute definition.`)}optional(){return this}};function rollup(e,t){return new RollupAttributeBuilder(e,t)}var DocumentAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`document`,e,t)}accepts(e){return this.attr.accepts=e,this}maxFileSize(e){return this.attr.maxFileSize=e,this}qualifyWith(...e){return this.attr.properties=buildPropertySchema(e),this}required(){return this.setRequired(!0),this.asRequiredState()}optional(){return this.setRequired(!1),this.asRequiredState()}};function document(e,t){return new DocumentAttributeBuilder(e,t)}const G={owner:`standardshq`,repo:`skills`,ref:`stable`},K=`[A-Za-z0-9._-]+`,rd=`[A-Za-z0-9_-]+`,id=RegExp(`^(${rd})/(${K})@([a-z0-9-]+)(?:#(${K}))?$`),ad=RegExp(`^(${rd})/(${K})$`),od=/^[0-9a-f]{40}$/i;function isSafeSegment(e){return e!==`.`&&!e.startsWith(`-`)&&!e.includes(`..`)}function refuse$2(e,t){throw new O(`Invalid skill source "${e}": ${t} (expected owner/repo@skill or owner/repo@skill#ref)`,[{path:[`source`],message:t}])}function canonicalRef(e){return od.test(e)?e.toLowerCase():e}function parseSkillSource(e){let t=e.trim(),n=t.startsWith(`github.com/`)?t.slice(11):t,r=id.exec(n);if(!r)return refuse$2(e,`malformed or not a github.com source`);let[,i,a,o,s]=r;return[i,a,s??``].every(isSafeSegment)?{host:`github.com`,owner:i,repo:a,skill:o,ref:s===void 0?null:canonicalRef(s)}:refuse$2(e,"a segment cannot start with `-`, hold `..` or be `.`")}function isSkillRepository(e){return ad.exec(e)?.slice(1).every(isSafeSegment)??!1}function formatSkillSource(e){let t=`${e.owner}/${e.repo}@${e.skill}`;return e.ref===null?t:`${t}#${e.ref}`}function isPinnedSkillSource(e){return e.ref!==null&&od.test(e.ref)}const q=/^[a-z0-9][a-z0-9-]{0,62}$/,J=`core`;function assertBundleName(e){if(!q.test(e))throw new O(`Invalid bundle name "${e}": expected a lowercase slug matching ${q}`,[]);if(e===`core`)throw new O(`Bundle name "${J}" is reserved`,[])}async function sha256Hex(e){let t=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e));return Array.from(new Uint8Array(t),e=>e.toString(16).padStart(2,`0`)).join(``)}function nameSlug(e,t){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`_`).slice(0,t).replace(/^_+|_+$/g,``)}function cloneBuilderValue(e,t){try{return structuredClone(e)}catch{let e=`Builder configuration must contain cloneable data`;throw new O(e,[{path:t,message:e}])}}function requireBuilderName(e,t){if(typeof e!=`string`||e.trim().length===0)throw new O(`Name must not be blank`,[{path:t,message:`Name must not be blank`}])}function validateContentConfiguration(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw new O(`Invalid content configuration`,[{path:t,message:`Expected content configuration`}]);for(let n of[`name`,`label`,`placement`])if(Object.hasOwn(e,n)){let e=`Independent content configuration cannot define ${n}`;throw new O(e,[{path:[...t,n],message:e}])}let n=C.safeParse({...e,name:`content`,placement:e.type===`group`?`grid`:`main`});if(!n.success)throw O.fromZodErrors(n.error.issues.map(e=>({path:[...t,...e.path.map(String)],message:e.message})));n.data.type===`form`&&n.data.groups.forEach((e,n)=>requireBuilderName(e.name,[...t,`groups`,String(n),`name`]));let{name:r,label:i,placement:a,...o}=n.data;return cloneBuilderValue(o,t)}function validateLiteralContent(e,t){return validateContentConfiguration(e,t),cloneBuilderValue(e,t)}function positionOf(e){return{x:e.x,y:e.y,w:e.w,h:e.h}}function bottomOf(e){return e.y+e.h}function collides(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w&&e.y<t.y+t.h&&t.y<e.y+e.h}function firstCollision(e,t){return t.find(t=>collides(e,t))}function inReadingOrder$1(e){return[...e].sort((e,t)=>e.y-t.y||e.x-t.x)}function snapWidth(e,t,n){let r=12-t,i=_.filter(e=>e>=n&&e<=r);return i.length===0?_.find(e=>e>=n)??n:i.reduce((t,n)=>{let r=Math.abs(n-e),i=Math.abs(t-e);return r<i||r===i&&n>t?n:t})}function sharesColumns(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w}function risenRow(e,t){return t.reduce((t,n)=>n.y<e.y&&sharesColumns(e,n)?Math.max(t,bottomOf(n)):t,0)}function packLayout(e,t){let n=e.map(e=>{let n=t?.get(e.i);return n===void 0?e:{...e,h:n}}),r=n.filter(e=>e.static===!0),i=new Map(r.map(e=>[e.i,e]));for(let e of inReadingOrder$1(n.filter(e=>e.static!==!0))){let t=risenRow(e,r),n=firstCollision({...e,y:t},r);for(;n!==void 0;)t=bottomOf(n),n=firstCollision({...e,y:t},r);let a={...e,y:t};r.push(a),i.set(e.i,a)}return n.map(e=>i.get(e.i)??e)}function settleLayout(e,t){let n=e.filter(e=>e.static===!0),r=e.filter(e=>e.static!==!0),i=new Map;for(let e of[...inReadingOrder$1(r.filter(e=>t.has(e.i))),...inReadingOrder$1(r.filter(e=>!t.has(e.i)))]){let t=e,r=firstCollision(t,n);for(;r!==void 0;)t={...t,y:bottomOf(r)},r=firstCollision(t,n);n.push(t),i.set(e.i,t)}return packLayout(e.map(e=>i.get(e.i)??e))}function pageCompactor(){return{type:`vertical`,allowOverlap:!1,preventCollision:!1,compact:e=>packLayout(e).map(e=>({...e,moved:!1}))}}function clampHeight(e,t){let n=t.minHeight??1,r=t.maxHeight??1/0;return Math.max(1,n,Math.min(r,e))}function widthStepConstraint(e){return{name:`width-steps`,constrainSize:(t,n,r)=>{let i=e(t.i),a=snapWidth(n,t.x,i.minWidth);return i.height===`fit`?{w:a,h:t.h}:i.height===`flexible`?{w:a,h:clampHeight(r,i)}:{w:a,h:Math.max(1,r)}}}}function snapCell(e,t){let n=Math.max(0,Math.min(e.x,11)),r=snapWidth(e.w,n,t(e.i).minWidth);return{...e,x:Math.min(n,12-r),y:Math.max(0,e.y),w:r,h:Math.max(1,e.h)}}function samePosition(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}function pushApart(e){let t=e.filter(e=>e.static===!0),n=new Map;for(let r of inReadingOrder$1(e.filter(e=>e.static!==!0))){let e=r,i=firstCollision(e,t);for(;i!==void 0;){let n={...e,x:i.x+i.w};e=n.x+n.w<=12&&firstCollision(n,t)===void 0?n:{...e,y:bottomOf(i)},i=firstCollision(e,t)}t.push(e),n.set(r.i,e)}return e.map(e=>n.get(e.i)??e)}function isValidStatic(e){return[e.x,e.y,e.w,e.h].every(Number.isInteger)&&e.x>=0&&e.y>=0&&e.h>=1&&_.includes(e.w)&&e.x+e.w<=12}function keptStatics(e){let t=[],n=new Set;for(let r of inReadingOrder$1(e.filter(e=>e.static===!0)))isValidStatic(r)&&firstCollision(r,t)===void 0?t.push(r):n.add(r.i);return e.map(e=>n.has(e.i)?{...e,static:!1}:e)}function boundedHeight(e,t){let n=t(e.i);if(e.static===!0||n.height!==`flexible`)return e;let r=clampHeight(e.h,n);return r===e.h?e:{...e,h:r}}function repairPageGrid(e,t){let n=[],r=keptStatics(e).map(e=>{let r=boundedHeight(e,t);return r!==e&&n.push({name:e.i,kind:`height`,from:positionOf(e),to:positionOf(r)}),r}).map(e=>{if(e.static===!0)return e;let r=snapCell(e,t);return samePosition(e,r)||n.push({name:e.i,kind:`width`,from:positionOf(e),to:positionOf(r)}),r}),i=pushApart(r);i.forEach((e,t)=>{let i=r[t];i!==void 0&&!samePosition(i,e)&&n.push({name:e.i,kind:`pushed`,from:positionOf(i),to:positionOf(e)})});let a=packLayout(i),o=keptFill(a,t);for(let e of inReadingOrder$1(a))e.i!==o&&t(e.i).height===`fill`&&n.push({name:e.i,kind:`fill`});return{cells:a,repairs:n}}function keptFill(e,t){return inReadingOrder$1(e).find(e=>e.static!==!0&&t(e.i).height===`fill`)?.i}function firstFreeSlot(e,t,n){let r=t.reduce((e,t)=>Math.max(e,bottomOf(t)),0);for(let i=n;i<=r;i+=1)for(let n=0;n+e.w<=6;n+=1)if(firstCollision({x:n,y:i,...e},t)===void 0)return{x:n,y:i};return{x:0,y:r}}function deriveLayout6(e,t){let n=[];for(let r of inReadingOrder$1(e)){let e=Math.min(6,Math.max(t(r.i).minWidth,Math.ceil(r.w/2))),i=n.at(-1)?.y??0;n.push({i:r.i,...firstFreeSlot({w:e,h:r.h},n,i),w:e,h:r.h})}return n}function figureSlot(e,t,n){for(let r of inReadingOrder$1(e.filter(e=>n.has(e.i)))){let n={x:r.x+r.w,y:r.y,...t};if(n.x+n.w<=12&&firstCollision(n,e)===void 0)return n}}function placeNew(e,t,n,r){let i={w:snapWidth(n.size.w,0,n.minWidth),h:Math.max(1,n.size.h)};return n.figure?{i:t,...figureSlot(e,i,r)??{x:0,y:0,...i}}:{i:t,x:0,y:e.reduce((e,t)=>Math.max(e,bottomOf(t)),0),...i}}function spanContent(e,t){if(!_.includes(t)){let e=`A block spans ${_.join(`, `)} columns, not ${String(t)}`;throw new O(e,[{path:[`content`,`span`],message:e}])}return{content:e,span:t}}function configureContent(e,t){try{return typeof e==`object`&&e&&`build`in e&&typeof e.build==`function`?{configuration:validateContentConfiguration(e.build(),t),extension:e.extension}:{configuration:validateContentConfiguration(e,t)}}catch(e){throw e instanceof O?new O(e.message,e.errors.map(e=>({...e,path:e.path[0]===`content`?[...t,...e.path.slice(1)]:e.path}))):e}}function storedQuery(e,t){let n=[`search`,`offset`].filter(t=>e.state[t]!==void 0);if(n.length>0)throw new O(`A ${t} cannot keep a query's ${n.join(` or `)}`,n.map(e=>({path:[t,e],message:`A ${t} stores no ${e}; use filters and limit instead`})));return e.toDefinition()}function checkInputs(e,t){for(let[n,r]of Object.entries(t)){let t=e.inputs[n];r!==void 0&&t!==void 0&&S({parameters:t.schema},r,[`content`,`parameters`,n])}return t}var BlockContentBuilder=class{constructor(e,t,n){this.extension=e,this.parameters=t,this.heightMode=n}copy(e,t){let n=this.constructor;return new n(this.extension,e,t)}with(e){let t={...this.parameters};for(let[n,r]of Object.entries(e)){if(r===void 0){delete t[n];continue}t[n]=r}return checkInputs(this.extension,e),this.copy(t,this.heightMode)}height(e){return this.copy(this.parameters,e)}build(){let e={type:`custom`,extension:this.extension.name,parameters:cloneBuilderValue(this.parameters,[`content`,`parameters`]),...this.heightMode===void 0?{}:{height:this.heightMode}};return validateContentConfiguration(e,[`content`]),S(this.extension,e.parameters,[`content`,`parameters`]),e}span(e){return spanContent(this,e)}},Measures=class{count(){return this.measured(`count`)}sum(e){return this.measured(`sum`,e)}avg(e){return this.measured(`avg`,e)}min(e){return this.measured(`min`,e)}max(e){return this.measured(`max`,e)}};function measure(e,t,n){return{query:e,measure:t,...n===void 0?{}:{attribute:n}}}var MetricBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}trend(e,t){return this.with({trend:e,trendBucket:t})}compare(e,t){return this.with({compare:e,period:t})}target(e){return this.with({target:e})}},MetricQuery=class extends Measures{constructor(e){super(),this.query=e}measured(e,t){return new MetricBuilder(Je,checkInputs(Je,measure(this.query,e,t)))}};function groupBy(e){return typeof e==`string`?[e,void 0]:[e.attribute,e.bucket]}var ChartBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}by(e){let[t,n]=groupBy(e);return this.with({by:t,byBucket:n})}by2(e){let[t,n]=groupBy(e);return this.with({by2:t,by2Bucket:n})}kind(e){return this.with({kind:e})}bar(){return this.kind(`bar`)}horizontalBar(){return this.kind(`horizontal_bar`)}line(){return this.kind(`line`)}area(){return this.kind(`area`)}donut(){return this.kind(`donut`)}funnel(){return this.kind(`funnel`)}treemap(){return this.kind(`treemap`)}calendar(){return this.kind(`calendar`)}},ChartQuery=class extends Measures{constructor(e){super(),this.query=e}measured(e,t){return new ChartBuilder(Ie,checkInputs(Ie,{...measure(this.query,e,t),kind:`bar`}))}};const sd={"7d":7,"30d":30};var AgendaBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}next(e){let t=typeof e==`number`?e:sd[e];if(!Number.isInteger(t)||t<1){let e=`An agenda looks ahead a whole number of days, at least 1`;throw new O(e,[{path:[`content`,`parameters`,`next`],message:e}])}return this.with({next:t})}yearly(){return this.with({yearly:!0})}},CardBuilder=class extends BlockContentBuilder{fields(...e){return this.with({fields:e})}record(e){return this.with({record:e})}},DecisionsBuilder=class extends BlockContentBuilder{kinds(...e){return this.with({kinds:e})}limit(e){return this.with({limit:e})}},MeetingsUpcomingBuilder=class extends BlockContentBuilder{limit(e){return this.with({limit:e})}},MailboxBuilder=class extends BlockContentBuilder{category(e){return this.with({category:e})}important(){return this.with({important:!0})}unread(){return this.with({unread:!0})}limit(e){return this.with({limit:e})}label(e){return this.with({label:e})}};function metric(e){return new MetricQuery(storedQuery(e,`metric`))}function chart(e){return new ChartQuery(storedQuery(e,`chart`))}function agenda(e,t){return new AgendaBuilder(g,checkInputs(g,{query:storedQuery(e,`agenda`),attribute:t}))}function card(e){let t=e===void 0||typeof e==`string`?e:e.build().name;return new CardBuilder(v,t===void 0?{}:checkInputs(v,{object:t}))}function text$1(e){return new BlockContentBuilder(ct,checkInputs(ct,{markdown:e}))}function decisions(){return new DecisionsBuilder(ze,{})}function meetingsUpcoming(){return new MeetingsUpcomingBuilder(qe,{})}function mailbox(){return new MailboxBuilder(Ge,{})}function isSpanned(e){return typeof e==`object`&&!!e&&`span`in e&&`content`in e}function total(e){return e.reduce((e,t)=>e+t,0)}function spread(e){return e.length===0?0:Math.max(...e)-Math.min(...e)}function betterSplit(e,t){let n=total(e)-total(t);if(n!==0)return n>0;let r=spread(t)-spread(e);if(r!==0)return r>0;let i=e.findIndex((e,n)=>e!==t[n]);return i!==-1&&(e[i]??0)>(t[i]??0)}function splitColumns(e,t){let n=[...t];function visit(r,i){let a=t[r.length];if(a===void 0){betterSplit(r,n)&&(n=r);return}for(let t of _)t>=a&&i+t<=e&&visit([...r,t],i+t)}return visit([],0),n}function rowWidths(e,t){let n=e.filter(e=>e.span===void 0);n.length>4&&reject(t,`A row holds at most 4 unsized blocks`);let r=total(e.map(e=>e.span??e.minWidth));r>12&&reject(t,`Blocks ${e.map(e=>`"${e.key}"`).join(`, `)} do not fit one row: they need at least ${r} of 12 columns`);let i=splitColumns(12-total(e.map(e=>e.span??0)),n.map(e=>e.minWidth)),a=0;return e.map(e=>{if(e.span!==void 0)return e.span;let t=i[a]??e.minWidth;return a+=1,t})}function reject(e,t){throw new O(t,[{path:e,message:t}])}function traitsOf(e,t=[]){return fn(e,b,new Map(t.map(e=>[e.name,e])))}function headingNames(e){let t=new Set(e.flatMap(e=>e.kind===`heading`?e.meta.name===void 0?[]:[e.meta.name]:[...Object.keys(e.blocks),...e.group?.name===void 0?[]:[e.group.name]]));return e.flatMap(e=>{if(e.kind!==`heading`)return[];if(e.meta.name!==void 0)return[e.meta.name];let n=nameSlug(e.title,40),r=n===``?`heading`:`heading_${n}`,i=r;for(let e=2;t.has(i);e+=1)i=`${r}_${e}`;return t.add(i),[i]})}function headingEntry(e,t,n){let r={title:t,...n.description===void 0?{}:{description:n.description},...n.icon===void 0?{}:{icon:n.icon}};return{key:e,content:new BlockContentBuilder(He,r),span:12}}function groupOf(e,t,n){let[r]=e.map(e=>e.name).sort(),i=Gt(e.length);return(i!==void 0||r===void 0)&&reject(n,String(i)),{type:`group`,name:t.name??`group_${r}`,placement:`grid`,...t.label===void 0?{}:{label:t.label},members:e.map(e=>e.name)}}function requirePlacement(e,t,n,r,i){if(e.type===`page`&&reject(i,`Content "${n}" cannot reference a page from a page`),Dn(e,t,n,r,i),e.type!==`custom`)return;let a=t?.refine?.(e.parameters??{},r);a&&reject([...i,`parameters`,a.input],a.message)}var Y=class PageBuilder{constructor(e){this.kind=`view`,this.data=e}icon(e){return new PageBuilder({...this.data,icon:e})}description(e){return new PageBuilder({...this.data,description:e})}home(){return new PageBuilder({...this.data,home:!0})}for(e){let t=typeof e==`string`?e:e.build().name;return new PageBuilder({...this.data,object:t})}row(e,t={}){let n=t.group===void 0?{kind:`row`,blocks:e}:{kind:`row`,blocks:e,group:t.group};return new PageBuilder({...this.data,sections:[...this.data.sections,n]})}heading(e,t={}){let n={kind:`heading`,title:e,meta:t};return new PageBuilder({...this.data,sections:[...this.data.sections,n]})}build(){let e=[`views`,`0`],{name:t,label:n,object:r,icon:i,description:a,home:o,sections:s}=this.data;requireBuilderName(t,[...e,`name`]),r!==void 0&&requireBuilderName(r,[...e,`object`]),o&&r!==void 0&&reject([...e,`home`],`Only a standalone page can be the home`),s.every(e=>e.kind===`row`&&Object.keys(e.blocks).length===0)&&reject([...e,`contents`],`A page declares at least one block`);let c=r===void 0?`page`:`record`,l=[],u=[],d=headingNames(s),f=0;for(let t of s){let n=[...e,`contents`,String(l.length)],r=(t.kind===`heading`?[headingEntry(d[f++]??``,t.title,t.meta)]:Object.entries(t.blocks).map(([e,t])=>isSpanned(t)?{key:e,content:t.content,span:t.span}:{key:e,content:t,span:void 0})).map(t=>{let n=[...e,`contents`,String(l.length)];requireBuilderName(t.key,[...n,`name`]);let{configuration:r,extension:i}=configureContent(t.content,n);requirePlacement(r,i,t.key,c,n);let a={...r,name:t.key,placement:`grid`};return l.push(a),{content:a,span:t.span}}),i=rowWidths(r.map(({content:e,span:t})=>({key:e.name,...t===void 0?{}:{span:t},minWidth:traitsOf(e).minWidth})),n),a=u.reduce((e,t)=>Math.max(e,t.y+t.h),0);if(t.kind===`row`&&t.group!==void 0){let e=groupOf(r.map(({content:e})=>e),t.group,n);l.push(e),u.push({i:e.name,x:0,y:a,w:12,h:traitsOf(e,l).size.h});continue}let o=0;r.forEach(({content:e},t)=>{let n=i[t]??0;u.push({i:e.name,x:o,y:a,w:n,h:traitsOf(e).size.h}),o+=n})}let p=Object.fromEntries(packLayout(u).map(({i:e,x:t,y:n,w:r,h:i})=>[e,{x:t,y:n,w:r,h:i}])),m={name:t,label:n,...r===void 0?{}:{object:r},context:`page`,...i===void 0?{}:{icon:i},...a===void 0?{}:{description:a},...o?{home:!0}:{},contents:l,grid:p},ee=x.safeParse(m);if(!ee.success)throw O.fromZodErrors(ee.error.issues.map(t=>({path:[...e,...t.path.map(String)],message:t.message})));return{kind:`view`,definition:cloneBuilderValue(m,e)}}};function page(e,t){return new Y({name:e,label:t,object:void 0,sections:[]})}var X=class ViewBuilder{constructor(e,t=[]){this.kind=`view`,this.data=cloneBuilderValue(e,[`views`,`0`]),this.extensions=t.map(e=>e&&{...e})}for(e){let t=typeof e==`string`?e:e.build().name;return new ViewBuilder({...this.data,object:t},this.extensions)}default(){return new ViewBuilder({...this.data,default:!0},this.extensions)}description(e){return new ViewBuilder({...this.data,description:e},this.extensions)}icon(e){return new ViewBuilder({...this.data,icon:e},this.extensions)}place(e,t,n,r,i){let{configuration:a,extension:o}=configureContent(n,[`views`,`0`,`contents`,String(this.data.contents.length)]),s={...a,name:e,label:t,placement:r},c=[...this.data.contents,s],l=i===void 0?{}:{anchors:{...this.data.anchors,[e]:{after:i}}};return new ViewBuilder({...this.data,...l,contents:c},[...this.extensions,o])}tab(e,t,n,r){return this.place(e,t,n,`main`,r?.after)}aside(e,t,n){return this.place(e,t,n,`aside`)}build(){let e=[`views`,`0`];requireBuilderName(this.data.name,[...e,`name`]),requireBuilderName(this.data.object,[...e,`object`]);let t=x.safeParse(this.data);if(!t.success)throw O.fromZodErrors(t.error.issues.map(t=>({path:[...e,...t.path.map(String)],message:t.message})));return this.data.contents.forEach((t,n)=>{let r=[...e,`contents`,String(n)];requireBuilderName(t.name,[...r,`name`]),t.type===`form`&&t.groups.forEach((e,t)=>requireBuilderName(e.name,[...r,`groups`,String(t),`name`])),Dn(t,this.extensions[n],t.name,this.data.context,r)}),{kind:`view`,definition:cloneBuilderValue(this.data,e)}}};function detailView(e,t){return new X({name:e,label:t,object:void 0,context:`record`,contents:[]})}function listView(e,t){return new X({name:e,label:t,object:void 0,context:`collection`,contents:[]})}function isViewPiece(e){return`kind`in e&&e.kind===`view`}function isObjectPiece(e){return!(isViewPiece(e)||e instanceof k)}function assertPiece(e,t){if(typeof e!=`object`||!e)throw new O(`Unsupported bundle piece: ${t}`,[]);if(isViewPiece(e)||e instanceof k||typeof e.build==`function`)return;let n=e.name;throw new O(`Unsupported bundle piece: ${typeof n==`string`?n:String(t)}`,[])}function declarationOf$1(e){return e instanceof Y||e instanceof X?e.build():e}function isPage(e){return e.definition.context===`page`}function validateView(e){let t=x.safeParse(e);if(t.success)return t.data;let n=typeof e==`object`&&e&&`name`in e?String(e.name):`(unnamed)`,r=O.fromZodErrors(t.error.issues.map(e=>({path:e.path.map(String),message:e.message})));throw new O(`View "${n}" is invalid. ${r.message}`,r.errors)}function identityOf(e){return`${e.object??``}:${e.name}`}function assertUniqueIdentities(e,t){let n=new Set;for(let r of t){let t=identityOf(r);if(n.has(t))throw new w(e,r.name);n.add(t)}}function byIdentity(e){return(t,n)=>{let r=identityOf(e(t)),i=identityOf(e(n));return r<i?-1:+(r>i)}}async function hashBundlePieces(e){return sha256Hex(P({objects:[...e.objects].sort(byIdentity(e=>({name:e.name}))),views:[...e.views].sort(byIdentity(e=>e)),pages:[...e.pages].sort(byIdentity(e=>e.definition)),agents:[...e.agents].sort(byIdentity(e=>({name:e.name})))}))}const cd={title:120,why:200,prompt:fi};function assertSetupWithinLimits(e){let t=Object.keys(cd).flatMap(t=>{let n=cd[t],r=e[t];return r!==void 0&&r.length>n?[{path:[`setup`,t],message:`Setup ${t} must be at most ${n} characters`}]:[]});if(t.length>0)throw new O(`Bundle setup is invalid`,t)}function assertSetup(e,t){e&&assertSetupWithinLimits(e);for(let e of Object.values(t))assertSetupWithinLimits({title:e[`setup.title`],why:e[`setup.why`],prompt:e[`setup.prompt`]})}function assertSkills(e){let t=new Set,n=e.flatMap(e=>{let n=skillProblem(e,t);return n===null?[]:[{path:[`skills`],message:n}]});if(n.length>0)throw new O(`Bundle skills are invalid`,n)}function skillProblem(e,t){let n;try{n=parseSkillSource(e)}catch(t){return t instanceof Error?t.message:`Invalid skill source "${e}"`}return n.owner!==G.owner||n.repo!==G.repo?`Skill "${e}" must come from ${G.owner}/${G.repo}`:n.ref===null?t.has(n.skill)?`Skill "${e}" is declared twice`:(t.add(n.skill),null):`Skill "${e}" cannot pin a ref`}async function builtBundleFromPieces(e){let t=e.name===J;t||assertBundleName(e.name);let{objects:n,pages:r,agents:i}=e,a=e.views.map(validateView),o=n.map(e=>e.name);if(assertUniqueIdentities(`object`,o.map(e=>({name:e}))),assertUniqueIdentities(`view`,a),assertUniqueIdentities(`page`,r.map(e=>e.definition)),assertUniqueIdentities(`agent`,i.map(e=>({name:e.name}))),!t){let e=o.find(M);if(e!==void 0)throw new T(e,`bundle`)}let{setup:s}=e,c=e.translations??{};assertSetup(s,c);let l=e.skills??[];return assertSkills(l),{name:e.name,label:e.label.trim(),description:e.description??null,hash:await hashBundlePieces({objects:n,views:a,pages:r,agents:i}),objects:n,views:a,pages:r,agents:i,uses:e.uses??[],samples:e.samples??[],...s?{setup:s}:{},...l.length>0?{skills:l}:{},translations:c}}const ld=Symbol.for(`standards.bundle`);function isBundle(e){return typeof e==`object`&&!!e&&e[ld]===!0}var BundleBuilder=class{constructor(e,t){this[ld]=!0,this.pieces=[],this.used=[],this.descriptionText=null,this.sampleRecords=[],this.skillSources=[],this.translationTables={},this.built=null,assertBundleName(e),this.name=e,this.label=t,this.objectBuilders=[]}description(e){return this.descriptionText=e,this.changed()}add(...e){return this.pieces.push(...e),this.objectBuilders.push(...e.filter(isObjectPiece)),this.changed(),this}uses(...e){return this.used.push(...e),this.changed()}samples(e){return this.sampleRecords=e,this.changed()}setup(e){return this.setupInvitation=e,this.changed()}skills(...e){return this.skillSources=[...this.skillSources,...e],this.changed()}translations(e,t){return this.translationTables[e]=t,this.changed()}build(){return this.built??=this.assemble(),this.built}changed(){return this.built=null,this}async assemble(){let e=[],t=[],n=[],r=[];for(let[i,a]of this.pieces.entries())if(assertPiece(a,i),a instanceof k)r.push(a.build());else if(isViewPiece(a)){let e=declarationOf$1(a);isPage(e)?n.push(e):t.push(e.definition)}else e.push(a.build());return this.assertNotInUsed(e),builtBundleFromPieces({name:this.name,label:this.label,description:this.descriptionText,objects:e,views:t,pages:n,agents:r,uses:this.used.map(e=>e.name),samples:this.sampleRecords,...this.setupInvitation?{setup:this.setupInvitation}:{},skills:this.skillSources,translations:{...this.translationTables}})}assertNotInUsed(e){let t=new Map,n=new Set([this]),visit=e=>{if(!n.has(e)){n.add(e);for(let n of e.objectBuilders){let r=n.build().name;t.has(r)||t.set(r,e.name)}for(let t of e.used)visit(t)}};for(let e of this.used)visit(e);for(let{name:n}of e){let e=t.get(n);if(e!==void 0)throw new w(`object`,n,`Object "${n}" is declared by bundle "${this.name}" and by its used bundle "${e}"`)}}};function bundle(e,t){return new BundleBuilder(e,t)}function readOnlyOption(e){return e?.readOnly===void 0?{}:{readOnly:e.readOnly}}function buildFreeFieldRef(e,t){return{type:`free`,attribute:e.build(),label:t?.label,required:t?.required,prefillExpression:t?.prefillExpression,...readOnlyOption(t)}}function buildSlotFieldRef(e,t,n){let[r,...i]=Array.isArray(e)?e:[e];return{type:`slot`,slotId:r,additionalSlotIds:i.length>0?i:void 0,attribute:t,label:n?.label,required:n?.required,tooltip:n?.tooltip,...readOnlyOption(n)}}const ud=F.boolean().optional();var FormRowBuilder=class{constructor(e,t,n){this._finalized=!1,this.stepBuilder=e,this.rowData={id:t,order:n,type:`fields`,fields:[]}}field(e,t,n){return this.rowData.fields.push(buildSlotFieldRef(e,t,n)),this}freeField(e,t){return this.rowData.fields.push(buildFreeFieldRef(e,t)),this}row(e){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).row(e)}heading(e,t){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).heading(e,t)}separator(){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).separator()}text(e){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).text(e)}endRow(){return this._finalized?this.stepBuilder:(this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData))}},FormStepBuilder=class{constructor(e,t,n){this.rowOrder=0,this.formBuilder=e,this.stepData={id:t,label:n,rows:[]}}description(e){return this.stepData.description=e,this}field(e,t,n){this.rowOrder++;let r=`row-${this.stepData.id}-${this.rowOrder}`,i=buildSlotFieldRef(e,t,n),a={id:r,order:this.rowOrder,type:`fields`,fields:[i]};return this.stepData.rows.push(a),this}freeField(e,t){this.rowOrder++;let n=`row-${this.stepData.id}-${this.rowOrder}`,r=buildFreeFieldRef(e,t),i={id:n,order:this.rowOrder,type:`fields`,fields:[r]};return this.stepData.rows.push(i),this}row(e){return this.rowOrder++,new FormRowBuilder(this,e,this.rowOrder)}heading(e,t){this.rowOrder++;let n={id:`heading-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`heading`,content:e,level:t};return this.stepData.rows.push(n),this}separator(){this.rowOrder++;let e={id:`sep-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`separator`};return this.stepData.rows.push(e),this}text(e){this.rowOrder++;let t={id:`text-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`text`,content:e};return this.stepData.rows.push(t),this}step(e,t){return this.formBuilder._finalizeStep(this.stepData).step(e,t)}build(){return this.formBuilder._finalizeStep(this.stepData).build()}_finalizeRow(e){return e.fields.length>0&&this.stepData.rows.push(e),this}_getData(){return this.stepData}},FormBuilder=class{constructor(e,t){this.data={slots:[],steps:[],status:`draft`,version:1},this.validateName(e),this.data.name=e,this.data.label=t}description(e){return this.data.description=e,this}icon(e){return this.data.icon=e,this}status(e){return this.data.status=e,this}metadata(e){return this.data.metadata=e,this}slot(e,t,n){if(this.data.slots.some(t=>t.id===e))throw Error(`[FormBuilder] Duplicate slot id: "${e}"`);let r={id:e,objectName:t,label:n.label,mode:n.mode??`create`,color:n.color,icon:n.icon};return this.data.slots.push(r),this}step(e,t){if(this.data.steps.some(t=>t.id===e))throw Error(`[FormBuilder] Duplicate step id: "${e}"`);return new FormStepBuilder(this,e,t)}build(){return this.validateRequiredData(),this.validateSlotReferences(),this.validateFreeFields(),this.validatePrefillExpressions(),this.validateReadOnly(),this.data}_finalizeStep(e){return this.data.steps.push(e),this}validateName(e){let t=F.string().min(1,`Form name cannot be empty`).max(63,`Form name is too long (max 63 characters)`).regex(/^[a-z0-9]+(-[a-z0-9]+)*$/,{message:`Invalid form name format. Name must be in kebab-case: 'client-onboarding', 'contact-creation'`});try{t.parse(e)}catch(e){throw e instanceof F.ZodError?Error(`[FormBuilder] ${e.issues[0].message}`):e}}validateRequiredData(){if(this.data.slots.length===0)throw Error(`[FormBuilder] At least one slot is required. Use .slot() to add slots.`);if(this.data.steps.length===0)throw Error(`[FormBuilder] At least one step is required. Use .step() to add steps.`)}validateSlotReferences(){let e=new Map(this.data.slots.map(e=>[e.id,e.objectName]));for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n))for(let r of n.fields){if(r.type!==`slot`)continue;let n=getSlotFieldTargets(r);for(let r of n)if(!e.has(r))throw Error(`[FormBuilder] Step "${t.id}" references unknown slot "${r}". Declare it with .slot("${r}", ...) first.`);let i=new Set(n.map(t=>e.get(t)));if(i.size>1)throw Error(`[FormBuilder] Step "${t.id}" field on attribute "${r.attribute}" targets slots of different objects (${[...i].join(`, `)}). A multi-slot field must target slots of the same object.`)}}validatePrefillExpressions(){let e=[...z,`join`,`where`];for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n))for(let r of n.fields){if(!isFormFreeFieldRef(r)||!r.prefillExpression)continue;let n=r.prefillExpression,i=`prefillExpression on free field "${r.attribute.name}" in step "${t.id}"`;if(!isLabelExpression(n))throw Error(`[FormBuilder] ${i} must contain at least one {{ attribute }} interpolation.`);if(/\{\{\s*\}\}/.test(n))throw Error(`[FormBuilder] ${i} contains empty {{ }} interpolation.`);for(let a of n.matchAll(/(?<!\|)\|(?!\|)\s*(\w+)(?:\s*:[^|}]*)?/g)){let n=a[1];if(!e.includes(n))throw Error(`[FormBuilder] ${i} uses invalid pipe "${n}". Valid pipes: ${e.join(`, `)}`);let o=a[0].replace(/^\|/,``);if(isWherePipe(o)&&!parseWherePipe(o))throw new O(`[FormBuilder] ${i} has a malformed where: pipe "${o.trim()}". Write where:property=value or where:property in (a,b).`,[{path:[t.id,r.attribute.name,`prefillExpression`],message:`Malformed where: pipe`}])}}}validateReadOnly(){for(let e of this.data.steps)for(let t of e.rows)if(isFormFieldsRow(t))for(let n of t.fields){if(ud.safeParse(n.readOnly).success)continue;let t=isFormFreeFieldRef(n)?n.attribute.name:n.attribute,r=isFormFreeFieldRef(n)?`free field`:`field`;throw new O(`[FormBuilder] readOnly on ${r} "${t}" in step "${e.id}" must be a boolean.`,[{path:[e.id,t,`readOnly`],message:`Expected a boolean`}])}}validateFreeFields(){let e=new Set(L);for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n)){for(let r of n.fields)if(isFormFreeFieldRef(r)){let n=r.attribute.type;if(e.has(n))throw Error(`[FormBuilder] Free field in step "${t.id}" uses forbidden attribute type "${n}". Forbidden types: ${L.join(`, `)}`)}}}};function form(e,t){return new FormBuilder(e,t)}const dd=`box`,fd=[`circle`,`square`],pd=[`upload`,`website`,`name`,`email`];function isImageSource(e){return pd.some(t=>t===e)}const md={object:[`icon`,`color`],record:[`icon`,`image`],emailCategory:[`icon`,`color`],option:[`color`],view:[`icon`],agent:[`color`],user:[`image`]};function imageFileIdOf(e){return`image`in e?e.image?.fileId:`imageFileId`in e?e.imageFileId:void 0}function resolveAppearance(e,t){let n=imageFileIdOf(e);if(n)return{kind:`image`,imageFileId:n,shape:t?.image?.shape??`square`};let r=t?.name??e.name,i=e.color??t?.color??(r?Gl(r):void 0),a=e.icon??t?.icon??`box`;return i?{kind:`tile`,icon:a,color:i}:{kind:`glyph`,icon:a}}const hd=F.object({shape:F.enum(fd),from:F.array(F.string().refine(e=>e.trim().length>0,`Must not be blank`)).optional()}).strict();function imageLookupKindOf(e){return e.type===`text`?e.format===`url`?`website`:e.format===`email`?`email`:`name`:null}function validateObjectImage(e){let t=e.image?.from;if(t===void 0)return;let refuse=(t,n)=>{throw new O(`Object "${e.name}": ${t}`,[{path:n===void 0?[`image`,`from`]:[`image`,`from`,String(n)],message:t}])};t.length===0&&refuse(`image.from must name at least one attribute`);let n=new Map((e.attributes??[]).map(e=>[e.name,e])),r=new Set;for(let[e,i]of t.entries()){r.has(i)&&refuse(`image.from names "${i}" twice`,e),r.add(i);let t=n.get(i);t?imageLookupKindOf(t)===null&&refuse(`image.from names "${i}", a ${t.type} attribute: only text attributes can locate an image`,e):refuse(`image.from names "${i}", which is not one of its attributes`,e)}}function validateObjectExpressions(e){let{name:t,labelExpression:n,embeddingExpression:r}=e;if(!n)throw new E(`Object "${t}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,D.VALIDATION_FAILED);let i=B.safeParse(n);if(!i.success){let e=i.error.issues[0]?.message??`Invalid labelExpression`;throw new E(`Invalid labelExpression for "${t}": ${e}`,D.VALIDATION_FAILED)}if(r!==void 0){let e=B.safeParse(r);if(!e.success){let n=e.error.issues[0]?.message??`Invalid embeddingExpression`;throw new E(`Invalid embeddingExpression for "${t}": ${n}`,D.VALIDATION_FAILED)}}}var ObjectBuilder=class{get"~standard"(){return createStandardSchemaProps(Dl(this.build()))}constructor(e,t){this._sealed=!1,this._toleratedAttributes=[],this.validateName(e),this.obj={name:e,label:t,attributes:[],system:!0}}id(e){return this.obj.id=e,this}description(e){return this.obj.description=e,this}pluralLabel(e){return this._pluralLabel=e,this}icon(e){return this.obj.icon=e,this}color(e){return this.obj.color=e,this}image(e={}){return this.obj.image={shape:e.shape??`square`,...e.from===void 0?{}:{from:[...e.from]}},this}runtime(){return this.obj.system=!1,this}sealed(){return this._sealed=!0,this}tolerate(e){return this._toleratedAttributes=[...this._toleratedAttributes,...e],this}attribute(e){return this.pushAttributes([e]),this}attributes(e){return this.pushAttributes(e),this}pushAttributes(e){let t=e.map(e=>`build`in e&&typeof e.build==`function`?e.build():e);Rc([...this.obj.attributes,...t],e=>e.name,e=>new w(`attribute`,e,`Object "${this.obj.name}": duplicate attribute name "${e}"`)),this.obj.attributes.push(...t)}metadata(e){return this.obj.metadata={...this.obj.metadata,...e},this}order(e){return this.obj.metadata={...this.obj.metadata,order:e},this}hidden(){return this.obj.metadata={...this.obj.metadata,hidden:!0},this}labelExpression(e){return this._labelExpression=e,this}embeddingExpression(e){return this._embeddingExpression=e,this}documentLayout(e){if(e.presets)for(let t of e.presets)validatePresetStructure(t.id,t.structure,1);return this.obj.documentLayout=e,this}hierarchical(){return this.obj.hierarchical=!0,this}build(){if(!this.obj.name)throw new O(`[ObjectBuilder] Missing required field: name`,[{path:[`name`],message:`name is required`}]);if(!this.obj.label)throw new O(`[ObjectBuilder] Missing required field: label`,[{path:[`label`],message:`label is required`}]);return validateObjectExpressions({name:this.obj.name,labelExpression:this._labelExpression,embeddingExpression:this._embeddingExpression}),validateObjectImage({name:this.obj.name,image:this.obj.image,attributes:this.obj.attributes}),{...this.obj,pluralLabel:this._pluralLabel,labelExpression:this._labelExpression,embeddingExpression:this._embeddingExpression,sealed:this._sealed,toleratedAttributes:this._toleratedAttributes}}validateName(e){e!==void 0&&Kc(e)}};function object(e,t){if(M(e))throw new T(e,`builder`);return new ObjectBuilder(e,t)}function validatePresetStructure(e,t,n){let fail=(t,n)=>{throw new O(t,[{path:[`documentLayout`,`presets`,e],message:n}])};n>5&&fail(`Preset structure exceeds max depth of 5`,`Preset structure too deep`);let r=new Set;for(let i of t){let t=i.title.trim();t.length===0&&fail(`Folder preset node title is required`,`Empty folder title`),t.includes(`/`)&&fail(`Folder preset node title cannot contain /`,`Folder title contains /: "${t}"`),r.has(t)&&fail(`Folder preset sibling titles must be unique`,`Duplicate folder title: "${t}"`),r.add(t),i.children&&i.children.length>0&&validatePresetStructure(e,i.children,n+1)}}function relationProperty(e){return requireBuilderName(e,[`relationProperty`]),{relationProperty:e}}var Z=class ContentBuilder{constructor(e,t){this.data=cloneBuilderValue(e,[`content`]),this.extension=t===void 0?void 0:Object.freeze({name:t.name,contexts:t.contexts,parameters:t.parameters,refine:t.refine})}set(e){return new ContentBuilder({...this.data,...e},this.extension)}icon(e){return this.set({icon:e})}object(e){return this.set({objectName:e})}layout(e){let{layout:t,groupByAttribute:n,columnSizing:r,kanbanColumnOrder:i,kanbanColumnVisibility:a,kanbanPinnedColumns:o,...s}={...this.data,layout:void 0,groupByAttribute:void 0,columnSizing:void 0,kanbanColumnOrder:void 0,kanbanColumnVisibility:void 0,kanbanPinnedColumns:void 0};return new ContentBuilder({...s,...e},this.extension)}table(){return this.layout({layout:`table`})}list(){return this.layout({layout:`list`})}kanban(e){return this.layout({layout:`kanban`,groupByAttribute:e})}columns(...e){return this.set({columns:e})}actions(...e){return this.set({actions:e})}openMode(e){return this.set({openMode:e})}createMode(e){return this.set({createMode:e})}visibility(e){return this.set({visibility:e})}descriptionAttribute(e){return this.set({descriptionAttribute:e})}displayAttributes(...e){return this.set({displayAttributes:e})}columnSizing(e){return this.set({columnSizing:e})}kanbanColumnOrder(...e){return this.set({kanbanColumnOrder:e})}kanbanColumnVisibility(e){return this.set({kanbanColumnVisibility:e})}kanbanPinnedColumns(...e){return this.set({kanbanPinnedColumns:e})}formColumns(e){return this.set({formColumns:e})}density(e){return this.set({density:e})}titleAttribute(e){return this.set({titleAttribute:e})}allowUpload(e){return this.set({allowUpload:e})}allowRemove(e){return this.set({allowRemove:e})}hideAttachments(e){return this.set({hideAttachments:e})}relations(...e){return this.set({relations:e})}span(e){return spanContent(this,e)}height(e){return this.set({height:e})}build(){let e=validateLiteralContent(this.data,[`content`]);return this.extension&&e.type===`custom`&&S(this.extension,e.parameters,[`content`,`parameters`]),e}},gd=class GroupBuilder{constructor(e,t,n,r={}){this.data=cloneBuilderValue({name:e,label:t,fields:n,...r},[`group`])}field(e,t){let{name:n,label:r,fields:i,...a}=this.data;return new GroupBuilder(n,r,[...i,{attribute:e,...t}],a)}fields(...e){let{name:t,label:n,fields:r,...i}=this.data;return new GroupBuilder(t,n,[...r,...e.map(e=>({attribute:e}))],i)}description(e){return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...this.presentation(),description:e})}collapsible(e=!1){return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...this.presentation(),collapsible:!0,collapsed:e})}alwaysOpen(){let{collapsed:e,...t}=this.presentation();return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...t,collapsible:!1})}presentation(){let{name:e,label:t,fields:n,...r}=this.data;return r}build(){requireBuilderName(this.data.name,[`group`,`name`]);try{validateLiteralContent({type:`form`,groups:[this.data]},[`group`])}catch(e){throw e instanceof O?new O(e.message,e.errors.map(e=>({...e,path:e.path[1]===`groups`?[`group`,...e.path.slice(3)]:e.path}))):e}return cloneBuilderValue(this.data,[`group`])}};function group(e,t){return new gd(e,t,[])}function collection(e){return new Z({type:`collection`,...storedQuery(e,`collection`)})}function form$1(...e){return new Z({type:`form`,groups:e.map(e=>`build`in e?e.build():e)})}function activity(){return new Z({type:`activity`})}function richtext$1(e){return new Z({type:`richtext`,attribute:e})}function documents(){return new Z({type:`documents`})}function forms(){return new Z({type:`forms`})}function emails(...e){return new Z({type:`emails`,emailAttributes:e})}function meetings(...e){return new Z({type:`meetings`,emailAttributes:e})}function custom(e,t){if(typeof e!=`object`||!e||typeof e.name!=`string`)throw new O(`Expected registered extension declaration`,[{path:[`content`,`extension`],message:`Expected registered extension declaration`}]);let n=validateContentConfiguration({type:`custom`,extension:e.name,parameters:t},[`content`]);if(n.type!==`custom`)throw new O(`Expected custom content`,[]);let r=new Z({...n,extension:e.name},e);return r.build(),r}function recordLinksTab(){return[y.name,y.label,custom(tt,{}).icon(y.icon)]}function page$1(e){let{object:t,name:n}=e.definition;if(typeof t!=`string`){let e=`Page "${n}" is standalone; a record tab renders a record page (\`page(...).for(object)\`)`;throw new O(e,[{path:[`content`,`page`,`object`],message:e}])}return new Z({type:`page`,page:{object:t,name:n}})}const _d={collection,metric,chart,agenda,card,text:text$1,decisions,meetingsUpcoming,mailbox,page:page$1,form:form$1,activity,richtext:richtext$1,documents,forms,emails,meetings,custom};function contentDefinition(e,t){if(t.suppressed)return null;let n=t.workspaceDefinition??t.sourceDefinition;return n===null?null:{...structuredClone(n),name:e}}function storedContentDefinition(e){let{name:t,...n}=e;return structuredClone(n)}function workspaceViewAuthoring(e,t={}){let n={main:0,aside:0};return{origin:`runtime`,mainOrderCustomized:!1,asideOrderCustomized:!1,gridCustomized:Object.keys(t).length>0,homeCustomized:!1,contents:Object.fromEntries(e.map(e=>[e.name,{sourceDefinition:null,workspaceDefinition:storedContentDefinition(e),suppressed:!1,sourcePosition:null,workspacePosition:e.placement===`grid`?null:n[e.placement]++,sourceGrid:null,workspaceGrid:t[e.name]??null}]))}}function byKind(e,t){let rank=e=>Number(e.definition.type===`group`);return rank(e)-rank(t)||e.name.localeCompare(t.name)}function inReadingOrder(e){return(t,n)=>{let r=e(t.name),i=e(n.name);return r===null||i===null?r===i?byKind(t,n):r?-1:1:r.y-i.y||r.x-i.x||byKind(t,n)}}function overLimit(e,t){let n=new Set;if(e.length<=A.tabsPerView)return n;let r=new Map(e.map(e=>[e.name,e])),i=new Map;for(let{name:t,definition:n}of e)if(n.type===`group`)for(let e of n.members)i.has(e)||i.set(e,t);let cellOf=e=>{let n=r.get(e),a=n?t(n.state):null;if(a!==null)return a;let o=r.get(i.get(e)??``);return o?t(o.state):null},a=e.filter(e=>e.state.sourceDefinition===null).sort(inReadingOrder(cellOf)).reverse();for(let t of a){if(e.length-n.size<=A.tabsPerView)break;if(n.has(t.name))continue;let i=t.definition.type===`group`?t.definition.members.flatMap(e=>{let t=r.get(e);return t&&t.definition.type!==`group`?[t]:[]}):[];if(!i.some(e=>e.state.sourceDefinition!==null))for(let e of[t,...i])n.add(e.name)}return n}function resolvePageGrid(e,t={}){let rawCell=t=>e.gridCustomized||t.sourceDefinition===null?t.workspaceGrid:t.sourceGrid,n=Object.entries(e.contents).flatMap(([e,t])=>{let n=contentDefinition(e,t);return n?[{name:e,state:t,definition:n}]:[]}),r=mn(n.map(e=>e.definition)),i=n.filter(e=>!r.has(e.name)).sort((e,t)=>e.name.localeCompare(t.name)),a=overLimit(i,rawCell),o=i.filter(e=>!a.has(e.name)),s=new Map(o.map(e=>[e.name,e.definition])),c=t.traitsOf??xn(s,b),l=Kt([...s.values()]),u=o.filter(e=>!l.has(e.name)),d={},f=[],place=(e,t)=>{t&&!Object.values(d).some(e=>bn(t,e))?d[e]={...t}:f.push(e)};if(e.gridCustomized)for(let{name:e,state:t}of u)place(e,t.workspaceGrid);else{for(let{name:e,state:t}of u)t.sourceDefinition!==null&&place(e,t.sourceGrid);for(let{name:e,state:t}of u)t.sourceDefinition===null&&place(e,t.workspaceGrid)}let p=Math.max(0,...Object.values(d).map(e=>e.y+e.h));for(let t of f.sort()){let n=e.contents[t],{w:r,h:i}=n.workspaceGrid??n.sourceGrid??c(t).size;d[t]={x:0,y:p,w:r,h:i},p+=i}let m=repairPageGrid(Object.entries(d).map(([e,n])=>({i:e,...n,...t.statics?.has(e)?{static:!0}:{}})),c);return{grid:Object.fromEntries(m.cells.map(({i:e,x:t,y:n,w:r,h:i})=>[e,{x:t,y:n,w:r,h:i}])),repairs:[...[...a].map(e=>({name:e,kind:`dropped`})),...m.repairs]}}function droppedContents(e){return new Set(e.flatMap(e=>e.kind===`dropped`?[e.name]:[]))}function resolveViewContents(e){let t=Object.entries(e.contents).flatMap(([e,t])=>{let n=contentDefinition(e,t);return n?[{definition:n,...t}]:[]}),n=[`main`,`aside`].flatMap(n=>{let r=n===`main`?e.mainOrderCustomized:e.asideOrderCustomized;return t.filter(e=>e.definition.placement===n).sort((e,t)=>{let n=r?e.workspacePosition:e.sourcePosition,i=r?t.workspacePosition:t.sourcePosition;if(n!==null&&i!==null&&n!==i)return n-i;if(n!==null&&i===null)return-1;if(i!==null&&n===null)return 1;let a=e.sourcePosition??e.workspacePosition,o=t.sourcePosition??t.workspacePosition;return a!==null&&o!==null&&a!==o?a-o:a!==null&&o===null?-1:o!==null&&a===null?1:e.definition.name.localeCompare(t.definition.name)}).map(e=>e.definition)}),r=mn(t.map(e=>e.definition)),i=t.filter(e=>e.definition.placement===`grid`&&!r.has(e.definition.name)).map(e=>e.definition).sort((e,t)=>e.name.localeCompare(t.name));return[...n,...i]}const vd=[`record`,`document`,`file`,`email`,`thread`,`event`,`memory`,`skill`,`schema`,`user`,`guide`,`bundle`,`draft`,`decision`,`session`,`catalog`],yd=new Set([`memory`,`schema`]),bd=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function isReferenceKind(e){return vd.includes(e)}function refuse$1(e,t){return{ok:!1,reason:e,expected:t}}function parseReference(e){let t=e.trim();if(bd.test(t))return refuse$1(`bare_uuid`,`record:<id>`);let n=t.indexOf(`:`);if(n===-1)return refuse$1(`malformed`,`<kind>:<id>`);let r=t.slice(0,n).toLowerCase();if(!isReferenceKind(r))return refuse$1(`unknown_kind`,`<kind>:<id> with kind one of ${vd.join(`, `)}`);let i=t.slice(n+1).trim();return i===``?refuse$1(`malformed`,`${r}:<id>`):r===`record`&&i.includes(`:`)?refuse$1(`legacy_mention`,`record:${i.slice(i.lastIndexOf(`:`)+1)}`):i===`*`&&!yd.has(r)?refuse$1(`malformed`,`${r}:<id>`):{ok:!0,ref:{kind:r,id:i}}}function formatReference(e){return`${e.kind}:${e.id}`}function isWildcard(e){return e.id===`*`&&yd.has(e.kind)}function requestedCapabilities(e){let t=[];return e.canModify&&t.push(`modify`),e.canSend&&t.push(`send`),t}const xd={status:`connector_status`,error:`connector_error`,provider:`connector_provider`,quota:`connector_quota`},Sd={phone:`text`,currency:`number`},Cd={rename:[`kind`,`object`,`from`,`to`],phone:[`kind`,`object`,`attribute`,`to`,`defaultCountryCode`],currency:[`kind`,`object`,`attribute`,`to`,`currencyCode`]};function refuse(e,t,n){throw new O(n,[{path:t===void 0?[`resolutions`,String(e)]:[`resolutions`,String(e),t],message:n}])}function assertKeys(e,t,n){for(let r of n)(typeof t[r]!=`string`||t[r]===``)&&refuse(e,r,`Resolution ${e} needs a non-empty string \`${r}\``);let r=Object.keys(t).find(e=>!n.includes(e));r!==void 0&&refuse(e,r,`Resolution ${e} has an unknown field \`${r}\``)}function assertResolution(e,t){if(Bc(t)||refuse(e,void 0,`Resolution ${e} must be an object`),t.kind===`rename`){assertKeys(e,t,Cd.rename),t.from===t.to&&refuse(e,`to`,`Resolution ${e} renames "${t.from}" to itself`);return}if(t.kind!==`retype`&&refuse(e,`kind`,`Unknown resolution kind ${JSON.stringify(t.kind)}: expected "rename" or "retype"`),t.to!==`phone`&&t.to!==`currency`&&refuse(e,`to`,`Unsupported retype to ${JSON.stringify(t.to)}: a push converts text → phone and number → currency only`),assertKeys(e,t,Cd[t.to]),t.to===`phone`){let n=t.defaultCountryCode;/^[A-Z]{3}$/.test(n)&&Jl(n)||refuse(e,`defaultCountryCode`,`Resolution ${e}: "${n}" is not an ISO 3166-1 alpha-3 country code`);return}let n=t.currencyCode;/^[A-Z]{3}$/.test(n)&&ql(n)||refuse(e,`currencyCode`,`Resolution ${e}: "${n}" is not a supported ISO 4217 currency code`)}function addressesOf(e){return e.kind===`rename`?{reads:e.from,lands:e.to}:{reads:e.attribute,lands:e.attribute}}function assertSchemaSourceResolutions(e){if(!Array.isArray(e))throw new O("`resolutions` must be an array",[{path:[`resolutions`],message:"`resolutions` must be an array"}]);if(e.length>100)throw new O(`A push carries ${e.length} resolutions; the limit is 100`,[]);let t=new Set;for(let[n,r]of e.entries()){assertResolution(n,r);let{reads:e,lands:i}=addressesOf(r);for(let[a,o]of[[`${r.kind}:${r.object}.${e}`,`of "${r.object}.${e}"`],[`${r.kind}>${r.object}.${i}`,`onto "${r.object}.${i}"`]])t.has(a)&&refuse(n,void 0,`Resolution ${n} repeats a ${r.kind} ${o}`),t.add(a)}}function phoneFromText(e,t){let n=e.trim();if(n===``)return{value:null};let r=Yl(n,Hl(t));if(!r?.isPossible()||r.country===void 0||r.ext!==void 0)return;let i=Kl(r.country)?.iso3;if(i!==void 0)return{value:{countryCode:i,phoneNumber:Wl(n,i)}}}function convertRetypedValue(e,t,n={}){if(t===null)return{value:null};if(e.to===`phone`)return typeof t==`string`?phoneFromText(t,e.defaultCountryCode):void 0;if(typeof t==`number`&&Math.abs(t)<=2**53-1&&!(t<0&&n.allowNegative!==!0))return{value:{code:e.currencyCode,value:t}}}const Q=F.string().refine(e=>e.trim().length>0,`Must not be blank`),wd=F.union([F.tuple([F.literal(`object`),Q]),F.tuple([F.literal(`attribute`),Q,Q]),F.tuple([F.literal(`view`),Q,Q]),F.tuple([F.literal(`content`),Q,Q,Q])]),Td=F.object({label:Q,pluralLabel:F.string().optional(),description:F.string().optional(),icon:j.optional(),color:zc.optional(),image:hd.optional(),labelExpression:F.string(),embeddingExpression:F.string().optional(),sealed:F.boolean().optional(),toleratedAttributes:F.array(Q).optional(),metadata:F.record(F.string(),F.unknown()).optional(),documentLayout:F.record(F.string(),F.unknown()).optional(),hierarchical:F.boolean().optional()}).strict();function failure(e){throw new O(e,[])}function definitionSchema(e){return F.custom(t=>{let n=F.record(F.string(),F.unknown()).parse(t);for(let t of e[0]===`view`?[`object`,`name`]:[`name`])Object.hasOwn(n,t)&&failure(`Invalid schema state: unrecognized definition key ${t}`);switch(e[0]){case`object`:Td.parse(n);break;case`attribute`:{let e=F.enum(Ne).parse(n.type);el(e).extend({type:F.literal(e),label:Q,required:F.boolean().optional(),unique:F.boolean().optional(),icon:j.optional()}).strict().parse(n);break}case`view`:{let{contents:t,...r}=n,i=F.array(Q).parse(t);new Set(i).size!==i.length&&failure(`Invalid schema state: duplicate content membership`),Dt.parse({...r,object:e[1],name:e[2],contents:[]});break}case`content`:C.parse({...n,name:e[3]})}return!0})}function compareSchemaStateEntries(e,t){let n=JSON.stringify(e.address),r=JSON.stringify(t.address);return n<r?-1:+(n>r)}function schemaStateSourcePayload(e){return{modelVersion:1,hashVersion:1,entries:[...e].sort(compareSchemaStateEntries).filter(e=>e.source!==null).map(({address:e,source:t})=>({address:e,source:t}))}}function parseState(e){let t=F.record(F.string(),F.unknown()).parse(e);for(let[e,n]of[[`modelVersion`,`model`],[`hashVersion`,`hash`]])t[e]!==1&&failure(`Unsupported schema ${n} version: expected 1, received ${t[e]===void 0?`missing`:String(t[e])}`);let n=F.object({modelVersion:F.literal(1),hashVersion:F.literal(1),tenant:Q,sourceFingerprint:F.string().regex(/^[a-f0-9]{64}$/),entries:F.array(F.unknown())}).strict().safeParse(e);if(!n.success){let e=n.error.issues.find(e=>e.code===`unrecognized_keys`);throw e?.code===`unrecognized_keys`&&failure(`Invalid schema state: unrecognized key ${e.keys[0]}`),O.fromZodErrors(n.error.issues.map(e=>({path:e.path.map(String),message:e.message})))}let r=new Set,i=n.data.entries.map(e=>{let t=wd.parse(F.object({address:F.unknown()}).parse(e).address),n=JSON.stringify(t);r.has(n)&&failure(`Invalid schema state: duplicate address ${n}`),r.add(n);let i=definitionSchema(t).nullable(),a=t[0]===`object`||t[0]===`attribute`?F.object({id:F.string().uuid(),updatedAt:F.string().datetime()}).strict():F.object({id:F.string().uuid(),revision:F.number().int().nonnegative()}).strict(),o=F.object({address:wd,source:i,effective:i,status:F.enum([`source`,`runtime`,`copy`,`suppressed`]),sourceOwner:F.string().regex(R).nullable(),guard:a.nullable()}).strict().parse(e);return(o.status===`runtime`&&(o.source!==null||o.effective===null||o.sourceOwner!==null)||o.status===`suppressed`&&(t[0]!==`content`||o.source===null||o.effective!==null||o.guard===null)||o.status===`copy`&&(o.source===null||o.effective===null)||o.effective!==null&&o.guard===null||o.source===null&&o.effective===null)&&failure(`Invalid schema state: inconsistent status at ${n}`),{...o,sourceOwner:parseSchemaOwner(o.sourceOwner)}});return{...n.data,entries:i.sort(compareSchemaStateEntries)}}function parseSchemaState(e){try{return parseState(e)}catch(e){throw e instanceof F.ZodError?O.fromZodErrors(e.issues.map(e=>({path:e.path.map(String),message:e.message}))):e}}function diffSchemaState(e){let t=[];for(let n of[...e.entries].sort(compareSchemaStateEntries)){let e=n.source===null?`added`:n.status===`suppressed`?`suppressed`:n.effective===null?`removed`:P(n.source)===P(n.effective)?n.status===`copy`?`copied`:null:`changed`;e&&t.push({...n,change:e})}return{modelVersion:1,tenant:e.tenant,sourceFingerprint:e.sourceFingerprint,changes:t}}const $=F.string().min(1),Ed=F.union([F.object({objectName:$,viewName:$,contentName:$.optional()}).strict().describe(`Full configuration of a view, or of one content when contentName is given`),F.object({objectId:$}).strict().describe(`An object with its attributes, by id`),F.object({objectName:$}).strict().describe(`An object with its attributes`),F.object({objectId:$,attributeName:$}).strict().describe(`One attribute's config, by name`),F.object({objectId:$,attributeId:$}).strict().describe(`One attribute's config, by id`),F.object({objectId:$,recordId:$}).strict().describe(`One sample record`)]);function parseNamedTarget(e){let t=Ed.safeParse(e);if(!t.success)throw new O(`Invalid scoped target`,[{path:[`target`],message:`Expected exactly one named target branch`}]);return t.data}const Dd=[`object`,`attribute`,`view`,`content`,`sample`],Od=F.object({mode:F.enum([`inline`,`window`]),interaction:F.enum([`static`,`interactive`]),size:F.enum([`compact`,`regular`]),aspectRatio:F.number().positive().finite().optional()}).strict(),kd=F.object({artifactId:F.string().min(1),revision:F.number().int().positive(),name:F.string().min(1),kind:F.string().min(1),retention:F.enum(wu),display:Od}).strict();function readArtifactResult(e){let t=kd.safeParse(e);return t.success?t.data:null}const Ad=F.string().regex(/^[^/\s]+\/[^/\s]+$/),jd=F.object({kind:F.literal(`generated-image`),artifact:F.unknown(),generation:F.object({attemptId:F.uuid(),requestedModelId:Ad,executedModelId:Ad.nullable(),format:F.enum(Au),mimeType:F.enum([`image/png`,`image/jpeg`,`image/webp`])}).strict()}).strict();function readGeneratedImageResult(e){let t=jd.safeParse(e);if(!t.success)return null;let n=readArtifactResult(t.data.artifact);return!n||n.kind!==`image`?null:{...t.data,artifact:{...n,kind:`image`}}}function isCompletedToolPart(e){return e.type===`tool`&&e.state===`completed`}function readString(e,t){let n=e[t];return typeof n==`string`?n:void 0}function upsertWithPrecedence(e,t,n,r){let i=e.get(t),a=i&&r[i.kind]>r[n.kind]?i:n;e.delete(t),e.set(t,a)}function asRecord(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function readRefId(e,t,n){let r=readString(e,t),i=`${n}:`;return r?.startsWith(i)&&r.length>i.length?r.slice(i.length):void 0}function verbResultEntries(e){let t=asRecord(e);if(!t)return[];let n=[t];for(let e of[`members`,`created`,`updated`]){let r=t[e];if(Array.isArray(r))for(let e of r){let t=asRecord(e);t&&n.push(t)}}return n.filter(e=>!(`error`in e))}function extractReadRecordIds(e){let t=new Set;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e)||e.name!==`read`)continue;let n=e.args.refs;if(Array.isArray(n))for(let e of n){if(typeof e!=`string`)continue;let n=parseReference(e);n.ok&&n.ref.kind===`record`&&t.add(n.ref.id)}}return[...t]}const Md={created:1,modified:0};function readSingleRecordEntry(e){if(typeof e!=`object`||!e)return null;let t=e,n=typeof t.record==`object`&&t.record!==null?t.record:void 0,r=(n&&readString(n,`id`))??readString(t,`recordId`);return r?{id:r,label:(n&&readString(n,`label`))??r,objectName:(n&&readString(n,`objectName`))??``}:null}function readBulkRecordEntries(e,t,n){if(typeof e!=`object`||!e)return[];let r=e[t];if(!Array.isArray(r))return[];let i=[];for(let e of r){if(typeof e!=`object`||!e)continue;let t=e,r=readString(t,`id`);r&&i.push({id:r,label:readString(t,`label`)??r,objectName:readString(t,`objectName`)??n})}return i}function readVerbRecordEntries(e){let t=asRecord(asRecord(e.result)?.record),n=readString(e.args,`object`)??(t&&readString(t,`objectName`))??``,r=[];for(let t of verbResultEntries(e.result)){let e=readRefId(t,`ref`,`record`);e&&r.push({id:e,label:readString(t,`title`)||readString(t,`label`)||e,objectName:readString(t,`objectName`)??n})}return r}function extractTouchedRecords(e){let t=new Map;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e))continue;let n=[],r;if(e.name===`create_record`||e.name===`update_record`||e.name===`edit_content`){let t=readSingleRecordEntry(e.result);n=t?[t]:[],r=e.name===`create_record`?`created`:`modified`}else if(e.name===`bulk_create_records`||e.name===`bulk_update_records`){let t=readString(e.args,`objectId`)??``,i=e.name===`bulk_create_records`?`created`:`updated`;n=readBulkRecordEntries(e.result,i,t),r=e.name===`bulk_create_records`?`created`:`modified`}else if(e.name===`write`)n=readVerbRecordEntries(e),r=readString(e.args,`action`)===`create`?`created`:`modified`;else continue;for(let e of n){let n={recordId:e.id,objectName:e.objectName,label:e.label,kind:r};upsertWithPrecedence(t,e.id,n,Md)}}return[...t.values()]}const Nd={modified:1,consulted:0};function isFilePart(e){return e.type===`file`}function entryFromDocumentMutation(e,t){if(typeof e.result!=`object`||e.result===null)return null;let n=e.result,r=readString(n,`documentId`)??(t===`folderId`?readString(n,t):void 0);return r?{id:r,title:readString(e.args,`name`)??readString(e.args,`title`)??r,kind:`modified`}:null}function entryFromReadDocument(e){let t=readString(e.args,`documentId`);return t?{id:t,title:t,kind:`consulted`}:null}function entryFromRef(e,t,n){let r=readRefId(e,`ref`,`file`),i=r??readRefId(e,`ref`,`document`);return i?{id:i,...r?{fileId:r}:{},title:n||readString(e,`title`)||i,kind:t,mimeType:readString(e,`mimeType`)}:null}function entriesFromOrganize(e){let t=asRecord(e.result);if(!t||`error`in t)return[];let n=readString(e.args,`action`),r=readString(e.args,`name`)??readString(e.args,`title`),i=readString(t,`documentId`);if(i)return[{id:i,title:r??i,kind:`modified`}];let a=readString(t,`folderId`);if(a)return n===`create_folder`?[{id:a,title:r??a,kind:`modified`}]:[];let o=entryFromRef(t,`modified`,r);return o?[o]:[]}function entriesFromCopy(e){let t=asRecord(e.result);if(!t||`error`in t)return[];let n=(Array.isArray(t.copied)?t.copied:[]).flatMap(e=>{let t=asRecord(e),n=t?entryFromRef(t,`modified`,void 0):null;return n?[n]:[]});if(n.length>0)return n;let r=entryFromRef(t,t.ref!==void 0&&t.ref===readString(e.args,`from`)?`consulted`:`modified`,void 0);return r?[r]:[]}function entriesFromRead(e){let t=asRecord(e.result);return(Array.isArray(t?.members)?t.members:[]).flatMap(e=>{let t=asRecord(e);if(!t||`error`in t||!readRefId(t,`ref`,`document`))return[];let n=entryFromRef(t,`consulted`,void 0);return n?[n]:[]})}function entriesFromToolPart(e){switch(e.name){case`organize`:return entriesFromOrganize(e);case`copy`:return entriesFromCopy(e);case`read`:return entriesFromRead(e);default:{let t=entryFromToolPart(e);return t?[t]:[]}}}function entryFromSandboxUpload(e){if(typeof e.result!=`object`||e.result===null)return null;let t=e.result,n=readString(t,`fileId`);return n?{id:n,fileId:n,title:readString(t,`title`)??n,kind:`modified`,mimeType:readString(t,`mimeType`)}:null}function entryFromToolPart(e){switch(e.name){case`update_document`:case`attach_file`:return entryFromDocumentMutation(e,`documentId`);case`create_folder`:return entryFromDocumentMutation(e,`folderId`);case`read_document`:return entryFromReadDocument(e);case`sandbox_upload_file`:return entryFromSandboxUpload(e);default:return null}}function extractTouchedDocuments(e){let t=new Map;for(let n of e)if(n.role===`assistant`){for(let e of n.parts)if(isCompletedToolPart(e))for(let n of entriesFromToolPart(e))upsertWithPrecedence(t,n.id,n,Nd);else if(isFilePart(e)&&e.fileId){let n={id:e.fileId,fileId:e.fileId,title:e.name||e.fileId,kind:`modified`,mimeType:e.mimeType};upsertWithPrecedence(t,n.id,n,Nd)}}return[...t.values()]}function extractTouchedArtifacts(e){let t=new Map;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e)||e.error)continue;let n=e.name===`generate_image`?readGeneratedImageResult(e.result)?.artifact:e.name===`publish_artifact`?readArtifactResult(e.result):null;if(!n)continue;let r=`${n.artifactId}:${n.revision}`;t.delete(r),t.set(r,n)}return[...t.values()]}function isNonBlankString(e){return typeof e==`string`&&/\S/u.test(e)}const Pd=F.object({provider:F.custom(e=>isNonBlankString(e)&&e.length<=200,{message:`must be a non-blank string of at most 200 characters`}),model:F.string().max(200).regex(/\S/u)});function normalizeNewsLocale(e){return e.toLowerCase().split(`-`)[0]===`fr`?`fr`:`en`}function resolveLocalized(e,t){return e[normalizeNewsLocale(t)]||(e.en?e.en:e.fr||void 0)}function hasLocale(e){return!!(e.fr||e.en)}const Fd=Object.keys({home:!0,agents:!0,routines:!0,object:!0,settings:!0}),Id=[`dot`,`label`,`bubble`];function parseNewsIntensity(e){return Id.find(t=>t===e)??`dot`}function parseNewsTarget(e){let[t,...n]=e.split(`:`),r=n.join(`:`);switch(t){case`home`:case`agents`:case`routines`:return r===``?{kind:t}:null;case`object`:return r?{kind:t,name:r}:null;case`settings`:return r?{kind:t,section:r}:null;default:return null}}function formatNewsTarget(e){return e.kind===`object`?`object:${e.name}`:e.kind===`settings`?`settings:${e.section}`:e.kind}function withoutTrailingSlashes(e){let t=e.length;for(;t>0&&e[t-1]===`/`;)--t;return e.slice(0,t)}const Ld=/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/;function compareIdentifiers(e,t){let n=/^\d+$/.test(e),r=/^\d+$/.test(t);return n&&r?Math.sign(Number(e)-Number(t)):n?-1:r?1:e<t?-1:+(e>t)}function compareVersions(e,t){let n=Ld.exec(e),r=Ld.exec(t);if(!(n&&r))return null;for(let e=1;e<=3;e+=1){let t=Number(n[e])-Number(r[e]);if(t!==0)return t<0?-1:1}let i=n[4],a=r[4];if(i===void 0&&a===void 0)return 0;if(i===void 0)return 1;if(a===void 0)return-1;let o=i.split(`.`),s=a.split(`.`);for(let e=0;e<Math.max(o.length,s.length);e+=1){let t=o[e],n=s[e];if(t===void 0)return-1;if(n===void 0)return 1;let r=compareIdentifiers(t,n);if(r!==0)return r<0?-1:1}return 0}function isSemver(e){return Ld.test(e)}const Rd=30,zd=90,Bd=50,Vd=F.looseObject({fr:F.string().optional(),en:F.string().optional()}),Hd=F.iso.datetime({offset:!0}),Ud=F.looseObject({id:F.string().min(1),slug:F.string().min(1),updatedAt:Hd,publishedAt:Hd,since:F.string(),displayDays:F.number().int().positive().optional(),requires:F.looseObject({capability:F.string(),level:F.string()}).optional(),target:F.string().optional(),intensity:F.unknown().optional(),title:Vd,summary:Vd});function knownRequirement(e){let t=U.find(t=>t.id===e.capability);return t!==void 0&&levelActions(t,e.level).length>0}function parseEntry(e){let t=Ud.safeParse(e);if(!t.success)return`malformed entry: ${t.error.issues[0]?.message??`invalid`}`;let n=t.data;if(!isSemver(n.since))return`entry ${n.id}: since "${n.since}" is not semver`;if(!hasLocale(n.title))return`entry ${n.id}: title has no locale`;if(!hasLocale(n.summary))return`entry ${n.id}: summary has no locale`;if(n.requires&&!knownRequirement(n.requires))return`entry ${n.id}: unknown requirement ${n.requires.capability}/${n.requires.level}`;let r=n.target?parseNewsTarget(n.target):null;return{...n,displayDays:n.displayDays??30,intensity:parseNewsIntensity(n.intensity),target:r??void 0}}function httpsUrl(e){return typeof e==`string`&&e.startsWith(`https://`)?e:void 0}function parseNewsIndex(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw new O(`News feed: document must be an object`,[]);let n=e;if(!Array.isArray(n.entries))throw new O(`News feed: entries must be an array`,[]);let r=[];for(let e of n.entries){let n=parseEntry(e);typeof n==`string`?t?.(n):r.push(n)}let i=httpsUrl(n.blogUrl),a=httpsUrl(n.mediaBaseUrl),o=a?withoutTrailingSlashes(a):void 0;return{...i?{blogUrl:i}:{},...o?{mediaBaseUrl:o}:{},entries:r.slice(0,50)}}const Wd=F.looseObject({id:F.string().min(1),slug:F.string().min(1),updatedAt:Hd,body:Vd});function parseNewsBody(e){let t=Wd.safeParse(e);if(!t.success)throw new O(`News body: malformed document`,[]);if(!hasLocale(t.data.body))throw new O(`News body: body needs at least one locale`,[]);return t.data}function preference(e,t){return{key:e,value:t.value,default:t.default,audited:t.audited??!1,...t.parameter===void 0?{}:{parameter:t.parameter},...t.parameters===void 0?{}:{parameters:t.parameters},...t.refine===void 0?{}:{refine:t.refine}}}const Gd=``;function refusal(e,t){return{ok:!1,field:e,message:t,issues:[{path:[e],message:t}]}}function declarationOf(e,t){return`get`in e?e.get(t):e.find(e=>e.key===t)}function locatePreference(e,t,n){let r=declarationOf(e,t);return r?r.parameter===void 0?n===void 0?{ok:!0,declaration:r,parameter:``}:refusal(`parameter`,`Preference "${t}" takes no parameter`):n===void 0||n===``||n.trim()!==n?refusal(`parameter`,`Preference "${t}" is keyed by ${r.parameter}`):r.parameters&&!r.parameters.includes(n)?refusal(`parameter`,`"${n}" is not a ${r.parameter} of "${t}"`):{ok:!0,declaration:r,parameter:n}:refusal(`key`,`Unknown preference "${t}"`)}function judgePreferenceWrite(e,t,n,r){let i=locatePreference(e,t,n);if(!i.ok)return i;let a=i.declaration.value.safeParse(r);if(a.success){let e=i.declaration.refine?.(a.data,i.parameter);return e===void 0?{...i,value:a.data}:refusal(`value`,e)}return{ok:!1,field:`value`,message:`Invalid value for preference "${t}"`,issues:a.error.issues.map(e=>({path:[`value`,...e.path.map(String)],message:e.message}))}}const Kd=F.strictObject({model:Pd.optional(),routing:F.literal(`auto`).optional()}),qd=F.strictObject({inApp:F.boolean()});function isActionableType(e){let t=h[e];return t!==void 0&&De(t.kind)}const Jd=[preference(`workPosture`,{value:F.enum(yo),default:`auto`,audited:!0}),preference(`chat.default`,{value:Kd,default:{},audited:!0}),preference(`conversationSurface`,{value:F.enum(hi),default:`panel`}),preference(`mailboxListMode`,{value:F.enum(sa),default:`threads`}),preference(`home`,{value:F.string().uuid().nullable(),default:null}),preference(`memory.learnFromEmail`,{value:F.boolean(),default:!0,audited:!0}),preference(`memory.shareWithTeam`,{value:F.boolean(),default:!0,audited:!0}),preference(`decisions.seenAt`,{value:F.iso.datetime().nullable(),default:null}),preference(`decisions.delivery`,{value:qd,default:{inApp:!0},parameter:`decision type`,parameters:Object.keys(h),refine:(e,t)=>!e.inApp&&isActionableType(t)?`A "${t}" decision asks you to act: it is always shown in-app`:void 0})];function preferenceEntry(e,t,n){return n===void 0?{key:e,value:t}:{key:e,parameter:n,value:t}}function withPreferenceEntry(e,t){if(t.parameter===void 0)return{...e,values:{...e.values,[t.key]:t.value}};let n=e.entries.findIndex(e=>e.key===t.key&&e.parameter===t.parameter),r=n===-1?[...e.entries,t]:e.entries.map((e,r)=>r===n?t:e);return{...e,entries:r}}export{Fr as ACCESS_LEVELS,Ir as ACCESS_ROLES,e as ACTIONABLE_DECISION_KINDS,g as AGENDA_BLOCK,Lr as AGENT_ASIDE_ANSWER_MAX_LENGTH,Rr as AGENT_ASIDE_HISTORY_LIMIT,zr as AGENT_ASIDE_QUESTION_MAX_LENGTH,Br as AGENT_AVATAR_EXPRESSIONS,Vr as AGENT_AVATAR_TYPES,Hr as AGENT_MESSAGE_KIND,Ur as AGENT_NOTIFICATION_KIND,Wr as AGENT_SESSION_ACCESS_ROLES,Gr as AGENT_SESSION_LIST_ORDERS,Kr as AGENT_SESSION_ORIGINS,qr as AGENT_SESSION_PROVENANCES,Jr as AGENT_STARTERS_MAX,Yr as AGENT_STARTER_MAX_LENGTH,Xr as AGENT_SYSTEM_PROMPT_MAX_LENGTH,Zr as AGENT_TASK_KINDS,t as AGGREGATE_BUCKETS,n as AGGREGATE_MEASURES,Pu as ALLOWED_PROPERTY_TYPES,Qr as ALL_CATALOG_TOOL_NAMES,z as ALL_PIPES,$r as ALWAYS_KINDS,md as APPEARANCE_FACETS,ei as APPROVAL_FAMILY_TOOL_NAMES,ti as ARCHITECT_PUBLICATION_KIND,Tu as ARTIFACT_FILE_ROLES,Cu as ARTIFACT_KINDS,je as ARTIFACT_PREVIEW_EXTENSION,wu as ARTIFACT_RETENTIONS,ni as ASK_QUESTIONS_ANSWER_MAX_LENGTH,ri as ASK_QUESTIONS_ANSWER_MAX_VALUES,ii as ASK_QUESTIONS_MAX_BATCH,ai as ASK_QUESTIONS_TOOL_NAME,Me as ATTRIBUTE_FILTER_OPERATORS,kc as ATTRIBUTE_NAME_SCHEMA,Ne as ATTRIBUTE_TYPES,oi as AUDIT_ACTIONS,si as AUDIT_AGENT_SESSION_METADATA_KEY,ci as AUDIT_RESOURCE_TYPES,Gn as AccessDeniedError,AgendaBuilder,k as AgentBuilder,Kn as AggregateValidationError,qn as AmbiguousSchemaChangeError,Jn as AttributeInUseError,Yn as AttributeNotFoundError,Pe as BLOCK_CONTEXTS,Fe as BLOCK_PERIODS,_ as BLOCK_WIDTHS,li as BROWSER_LAUNCH_TOOL_NAME,ui as BROWSER_TOOL_NAMES,di as BUNDLE_LOCALES,q as BUNDLE_NAME_PATTERN,fi as BUNDLE_SETUP_PROMPT_MAX_LENGTH,Nu as BYTE_UNIT_LABELS,BlockContentBuilder,BundleBuilder,v as CARD_BLOCK,Ku as CATALOG_RESOURCES,Ie as CHART_BLOCK,Le as CHART_KINDS,Jc as COMPUTED_RETURN_TYPES,pi as CONNECTION_GRANT_PROVIDERS,xd as CONNECTOR_CALLBACK_PARAM,Re as CONTENT_PLACEMENT_CONTEXTS,mi as CONTINUATION_KEY_PATTERN,hi as CONVERSATION_SURFACES,gi as COPY_VERB_NAME,J as CORE_BUNDLE_NAME,Jd as CORE_PREFERENCES,_i as CORE_RECORD_TOOL_NAMES,vi as CORE_TOOL_NAMES,yi as COUNT_MODES,Gu as CUSTOM_LEVEL,CardBuilder,ChartBuilder,ChartQuery,Xn as ConcurrentModificationError,Z as ContentBuilder,ze as DECISIONS_BLOCK,r as DECISION_INBOX_STATES,i as DECISION_KINDS,a as DECISION_LINE_MAX_LENGTH,o as DECISION_LINK_TARGET_TYPES,s as DECISION_LIST_STATES,c as DECISION_READ_STATES,l as DECISION_SETTINGS_AREAS,u as DECISION_TITLE_MAX_LENGTH,d as DECISION_TRANSFERS_KEY,f as DECISION_TYPES_V1,p as DECISION_TYPE_ACCESS_GRANTED,m as DECISION_TYPE_AGENT_APPROVAL,ee as DECISION_TYPE_AGENT_MESSAGE,te as DECISION_TYPE_AGENT_QUESTION,ne as DECISION_TYPE_AGENT_REVIEW,re as DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED,ie as DECISION_TYPE_AGENT_SETUP,ae as DECISION_TYPE_BUNDLE_SETUP,oe as DECISION_TYPE_CONNECTOR_CONNECTION_ERROR,se as DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED,ce as DECISION_TYPE_ENVIRONMENT_BUILD_FAILED,h as DECISION_TYPE_KINDS,le as DECISION_TYPE_PERSON,ue as DECISION_TYPE_RECORD_ASSIGNED,de as DECISION_TYPE_RECORD_MENTIONED,fe as DECISION_WORK_STATES,bi as DEFAULT_AGENT_EXECUTION_CONFIG,xi as DEFAULT_AGENT_TOOL_GROUPS,dd as DEFAULT_APPEARANCE_ICON,Si as DEFAULT_APPROVAL_POLICY,Ci as DEFAULT_BLUEPRINT_TOOL_GROUPS,wi as DEFAULT_DAILY_ACTIVITY_DAYS,Su as DEFAULT_DICTATION_LIMITS,Hu as DEFAULT_LABEL_FALLBACK,Be as DEFAULT_LAYOUT_TRAITS,Ti as DEFAULT_MEETING_BOT_DISPLAY_NAME,Ei as DEFAULT_PROACTIVE_TENANT_MONTHLY_LIMIT_USD,Di as DEFAULT_TENANT_SETTINGS,zl as DEFAULT_VALIDATION_MESSAGES,Oi as DEVICE_ACCESS_ROLES,eu as DEVICE_CHANNEL_AUTHENTICATE_TIMEOUT_MS,tu as DEVICE_CHANNEL_IDLE_POLL_MS,ru as DEVICE_CHANNEL_KEEPALIVE_MS,$l as DEVICE_CHANNEL_MAX_FRAME_BYTES,Ql as DEVICE_CHANNEL_PATH,nu as DEVICE_CHANNEL_PRESENCE_MS,iu as DEVICE_CHANNEL_WORKER_CLOSE_PROTOCOL_VIOLATION,ou as DEVICE_COMMAND_ERROR_CODES,cu as DEVICE_DESKTOP_STATES,su as DEVICE_SHELLS,bu as DICTATION_FINALIZATION_TIMEOUT_MS,mu as DICTATION_FRAME_BYTES,gu as DICTATION_MAX_BUFFER_BYTES,hu as DICTATION_MAX_FRAME_BYTES,_u as DICTATION_MAX_TRANSCRIPT_BYTES,xu as DICTATION_MODEL_ID,yu as DICTATION_PREPARATION_TIMEOUT_MS,pu as DICTATION_SAMPLE_RATE,vu as DICTATION_TICKET_TTL_MS,ki as DISCARD_ARCHITECT_DRAFT_TOOL_NAME,Ai as DOCUMENT_SORT_MODES,Dd as DRAFT_CONFLICT_KINDS,ji as DRAFT_WRITE_TOOL_NAMES,DecisionsBuilder,DeviceChannelProtocolError,du as DeviceChannelServerFrameSchema,uu as DeviceChannelWorkerFrameSchema,lu as DeviceDesktopStatusSchema,w as DuplicateError,Mi as EMAIL_CATEGORY_DEFAULT_COLOR,Ni as EMAIL_CATEGORY_DEFAULT_ICON,Pi as EMAIL_CATEGORY_DESCRIPTION_MAX,Fi as EMAIL_CATEGORY_DESCRIPTION_MIN,Ii as EMAIL_CATEGORY_LIMIT,Li as EMAIL_CATEGORY_NAME_MAX,Ri as ENVIRONMENT_BUILD_LOG_STEP_PREFIX,zi as ENVIRONMENT_HARNESSES,Bi as ENVIRONMENT_HARNESS_SANDBOX_WORKDIR,Vi as ENVIRONMENT_HARNESS_WORKDIR,Hi as ENVIRONMENT_IMAGES,Ui as ENVIRONMENT_MEMORY_GB_PER_VCPU,Wi as ENVIRONMENT_NAME_MAX_CHARS,Gi as ENVIRONMENT_NETWORK_ALLOW_MAX,Ki as ENVIRONMENT_SCRIPT_MAX_BYTES,qi as ENVIRONMENT_SIZES,Ji as ENVIRONMENT_SIZE_VCPUS,Yi as ENVIRONMENT_STANDARDS_WORKDIR,Xi as ENV_VAR_KEY_PATTERN,Zi as ESTIMATED_COUNT_CAP,Zn as ExportTooLargeError,Qi as FILE_URLS_MAX_IDS,L as FORM_FORBIDDEN_ATTRIBUTE_TYPES,Qn as ForbiddenError,FormBuilder,FormRowBuilder,FormStepBuilder,$i as GET_ARCHITECT_DRAFT_TOOL_NAME,ea as GITHUB_TRIGGER_CATALOG,ta as GRANT_ENABLES,Ve as GROUPABLE_ATTRIBUTE_TYPES,gd as GroupBuilder,He as HEADING_BLOCK,pe as HIERARCHY_ATTRIBUTE_IDS,me as HIERARCHY_ATTRIBUTE_NAMES,he as HIERARCHY_CHILD_IDS_LIMIT,na as HITL_TOOL_NAMES,Au as IMAGE_FORMATS,fd as IMAGE_SHAPES,pd as IMAGE_SOURCES,ra as INFERENCE_REASONING_OPTIONS,ia as INFERENCE_ROUTING_MODES,aa as INFERENCE_SPEEDS,Ue as INVENTORY_LIMIT,$n as InvalidPermissionGrantError,oa as LAST_RUN_ERROR_MAX_LENGTH,Ac as LIST_VIEW_TAB_VISIBILITIES,We as LOCATION_FILTER_PROPERTIES,er as LogoProviderUnavailableError,tr as LogoSearchRateLimitedError,Ge as MAILBOX_BLOCK,sa as MAILBOX_LIST_MODES,ca as MAIL_DRAFT_BODY_MAX_CHARS,la as MAIL_SIGNATURE_MAX_CHARS,ua as MAIL_SUBJECT_MAX_CHARS,ge as MAX_AGGREGATE_GROUPS,da as MAX_DAILY_ACTIVITY_DAYS,fu as MAX_PRESET_DEPTH,fa as MAX_TODOS,pa as MAX_TODO_DESCRIPTION_CHARS,ma as MAX_TODO_ID_CHARS,ha as MCP_SERVER_NAME_MAX_LENGTH,Ke as MEASURABLE_ATTRIBUTE_TYPES,qe as MEETINGS_UPCOMING_BLOCK,ga as MEETING_BOT_IMAGE,_a as MEETING_BOT_IMAGE_BASE64_MAX_LENGTH,va as MEETING_BOT_NO_CREDITS,ya as MEETING_BOT_SILENT_REASON,ba as MEETING_RESPONSES,W as MEMORY_ATTRIBUTES,Zu as MEMORY_PAGE_MAX_CHARS,xa as MEMORY_SPEND_LIMIT_PATTERN,Qu as MEMORY_WORKSPACE_PROFILE,Xu as MEMORY_WRITE_SOURCE,ed as METERED_CHARGE_KINDS,$u as METERED_RATES_USD,Je as METRIC_BLOCK,MailboxBuilder,Sa as McpOAuthCompletionMode,nr as MemoryNotFoundError,MetricBuilder,MetricQuery,MultiRelationAttributeBuilder,Xl as NATIVE_AGENT_UI_PART_IDS_METADATA_KEY,Zl as NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION,Ye as NATIVE_BLOCKS,jc as NATIVE_OBJECT_NAMES,Ca as NATIVE_TOOL_GROUPS,wa as NATIVE_TOOL_GROUP_CATALOG,Rd as NEWS_DEFAULT_DISPLAY_DAYS,zd as NEWS_DISPLAY_CAP_DAYS,Bd as NEWS_INDEX_MAX_ENTRIES,Id as NEWS_INTENSITIES,Fd as NEWS_TARGET_KINDS,V as NO_ACCESS,Gd as NO_PREFERENCE_PARAMETER,Ta as NO_RECORDING,Xe as NO_VALUE_OPERATORS,gl as NonJsonValueError,NoopGeocodingAdapter,rr as NotFoundError,ir as NotImplementedError,H as OBJECT_GRANT,Mc as OBJECT_NAME_SCHEMA,G as OFFICIAL_SKILLS_REPO,Ea as OPEN_TOOL_PART_STATES,Da as OPERATION_MAX_STEPS,Ze as OPERATORS_BY_TYPE,ObjectBuilder,ar as ObjectNotFoundError,or as ObjectReferencedError,sr as OrphanSystemAttributeError,Qe as PAGE_GRID_COLUMNS,Ju as PERMISSION_ACTIONS,U as PERMISSION_CAPABILITIES,Wu as PERMISSION_CATALOG,Mu as PERSISTENCE_OWNED_QUOTA_KEYS,Iu as PIPES_WITH_ARGS,Oa as PROACTIVE_AGENT_NAMES,ka as PROVIDER_DRAFT_LABEL,Aa as PROVIDER_NAMES,ja as PUBLIC_MAIL_DOMAINS,Y as PageBuilder,cr as PageReferencedError,lr as ProtectedResourceError,ur as ProtectedRoleError,$e as QUALIFIED_SEPARATOR,et as QUERY_OBJECT,Ma as QUESTION_FAMILY_TOOL_NAMES,ju as QUOTA_KEYS,dr as QueryTimeoutError,Na as RECENT_ACTIVITY_LEDGER_LIMIT,Pa as RECIPIENT_IDENTITIES_MAX,Fa as RECORDING_OVERRIDES,Ia as RECORDING_POLICIES,La as RECORD_ACCESS_ROLES,Ra as RECORD_ACCESS_SOURCES,za as RECORD_DRIVE_CURSOR_MAX_LENGTH,Ba as RECORD_DRIVE_PAGE_DEFAULT_LIMIT,Va as RECORD_DRIVE_PAGE_MAX_LIMIT,Ha as RECORD_GRAPH_DEFAULT_LIMIT_PER_NODE,Ua as RECORD_GRAPH_MAX_LIMIT_PER_NODE,Wa as RECORD_GRAPH_MAX_NODES,Ga as RECORD_IMAGE_MAX_BYTES,tt as RECORD_LINKS_BLOCK,y as RECORD_LINKS_CONTENT,Nc as RECORD_LIST_SCOPES,nt as RECORD_OBJECT,vd as REFERENCE_KINDS,rt as RELATION_TARGET_ANY,it as REMOVED_OPERATOR_REPLACEMENTS,Ka as REPLY_MODES,qa as REQUEST_DESIGN_REVIEW_TOOL_NAME,Ja as REQUEST_SETUP_TOOL_NAME,Pc as RESERVED_ATTRIBUTE_NAMES,Fc as RESERVED_OBJECT_NAMES,Ya as RESOURCE_GRANT_KINDS,Xa as RESOURCE_KIND_CATALOG,Ic as RESOURCE_VISIBILITIES,Za as ROUTING_PRICE_CEILINGS,fr as RealtimeDeliveryError,pr as RealtimeRateLimitedError,mr as RealtimeSubscriptionError,hr as RecordNotFoundError,at as RecordQuery,gr as RecordReferencedError,_r as RepositoryError,T as ReservedObjectNameError,vr as RoleNotFoundError,A as SCHEMA_LIMITS,R as SCHEMA_OWNER_PATTERN,Sd as SCHEMA_SOURCE_RETYPE_FROM,Qa as SEND_VERB_NAME,$a as SESSION_INFERENCE_PATCH_KEYS,Fu as SIMPLE_PIPES,Yc as SIMPLE_PROPERTY_TYPES,eo as SLACK_TRIGGER_CATALOG,to as SPEAKS_THROUGH_SEND_METADATA_KEY,nd as STANDARD_SCHEMA_VENDOR,no as SURFACE_TOOL_NAMES,ot as SYNONYM_ALIASES,_e as SYSTEM_ATTRIBUTES,ve as SYSTEM_ATTRIBUTE_I18N_KEYS,ro as SYSTEM_EMAIL_CATEGORIES,io as SYSTEM_EMAIL_CATEGORY_NAMES,Lc as SYSTEM_FIELD_NAMES,st as SYSTEM_FILTER_ATTRIBUTE_TYPES,ao as SYSTEM_PART_CODES,E as SchemaError,D as SchemaErrorCode,yr as SearchBackendError,br as SearchPathNotIndexedError,SingleRelationAttributeBuilder,xr as StorageError,Sr as SyncCascadeError,Cr as SyncConflictError,wr as SyncError,Tr as SystemEntityImmutableError,oo as TASK_DEMAND_LEVELS,Eu as TENANT_INVITATION_DEFAULT_TTL_MS,Ou as TENANT_INVITATION_MAX_TTL_MS,Du as TENANT_INVITATION_MIN_TTL_MS,ku as TENANT_INVITATION_RESEND_INTERVAL_MS,ct as TEXT_BLOCK,Ll as TEXT_FORMAT_PATTERNS,so as TODO_PHASES,co as TODO_PLAN_STATUSES,lo as TODO_STATUSES,uo as TOOL_APPROVAL_STATES,fo as TOOL_IMPACT_COUNT_KEYS,po as TRIAGE_ACTIONS,mo as TRIGGER_EVENT_TYPES,ho as TURN_OUTCOMES,Er as ToolGroupGrantError,go as UNSHAREABLE_OBJECT_NAMES,_o as USERS_RESOLVE_MAX_IDS,vo as USER_STATUSES,yo as USER_WORK_POSTURES,bo as VERB_NAMES,O as ValidationError,X as ViewBuilder,Xc as WIRE_OFFERED_BASE_CONFIG,Zc as WIRE_OMITTED_CONFIG_KEYS,Dr as WorkspaceInvariantReason,xo as agent,So as agentAvatarFromMetadata,Co as agentAvatarSchema,wo as agentDataChunk,To as agentDisplayName,Eo as agentInferencePreferencesSchema,Do as agentMessageAttachmentSchema,Oo as agentMessagePartSchema,ko as agentScheduleSchema,Ao as agentSessionInferenceOverridesInputSchema,jo as agentSessionInferenceOverridesSchema,Mo as agentSessionMessageSchema,No as agentStartersSchema,Po as agentTriggerBaseSchema,Fo as agentTriggerPatchSchema,Io as agentTriggerSchema,Lo as agentUIValidationError,applyPipes,Ro as artifactQuoteSchema,_l as asTenantId,vl as asUserId,zo as askQuestionsOutputSchema,assertBundleName,Bo as assertCustomAgentUIMessageChunk,assertSchemaSourceResolutions,Vo as assertSessionState,Qc as attributeConfigSchemas,lt as attributeFilterTarget,ut as attributeInventory,dt as blockObjectInputs,buildPropertySchema,ft as buildQualifiedAttribute,builtBundleFromPieces,bundle,P as canonicalStringify,Ho as canonicalToolGroups,pt as canonicalizeFilterValue,capabilityForResource,mt as capped,checkbox,Uo as classificationRestoreSchema,Wo as classifyEmailSchema,Go as cliDefaultModelOf,ht as collectContentViewCatalogue,gt as collectQualifiedRuleIssues,_t as collectionContentSourceSchema,vt as collectionSourceAddress,yt as collectionSourceAddressOf,zc as colorIdSchema,bt as columnsSchema,Ko as compareAgentSessionMessages,compareSchemaStateEntries,compareVersions,qo as compiledHarnessModels,computeByteMagnitude,computeReconnectDelay,computeRetryDelay,Jo as connectionGrantKindsOf,Yo as connectorTriggerMatchSchema,_d as content,contentDefinition,b as contentExtensionRegistry,xt as contentReadObjects,x as contentViewDefinitionSchema,St as contentViewDefinitionSchemaFor,convertRetypedValue,Tl as createAttributeValidator,El as createFormAttributeValidator,createStandardSchemaProps,currency,Ct as currentActor,Xo as customDataChunkSchemas,date,ye as decisionThreadKey,be as decisionTransferBy,xe as decisionTransfersOf,declaredImageRequests,Zo as decodeAgentSessionListCursor,yl as deepEqual,wt as defineBlock,deriveLayout6,Qo as deriveViewerAccess,Tt as describeViewIssue,detailView,deviceChannelUrl,diffSchemaState,Et as displayAttributesSchema,document,Dt as draftContentViewDefinitionSchema,Ot as draftContentViewDefinitionSchemaFor,droppedContents,$o as durableDateSchema,kt as edgePropertyFilterTarget,es as emailCategoryCreateSchema,ts as emailCategoryDeleteSchema,ns as emailCategoryScopeQuerySchema,rs as emailCategoryUpdateSchema,is as emailRuleScopeSchema,as as encodeAgentSessionListCursor,os as environmentHarness,ss as environmentWorkdir,extractAttributeNames,extractAttributePaths,At as extractCurrencyFilterValue,jt as extractFilterValue,extractReadRecordIds,extractTouchedArtifacts,extractTouchedDocuments,extractTouchedRecords,Mt as filterOperatorsOfType,Nt as filterStateSchema,Pt as filterTargetsOf,cs as findEnvironmentHarness,findGrantIssues,Ft as findGridViolation,It as findGroupViolation,Lt as findLayoutRuleViolation,Rt as findRelationAttribute,zt as findRowLimitViolation,form,formFieldFlatKey,formFieldKey,formatByteSize,Se as formatDecisionLink,formatNewsTarget,Vl as formatPhoneForDisplay,formatReference,formatSkillSource,Bl as formatZodErrors,formula,bl as generateId,Bt as getAttributeCapabilities,el as getAttributeConfigSchema,tl as getAttributeConfigWriteSchema,Vt as getAttributeFilterOperators,getEditableLabelAttribute,Ce as getHierarchyAttributes,we as getObjectSystemAttributes,Ht as getOperatorPolarity,Ut as getRollupFilterOperators,getSingleAttributeFromExpression,getSlotFieldTargets,Te as getSystemAttributeI18nKey,Ee as getSystemAttributeList,ls as githubConditionSchema,us as githubTriggerMatchSchema,ds as grantKindOf,Wt as gridPositionSchema,group,Gt as groupSizeMessage,Kt as groupedMembers,fs as harnessModelChoices,hasLocale,hasOptions,hashBundlePieces,ps as humanRequestId,ms as humanRequestKind,j as iconNameSchema,imageLookupKindOf,imageModelFormatDefect,hs as imageModelIdSchema,xl as indexBy,qt as inferInverseCardinality,gs as inferenceReasoningSchema,_s as inferenceRoutingSchema,vs as inferenceSpeedSchema,Jt as input,Yt as invalidViewMessage,De as isActionableDecisionKind,ys as isAgentMessageMetadata,bs as isAgentNotificationMetadata,xs as isAgentUIDataName,Ss as isAgentWrittenAuditEntry,Cs as isArchitectPublicationMetadata,Xt as isAttributeFilterable,Zt as isAttributeGroupable,Or as isAttributeInUseError,Qt as isAttributeKanbanGroupable,$t as isAttributeSearchable,en as isAttributeSortable,ws as isAwaitingHuman,tn as isBilateralRelation,Ts as isBlocking,isBundle,nn as isCalendarDay,isCatalogResource,rn as isCollectionContent,an as isDynamicValue,Ol as isEmptyValue,Es as isEnvironmentHarnessId,isFormDefinition,isFormFieldsRow,isFormFreeFieldRef,isFormHeadingRow,isFormSeparatorRow,isFormSlotFieldRef,isFormTextRow,Oe as isHierarchyAttribute,isImageSource,isLabelExpression,on as isLocationFilterProperty,sn as isLocationPartOperator,Ds as isMailProvider,Os as isMailboxListMode,ke as isManagedSystemAttribute,isMeteredChargeKind,M as isNativeObjectName,ks as isNativeToolGroup,cn as isNoValueOperator,kr as isNotFoundError,kl as isNullishOrEmptyString,Ar as isObjectReferencedError,As as isOpenToolPartState,js as isParkedOnHuman,isPinnedSkillSource,Bc as isPlainRecord,jr as isProtectedResourceError,Ms as isProviderDraft,Ns as isPublicMailDomain,Ps as isQuestionPart,Mr as isRecordReferencedError,ln as isRelativeDateValue,Fs as isReplyMode,Is as isResourceGrant,Ls as isRoutineActorMetadata,Nr as isSchemaError,isSemver,Rs as isSessionInferencePatch,un as isSetMembershipOperator,isSkillRepository,isStandardSchema,zs as isSystemEmailCategory,Bs as isSystemEmailCategoryName,Vs as isSystemPartCode,Hs as isToolApprovalState,Us as isToolImpactCountKey,dn as isUniversalRelation,Pr as isValidationError,Al as isValuePresent,isWherePipe,isWildcard,judgePreferenceWrite,keptFill,B as labelExpressionSchema,fn as layoutTraitsOf,levelActions,levelFloor,levelOf,listView,locatePreference,location,pn as locationPartFilterTarget,Ws as lockingSendCall,Gs as meetingBotDispatchRequestSchema,Ks as meetingBotDispatchResponseSchema,qs as meetingBotNotificationSchema,Js as meetingTranscriptSegmentSchema,mn as memberlessGroups,memoryPageViewOf,Ys as mentionReferenceSchema,Xs as mergeSessionInferencePatch,meteredUsd,hn as metricComparePeriod,Zs as modelDefinitionSchema,Pd as modelIdentitySchema,Qs as modelReferenceSchema,moveWidensAudience,multiselect,nameSlug,Ed as namedTargetSchema,nativeAgentUIPartIdMetadataKey,$s as needsManageWhenUnattended,Ul as normalizeCountrylessPhoneNumber,gn as normalizeFilterRule,_n as normalizeForEdgeRpc,normalizeNewsLocale,vn as normalizeOperator,Wl as normalizePhoneNumber,ec as normalizedMeetingTranscriptSchema,yn as now,number,object,hd as objectImageSchema,tc as openRequests,nc as orderAgentSessionMessages,packLayout,page,pageCompactor,xn as pageTraitsOf,rc as parseAgentDefinitionAccessRole,ic as parseAgentSessionAccessRole,nl as parseAttributeConfig,rl as parseAttributeConfigForCreate,il as parseAttributeConfigForUpdate,S as parseBlockParameters,ac as parseCountMode,Ae as parseDecisionLink,oc as parseDeviceAccessRole,parseDeviceChannelFrame,sc as parseMergedAgentTrigger,parseNamedTarget,parseNativeAgentUIPartIdsMetadata,parseNewsBody,parseNewsIndex,parseNewsIntensity,parseNewsTarget,cc as parseOptionalCountMode,lc as parsePageAccessRole,Sn as parseQualifiedAttribute,uc as parseRecordAccessRole,Vc as parseRecordListScope,parseReference,Hc as parseResourceVisibility,parseSchemaGroupPresentation,parseSchemaOwner,parseSchemaState,parseServerFrame,parseSkillSource,dc as parseToolGroupGrant,parseWherePipe,parseWorkerFrame,Yu as permissionGrantSchema,phone,placeNew,preference,preferenceEntry,al as propertyAttributeSchema,ol as propertyAttributeWireSchema,sl as propertySchemaSchema,cl as propertySchemaWireSchema,fc as providerNameSchema,C as publishedViewContentDefinitionSchema,Cn as query,readArtifactResult,pc as readAskQuestionsResult,readFormFieldValue,readGeneratedImageResult,mc as recentActivityEntryKey,hc as recordGraphNodeKey,gc as recordGraphRequestSchema,recordLinksTab,_c as recordMeetingsCount,vc as recordOperationSchema,wn as recordQueryDefinitionSchema,yc as refineTrigger,ll as refuseForeignKeys,jl as rejectUnknownAttributesOrThrow,relation,Tn as relationAcceptsObject,relationProperty,En as relationTargetsOf,renderLabelExpression,repairPageGrid,requestedCapabilities,On as requireRecordContentContext,kn as requireSingleRelationTarget,resolveAppearance,An as resolveCollectionActions,jn as resolveContentNavigation,Mn as resolveEffectiveFilterType,resolveFieldRequired,Nn as resolveIsWithinBounds,resolveLocalized,resolvePageGrid,resolvePropertyDefinitions,Rl as resolveTextPattern,Pn as resolveUtcDayBounds,resolveViewContents,bc as resourceGrant,richtext,rollup,xc as routedMessageInferenceSchema,sameActions,Sl as sameStableValue,schemaGroupKey,schemaStateSourcePayload,select,ul as selectOptionWriteSchema,Cl as serializeCanonicalJson,wl as serializeStableJson,Sc as sessionInferencePatchSchema,settleLayout,sha256Hex,Fn as singleRelationTarget,Cc as slackConditionSchema,wc as slackTriggerMatchSchema,snapWidth,In as sortsSchema,Ln as sourcedAttributeOf,status,dl as statusGroupSchema,fl as statusOptionWriteSchema,storedContentDefinition,Rn as systemColumnFilterTarget,text,zn as toMultiValueOperator,Bn as toUtcDayString,Vn as today,Tc as todoItemSchema,Ec as todoPlanSchema,Dc as toolImpactSchema,user,Oc as utf8ByteLength,Ml as validateAttribute,Uc as validateAttributeName,Hn as validateContentViewCatalogue,Nl as validateDraft,Pl as validateDraftOrThrow,validateLabelExpression,Fl as validateObject,validateObjectExpressions,validateObjectImage,Kc as validateObjectName,Il as validateObjectOrThrow,Un as validateQualifiedRule,Wn as validateStoredViews,qc as validateViewName,widthStepConstraint,pl as wireHiddenTypeConfigMask,ml as wireOmittedConfigKeysFor,withPreferenceEntry,withoutTrailingSlashes,hl as withoutUnknownOptionKeys,workspaceViewAuthoring};
|
|
2
|
+
import{ACTIONABLE_DECISION_KINDS as e,AGGREGATE_BUCKETS as t,AGGREGATE_MEASURES as n,ATTRIBUTE_NAME_SCHEMA as r,DECISION_INBOX_STATES as i,DECISION_KINDS as a,DECISION_LINE_MAX_LENGTH as o,DECISION_LINK_TARGET_TYPES as s,DECISION_LIST_STATES as c,DECISION_READ_STATES as l,DECISION_SETTINGS_AREAS as u,DECISION_TITLE_MAX_LENGTH as d,DECISION_TRANSFERS_KEY as f,DECISION_TYPES_V1 as p,DECISION_TYPE_ACCESS_GRANTED as m,DECISION_TYPE_AGENT_APPROVAL as ee,DECISION_TYPE_AGENT_MESSAGE as te,DECISION_TYPE_AGENT_QUESTION as ne,DECISION_TYPE_AGENT_REVIEW as re,DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED as ie,DECISION_TYPE_AGENT_SETUP as ae,DECISION_TYPE_BUNDLE_SETUP as oe,DECISION_TYPE_CONNECTOR_CONNECTION_ERROR as se,DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED as ce,DECISION_TYPE_ENVIRONMENT_BUILD_FAILED as le,DECISION_TYPE_KINDS as h,DECISION_TYPE_PERSON as ue,DECISION_TYPE_RECORD_ASSIGNED as de,DECISION_TYPE_RECORD_MENTIONED as fe,DECISION_WORK_STATES as pe,HIERARCHY_ATTRIBUTE_IDS as me,HIERARCHY_ATTRIBUTE_NAMES as he,HIERARCHY_CHILD_IDS_LIMIT as ge,LIST_VIEW_TAB_VISIBILITIES as _e,MAX_AGGREGATE_GROUPS as ve,NATIVE_OBJECT_NAMES as ye,OBJECT_NAME_SCHEMA as be,RECORD_LIST_SCOPES as xe,RESERVED_ATTRIBUTE_NAMES as Se,RESERVED_OBJECT_NAMES as Ce,RESOURCE_VISIBILITIES as we,SCHEMA_LIMITS as g,SYSTEM_ATTRIBUTES as Te,SYSTEM_ATTRIBUTE_I18N_KEYS as Ee,SYSTEM_FIELD_NAMES as De,assertUniqueBy as Oe,colorIdSchema as ke,decisionThreadKey as Ae,decisionTransferBy as je,decisionTransfersOf as Me,formatDecisionLink as Ne,getHierarchyAttributes as Pe,getObjectSystemAttributes as Fe,getSystemAttributeI18nKey as Ie,getSystemAttributeList as Le,iconNameSchema as _,isActionableDecisionKind as Re,isHierarchyAttribute as ze,isManagedSystemAttribute as Be,isNativeObjectName as v,isPlainRecord as Ve,parseDecisionLink as He,parseRecordListScope as Ue,parseResourceVisibility as We,validateAttributeName as Ge,validateIconName as Ke,validateLabel as qe,validateObjectName as Je,validateOptions as Ye,validateViewName as Xe}from"./primitives-DpBFjzxV.mjs";import{AGENDA_BLOCK as y,ARTIFACT_PREVIEW_EXTENSION as Ze,ATTRIBUTE_FILTER_OPERATORS as Qe,ATTRIBUTE_TYPES as $e,ATTRIBUTE_TYPE_DESCRIPTORS as et,BLOCK_CONTEXTS as tt,BLOCK_PERIODS as nt,BLOCK_WIDTHS as b,CARD_BLOCK as x,CHART_BLOCK as S,CHART_KINDS as rt,COMPUTED_RETURN_TYPES as it,CONTENT_PLACEMENT_CONTEXTS as at,DECISIONS_BLOCK as ot,DEFAULT_LAYOUT_TRAITS as st,DEFAULT_VALIDATION_MESSAGES as ct,GROUPABLE_ATTRIBUTE_TYPES as lt,HEADING_BLOCK as ut,INVENTORY_LIMIT as dt,LOCATION_FILTER_PROPERTIES as ft,MAILBOX_BLOCK as pt,MEASURABLE_ATTRIBUTE_TYPES as mt,MEETINGS_UPCOMING_BLOCK as ht,METRIC_BLOCK as C,NATIVE_BLOCKS as gt,NO_VALUE_OPERATORS as _t,OPERATORS_BY_TYPE as vt,PAGE_GRID_COLUMNS as yt,QUALIFIED_SEPARATOR as bt,QUERY_OBJECT as xt,RECORD_LINKS_BLOCK as St,RECORD_LINKS_CONTENT as w,RECORD_OBJECT as Ct,RELATION_TARGET_ANY as wt,REMOVED_OPERATOR_REPLACEMENTS as Tt,RecordQuery as Et,SIMPLE_PROPERTY_TYPES as Dt,SYNONYM_ALIASES as Ot,SYSTEM_FILTER_ATTRIBUTE_TYPES as kt,TEXT_BLOCK as At,TEXT_FORMAT_PATTERNS as jt,WIRE_OFFERED_BASE_CONFIG as Mt,WIRE_OMITTED_CONFIG_KEYS as Nt,attributeConfigSchemas as Pt,attributeFilterTarget as Ft,attributeInventory as It,blockObjectInputs as Lt,buildQualifiedAttribute as Rt,canonicalizeFilterValue as zt,capped as Bt,collectContentViewCatalogue as Vt,collectQualifiedRuleIssues as Ht,collectionContentSourceSchema as Ut,collectionSourceAddress as Wt,collectionSourceAddressOf as Gt,columnsSchema as Kt,contentExtensionRegistry as qt,contentReadObjects as Jt,contentViewDefinitionSchema as T,contentViewDefinitionSchemaFor as Yt,createAttributeValidator as Xt,createFormAttributeValidator as Zt,createObjectValidator as Qt,currentActor as $t,datePrecisionIssues as en,defineBlock as tn,describeViewIssue as nn,displayAttributesSchema as rn,draftContentViewDefinitionSchema as an,draftContentViewDefinitionSchemaFor as on,edgePropertyFilterTarget as sn,extractCurrencyFilterValue as cn,extractFilterValue as ln,filterOperatorsOfType as un,filterStateSchema as dn,filterTargetsOf as fn,findGridViolation as pn,findGroupViolation as mn,findLayoutRuleViolation as hn,findRelationAttribute as gn,findRowLimitViolation as _n,formatPhoneForDisplay as vn,formatZodErrors as yn,getAttributeCapabilities as bn,getAttributeConfigSchema as xn,getAttributeConfigWriteSchema as Sn,getAttributeFilterOperators as Cn,getIso2 as wn,getOperatorPolarity as Tn,getRollupFilterOperators as En,gridPositionSchema as Dn,groupSizeMessage as On,groupedMembers as kn,hasTypeTrait as An,hasValueKind as jn,inferInverseCardinality as Mn,input as Nn,invalidViewMessage as Pn,isAttributeFilterable as Fn,isAttributeGroupable as In,isAttributeKanbanGroupable as Ln,isAttributeSearchable as Rn,isAttributeSortable as zn,isBilateralRelation as Bn,isBoardGrouping as Vn,isCalendarDay as Hn,isCollectionContent as Un,isDynamicValue as Wn,isEmptyValue as Gn,isLocationFilterProperty as Kn,isLocationPartOperator as qn,isNoValueOperator as Jn,isNullishOrEmptyString as Yn,isRelativeDateValue as Xn,isSetMembershipOperator as Zn,isUniversalRelation as Qn,isValueKindType as E,isValuePresent as $n,layoutTraitsOf as er,locationPartFilterTarget as tr,memberlessGroups as D,metricComparePeriod as nr,normalizeCountrylessPhoneNumber as rr,normalizeFilterRule as ir,normalizeForEdgeRpc as ar,normalizeOperator as or,normalizePhoneNumber as sr,now as cr,overlaps as lr,pageTraitsOf as ur,parseAttributeConfig as dr,parseAttributeConfigForCreate as fr,parseAttributeConfigForUpdate as pr,parseBlockParameters as O,parseQualifiedAttribute as mr,propertyAttributeSchema as hr,propertyAttributeWireSchema as gr,propertySchemaSchema as _r,propertySchemaWireSchema as vr,publishedViewContentDefinitionSchema as k,query as yr,recordQueryDefinitionSchema as br,refuseForeignKeys as xr,rejectUnknownAttributesOrThrow as Sr,relationAcceptsObject as Cr,relationTargetsOf as wr,requireContentPlacement as Tr,requireRecordContentContext as Er,requireSingleRelationTarget as Dr,resolveCollectionActions as Or,resolveContentNavigation as kr,resolveEffectiveFilterType as Ar,resolveIsWithinBounds as jr,resolveTextPattern as Mr,resolveUtcDayBounds as Nr,selectOptionWriteSchema as Pr,singleRelationTarget as Fr,sortsSchema as Ir,sourcedAttributeOf as Lr,statusGroupSchema as Rr,statusOptionWriteSchema as zr,systemColumnFilterTarget as Br,toMultiValueOperator as Vr,toUtcDayString as Hr,today as Ur,validateAttribute as Wr,validateContentViewCatalogue as Gr,validateDraft as Kr,validateDraftOrThrow as qr,validateObject as Jr,validateObjectOrThrow as Yr,validateQualifiedRule as Xr,validateStoredViews as Zr,wireHiddenTypeConfigMask as Qr,wireOmittedConfigKeysFor as $r,withoutUnknownOptionKeys as ei}from"./all-C27HT84u.mjs";import{AccessDeniedError as ti,AggregateValidationError as ni,AmbiguousSchemaChangeError as ri,AttributeInUseError as ii,AttributeNotFoundError as ai,ConcurrentModificationError as oi,DuplicateError as A,ExportTooLargeError as si,ForbiddenError as ci,InvalidPermissionGrantError as li,LogoProviderUnavailableError as ui,LogoSearchRateLimitedError as di,MemoryNotFoundError as fi,NotFoundError as pi,NotImplementedError as mi,ObjectNotFoundError as hi,ObjectReferencedError as gi,OrphanSystemAttributeError as _i,PageReferencedError as vi,ProtectedResourceError as yi,ProtectedRoleError as bi,QueryTimeoutError as xi,RealtimeDeliveryError as Si,RealtimeRateLimitedError as Ci,RealtimeSubscriptionError as wi,RecordNotFoundError as Ti,RecordReferencedError as Ei,RepositoryError as Di,ReservedObjectNameError as j,RoleNotFoundError as Oi,SchemaError as M,SchemaErrorCode as N,SearchBackendError as ki,SearchPathNotIndexedError as Ai,StorageError as ji,SyncCascadeError as Mi,SyncConflictError as Ni,SyncError as Pi,SystemEntityImmutableError as Fi,ToolGroupGrantError as Ii,ValidationError as P,WorkspaceInvariantReason as Li,isAttributeInUseError as Ri,isNotFoundError as zi,isObjectReferencedError as Bi,isProtectedResourceError as Vi,isRecordReferencedError as Hi,isSchemaError as Ui,isValidationError as Wi}from"./exceptions.mjs";import{ACCESS_LEVELS as Gi,ACCESS_ROLES as Ki,AGENT_ASIDE_ANSWER_MAX_LENGTH as qi,AGENT_ASIDE_HISTORY_LIMIT as Ji,AGENT_ASIDE_QUESTION_MAX_LENGTH as Yi,AGENT_AVATAR_EXPRESSIONS as Xi,AGENT_AVATAR_TYPES as Zi,AGENT_MESSAGE_KIND as Qi,AGENT_MESSAGE_SENDER_NAME_KEY as $i,AGENT_NOTIFICATION_KIND as ea,AGENT_SESSION_ACCESS_ROLES as ta,AGENT_SESSION_LIST_ORDERS as na,AGENT_SESSION_ORIGINS as ra,AGENT_SESSION_PROVENANCES as ia,AGENT_STARTERS_MAX as aa,AGENT_STARTER_MAX_LENGTH as oa,AGENT_SYSTEM_PROMPT_MAX_LENGTH as sa,AGENT_TASK_KINDS as ca,AGENT_WAKE_KIND as la,ALL_CATALOG_TOOL_NAMES as ua,ALWAYS_KINDS as da,APPROVAL_FAMILY_TOOL_NAMES as fa,ARCHITECT_PUBLICATION_KIND as pa,ASK_QUESTIONS_ANSWER_MAX_LENGTH as ma,ASK_QUESTIONS_ANSWER_MAX_VALUES as ha,ASK_QUESTIONS_MAX_BATCH as ga,ASK_QUESTIONS_TOOL_NAME as _a,AUDIT_ACTIONS as va,AUDIT_AGENT_SESSION_METADATA_KEY as ya,AUDIT_RESOURCE_TYPES as ba,AgentBuilder as F,BROWSER_LAUNCH_TOOL_NAME as xa,BROWSER_TOOL_NAMES as Sa,BUNDLE_LOCALES as Ca,BUNDLE_SETUP_PROMPT_MAX_LENGTH as wa,CONNECTION_GRANT_PROVIDERS as Ta,CONTINUATION_KEY_PATTERN as Ea,CONVERSATION_SURFACES as Da,COPY_VERB_NAME as Oa,CORE_RECORD_TOOL_NAMES as ka,CORE_TOOL_NAMES as Aa,COUNT_MODES as ja,DEFAULT_AGENT_EXECUTION_CONFIG as Ma,DEFAULT_AGENT_TOOL_GROUPS as Na,DEFAULT_APPROVAL_POLICY as Pa,DEFAULT_BLUEPRINT_TOOL_GROUPS as Fa,DEFAULT_DAILY_ACTIVITY_DAYS as Ia,DEFAULT_MEETING_BOT_DISPLAY_NAME as La,DEFAULT_TENANT_SETTINGS as Ra,DEVICE_ACCESS_ROLES as za,DISCARD_ARCHITECT_DRAFT_TOOL_NAME as Ba,DOCUMENT_SORT_MODES as Va,DRAFT_WRITE_TOOL_NAMES as Ha,EMAIL_CATEGORY_DEFAULT_COLOR as Ua,EMAIL_CATEGORY_DEFAULT_ICON as Wa,EMAIL_CATEGORY_DESCRIPTION_MAX as Ga,EMAIL_CATEGORY_DESCRIPTION_MIN as Ka,EMAIL_CATEGORY_LIMIT as qa,EMAIL_CATEGORY_NAME_MAX as Ja,ENVIRONMENT_BUILD_LOG_STEPS as Ya,ENVIRONMENT_BUILD_LOG_STEP_PREFIX as Xa,ENVIRONMENT_HARNESSES as Za,ENVIRONMENT_HARNESS_SANDBOX_WORKDIR as Qa,ENVIRONMENT_HARNESS_WORKDIR as $a,ENVIRONMENT_IMAGES as eo,ENVIRONMENT_MEMORY_GB_PER_VCPU as to,ENVIRONMENT_NAME_MAX_CHARS as no,ENVIRONMENT_NETWORK_ALLOW_MAX as ro,ENVIRONMENT_SCRIPT_MAX_BYTES as io,ENVIRONMENT_SIZES as ao,ENVIRONMENT_SIZE_VCPUS as oo,ENVIRONMENT_STANDARDS_WORKDIR as so,ENV_VAR_KEY_PATTERN as co,ESTIMATED_COUNT_CAP as lo,FILE_URLS_MAX_IDS as uo,GET_ARCHITECT_DRAFT_TOOL_NAME as fo,GITHUB_TRIGGER_CATALOG as po,GRANT_ENABLES as mo,HITL_TOOL_NAMES as ho,INFERENCE_REASONING_OPTIONS as go,INFERENCE_ROUTING_MODES as _o,INFERENCE_SPEEDS as vo,LAST_RUN_ERROR_MAX_LENGTH as yo,MAILBOX_LIST_MODES as bo,MAIL_DRAFT_BODY_MAX_CHARS as xo,MAIL_SIGNATURE_MAX_CHARS as So,MAIL_SUBJECT_MAX_CHARS as Co,MAX_DAILY_ACTIVITY_DAYS as wo,MAX_TODOS as To,MAX_TODO_DESCRIPTION_CHARS as Eo,MAX_TODO_ID_CHARS as Do,MCP_SERVER_NAME_MAX_LENGTH as Oo,MEETING_BOT_IMAGE as ko,MEETING_BOT_IMAGE_BASE64_MAX_LENGTH as Ao,MEETING_BOT_NO_CREDITS as jo,MEETING_BOT_SILENT_REASON as Mo,MEETING_RESPONSES as No,MEMORY_SPEND_LIMIT_PATTERN as Po,McpOAuthCompletionMode as Fo,NATIVE_TOOL_GROUPS as Io,NATIVE_TOOL_GROUP_CATALOG as Lo,NO_RECORDING as Ro,OPEN_TOOL_PART_STATES as zo,OPERATION_MAX_STEPS as Bo,PROVIDER_DRAFT_LABEL as Vo,PROVIDER_NAMES as Ho,PUBLIC_MAIL_DOMAINS as Uo,QUESTION_FAMILY_TOOL_NAMES as Wo,RECENT_ACTIVITY_LEDGER_LIMIT as Go,RECIPIENT_IDENTITIES_MAX as Ko,RECORDING_OVERRIDES as qo,RECORDING_POLICIES as Jo,RECORD_ACCESS_ROLES as Yo,RECORD_ACCESS_SOURCES as Xo,RECORD_DRIVE_CURSOR_MAX_LENGTH as Zo,RECORD_DRIVE_PAGE_DEFAULT_LIMIT as Qo,RECORD_DRIVE_PAGE_MAX_LIMIT as $o,RECORD_GRAPH_DEFAULT_LIMIT_PER_NODE as es,RECORD_GRAPH_MAX_LIMIT_PER_NODE as ts,RECORD_GRAPH_MAX_NODES as ns,RECORD_IMAGE_MAX_BYTES as rs,REPLY_MODES as is,REQUEST_DESIGN_REVIEW_TOOL_NAME as as,REQUEST_SETUP_TOOL_NAME as os,RESOURCE_GRANT_KINDS as ss,RESOURCE_KIND_CATALOG as cs,ROUTING_PRICE_CEILINGS as ls,SEND_VERB_NAME as us,SESSION_INFERENCE_PATCH_KEYS as ds,SLACK_TRIGGER_CATALOG as fs,SPEAKS_THROUGH_SEND_METADATA_KEY as ps,SURFACE_TOOL_NAMES as ms,SYSTEM_EMAIL_CATEGORIES as hs,SYSTEM_EMAIL_CATEGORY_NAMES as gs,SYSTEM_PART_CODES as _s,TASK_DEMAND_LEVELS as vs,TODO_PHASES as ys,TODO_PLAN_STATUSES as bs,TODO_STATUSES as xs,TOOL_APPROVAL_STATES as Ss,TOOL_IMPACT_COUNT_KEYS as Cs,TRIAGE_ACTIONS as ws,TRIGGER_EVENT_TYPES as Ts,TURN_OUTCOMES as Es,UNSHAREABLE_OBJECT_NAMES as Ds,USERS_RESOLVE_MAX_IDS as Os,USER_STATUSES as ks,USER_WORK_POSTURES as As,VERB_NAMES as js,WAKE_TURN_METADATA_KEY as Ms,WAKE_TURN_SPOKE_METADATA_KEY as Ns,agent as Ps,agentAvatarFromMetadata as Fs,agentAvatarSchema as Is,agentDataChunk as Ls,agentDisplayName as Rs,agentInferencePreferencesSchema as zs,agentMessageAttachmentSchema as Bs,agentMessagePartSchema as Vs,agentScheduleSchema as Hs,agentSessionInferenceOverridesInputSchema as Us,agentSessionInferenceOverridesSchema as Ws,agentSessionMessageSchema as Gs,agentStartersSchema as Ks,agentTriggerBaseSchema as qs,agentTriggerPatchSchema as Js,agentTriggerSchema as Ys,agentUIValidationError as Xs,artifactQuoteSchema as Zs,askQuestionsOutputSchema as Qs,assertCustomAgentUIMessageChunk as $s,assertSessionState as ec,canonicalToolGroups as tc,classificationRestoreSchema as nc,classifyEmailSchema as rc,cliDefaultModelOf as ic,compareAgentSessionMessages as ac,compiledHarnessModels as oc,connectionGrantKindsOf as sc,connectorTriggerMatchSchema as cc,customDataChunkSchemas as lc,decodeAgentSessionListCursor as uc,deriveViewerAccess as dc,durableDateSchema as fc,emailCategoryCreateSchema as pc,emailCategoryDeleteSchema as mc,emailCategoryScopeQuerySchema as hc,emailCategoryUpdateSchema as gc,emailRuleScopeSchema as _c,encodeAgentSessionListCursor as vc,environmentHarness as yc,environmentWorkdir as bc,findEnvironmentHarness as xc,githubConditionSchema as Sc,githubTriggerMatchSchema as Cc,grantKindOf as wc,harnessModelChoices as Tc,humanRequestId as Ec,humanRequestKind as Dc,imageModelIdSchema as Oc,inferenceReasoningSchema as kc,inferenceRoutingSchema as Ac,inferenceSpeedSchema as jc,isAgentMessageMetadata as Mc,isAgentNotificationMetadata as Nc,isAgentUIDataName as Pc,isAgentWakeMetadata as Fc,isAgentWrittenAuditEntry as Ic,isArchitectPublicationMetadata as Lc,isAwaitingHuman as Rc,isBlocking as zc,isEnvironmentBuildLogStep as Bc,isEnvironmentHarnessId as Vc,isMailProvider as Hc,isMailboxListMode as Uc,isNativeToolGroup as Wc,isOpenToolPartState as Gc,isParkedOnHuman as Kc,isProviderDraft as qc,isPublicMailDomain as Jc,isQuestionPart as Yc,isReplyMode as Xc,isResourceGrant as Zc,isRoutineActorMetadata as Qc,isSessionInferencePatch as $c,isSystemEmailCategory as el,isSystemEmailCategoryName as tl,isSystemPartCode as nl,isToolApprovalState as rl,isToolImpactCountKey as il,lockingSendCall as al,meetingBotDispatchRequestSchema as ol,meetingBotDispatchResponseSchema as sl,meetingBotNotificationSchema as cl,meetingTranscriptSegmentSchema as ll,mentionReferenceSchema as ul,mergeSessionInferencePatch as dl,modelDefinitionSchema as fl,modelReferenceSchema as pl,needsManageWhenUnattended as ml,normalizedMeetingTranscriptSchema as hl,openRequests as gl,orderAgentSessionMessages as _l,parseAgentDefinitionAccessRole as vl,parseAgentSessionAccessRole as yl,parseCountMode as bl,parseDeviceAccessRole as xl,parseMergedAgentTrigger as Sl,parseOptionalCountMode as Cl,parsePageAccessRole as wl,parseRecordAccessRole as Tl,parseToolGroupGrant as El,providerNameSchema as Dl,readArchitectPublication as Ol,readAskQuestionsResult as kl,recentActivityEntryKey as Al,recordGraphNodeKey as jl,recordGraphRequestSchema as Ml,recordMeetingsCount as Nl,recordOperationSchema as Pl,refineTrigger as Fl,resourceGrant as Il,routedMessageInferenceSchema as Ll,sessionInferencePatchSchema as Rl,slackConditionSchema as zl,slackTriggerMatchSchema as Bl,todoItemSchema as Vl,todoPlanSchema as Hl,toolImpactSchema as Ul,utf8ByteLength as Wl}from"./record-operation-DM8ZJvmH.mjs";import"./zod-locale.mjs";import{NonJsonValueError as Gl,asTenantId as Kl,asUserId as ql,canonicalStringify as I,deepEqual as Jl,generateId as Yl,indexBy as Xl,sameStableValue as Zl,serializeCanonicalJson as Ql,serializeStableJson as $l}from"./utils-DaejNWxh.mjs";import*as L from"zod";import{colorIdFromString as eu,getCountryByIso2 as tu,isValidCurrencyCode as nu,isValidIso3 as ru}from"@standards/constants";import{parsePhoneNumberFromString as iu}from"libphonenumber-js";const au=`__stndrdsNativeUiPartIds`,ou=1;function invalidNativePartIds(){throw new P(`Native agent UI part IDs metadata is invalid`,[])}function isPlainRecord$1(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function nativeAgentUIPartIdMetadataKey(e,t){if(e.type===`text`||e.type===`reasoning`)return`${e.type}:${t}`;if(e.type===`tool`)return`tool:${e.toolCallId}`}function parseNativeAgentUIPartIdsMetadata(e){let t=e.metadata?.[au];isPlainRecord$1(t)||invalidNativePartIds(),(Object.keys(t).length!==2||t.schemaVersion!==1||!isPlainRecord$1(t.partIds))&&invalidNativePartIds();let n=new Map;for(let[t,r]of e.parts.entries()){let e=nativeAgentUIPartIdMetadataKey(r,t);if(!e||n.has(e)){e&&invalidNativePartIds();continue}n.set(e,r)}let r=Object.entries(t.partIds);r.length!==n.size&&invalidNativePartIds();let i=new Map,a={};for(let[e,t]of r){let r=n.get(e);r&&typeof t==`string`&&t.length>0||invalidNativePartIds();let o=i.get(t);o&&(r.type===`tool`||o!==r.type)&&invalidNativePartIds(),r.type===`tool`&&t!==r.toolCallId&&invalidNativePartIds(),i.set(t,r.type),a[e]=t}return a}const su=`/v1/device-worker/channel`,cu=262144,lu=1e4,uu=2e3,du=2e3,fu=2e4,pu=4008,mu={initialMs:1e3,maxMs:3e4};function deviceChannelUrl(e){let t=new URL(e);return`${t.protocol===`https:`?`wss:`:`ws:`}//${t.host}${su}`}function computeRetryDelay(e,t,n){return Math.min(n.initialMs*2**e,n.maxMs)+Math.floor(t()*250)}function computeReconnectDelay(e,t=Math.random){return computeRetryDelay(e,t,mu)}const hu=[`worker_disconnected`,`cancelled`,`timed_out`,`execution_failed`];var DeviceChannelProtocolError=class extends M{constructor(e){super(e,N.DEVICE_CHANNEL_PROTOCOL),this._tag=`DeviceChannelProtocolError`,this.name=`DeviceChannelProtocolError`}};const gu=[`zsh`,`bash`,`sh`,`fish`,`pwsh`,`powershell`],_u=[`ready`,`permission_missing`,`no_session`,`unavailable`],vu=L.strictObject({state:L.enum(_u),version:L.string().min(1)}),R={id:L.uuid(),leaseToken:L.string().min(1)},yu=L.discriminatedUnion(`type`,[L.strictObject({type:L.literal(`authenticate`),credential:L.string().regex(/^Device \S+$/),protocol:L.number().int().positive().optional(),desktop:vu.optional(),shell:L.enum(gu).optional()}),L.strictObject({type:L.literal(`running`),...R}),L.strictObject({type:L.literal(`heartbeat`),...R}),L.strictObject({type:L.literal(`output`),...R,stdout:L.string().optional(),stderr:L.string().optional()}),L.strictObject({type:L.literal(`complete`),...R,result:L.strictObject({stdout:L.string().optional(),stderr:L.string().optional(),exitCode:L.number().int(),success:L.boolean(),errorCode:L.enum(hu).optional()}),background:L.strictObject({pid:L.number().int(),logPath:L.string().min(1)}).optional()}),L.strictObject({type:L.literal(`pong`)})]),bu=L.discriminatedUnion(`type`,[L.strictObject({type:L.literal(`ready`),device:L.strictObject({id:L.string(),name:L.string(),capability:L.enum([`shell`,`browser`])}),protocol:L.number().int().positive().optional()}),L.strictObject({type:L.literal(`command`),...R,kind:L.enum([`shell`,`browser`]),intent:L.string(),timeoutMs:L.number().int(),command:L.string().optional(),cwd:L.string().nullable().optional(),rootSessionId:L.string().min(1).optional(),background:L.boolean().optional()}),L.strictObject({type:L.literal(`release_session`),rootSessionId:L.string().min(1)}),L.strictObject({type:L.literal(`cancel`),id:L.uuid(),reason:L.enum([`cancelled`,`timed_out`,`revoked`])}),L.strictObject({type:L.literal(`reauthenticate`)}),L.strictObject({type:L.literal(`revoked`)}),L.strictObject({type:L.literal(`ping`)})]);function parseDeviceChannelFrame(e,t){let n;try{n=JSON.parse(t)}catch{throw new DeviceChannelProtocolError(`Frame is not JSON`)}let r=e.safeParse(n);if(!r.success)throw new DeviceChannelProtocolError(`Frame does not match the channel protocol`);return r.data}function parseWorkerFrame(e){return parseDeviceChannelFrame(yu,e)}function parseServerFrame(e){return parseDeviceChannelFrame(bu,e)}const xu=5;function isFormDefinition(e){return typeof e==`object`&&!!e&&`slots`in e&&`steps`in e&&`name`in e&&typeof e.name==`string`&&Array.isArray(e.slots)&&Array.isArray(e.steps)}const z=[`relation`,`multiRelation`,`formula`,`rollup`,`document`,`richtext`,`user`];function isFormSlotFieldRef(e){return e.type===`slot`}function isFormFreeFieldRef(e){return e.type===`free`}function resolveFieldRequired(e){return e.readOnly===!0?!1:e.fieldRequired===void 0?e.slotMode===`create`&&e.attributeRequired===!0:e.fieldRequired}function getSlotFieldTargets(e){return e.additionalSlotIds?.length?[e.slotId,...e.additionalSlotIds]:[e.slotId]}function formFieldKey(e){return isFormSlotFieldRef(e)?`${e.slotId}.${e.attribute}`:`free.${e.attribute.name}`}function formFieldFlatKey(e){return isFormSlotFieldRef(e)?e.attribute:e.attribute.name}function readFormFieldValue(e,t){return e[formFieldKey(t)]??e[formFieldFlatKey(t)]}function isFormFieldsRow(e){return e.type===`fields`}function isFormHeadingRow(e){return e.type===`heading`}function isFormSeparatorRow(e){return e.type===`separator`}function isFormTextRow(e){return e.type===`text`}function moveWidensAudience(e){return e.added.length>0||!e.workspaceBefore&&e.workspaceAfter}function resolvePropertyDefinitions(e){let t=e.properties;if(!t)return[];if(Array.isArray(t))return t;let n=t;return Array.isArray(n.definitions)?n.definitions:[]}function hasOptions(e){return E(e.type,`options`)}function schemaGroupKey(e){return`${e.kind}:${e.name}`}function refuse$3(e){throw new P(e,[{path:[`label`],message:e}])}function parseSchemaGroupPresentation(e){let t=e??{},n={};if(t.label!==void 0){let e=t.label;if(e===null)n.label=null;else if(typeof e!=`string`)refuse$3(`Label must be a string`);else{let t=e.trim();t.length===0&&refuse$3(`Label must not be empty`),t.length>g.labelLength&&refuse$3(`Label is too long (max ${g.labelLength} characters)`),n.label=t}}return n}const B=/^(?:core|bundle:.+)$/u;function parseSchemaOwner(e){if(e===null)return null;if(!B.test(e))throw new P(`Invalid schema owner "${e}"`,[]);return e}const Su=16e3,Cu=3200,wu=6400,Tu=16e3,Eu=65536,Du=15e3,Ou=1e4,ku=5e3,Au=`google/gemini-3.5-transcribe-live`,ju={maxDurationMs:3e5,dailyDurationMs:36e5,monthlyDurationMs:72e6,tenantMonthlyBudgetMicrousd:5e7,globalMonthlyBudgetMicrousd:5e7,estimatedMicrousdPerSecond:150,reservationMultiplier:2},Mu=[`web`,`presentation`,`document`,`spreadsheet`,`image`,`code`,`other`],Nu=[`ephemeral`,`conversation`,`persistent`],Pu=[`source`,`preview`,`entrypoint`,`asset`];var NoopGeocodingAdapter=class{async autocomplete(){return await Promise.resolve([])}async geocode(){return await Promise.resolve(null)}};const Fu=6048e5,Iu=36e5,Lu=2592e6,Ru=6e4,zu=[`square`,`landscape`,`portrait`];function imageModelFormatDefect(e){if(e.formats.length===0)return`declares no output format`;for(let t of e.formats)if(e.requests[t]===void 0)return`declares the format "${t}" without a request`;for(let t of Object.keys(e.requests))if(!e.formats.includes(t))return`carries a request for the undeclared format "${t}"`}function declaredImageRequests(e){let t={};for(let n of e.formats){let r=e.requests[n];r!==void 0&&(t[n]=r)}return t}const Bu=[`storage.bytes`,`members.seats`,`data.live_records`,`email.mailboxes`,`calendar.connections`],Vu=new Set([`data.live_records`,`email.mailboxes`,`calendar.connections`]);function computeByteMagnitude(e){if(e<=0)return{value:0,unitIndex:0};let t=1e3,n=Math.min(4,Math.floor(Math.log(e)/Math.log(t)));return{value:Number.parseFloat((e/t**n).toFixed(1)),unitIndex:n}}const Hu=[`B`,`KB`,`MB`,`GB`,`TB`];function formatByteSize(e){let{value:t,unitIndex:n}=computeByteMagnitude(e);return`${t} ${Hu[n]}`}const Uu=Object.freeze([`text`,`number`,`checkbox`,`date`,`phone`,`currency`,`status`,`select`,`multiselect`,`location`]);function buildPropertySchema(e){let t=[];for(let n of e){let e=n.build();if(!Uu.includes(e.type))throw Error(`Property type "${e.type}" is not supported in .qualifyWith()`);t.push(e)}return{definitions:t}}const Wu=[`UPPER`,`LOWER`,`capitalize`,`trim`],Gu=[`prefix`,`suffix`,`wrap`,`default`],V=[...Wu,...Gu],Ku=/^\s*where\s*(?::(.*))?$/s,qu=`[A-Za-z_][A-Za-z0-9_]*`,Ju=/^[^\s,()|{}="']+$/,Yu=RegExp(`^(${qu})\\s*=\\s*(.*)$`),Xu=RegExp(`^(${qu})\\s+in\\s*\\(([^()]*)\\)$`);function isWherePipe(e){return Ku.test(e)}function parseWherePipe(e){let t=e.match(Ku)?.[1]?.trim();if(!t)return null;let n=t.match(Xu);if(n){let e=n[2].split(`,`).map(e=>e.trim());return e.every(e=>Ju.test(e))?{property:n[1],values:e}:null}let r=t.match(Yu);return r&&Ju.test(r[2])?{property:r[1],values:[r[2]]}:null}const H=L.string().min(1,`labelExpression cannot be empty`).refine(e=>isLabelExpression(e),{message:`labelExpression must contain at least one {{ attribute }} interpolation`}).refine(e=>!/\{\{\s*\}\}/.test(e),{message:`labelExpression contains empty {{ }} interpolation`}).refine(e=>{let t=/(?<!\|)\|(?!\|)\s*(\w+)(?::[^|}]*)?/g,n;for(;(n=t.exec(e))!==null;){let e=n[1];if(!V.includes(e))return!1}return!0},{message:`Invalid pipe name. Valid pipes: ${V.join(`, `)}`});function validateLabelExpression(e){let t=H.safeParse(e);return t.success?{success:!0,attributes:extractAttributeNames(e)}:{success:!1,error:t.error.issues[0]?.message??`Invalid labelExpression`}}function applyPipe(e,t){let{name:n,args:r}=parsePipeExpression(t);switch(n){case`UPPER`:return e.toUpperCase();case`LOWER`:return e.toLowerCase();case`capitalize`:return e.replace(/(^|\s)\S/g,e=>e.toUpperCase());case`trim`:return e.trim();case`prefix`:return e?`${r[0]??``}${e}`:``;case`suffix`:return e?`${e}${r[0]??``}`:``;case`wrap`:return e?`${r[0]??``}${e}${r[1]??``}`:``;case`default`:return e||r[0]||``;default:return e}}function applyPipes(e,t){let n=e;for(let e of t)n=applyPipe(n,e);return n}function getValue(e,t){return t.split(`.`).reduce((e,t)=>{if(typeof e==`object`&&e)return e[t]},e)}const Zu=`(Untitled)`;function parsePipeExpression(e){let t=e.match(/^(\w+)(?::(.*))?$/);if(!t)return{name:e,args:[]};let n=t[1],r=t[2];if(!r)return{name:n,args:[]};let i=[],a=/["']([^"']*?)["']/g,o;for(;(o=a.exec(r))!==null;)i.push(o[1]);return{name:n,args:i}}function*templateBlocks(e){let t=0;for(;t<e.length;){let n=e.indexOf(`{{`,t);if(n<0)return;let r=e.indexOf(`}`,n+2);if(r<0)return;if(e[r+1]!==`}`){t=r+1;continue}t=r+2;let i=e.slice(n+2,r);i.length>0&&(yield{start:n,end:t,expr:i})}}function resolveLabelBlock(e,t){let n=e.split(`||`).map(e=>e.trim()),r=n[n.length-1].split(`|`).map(e=>e.trim());n[n.length-1]=r[0];let i=r.slice(1).filter(Boolean),a=n.filter(Boolean),o=``;for(let e of a){let n=toText(getValue(t,e));if(n!==``){o=n;break}}return applyPipes(o,i)}function renderLabelExpression(e,t,n=Zu){let r=[],i=0;for(let n of templateBlocks(e))r.push(e.slice(i,n.start),resolveLabelBlock(n.expr,t)),i=n.end;return r.push(e.slice(i)),r.join(``).trim()||n}function toText(e){if(e==null||typeof e==`function`)return``;if(typeof e!=`object`)return String(e);if(Array.isArray(e))return e.map(toText).filter(Boolean).join(`,`);let t=e.toString;return typeof t==`function`&&t!==Object.prototype.toString?String(e):``}function isLabelExpression(e){let t=0;for(;t<e.length;){let n=e.indexOf(`{{`,t);if(n<0)return!1;let r=e.indexOf(`}}`,n+2);if(r<0)return!1;if(e.slice(n+2,r).trim().length>0)return!0;t=r+2}return!1}function extractAttributePaths(e){let t=[];for(let n of templateBlocks(e)){let e=n.expr.trim();if(!e)continue;let r=e.split(`||`).map(e=>e.trim()),i=r[r.length-1];r[r.length-1]=i.split(`|`)[0].trim();for(let e of r)e&&!t.includes(e)&&t.push(e)}return t}function extractAttributeNames(e){let t=extractAttributePaths(e).map(e=>e.split(`.`)[0]).filter(e=>e.length>0);return[...new Set(t)]}const Qu=/^\{\{\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\}\}$/;function getSingleAttributeFromExpression(e){let t=e.trim().match(Qu);return t?t[1]:null}function getEditableLabelAttribute(e,t){let n=getSingleAttributeFromExpression(e);if(n===null)return null;let r=t.find(e=>e.name===n);return!r||r.type!==`text`||bn(r).authoring.readOnly?null:r}const $u=[{id:`data`,capabilities:[{id:`forms`,resources:[`forms`],levels:[{id:`fill`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]},{id:`manage`,add:[`manage`]}]}]},{id:`structure`,capabilities:[{id:`schema`,resources:[`architect`],levels:[{id:`use`,add:[`read`]},{id:`edit`,add:[`create`,`update`,`delete`]}]},{id:`pages`,resources:[`pages`],levels:[{id:`read`,add:[`read`]},{id:`create`,add:[`create`,`update`,`delete`]}]}]},{id:`ai`,capabilities:[{id:`agents`,resources:[`agents`],levels:[{id:`chat`,add:[`read`]},{id:`create`,add:[`create`]},{id:`build`,add:[`update`,`delete`]},{id:`manage`,add:[`manage`]}]},{id:`environments`,resources:[`environments`],levels:[{id:`use`,add:[`read`]},{id:`create`,add:[`create`]}]},{id:`browser-profiles`,resources:[`browser-profiles`],levels:[{id:`use`,add:[`create`]}]},{id:`private-secrets`,resources:[`private-secrets`],levels:[{id:`use`,add:[`create`]}]},{id:`routine-audiences`,resources:[`routine-audiences`],levels:[{id:`use`,add:[`create`]}]},{id:`supervision`,resources:[`supervision`],levels:[{id:`use`,add:[`create`]}]}]},{id:`files`,capabilities:[{id:`files`,resources:[`files`,`documents`],levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]}]},{id:`team`,capabilities:[{id:`people`,resources:[`people`],levels:[{id:`view`,add:[`read`]},{id:`invite`,add:[`create`]},{id:`manage`,add:[`update`,`delete`]}]}]},{id:`integrations`,capabilities:[{id:`connectors`,resources:[`connectors`],levels:[{id:`use`,add:[`read`,`create`,`update`,`delete`]}]},{id:`api-keys`,resources:[`api-keys`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`env-vars`,resources:[`env-vars`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`create`,`delete`]}]},{id:`devices`,resources:[`devices`],levels:[{id:`manage`,add:[`manage`]}]}]},{id:`administration`,capabilities:[{id:`settings`,resources:[`settings`],levels:[{id:`view`,add:[`read`]},{id:`manage`,add:[`update`,`delete`,`manage`]}]},{id:`audit`,resources:[`audit`],levels:[{id:`view`,add:[`read`]}]},{id:`billing`,resources:[`billing`],levels:[{id:`view`,add:[`read`]}]}]}],U=`none`,ed=`custom`,W={actions:[`read`,`create`,`update`,`delete`],purge:`manage`,levels:[{id:`read`,add:[`read`]},{id:`edit`,add:[`create`,`update`]},{id:`full`,add:[`delete`]}]},G=$u.flatMap(e=>e.capabilities),td=G.flatMap(e=>e.resources),nd=new Map(G.flatMap(e=>e.resources.map(t=>[t,e])));function isCatalogResource(e){return nd.has(e)}function capabilityForResource(e){let t=nd.get(e);if(!t)throw new M(`Unknown catalog resource "${e}"`,N.INVARIANT_VIOLATION);return t}function sameActions(e,t){let n=new Set(e),r=new Set(t);return n.size===r.size&&[...n].every(e=>r.has(e))}function levelActions(e,t){let n=new Set;for(let r of e.levels){for(let e of r.add)n.add(e);if(r.id===t)return[...n]}return[]}function levelFloor(e,t){let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=U;for(let t of e.levels){if(!t.add.every(e=>r.has(e)))break;i=t.id}return i}function levelOf(e,t){if(t.length===0)return U;let n=e.levels[e.levels.length-1];if(t.includes(`*`)&&n)return n.id;let r=new Set(t),i=new Set;for(let t of e.levels){for(let e of t.add)i.add(e);if(i.size===r.size&&[...r].every(e=>i.has(e)))return t.id}return ed}const rd=[`read`,`create`,`update`,`delete`,`manage`],id=L.object({scope:L.enum([`object`,`system`]),target:L.string().min(1),actions:L.array(L.enum(rd))}).strict();function findGrantIssues(e,t){let n=[],r=new Map;for(let i of e){let e=id.safeParse(i);if(!e.success){let e=typeof i==`object`&&i&&`target`in i?String(i.target):`?`;n.push({target:e,reason:`shape`});continue}let a=e.data;if(a.scope===`system`){if(!isCatalogResource(a.target)){n.push({target:a.target,reason:`unknown-resource`});continue}if(levelOf(capabilityForResource(a.target),a.actions)===`custom`){n.push({target:a.target,reason:`off-level`});continue}r.set(a.target,a.actions);continue}if(a.target!==`*`&&!t.objectNames.has(a.target)){n.push({target:a.target,reason:`unknown-object`});continue}let o=a.target===`*`?[...W.actions,W.purge]:W.actions;a.actions.every(e=>o.includes(e))||n.push({target:a.target,reason:`object-action`})}let i=new Set;for(let[e,t]of r){let a=capabilityForResource(e);if(!i.has(a)){for(let o of a.resources)if(!sameActions(t,r.get(o)??[])){n.push({target:e,reason:`split-capability`}),i.add(a);break}}}return n}const ad=`memory`,od=4e3,sd=`workspace`,K={name:`name`,description:`description`,content:`content`,profileOf:`profileOf`,profileActor:`profileActor`,subjects:`subjects`,subjectId:`subjectId`};function textValue(e){return typeof e==`string`?e:``}function memoryPageViewOf(e){let{values:t}=e;return{id:e.id,name:textValue(t[K.name]),description:textValue(t[K.description]),content:textValue(t[K.content]),visibility:e.visibility,ownedBy:e.ownedBy,updatedAt:new Date(e.updatedAt).toISOString()}}const cd={meetingHour:`0.80`,computeVcpuHour:`0.20`,browserHour:`0.60`},ld=[`meeting.recording`,`sandbox.agent`,`sandbox.harness`,`sandbox.build`,`browser.session`];function isMeteredChargeKind(e){return ld.includes(e)}const ud=/^\d+(?:\.\d+)?$/u;function meteredUsd(e,t){if(!ud.test(e))throw new P(`Invalid metered rate "${e}"`,[]);if(!(t>=0&&t<=2**53-1))throw new P(`Invalid metered duration "${t}"`,[]);let[n=`0`,r=``]=e.split(`.`),i=BigInt(n+r)*BigInt(t.toFixed(12).replace(`.`,``)),a=10n**BigInt(r.length+12-4),o=(i+a-1n)/a,s=10n**BigInt(4),c=(o%s).toString().padStart(4,`0`).replace(/0+$/u,``);return c?`${o/s}.${c}`:`${o/s}`}const dd=`@standards/schema`;function createStandardSchemaProps(e){return{version:1,vendor:dd,validate:t=>{let n=e.safeParse(t);return n.success?{value:n.data}:{issues:n.error.issues.map(e=>({message:e.message,path:e.path}))}}}}function isStandardSchema(e){return typeof e==`object`&&!!e&&`~standard`in e&&typeof e[`~standard`]==`object`&&e[`~standard`].version===1}function asMutableArray(e){return e}var BaseAttributeBuilder=class{get"~standard"(){return createStandardSchemaProps(Xt(this.build()))}constructor(e,t,n){Ge(t),qe(n),this.attr={name:t,label:n,type:e,required:!1,system:!0}}asPhantomState(){return this}required(){return this.attr.required=!0,this.asPhantomState()}optional(){return this.attr.required=!1,this.asPhantomState()}runtime(){return this.attr.system=!1,this}hidden(){return this.attr.hidden=!0,this}placeholder(e){return this.attr.placeholder=e,this}description(e){return this.attr.description=e,this}icon(e){return Ke(e,`attribute "${this.attr.name}"`),this.attr.icon=e,this}order(e){return this.attr.order=e,this}defaultValue(e){return(`defaultValue`in this.attr||!E(String(this.attr.type),`computed`))&&(this.attr.defaultValue=e),this}metadata(e){return this.attr.metadata=e,this}build(){return this.attr}},TextAttributeBuilder=class extends BaseAttributeBuilder{minLength(e){return this.attr.minLength=e,this}maxLength(e){return this.attr.maxLength=e,this}pattern(e){return this.attr.pattern=e,this.attr.format=void 0,this}multiline(e=!0){return this.attr.multiline=e,this}email(){return this.attr.format=`email`,this.attr.pattern=void 0,this}url(){return this.attr.format=`url`,this.attr.pattern=void 0,this}slug(){return this.attr.format=`slug`,this.attr.pattern=void 0,this}};function text(e,t){return new TextAttributeBuilder(`text`,e,t)}var RichtextAttributeBuilder=class extends BaseAttributeBuilder{};function richtext(e,t){return new RichtextAttributeBuilder(`richtext`,e,t)}var NumberAttributeBuilder=class extends BaseAttributeBuilder{min(e){return this.attr.min=e,this}max(e){return this.attr.max=e,this}integer(){return this.attr.unit=`integer`,this.attr.decimals=0,this}decimal(e=2){return this.attr.unit=`decimal`,this.attr.decimals=e,this}percentage(){return this.attr.unit=`percentage`,this}renderAs(e){return this.attr.renderAs=e,this}};function number(e,t){return new NumberAttributeBuilder(`number`,e,t)}var CheckboxAttributeBuilder=class extends BaseAttributeBuilder{};function checkbox(e,t){return new CheckboxAttributeBuilder(`checkbox`,e,t)}var DateAttributeBuilder=class extends BaseAttributeBuilder{format(e){return this.attr.dateFormat=e,this}precision(e){return this.attr.precision=e,this}build(){let[e]=en(`date`,this.attr);if(e!==void 0)throw new P(e.message,[{path:[`precision`],message:e.message}]);return super.build()}minDate(e){return this.attr.minDate=e,this}maxDate(e){return this.attr.maxDate=e,this}endDate(){return this.attr.endDate=!0,this.asPhantomState()}includeTime(){return this.attr.includeTime=!0,this}timeFormat(e){return this.attr.timeFormat=e,this}};function date(e,t){return new DateAttributeBuilder(`date`,e,t)}var PhoneAttributeBuilder=class extends BaseAttributeBuilder{defaultCountry(e){return this.attr.defaultCountryCode=e,this}};function phone(e,t){return new PhoneAttributeBuilder(`phone`,e,t)}var CurrencyAttributeBuilder=class extends BaseAttributeBuilder{defaultCurrency(e){return this.attr.defaultCurrency=e,this}allowedCurrencies(e){return this.attr.allowedCurrencies=e,this}allowNegative(e=!0){return this.attr.allowNegative=e,this}};function currency(e,t){return new CurrencyAttributeBuilder(`currency`,e,t)}function setOptions(e,t){let n=asMutableArray(t);Ye(e.name??`unknown`,n),e.options=n}function addOption(e,t){e.options||=[],Ye(e.name??`unknown`,[...e.options,t]),e.options.push(t)}var StatusAttributeBuilder=class extends BaseAttributeBuilder{options(e){return setOptions(this.attr,e),this.asPhantomState()}option(e){return addOption(this.attr,e),this}};function status(e,t){return new StatusAttributeBuilder(`status`,e,t)}var SelectAttributeBuilder=class extends BaseAttributeBuilder{options(e){return setOptions(this.attr,e),this.asPhantomState()}option(e){return addOption(this.attr,e),this}renderAs(e){return this.attr.renderAs=e,this}};function select(e,t){return new SelectAttributeBuilder(`select`,e,t)}var MultiselectAttributeBuilder=class extends BaseAttributeBuilder{options(e){return setOptions(this.attr,e),this.asPhantomState()}option(e){return addOption(this.attr,e),this}renderAs(e){return this.attr.renderAs=e,this}};function multiselect(e,t){return new MultiselectAttributeBuilder(`multiselect`,e,t)}var LocationAttributeBuilder=class extends BaseAttributeBuilder{granularity(e){return this.attr.granularity=e,this}defaultCountry(e){return this.attr.defaultCountry=e,this}allowedCountries(e){return this.attr.allowedCountries=e,this}};function location(e,t){return new LocationAttributeBuilder(`location`,e,t)}var UserAttributeBuilder=class extends BaseAttributeBuilder{constructor(e,t){super(`user`,e,t),this.attr.types=[`user`,`agent`]}types(e){let t=[...new Set(e)];if(t.length===0)throw Error(`[AttributeBuilder] user.types must contain at least one type.`);return this.attr.types=t,this}multiple(){return this.attr.multiple=!0,this}notifiesOnAssign(){return this.attr.notifiesOnAssign=!0,this}actors(){return this.attr.actors=!0,this}};function user(e,t){return new UserAttributeBuilder(e,t)}var BaseRelationAttributeBuilder=class extends BaseAttributeBuilder{to(e,t){let n={object:e,...t};return this.attr.targets?.push(n),this}toAny(){return this.attr.targets=[{object:`*`}],this}qualifyWith(...e){let t=this.attr.targets;if(!t||t.length===0)throw Error(`.qualifyWith() must be called AFTER .to(). Example: relation("companies", "Companies").to("companies").qualifyWith(...)`);return this.attr.properties=buildPropertySchema(e),this}bilateral(e){let t=this.attr.targets;if(!t||t.length===0)throw Error(`.bilateral() must be called AFTER .to(). Example: relation("company", "Company").to("companies").bilateral({ ... })`);if(t.length>1)throw Error(`Bilateral relations are not supported for polymorphic relations (multiple .to() targets).`);if(Qn(this.attr))throw Error(`Bilateral relations are not supported for universal relations (.toAny()).`);let n=t[0]?.object;if(!n)throw new P(`Bilateral relation requires one target object`,[{path:[`bilateral`,`object`],message:`Bilateral relation requires one target object`}]);if(e.object&&e.object!==n){let t=`Bilateral inverse object ${e.object} must match relation target ${n}`;throw new P(t,[{path:[`bilateral`,`object`],message:t}])}return this.attr.bilateral={...e,object:n},this}},SingleRelationAttributeBuilder=class extends BaseRelationAttributeBuilder{constructor(e,t){super(`relation`,e,t),this.attr.cardinality=`one`,this.attr.targets=[]}many(){let e=new MultiRelationAttributeBuilder(this.attr.name,this.attr.label??``,{targets:this.attr.targets,isRequired:this.attr.required});return this.attr.system===!1&&e.runtime(),this.attr.hidden&&e.hidden(),this.attr.placeholder&&e.placeholder(this.attr.placeholder),this.attr.description&&e.description(this.attr.description),this.attr.icon&&e.icon(this.attr.icon),this.attr.order!==void 0&&e.order(this.attr.order),this.attr.metadata&&e.metadata(this.attr.metadata),e}},MultiRelationAttributeBuilder=class extends BaseRelationAttributeBuilder{constructor(e,t,n){super(`relation`,e,t),this.attr.cardinality=`many`,this.attr.targets=n?.targets??[],this.attr.defaultValue=[],n?.isRequired&&(this.attr.required=!0)}maxItems(e){return this.attr.maxItems=e,this}};function relation(e,t){return new SingleRelationAttributeBuilder(e,t)}var FormulaAttributeBuilder=class extends BaseAttributeBuilder{expression(e){return this.attr.expression=e,this}returns(e){return this.attr.returnType=e,this}decimals(e){return this.attr.decimals=e,this}currency(e){return this.attr.currencyCode=e,this}required(){throw Error(`Formula attributes cannot be required: they are computed read-only values. Remove .required() from this attribute definition.`)}};function formula(e,t){return new FormulaAttributeBuilder(`formula`,e,t)}var RollupAttributeBuilder=class extends BaseAttributeBuilder{from(e){return this.attr.relationAttribute=e,this}aggregate(e){return this.attr.targetAttribute=e,this}using(e){return this.attr.function=e,this}decimals(e){return this.attr.decimals=e,this}path(e){return this.attr.relationPath=e,this}targetType(e){return this.attr.targetAttributeType=e,this}targetOptions(e){return this.attr.targetAttributeOptions=asMutableArray(e),this}targetCurrency(e){return this.attr.targetCurrencyCode=e,this}build(){let e=this.attr.function,t=this.attr.targetAttributeType;if(e===`original`&&t!==void 0&&t!==`select`&&t!==`status`&&t!==`multiselect`){let e=this.attr.relationAttribute??`relation`,n=this.attr.targetAttribute??`field`;throw new M(`Rollup "${this.attr.name}": .using("original") only supports a "select", "status", or "multiselect" target, but .targetType("${t}") was given. To surface a plain ${t} value from a related record, use a formula instead — e.g. formula("${this.attr.name}", "…").expression("${e}.${n}").`,N.VALIDATION_FAILED)}return super.build()}required(){throw Error(`Rollup attributes cannot be required: they are computed read-only values. Remove .required() from this attribute definition.`)}};function rollup(e,t){return new RollupAttributeBuilder(`rollup`,e,t)}var DocumentAttributeBuilder=class extends BaseAttributeBuilder{accepts(e){return this.attr.accepts=e,this}maxFileSize(e){return this.attr.maxFileSize=e,this}qualifyWith(...e){return this.attr.properties=buildPropertySchema(e),this}};function document(e,t){return new DocumentAttributeBuilder(`document`,e,t)}const q={owner:`standardshq`,repo:`skills`,ref:`stable`},J=`[A-Za-z0-9._-]+`,fd=`[A-Za-z0-9_-]+`,pd=RegExp(`^(${fd})/(${J})@([a-z0-9-]+)(?:#(${J}))?$`),md=RegExp(`^(${fd})/(${J})$`),hd=/^[0-9a-f]{40}$/i;function isSafeSegment(e){return e!==`.`&&!e.startsWith(`-`)&&!e.includes(`..`)}function refuse$2(e,t){throw new P(`Invalid skill source "${e}": ${t} (expected owner/repo@skill or owner/repo@skill#ref)`,[{path:[`source`],message:t}])}function canonicalRef(e){return hd.test(e)?e.toLowerCase():e}function parseSkillSource(e){let t=e.trim(),n=t.startsWith(`github.com/`)?t.slice(11):t,r=pd.exec(n);if(!r)return refuse$2(e,`malformed or not a github.com source`);let[,i,a,o,s]=r;return[i,a,s??``].every(isSafeSegment)?{host:`github.com`,owner:i,repo:a,skill:o,ref:s===void 0?null:canonicalRef(s)}:refuse$2(e,"a segment cannot start with `-`, hold `..` or be `.`")}function isSkillRepository(e){return md.exec(e)?.slice(1).every(isSafeSegment)??!1}function formatSkillSource(e){let t=`${e.owner}/${e.repo}@${e.skill}`;return e.ref===null?t:`${t}#${e.ref}`}function isPinnedSkillSource(e){return e.ref!==null&&hd.test(e.ref)}const gd=/^[a-z0-9][a-z0-9-]{0,62}$/,_d=`core`;function assertBundleName(e){if(!gd.test(e))throw new P(`Invalid bundle name "${e}": expected a lowercase slug matching ${gd}`,[]);if(e===`core`)throw new P(`Bundle name "${_d}" is reserved`,[])}async function sha256Hex(e){let t=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e));return Array.from(new Uint8Array(t),e=>e.toString(16).padStart(2,`0`)).join(``)}function nameSlug(e,t){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLowerCase().replace(/[^a-z0-9]+/g,`_`).slice(0,t).replace(/^_+|_+$/g,``)}function cloneBuilderValue(e,t){try{return structuredClone(e)}catch{let e=`Builder configuration must contain cloneable data`;throw new P(e,[{path:t,message:e}])}}function requireBuilderName(e,t){if(typeof e!=`string`||e.trim().length===0)throw new P(`Name must not be blank`,[{path:t,message:`Name must not be blank`}])}function validateContentConfiguration(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw new P(`Invalid content configuration`,[{path:t,message:`Expected content configuration`}]);for(let n of[`name`,`label`,`placement`])if(Object.hasOwn(e,n)){let e=`Independent content configuration cannot define ${n}`;throw new P(e,[{path:[...t,n],message:e}])}let n=k.safeParse({...e,name:`content`,placement:e.type===`group`?`grid`:`main`});if(!n.success)throw P.fromZodErrors(n.error.issues.map(e=>({path:[...t,...e.path.map(String)],message:e.message})));n.data.type===`form`&&n.data.groups.forEach((e,n)=>requireBuilderName(e.name,[...t,`groups`,String(n),`name`]));let{name:r,label:i,placement:a,...o}=n.data;return cloneBuilderValue(o,t)}function validateLiteralContent(e,t){return validateContentConfiguration(e,t),cloneBuilderValue(e,t)}function positionOf(e){return{x:e.x,y:e.y,w:e.w,h:e.h}}function bottomOf(e){return e.y+e.h}function collides(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w&&e.y<t.y+t.h&&t.y<e.y+e.h}function firstCollision(e,t){return t.find(t=>collides(e,t))}function inReadingOrder$1(e){return[...e].sort((e,t)=>e.y-t.y||e.x-t.x)}function snapWidth(e,t,n){let r=12-t,i=b.filter(e=>e>=n&&e<=r);return i.length===0?b.find(e=>e>=n)??n:i.reduce((t,n)=>{let r=Math.abs(n-e),i=Math.abs(t-e);return r<i||r===i&&n>t?n:t})}function sharesColumns(e,t){return e.x<t.x+t.w&&t.x<e.x+e.w}function risenRow(e,t){return t.reduce((t,n)=>n.y<e.y&&sharesColumns(e,n)?Math.max(t,bottomOf(n)):t,0)}function packLayout(e,t){let n=e.map(e=>{let n=t?.get(e.i);return n===void 0?e:{...e,h:n}}),r=n.filter(e=>e.static===!0),i=new Map(r.map(e=>[e.i,e]));for(let e of inReadingOrder$1(n.filter(e=>e.static!==!0))){let t=risenRow(e,r),n=firstCollision({...e,y:t},r);for(;n!==void 0;)t=bottomOf(n),n=firstCollision({...e,y:t},r);let a={...e,y:t};r.push(a),i.set(e.i,a)}return n.map(e=>i.get(e.i)??e)}function settleLayout(e,t){let n=e.filter(e=>e.static===!0),r=e.filter(e=>e.static!==!0),i=new Map;for(let e of[...inReadingOrder$1(r.filter(e=>t.has(e.i))),...inReadingOrder$1(r.filter(e=>!t.has(e.i)))]){let t=e,r=firstCollision(t,n);for(;r!==void 0;)t={...t,y:bottomOf(r)},r=firstCollision(t,n);n.push(t),i.set(e.i,t)}return packLayout(e.map(e=>i.get(e.i)??e))}function pageCompactor(){return{type:`vertical`,allowOverlap:!1,preventCollision:!1,compact:e=>packLayout(e).map(e=>({...e,moved:!1}))}}function clampHeight(e,t){let n=t.minHeight??1,r=t.maxHeight??1/0;return Math.max(1,n,Math.min(r,e))}function widthStepConstraint(e){return{name:`width-steps`,constrainSize:(t,n,r)=>{let i=e(t.i),a=snapWidth(n,t.x,i.minWidth);return i.height===`fit`?{w:a,h:t.h}:i.height===`flexible`?{w:a,h:clampHeight(r,i)}:{w:a,h:Math.max(1,r)}}}}function snapCell(e,t){let n=Math.max(0,Math.min(e.x,11)),r=snapWidth(e.w,n,t(e.i).minWidth);return{...e,x:Math.min(n,12-r),y:Math.max(0,e.y),w:r,h:Math.max(1,e.h)}}function samePosition(e,t){return e.x===t.x&&e.y===t.y&&e.w===t.w&&e.h===t.h}function pushApart(e){let t=e.filter(e=>e.static===!0),n=new Map;for(let r of inReadingOrder$1(e.filter(e=>e.static!==!0))){let e=r,i=firstCollision(e,t);for(;i!==void 0;){let n={...e,x:i.x+i.w};e=n.x+n.w<=12&&firstCollision(n,t)===void 0?n:{...e,y:bottomOf(i)},i=firstCollision(e,t)}t.push(e),n.set(r.i,e)}return e.map(e=>n.get(e.i)??e)}function isValidStatic(e){return[e.x,e.y,e.w,e.h].every(Number.isInteger)&&e.x>=0&&e.y>=0&&e.h>=1&&b.includes(e.w)&&e.x+e.w<=12}function keptStatics(e){let t=[],n=new Set;for(let r of inReadingOrder$1(e.filter(e=>e.static===!0)))isValidStatic(r)&&firstCollision(r,t)===void 0?t.push(r):n.add(r.i);return e.map(e=>n.has(e.i)?{...e,static:!1}:e)}function boundedHeight(e,t){let n=t(e.i);if(e.static===!0||n.height!==`flexible`)return e;let r=clampHeight(e.h,n);return r===e.h?e:{...e,h:r}}function repairPageGrid(e,t){let n=[],r=keptStatics(e).map(e=>{let r=boundedHeight(e,t);return r!==e&&n.push({name:e.i,kind:`height`,from:positionOf(e),to:positionOf(r)}),r}).map(e=>{if(e.static===!0)return e;let r=snapCell(e,t);return samePosition(e,r)||n.push({name:e.i,kind:`width`,from:positionOf(e),to:positionOf(r)}),r}),i=pushApart(r);i.forEach((e,t)=>{let i=r[t];i!==void 0&&!samePosition(i,e)&&n.push({name:e.i,kind:`pushed`,from:positionOf(i),to:positionOf(e)})});let a=packLayout(i),o=keptFill(a,t);for(let e of inReadingOrder$1(a))e.i!==o&&t(e.i).height===`fill`&&n.push({name:e.i,kind:`fill`});return{cells:a,repairs:n}}function keptFill(e,t){return inReadingOrder$1(e).find(e=>e.static!==!0&&t(e.i).height===`fill`)?.i}function firstFreeSlot(e,t,n){let r=t.reduce((e,t)=>Math.max(e,bottomOf(t)),0);for(let i=n;i<=r;i+=1)for(let n=0;n+e.w<=6;n+=1)if(firstCollision({x:n,y:i,...e},t)===void 0)return{x:n,y:i};return{x:0,y:r}}function deriveLayout6(e,t){let n=[];for(let r of inReadingOrder$1(e)){let e=Math.min(6,Math.max(t(r.i).minWidth,Math.ceil(r.w/2))),i=n.at(-1)?.y??0;n.push({i:r.i,...firstFreeSlot({w:e,h:r.h},n,i),w:e,h:r.h})}return n}function figureSlot(e,t,n){for(let r of inReadingOrder$1(e.filter(e=>n.has(e.i)))){let n={x:r.x+r.w,y:r.y,...t};if(n.x+n.w<=12&&firstCollision(n,e)===void 0)return n}}function placeNew(e,t,n,r){let i={w:snapWidth(n.size.w,0,n.minWidth),h:Math.max(1,n.size.h)};return n.figure?{i:t,...figureSlot(e,i,r)??{x:0,y:0,...i}}:{i:t,x:0,y:e.reduce((e,t)=>Math.max(e,bottomOf(t)),0),...i}}function spanContent(e,t){if(!b.includes(t)){let e=`A block spans ${b.join(`, `)} columns, not ${String(t)}`;throw new P(e,[{path:[`content`,`span`],message:e}])}return{content:e,span:t}}function configureContent(e,t){try{return typeof e==`object`&&e&&`build`in e&&typeof e.build==`function`?{configuration:validateContentConfiguration(e.build(),t),extension:e.extension}:{configuration:validateContentConfiguration(e,t)}}catch(e){throw e instanceof P?new P(e.message,e.errors.map(e=>({...e,path:e.path[0]===`content`?[...t,...e.path.slice(1)]:e.path}))):e}}function storedQuery(e,t){let n=[`search`,`offset`].filter(t=>e.state[t]!==void 0);if(n.length>0)throw new P(`A ${t} cannot keep a query's ${n.join(` or `)}`,n.map(e=>({path:[t,e],message:`A ${t} stores no ${e}; use filters and limit instead`})));return e.toDefinition()}function checkInputs(e,t){for(let[n,r]of Object.entries(t)){let t=e.inputs[n];r!==void 0&&t!==void 0&&O({parameters:t.schema},r,[`content`,`parameters`,n])}return t}var BlockContentBuilder=class{constructor(e,t,n){this.extension=e,this.parameters=t,this.heightMode=n}copy(e,t){let n=this.constructor;return new n(this.extension,e,t)}with(e){let t={...this.parameters};for(let[n,r]of Object.entries(e)){if(r===void 0){delete t[n];continue}t[n]=r}return checkInputs(this.extension,e),this.copy(t,this.heightMode)}height(e){return this.copy(this.parameters,e)}build(){let e={type:`custom`,extension:this.extension.name,parameters:cloneBuilderValue(this.parameters,[`content`,`parameters`]),...this.heightMode===void 0?{}:{height:this.heightMode}};return validateContentConfiguration(e,[`content`]),O(this.extension,e.parameters,[`content`,`parameters`]),e}span(e){return spanContent(this,e)}},Measures=class{count(){return this.measured(`count`)}sum(e){return this.measured(`sum`,e)}avg(e){return this.measured(`avg`,e)}min(e){return this.measured(`min`,e)}max(e){return this.measured(`max`,e)}};function measure(e,t,n){return{query:e,measure:t,...n===void 0?{}:{attribute:n}}}var MetricBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}trend(e,t){return this.with({trend:e,trendBucket:t})}compare(e,t){return this.with({compare:e,period:t})}target(e){return this.with({target:e})}},MetricQuery=class extends Measures{constructor(e){super(),this.query=e}measured(e,t){return new MetricBuilder(C,checkInputs(C,measure(this.query,e,t)))}};function groupBy(e){return typeof e==`string`?[e,void 0]:[e.attribute,e.bucket]}var ChartBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}by(e){let[t,n]=groupBy(e);return this.with({by:t,byBucket:n})}by2(e){let[t,n]=groupBy(e);return this.with({by2:t,by2Bucket:n})}kind(e){return this.with({kind:e})}bar(){return this.kind(`bar`)}horizontalBar(){return this.kind(`horizontal_bar`)}line(){return this.kind(`line`)}area(){return this.kind(`area`)}donut(){return this.kind(`donut`)}funnel(){return this.kind(`funnel`)}treemap(){return this.kind(`treemap`)}calendar(){return this.kind(`calendar`)}},ChartQuery=class extends Measures{constructor(e){super(),this.query=e}measured(e,t){return new ChartBuilder(S,checkInputs(S,{...measure(this.query,e,t),kind:`bar`}))}};const vd={"7d":7,"30d":30};var AgendaBuilder=class extends BlockContentBuilder{label(e){return this.with({label:e})}next(e){let t=typeof e==`number`?e:vd[e];if(!Number.isInteger(t)||t<1){let e=`An agenda looks ahead a whole number of days, at least 1`;throw new P(e,[{path:[`content`,`parameters`,`next`],message:e}])}return this.with({next:t})}yearly(){return this.with({yearly:!0})}},CardBuilder=class extends BlockContentBuilder{fields(...e){return this.with({fields:e})}record(e){return this.with({record:e})}},DecisionsBuilder=class extends BlockContentBuilder{kinds(...e){return this.with({kinds:e})}limit(e){return this.with({limit:e})}},MeetingsUpcomingBuilder=class extends BlockContentBuilder{limit(e){return this.with({limit:e})}},MailboxBuilder=class extends BlockContentBuilder{category(e){return this.with({category:e})}important(){return this.with({important:!0})}unread(){return this.with({unread:!0})}limit(e){return this.with({limit:e})}label(e){return this.with({label:e})}};function metric(e){return new MetricQuery(storedQuery(e,`metric`))}function chart(e){return new ChartQuery(storedQuery(e,`chart`))}function agenda(e,t){return new AgendaBuilder(y,checkInputs(y,{query:storedQuery(e,`agenda`),attribute:t}))}function card(e){let t=e===void 0||typeof e==`string`?e:e.build().name;return new CardBuilder(x,t===void 0?{}:checkInputs(x,{object:t}))}function text$1(e){return new BlockContentBuilder(At,checkInputs(At,{markdown:e}))}function decisions(){return new DecisionsBuilder(ot,{})}function meetingsUpcoming(){return new MeetingsUpcomingBuilder(ht,{})}function mailbox(){return new MailboxBuilder(pt,{})}function isSpanned(e){return typeof e==`object`&&!!e&&`span`in e&&`content`in e}function total(e){return e.reduce((e,t)=>e+t,0)}function spread(e){return e.length===0?0:Math.max(...e)-Math.min(...e)}function betterSplit(e,t){let n=total(e)-total(t);if(n!==0)return n>0;let r=spread(t)-spread(e);if(r!==0)return r>0;let i=e.findIndex((e,n)=>e!==t[n]);return i!==-1&&(e[i]??0)>(t[i]??0)}function splitColumns(e,t){let n=[...t];function visit(r,i){let a=t[r.length];if(a===void 0){betterSplit(r,n)&&(n=r);return}for(let t of b)t>=a&&i+t<=e&&visit([...r,t],i+t)}return visit([],0),n}function rowWidths(e,t){let n=e.filter(e=>e.span===void 0);n.length>4&&reject(t,`A row holds at most 4 unsized blocks`);let r=total(e.map(e=>e.span??e.minWidth));r>12&&reject(t,`Blocks ${e.map(e=>`"${e.key}"`).join(`, `)} do not fit one row: they need at least ${r} of 12 columns`);let i=splitColumns(12-total(e.map(e=>e.span??0)),n.map(e=>e.minWidth)),a=0;return e.map(e=>{if(e.span!==void 0)return e.span;let t=i[a]??e.minWidth;return a+=1,t})}function reject(e,t){throw new P(t,[{path:e,message:t}])}function traitsOf(e,t=[]){return er(e,qt,new Map(t.map(e=>[e.name,e])))}function headingNames(e){let t=new Set(e.flatMap(e=>e.kind===`heading`?e.meta.name===void 0?[]:[e.meta.name]:[...Object.keys(e.blocks),...e.group?.name===void 0?[]:[e.group.name]]));return e.flatMap(e=>{if(e.kind!==`heading`)return[];if(e.meta.name!==void 0)return[e.meta.name];let n=nameSlug(e.title,40),r=n===``?`heading`:`heading_${n}`,i=r;for(let e=2;t.has(i);e+=1)i=`${r}_${e}`;return t.add(i),[i]})}function headingEntry(e,t,n){let r={title:t,...n.description===void 0?{}:{description:n.description},...n.icon===void 0?{}:{icon:n.icon}};return{key:e,content:new BlockContentBuilder(ut,r),span:12}}function groupOf(e,t,n){let[r]=e.map(e=>e.name).sort(),i=On(e.length);return(i!==void 0||r===void 0)&&reject(n,String(i)),{type:`group`,name:t.name??`group_${r}`,placement:`grid`,...t.label===void 0?{}:{label:t.label},members:e.map(e=>e.name)}}function requirePlacement(e,t,n,r,i){if(e.type===`page`&&reject(i,`Content "${n}" cannot reference a page from a page`),Tr(e,t,n,r,i),e.type!==`custom`)return;let a=t?.refine?.(e.parameters??{},r);a&&reject([...i,`parameters`,a.input],a.message)}var yd=class PageBuilder{constructor(e){this.kind=`view`,this.data=e}icon(e){return new PageBuilder({...this.data,icon:e})}description(e){return new PageBuilder({...this.data,description:e})}home(){return new PageBuilder({...this.data,home:!0})}for(e){let t=typeof e==`string`?e:e.build().name;return new PageBuilder({...this.data,object:t})}row(e,t={}){let n=t.group===void 0?{kind:`row`,blocks:e}:{kind:`row`,blocks:e,group:t.group};return new PageBuilder({...this.data,sections:[...this.data.sections,n]})}heading(e,t={}){let n={kind:`heading`,title:e,meta:t};return new PageBuilder({...this.data,sections:[...this.data.sections,n]})}build(){let e=[`views`,`0`],{name:t,label:n,object:r,icon:i,description:a,home:o,sections:s}=this.data;requireBuilderName(t,[...e,`name`]),r!==void 0&&requireBuilderName(r,[...e,`object`]),o&&r!==void 0&&reject([...e,`home`],`Only a standalone page can be the home`),s.every(e=>e.kind===`row`&&Object.keys(e.blocks).length===0)&&reject([...e,`contents`],`A page declares at least one block`);let c=r===void 0?`page`:`record`,l=[],u=[],d=headingNames(s),f=0;for(let t of s){let n=[...e,`contents`,String(l.length)],r=(t.kind===`heading`?[headingEntry(d[f++]??``,t.title,t.meta)]:Object.entries(t.blocks).map(([e,t])=>isSpanned(t)?{key:e,content:t.content,span:t.span}:{key:e,content:t,span:void 0})).map(t=>{let n=[...e,`contents`,String(l.length)];requireBuilderName(t.key,[...n,`name`]);let{configuration:r,extension:i}=configureContent(t.content,n);requirePlacement(r,i,t.key,c,n);let a={...r,name:t.key,placement:`grid`};return l.push(a),{content:a,span:t.span}}),i=rowWidths(r.map(({content:e,span:t})=>({key:e.name,...t===void 0?{}:{span:t},minWidth:traitsOf(e).minWidth})),n),a=u.reduce((e,t)=>Math.max(e,t.y+t.h),0);if(t.kind===`row`&&t.group!==void 0){let e=groupOf(r.map(({content:e})=>e),t.group,n);l.push(e),u.push({i:e.name,x:0,y:a,w:12,h:traitsOf(e,l).size.h});continue}let o=0;r.forEach(({content:e},t)=>{let n=i[t]??0;u.push({i:e.name,x:o,y:a,w:n,h:traitsOf(e).size.h}),o+=n})}let p=Object.fromEntries(packLayout(u).map(({i:e,x:t,y:n,w:r,h:i})=>[e,{x:t,y:n,w:r,h:i}])),m={name:t,label:n,...r===void 0?{}:{object:r},context:`page`,...i===void 0?{}:{icon:i},...a===void 0?{}:{description:a},...o?{home:!0}:{},contents:l,grid:p},ee=T.safeParse(m);if(!ee.success)throw P.fromZodErrors(ee.error.issues.map(t=>({path:[...e,...t.path.map(String)],message:t.message})));return{kind:`view`,definition:cloneBuilderValue(m,e)}}};function page(e,t){return new yd({name:e,label:t,object:void 0,sections:[]})}var Y=class ViewBuilder{constructor(e,t=[]){this.kind=`view`,this.data=cloneBuilderValue(e,[`views`,`0`]),this.extensions=t.map(e=>e&&{...e})}for(e){let t=typeof e==`string`?e:e.build().name;return new ViewBuilder({...this.data,object:t},this.extensions)}default(){return new ViewBuilder({...this.data,default:!0},this.extensions)}description(e){return new ViewBuilder({...this.data,description:e},this.extensions)}icon(e){return new ViewBuilder({...this.data,icon:e},this.extensions)}place(e,t,n,r,i){let{configuration:a,extension:o}=configureContent(n,[`views`,`0`,`contents`,String(this.data.contents.length)]),s={...a,name:e,label:t,placement:r},c=[...this.data.contents,s],l=i===void 0?{}:{anchors:{...this.data.anchors,[e]:{after:i}}};return new ViewBuilder({...this.data,...l,contents:c},[...this.extensions,o])}tab(e,t,n,r){return this.place(e,t,n,`main`,r?.after)}aside(e,t,n){return this.place(e,t,n,`aside`)}build(){let e=[`views`,`0`];requireBuilderName(this.data.name,[...e,`name`]),requireBuilderName(this.data.object,[...e,`object`]);let t=T.safeParse(this.data);if(!t.success)throw P.fromZodErrors(t.error.issues.map(t=>({path:[...e,...t.path.map(String)],message:t.message})));return this.data.contents.forEach((t,n)=>{let r=[...e,`contents`,String(n)];requireBuilderName(t.name,[...r,`name`]),t.type===`form`&&t.groups.forEach((e,t)=>requireBuilderName(e.name,[...r,`groups`,String(t),`name`])),Tr(t,this.extensions[n],t.name,this.data.context,r)}),{kind:`view`,definition:cloneBuilderValue(this.data,e)}}};function detailView(e,t){return new Y({name:e,label:t,object:void 0,context:`record`,contents:[]})}function listView(e,t){return new Y({name:e,label:t,object:void 0,context:`collection`,contents:[]})}function isViewPiece(e){return`kind`in e&&e.kind===`view`}function isObjectPiece(e){return!(isViewPiece(e)||e instanceof F)}function assertPiece(e,t){if(typeof e!=`object`||!e)throw new P(`Unsupported bundle piece: ${t}`,[]);if(isViewPiece(e)||e instanceof F||typeof e.build==`function`)return;let n=e.name;throw new P(`Unsupported bundle piece: ${typeof n==`string`?n:String(t)}`,[])}function declarationOf$1(e){return e instanceof yd||e instanceof Y?e.build():e}function isPage(e){return e.definition.context===`page`}function validateView(e){let t=T.safeParse(e);if(t.success)return t.data;let n=typeof e==`object`&&e&&`name`in e?String(e.name):`(unnamed)`,r=P.fromZodErrors(t.error.issues.map(e=>({path:e.path.map(String),message:e.message})));throw new P(`View "${n}" is invalid. ${r.message}`,r.errors)}function identityOf(e){return`${e.object??``}:${e.name}`}function assertUniqueIdentities(e,t){let n=new Set;for(let r of t){let t=identityOf(r);if(n.has(t))throw new A(e,r.name);n.add(t)}}function byIdentity(e){return(t,n)=>{let r=identityOf(e(t)),i=identityOf(e(n));return r<i?-1:+(r>i)}}async function hashBundlePieces(e){return sha256Hex(I({objects:[...e.objects].sort(byIdentity(e=>({name:e.name}))),views:[...e.views].sort(byIdentity(e=>e)),pages:[...e.pages].sort(byIdentity(e=>e.definition)),agents:[...e.agents].sort(byIdentity(e=>({name:e.name})))}))}const bd={title:120,why:200,prompt:wa};function assertSetupWithinLimits(e){let t=Object.keys(bd).flatMap(t=>{let n=bd[t],r=e[t];return r!==void 0&&r.length>n?[{path:[`setup`,t],message:`Setup ${t} must be at most ${n} characters`}]:[]});if(t.length>0)throw new P(`Bundle setup is invalid`,t)}function assertSetup(e,t){e&&assertSetupWithinLimits(e);for(let e of Object.values(t))assertSetupWithinLimits({title:e[`setup.title`],why:e[`setup.why`],prompt:e[`setup.prompt`]})}function assertSkills(e){let t=new Set,n=e.flatMap(e=>{let n=skillProblem(e,t);return n===null?[]:[{path:[`skills`],message:n}]});if(n.length>0)throw new P(`Bundle skills are invalid`,n)}function skillProblem(e,t){let n;try{n=parseSkillSource(e)}catch(t){return t instanceof Error?t.message:`Invalid skill source "${e}"`}return n.owner!==q.owner||n.repo!==q.repo?`Skill "${e}" must come from ${q.owner}/${q.repo}`:n.ref===null?t.has(n.skill)?`Skill "${e}" is declared twice`:(t.add(n.skill),null):`Skill "${e}" cannot pin a ref`}async function builtBundleFromPieces(e){let t=e.name===_d;t||assertBundleName(e.name);let{objects:n,pages:r,agents:i}=e,a=e.views.map(validateView),o=n.map(e=>e.name);if(assertUniqueIdentities(`object`,o.map(e=>({name:e}))),assertUniqueIdentities(`view`,a),assertUniqueIdentities(`page`,r.map(e=>e.definition)),assertUniqueIdentities(`agent`,i.map(e=>({name:e.name}))),!t){let e=o.find(v);if(e!==void 0)throw new j(e,`bundle`)}let{setup:s}=e,c=e.translations??{};assertSetup(s,c);let l=e.skills??[];return assertSkills(l),{name:e.name,label:e.label.trim(),description:e.description??null,hash:await hashBundlePieces({objects:n,views:a,pages:r,agents:i}),objects:n,views:a,pages:r,agents:i,uses:e.uses??[],samples:e.samples??[],...s?{setup:s}:{},...l.length>0?{skills:l}:{},translations:c}}const xd=Symbol.for(`standards.bundle`);function isBundle(e){return typeof e==`object`&&!!e&&e[xd]===!0}var BundleBuilder=class{constructor(e,t){this[xd]=!0,this.pieces=[],this.used=[],this.descriptionText=null,this.sampleRecords=[],this.skillSources=[],this.translationTables={},this.built=null,assertBundleName(e),this.name=e,this.label=t,this.objectBuilders=[]}description(e){return this.descriptionText=e,this.changed()}add(...e){return this.pieces.push(...e),this.objectBuilders.push(...e.filter(isObjectPiece)),this.changed(),this}uses(...e){return this.used.push(...e),this.changed()}samples(e){return this.sampleRecords=e,this.changed()}setup(e){return this.setupInvitation=e,this.changed()}skills(...e){return this.skillSources=[...this.skillSources,...e],this.changed()}translations(e,t){return this.translationTables[e]=t,this.changed()}build(){return this.built??=this.assemble(),this.built}changed(){return this.built=null,this}async assemble(){let e=[],t=[],n=[],r=[];for(let[i,a]of this.pieces.entries())if(assertPiece(a,i),a instanceof F)r.push(a.build());else if(isViewPiece(a)){let e=declarationOf$1(a);isPage(e)?n.push(e):t.push(e.definition)}else e.push(a.build());return this.assertNotInUsed(e),builtBundleFromPieces({name:this.name,label:this.label,description:this.descriptionText,objects:e,views:t,pages:n,agents:r,uses:this.used.map(e=>e.name),samples:this.sampleRecords,...this.setupInvitation?{setup:this.setupInvitation}:{},skills:this.skillSources,translations:{...this.translationTables}})}assertNotInUsed(e){let t=new Map,n=new Set([this]),visit=e=>{if(!n.has(e)){n.add(e);for(let n of e.objectBuilders){let r=n.build().name;t.has(r)||t.set(r,e.name)}for(let t of e.used)visit(t)}};for(let e of this.used)visit(e);for(let{name:n}of e){let e=t.get(n);if(e!==void 0)throw new A(`object`,n,`Object "${n}" is declared by bundle "${this.name}" and by its used bundle "${e}"`)}}};function bundle(e,t){return new BundleBuilder(e,t)}function readOnlyOption(e){return e?.readOnly===void 0?{}:{readOnly:e.readOnly}}function buildFreeFieldRef(e,t){return{type:`free`,attribute:e.build(),label:t?.label,required:t?.required,prefillExpression:t?.prefillExpression,...readOnlyOption(t)}}function buildSlotFieldRef(e,t,n){let[r,...i]=Array.isArray(e)?e:[e];return{type:`slot`,slotId:r,additionalSlotIds:i.length>0?i:void 0,attribute:t,label:n?.label,required:n?.required,tooltip:n?.tooltip,...readOnlyOption(n)}}const Sd=L.boolean().optional();var FormRowBuilder=class{constructor(e,t,n){this._finalized=!1,this.stepBuilder=e,this.rowData={id:t,order:n,type:`fields`,fields:[]}}field(e,t,n){return this.rowData.fields.push(buildSlotFieldRef(e,t,n)),this}freeField(e,t){return this.rowData.fields.push(buildFreeFieldRef(e,t)),this}row(e){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).row(e)}heading(e,t){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).heading(e,t)}separator(){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).separator()}text(e){return this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData).text(e)}endRow(){return this._finalized?this.stepBuilder:(this._finalized=!0,this.stepBuilder._finalizeRow(this.rowData))}},FormStepBuilder=class{constructor(e,t,n){this.rowOrder=0,this.formBuilder=e,this.stepData={id:t,label:n,rows:[]}}description(e){return this.stepData.description=e,this}field(e,t,n){this.rowOrder++;let r=`row-${this.stepData.id}-${this.rowOrder}`,i=buildSlotFieldRef(e,t,n),a={id:r,order:this.rowOrder,type:`fields`,fields:[i]};return this.stepData.rows.push(a),this}freeField(e,t){this.rowOrder++;let n=`row-${this.stepData.id}-${this.rowOrder}`,r=buildFreeFieldRef(e,t),i={id:n,order:this.rowOrder,type:`fields`,fields:[r]};return this.stepData.rows.push(i),this}row(e){return this.rowOrder++,new FormRowBuilder(this,e,this.rowOrder)}heading(e,t){this.rowOrder++;let n={id:`heading-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`heading`,content:e,level:t};return this.stepData.rows.push(n),this}separator(){this.rowOrder++;let e={id:`sep-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`separator`};return this.stepData.rows.push(e),this}text(e){this.rowOrder++;let t={id:`text-${this.stepData.id}-${this.rowOrder}`,order:this.rowOrder,type:`text`,content:e};return this.stepData.rows.push(t),this}step(e,t){return this.formBuilder._finalizeStep(this.stepData).step(e,t)}build(){return this.formBuilder._finalizeStep(this.stepData).build()}_finalizeRow(e){return e.fields.length>0&&this.stepData.rows.push(e),this}_getData(){return this.stepData}},FormBuilder=class{constructor(e,t){this.data={slots:[],steps:[],status:`draft`,version:1},this.validateName(e),this.data.name=e,this.data.label=t}description(e){return this.data.description=e,this}icon(e){return this.data.icon=e,this}status(e){return this.data.status=e,this}metadata(e){return this.data.metadata=e,this}slot(e,t,n){if(this.data.slots.some(t=>t.id===e))throw Error(`[FormBuilder] Duplicate slot id: "${e}"`);let r={id:e,objectName:t,label:n.label,mode:n.mode??`create`,color:n.color,icon:n.icon};return this.data.slots.push(r),this}step(e,t){if(this.data.steps.some(t=>t.id===e))throw Error(`[FormBuilder] Duplicate step id: "${e}"`);return new FormStepBuilder(this,e,t)}build(){return this.validateRequiredData(),this.validateSlotReferences(),this.validateFreeFields(),this.validatePrefillExpressions(),this.validateReadOnly(),this.data}_finalizeStep(e){return this.data.steps.push(e),this}validateName(e){let t=L.string().min(1,`Form name cannot be empty`).max(63,`Form name is too long (max 63 characters)`).regex(/^[a-z0-9]+(-[a-z0-9]+)*$/,{message:`Invalid form name format. Name must be in kebab-case: 'client-onboarding', 'contact-creation'`});try{t.parse(e)}catch(e){throw e instanceof L.ZodError?Error(`[FormBuilder] ${e.issues[0].message}`):e}}validateRequiredData(){if(this.data.slots.length===0)throw Error(`[FormBuilder] At least one slot is required. Use .slot() to add slots.`);if(this.data.steps.length===0)throw Error(`[FormBuilder] At least one step is required. Use .step() to add steps.`)}validateSlotReferences(){let e=new Map(this.data.slots.map(e=>[e.id,e.objectName]));for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n))for(let r of n.fields){if(r.type!==`slot`)continue;let n=getSlotFieldTargets(r);for(let r of n)if(!e.has(r))throw Error(`[FormBuilder] Step "${t.id}" references unknown slot "${r}". Declare it with .slot("${r}", ...) first.`);let i=new Set(n.map(t=>e.get(t)));if(i.size>1)throw Error(`[FormBuilder] Step "${t.id}" field on attribute "${r.attribute}" targets slots of different objects (${[...i].join(`, `)}). A multi-slot field must target slots of the same object.`)}}validatePrefillExpressions(){let e=[...V,`join`,`where`];for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n))for(let r of n.fields){if(!isFormFreeFieldRef(r)||!r.prefillExpression)continue;let n=r.prefillExpression,i=`prefillExpression on free field "${r.attribute.name}" in step "${t.id}"`;if(!isLabelExpression(n))throw Error(`[FormBuilder] ${i} must contain at least one {{ attribute }} interpolation.`);if(/\{\{\s*\}\}/.test(n))throw Error(`[FormBuilder] ${i} contains empty {{ }} interpolation.`);for(let a of n.matchAll(/(?<!\|)\|(?!\|)\s*(\w+)(?:\s*:[^|}]*)?/g)){let n=a[1];if(!e.includes(n))throw Error(`[FormBuilder] ${i} uses invalid pipe "${n}". Valid pipes: ${e.join(`, `)}`);let o=a[0].replace(/^\|/,``);if(isWherePipe(o)&&!parseWherePipe(o))throw new P(`[FormBuilder] ${i} has a malformed where: pipe "${o.trim()}". Write where:property=value or where:property in (a,b).`,[{path:[t.id,r.attribute.name,`prefillExpression`],message:`Malformed where: pipe`}])}}}validateReadOnly(){for(let e of this.data.steps)for(let t of e.rows)if(isFormFieldsRow(t))for(let n of t.fields){if(Sd.safeParse(n.readOnly).success)continue;let t=isFormFreeFieldRef(n)?n.attribute.name:n.attribute,r=isFormFreeFieldRef(n)?`free field`:`field`;throw new P(`[FormBuilder] readOnly on ${r} "${t}" in step "${e.id}" must be a boolean.`,[{path:[e.id,t,`readOnly`],message:`Expected a boolean`}])}}validateFreeFields(){let e=new Set(z);for(let t of this.data.steps)for(let n of t.rows)if(isFormFieldsRow(n)){for(let r of n.fields)if(isFormFreeFieldRef(r)){let n=r.attribute.type;if(e.has(n))throw Error(`[FormBuilder] Free field in step "${t.id}" uses forbidden attribute type "${n}". Forbidden types: ${z.join(`, `)}`)}}}};function form(e,t){return new FormBuilder(e,t)}const Cd=`box`,wd=[`circle`,`square`],Td=[`upload`,`website`,`name`,`email`];function isImageSource(e){return Td.some(t=>t===e)}const Ed={object:[`icon`,`color`],record:[`icon`,`image`],emailCategory:[`icon`,`color`],option:[`color`],view:[`icon`],agent:[`color`],user:[`image`]};function imageFileIdOf(e){return`image`in e?e.image?.fileId:`imageFileId`in e?e.imageFileId:void 0}function resolveAppearance(e,t){let n=imageFileIdOf(e);if(n)return{kind:`image`,imageFileId:n,shape:t?.image?.shape??`square`};let r=t?.name??e.name,i=e.color??t?.color??(r?eu(r):void 0),a=e.icon??t?.icon??`box`;return i?{kind:`tile`,icon:a,color:i}:{kind:`glyph`,icon:a}}const Dd=L.object({shape:L.enum(wd),from:L.array(L.string().refine(e=>e.trim().length>0,`Must not be blank`)).optional()}).strict();function imageLookupKindOf(e){return e.type===`text`?e.format===`url`?`website`:e.format===`email`?`email`:`name`:null}function validateObjectImage(e){let t=e.image?.from;if(t===void 0)return;let refuse=(t,n)=>{throw new P(`Object "${e.name}": ${t}`,[{path:n===void 0?[`image`,`from`]:[`image`,`from`,String(n)],message:t}])};t.length===0&&refuse(`image.from must name at least one attribute`);let n=new Map((e.attributes??[]).map(e=>[e.name,e])),r=new Set;for(let[e,i]of t.entries()){r.has(i)&&refuse(`image.from names "${i}" twice`,e),r.add(i);let t=n.get(i);t?imageLookupKindOf(t)===null&&refuse(`image.from names "${i}", a ${t.type} attribute: only text attributes can locate an image`,e):refuse(`image.from names "${i}", which is not one of its attributes`,e)}}function validateObjectExpressions(e){let{name:t,labelExpression:n,embeddingExpression:r}=e;if(!n)throw new M(`Object "${t}" must have a labelExpression. The labelExpression defines how records are displayed in lists and relations (e.g. "{{ name }}").`,N.VALIDATION_FAILED);let i=H.safeParse(n);if(!i.success){let e=i.error.issues[0]?.message??`Invalid labelExpression`;throw new M(`Invalid labelExpression for "${t}": ${e}`,N.VALIDATION_FAILED)}if(r!==void 0){let e=H.safeParse(r);if(!e.success){let n=e.error.issues[0]?.message??`Invalid embeddingExpression`;throw new M(`Invalid embeddingExpression for "${t}": ${n}`,N.VALIDATION_FAILED)}}}var ObjectBuilder=class{get"~standard"(){return createStandardSchemaProps(Qt(this.build()))}constructor(e,t){this._sealed=!1,this._toleratedAttributes=[],this.validateName(e),this.obj={name:e,label:t,attributes:[],system:!0}}id(e){return this.obj.id=e,this}description(e){return this.obj.description=e,this}pluralLabel(e){return this._pluralLabel=e,this}icon(e){return this.obj.icon=e,this}color(e){return this.obj.color=e,this}image(e={}){return this.obj.image={shape:e.shape??`square`,...e.from===void 0?{}:{from:[...e.from]}},this}runtime(){return this.obj.system=!1,this}sealed(){return this._sealed=!0,this}tolerate(e){return this._toleratedAttributes=[...this._toleratedAttributes,...e],this}attribute(e){return this.pushAttributes([e]),this}attributes(e){return this.pushAttributes(e),this}pushAttributes(e){let t=e.map(e=>`build`in e&&typeof e.build==`function`?e.build():e);Oe([...this.obj.attributes,...t],e=>e.name,e=>new A(`attribute`,e,`Object "${this.obj.name}": duplicate attribute name "${e}"`)),this.obj.attributes.push(...t)}metadata(e){return this.obj.metadata={...this.obj.metadata,...e},this}order(e){return this.obj.metadata={...this.obj.metadata,order:e},this}hidden(){return this.obj.metadata={...this.obj.metadata,hidden:!0},this}labelExpression(e){return this._labelExpression=e,this}embeddingExpression(e){return this._embeddingExpression=e,this}documentLayout(e){if(e.presets)for(let t of e.presets)validatePresetStructure(t.id,t.structure,1);return this.obj.documentLayout=e,this}hierarchical(){return this.obj.hierarchical=!0,this}build(){if(!this.obj.name)throw new P(`[ObjectBuilder] Missing required field: name`,[{path:[`name`],message:`name is required`}]);if(!this.obj.label)throw new P(`[ObjectBuilder] Missing required field: label`,[{path:[`label`],message:`label is required`}]);return validateObjectExpressions({name:this.obj.name,labelExpression:this._labelExpression,embeddingExpression:this._embeddingExpression}),validateObjectImage({name:this.obj.name,image:this.obj.image,attributes:this.obj.attributes}),{...this.obj,pluralLabel:this._pluralLabel,labelExpression:this._labelExpression,embeddingExpression:this._embeddingExpression,sealed:this._sealed,toleratedAttributes:this._toleratedAttributes}}validateName(e){e!==void 0&&Je(e)}};function object(e,t){if(v(e))throw new j(e,`builder`);return new ObjectBuilder(e,t)}function validatePresetStructure(e,t,n){let fail=(t,n)=>{throw new P(t,[{path:[`documentLayout`,`presets`,e],message:n}])};n>5&&fail(`Preset structure exceeds max depth of 5`,`Preset structure too deep`);let r=new Set;for(let i of t){let t=i.title.trim();t.length===0&&fail(`Folder preset node title is required`,`Empty folder title`),t.includes(`/`)&&fail(`Folder preset node title cannot contain /`,`Folder title contains /: "${t}"`),r.has(t)&&fail(`Folder preset sibling titles must be unique`,`Duplicate folder title: "${t}"`),r.add(t),i.children&&i.children.length>0&&validatePresetStructure(e,i.children,n+1)}}function relationProperty(e){return requireBuilderName(e,[`relationProperty`]),{relationProperty:e}}var X=class ContentBuilder{constructor(e,t){this.data=cloneBuilderValue(e,[`content`]),this.extension=t===void 0?void 0:Object.freeze({name:t.name,contexts:t.contexts,parameters:t.parameters,refine:t.refine})}set(e){return new ContentBuilder({...this.data,...e},this.extension)}icon(e){return this.set({icon:e})}object(e){return this.set({objectName:e})}layout(e){let{layout:t,groupByAttribute:n,columnSizing:r,kanbanColumnOrder:i,kanbanColumnVisibility:a,kanbanPinnedColumns:o,...s}={...this.data,layout:void 0,groupByAttribute:void 0,columnSizing:void 0,kanbanColumnOrder:void 0,kanbanColumnVisibility:void 0,kanbanPinnedColumns:void 0};return new ContentBuilder({...s,...e},this.extension)}table(){return this.layout({layout:`table`})}list(){return this.layout({layout:`list`})}kanban(e){return this.layout({layout:`kanban`,groupByAttribute:e})}columns(...e){return this.set({columns:e})}actions(...e){return this.set({actions:e})}openMode(e){return this.set({openMode:e})}createMode(e){return this.set({createMode:e})}visibility(e){return this.set({visibility:e})}descriptionAttribute(e){return this.set({descriptionAttribute:e})}displayAttributes(...e){return this.set({displayAttributes:e})}columnSizing(e){return this.set({columnSizing:e})}kanbanColumnOrder(...e){return this.set({kanbanColumnOrder:e})}kanbanColumnVisibility(e){return this.set({kanbanColumnVisibility:e})}kanbanPinnedColumns(...e){return this.set({kanbanPinnedColumns:e})}formColumns(e){return this.set({formColumns:e})}density(e){return this.set({density:e})}titleAttribute(e){return this.set({titleAttribute:e})}allowUpload(e){return this.set({allowUpload:e})}allowRemove(e){return this.set({allowRemove:e})}hideAttachments(e){return this.set({hideAttachments:e})}relations(...e){return this.set({relations:e})}span(e){return spanContent(this,e)}height(e){return this.set({height:e})}build(){let e=validateLiteralContent(this.data,[`content`]);return this.extension&&e.type===`custom`&&O(this.extension,e.parameters,[`content`,`parameters`]),e}},Od=class GroupBuilder{constructor(e,t,n,r={}){this.data=cloneBuilderValue({name:e,label:t,fields:n,...r},[`group`])}field(e,t){let{name:n,label:r,fields:i,...a}=this.data;return new GroupBuilder(n,r,[...i,{attribute:e,...t}],a)}fields(...e){let{name:t,label:n,fields:r,...i}=this.data;return new GroupBuilder(t,n,[...r,...e.map(e=>({attribute:e}))],i)}description(e){return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...this.presentation(),description:e})}collapsible(e=!1){return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...this.presentation(),collapsible:!0,collapsed:e})}alwaysOpen(){let{collapsed:e,...t}=this.presentation();return new GroupBuilder(this.data.name,this.data.label,this.data.fields,{...t,collapsible:!1})}presentation(){let{name:e,label:t,fields:n,...r}=this.data;return r}build(){requireBuilderName(this.data.name,[`group`,`name`]);try{validateLiteralContent({type:`form`,groups:[this.data]},[`group`])}catch(e){throw e instanceof P?new P(e.message,e.errors.map(e=>({...e,path:e.path[1]===`groups`?[`group`,...e.path.slice(3)]:e.path}))):e}return cloneBuilderValue(this.data,[`group`])}};function group(e,t){return new Od(e,t,[])}function collection(e){return new X({type:`collection`,...storedQuery(e,`collection`)})}function form$1(...e){return new X({type:`form`,groups:e.map(e=>`build`in e?e.build():e)})}function activity(){return new X({type:`activity`})}function richtext$1(e){return new X({type:`richtext`,attribute:e})}function documents(){return new X({type:`documents`})}function forms(){return new X({type:`forms`})}function emails(...e){return new X({type:`emails`,emailAttributes:e})}function meetings(...e){return new X({type:`meetings`,emailAttributes:e})}function custom(e,t){if(typeof e!=`object`||!e||typeof e.name!=`string`)throw new P(`Expected registered extension declaration`,[{path:[`content`,`extension`],message:`Expected registered extension declaration`}]);let n=validateContentConfiguration({type:`custom`,extension:e.name,parameters:t},[`content`]);if(n.type!==`custom`)throw new P(`Expected custom content`,[]);let r=new X({...n,extension:e.name},e);return r.build(),r}function recordLinksTab(){return[w.name,w.label,custom(St,{}).icon(w.icon)]}function page$1(e){let{object:t,name:n}=e.definition;if(typeof t!=`string`){let e=`Page "${n}" is standalone; a record tab renders a record page (\`page(...).for(object)\`)`;throw new P(e,[{path:[`content`,`page`,`object`],message:e}])}return new X({type:`page`,page:{object:t,name:n}})}const kd={collection,metric,chart,agenda,card,text:text$1,decisions,meetingsUpcoming,mailbox,page:page$1,form:form$1,activity,richtext:richtext$1,documents,forms,emails,meetings,custom};function contentDefinition(e,t){if(t.suppressed)return null;let n=t.workspaceDefinition??t.sourceDefinition;return n===null?null:{...structuredClone(n),name:e}}function storedContentDefinition(e){let{name:t,...n}=e;return structuredClone(n)}function workspaceViewAuthoring(e,t={}){let n={main:0,aside:0};return{origin:`runtime`,mainOrderCustomized:!1,asideOrderCustomized:!1,gridCustomized:Object.keys(t).length>0,homeCustomized:!1,contents:Object.fromEntries(e.map(e=>[e.name,{sourceDefinition:null,workspaceDefinition:storedContentDefinition(e),suppressed:!1,sourcePosition:null,workspacePosition:e.placement===`grid`?null:n[e.placement]++,sourceGrid:null,workspaceGrid:t[e.name]??null}]))}}function byKind(e,t){let rank=e=>Number(e.definition.type===`group`);return rank(e)-rank(t)||e.name.localeCompare(t.name)}function inReadingOrder(e){return(t,n)=>{let r=e(t.name),i=e(n.name);return r===null||i===null?r===i?byKind(t,n):r?-1:1:r.y-i.y||r.x-i.x||byKind(t,n)}}function overLimit(e,t){let n=new Set;if(e.length<=g.tabsPerView)return n;let r=new Map(e.map(e=>[e.name,e])),i=new Map;for(let{name:t,definition:n}of e)if(n.type===`group`)for(let e of n.members)i.has(e)||i.set(e,t);let cellOf=e=>{let n=r.get(e),a=n?t(n.state):null;if(a!==null)return a;let o=r.get(i.get(e)??``);return o?t(o.state):null},a=e.filter(e=>e.state.sourceDefinition===null).sort(inReadingOrder(cellOf)).reverse();for(let t of a){if(e.length-n.size<=g.tabsPerView)break;if(n.has(t.name))continue;let i=t.definition.type===`group`?t.definition.members.flatMap(e=>{let t=r.get(e);return t&&t.definition.type!==`group`?[t]:[]}):[];if(!i.some(e=>e.state.sourceDefinition!==null))for(let e of[t,...i])n.add(e.name)}return n}function resolvePageGrid(e,t={}){let rawCell=t=>e.gridCustomized||t.sourceDefinition===null?t.workspaceGrid:t.sourceGrid,n=Object.entries(e.contents).flatMap(([e,t])=>{let n=contentDefinition(e,t);return n?[{name:e,state:t,definition:n}]:[]}),r=D(n.map(e=>e.definition)),i=n.filter(e=>!r.has(e.name)).sort((e,t)=>e.name.localeCompare(t.name)),a=overLimit(i,rawCell),o=i.filter(e=>!a.has(e.name)),s=new Map(o.map(e=>[e.name,e.definition])),c=t.traitsOf??ur(s,qt),l=kn([...s.values()]),u=o.filter(e=>!l.has(e.name)),d={},f=[],place=(e,t)=>{t&&!Object.values(d).some(e=>lr(t,e))?d[e]={...t}:f.push(e)};if(e.gridCustomized)for(let{name:e,state:t}of u)place(e,t.workspaceGrid);else{for(let{name:e,state:t}of u)t.sourceDefinition!==null&&place(e,t.sourceGrid);for(let{name:e,state:t}of u)t.sourceDefinition===null&&place(e,t.workspaceGrid)}let p=Math.max(0,...Object.values(d).map(e=>e.y+e.h));for(let t of f.sort()){let n=e.contents[t],{w:r,h:i}=n.workspaceGrid??n.sourceGrid??c(t).size;d[t]={x:0,y:p,w:r,h:i},p+=i}let m=repairPageGrid(Object.entries(d).map(([e,n])=>({i:e,...n,...t.statics?.has(e)?{static:!0}:{}})),c);return{grid:Object.fromEntries(m.cells.map(({i:e,x:t,y:n,w:r,h:i})=>[e,{x:t,y:n,w:r,h:i}])),repairs:[...[...a].map(e=>({name:e,kind:`dropped`})),...m.repairs]}}function droppedContents(e){return new Set(e.flatMap(e=>e.kind===`dropped`?[e.name]:[]))}function resolveViewContents(e){let t=Object.entries(e.contents).flatMap(([e,t])=>{let n=contentDefinition(e,t);return n?[{definition:n,...t}]:[]}),n=[`main`,`aside`].flatMap(n=>{let r=n===`main`?e.mainOrderCustomized:e.asideOrderCustomized;return t.filter(e=>e.definition.placement===n).sort((e,t)=>{let n=r?e.workspacePosition:e.sourcePosition,i=r?t.workspacePosition:t.sourcePosition;if(n!==null&&i!==null&&n!==i)return n-i;if(n!==null&&i===null)return-1;if(i!==null&&n===null)return 1;let a=e.sourcePosition??e.workspacePosition,o=t.sourcePosition??t.workspacePosition;return a!==null&&o!==null&&a!==o?a-o:a!==null&&o===null?-1:o!==null&&a===null?1:e.definition.name.localeCompare(t.definition.name)}).map(e=>e.definition)}),r=D(t.map(e=>e.definition)),i=t.filter(e=>e.definition.placement===`grid`&&!r.has(e.definition.name)).map(e=>e.definition).sort((e,t)=>e.name.localeCompare(t.name));return[...n,...i]}const Ad=[`record`,`document`,`file`,`email`,`thread`,`event`,`memory`,`skill`,`schema`,`user`,`guide`,`bundle`,`draft`,`decision`,`session`,`catalog`,`wake`],jd=new Set([`memory`,`schema`,`wake`]),Md=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function isReferenceKind(e){return Ad.includes(e)}function refuse$1(e,t){return{ok:!1,reason:e,expected:t}}function parseReference(e){let t=e.trim();if(Md.test(t))return refuse$1(`bare_uuid`,`record:<id>`);let n=t.indexOf(`:`);if(n===-1)return refuse$1(`malformed`,`<kind>:<id>`);let r=t.slice(0,n).toLowerCase();if(!isReferenceKind(r))return refuse$1(`unknown_kind`,`<kind>:<id> with kind one of ${Ad.join(`, `)}`);let i=t.slice(n+1).trim();return i===``?refuse$1(`malformed`,`${r}:<id>`):r===`record`&&i.includes(`:`)?refuse$1(`legacy_mention`,`record:${i.slice(i.lastIndexOf(`:`)+1)}`):i===`*`&&!jd.has(r)?refuse$1(`malformed`,`${r}:<id>`):{ok:!0,ref:{kind:r,id:i}}}function formatReference(e){return`${e.kind}:${e.id}`}function isWildcard(e){return e.id===`*`&&jd.has(e.kind)}let Nd;function unaccentRules(){if(Nd)return Nd;let e=new Map;for(let t of`
|
|
3
|
+
¡!
|
|
4
|
+
©(C)
|
|
5
|
+
«<<
|
|
6
|
+
-
|
|
7
|
+
®(R)
|
|
8
|
+
±+/-
|
|
9
|
+
»>>
|
|
10
|
+
¼1/4
|
|
11
|
+
½1/2
|
|
12
|
+
¾3/4
|
|
13
|
+
¿?
|
|
14
|
+
ÀA
|
|
15
|
+
ÁA
|
|
16
|
+
ÂA
|
|
17
|
+
ÃA
|
|
18
|
+
ÄA
|
|
19
|
+
ÅA
|
|
20
|
+
ÆAE
|
|
21
|
+
ÇC
|
|
22
|
+
ÈE
|
|
23
|
+
ÉE
|
|
24
|
+
ÊE
|
|
25
|
+
ËE
|
|
26
|
+
ÌI
|
|
27
|
+
ÍI
|
|
28
|
+
ÎI
|
|
29
|
+
ÏI
|
|
30
|
+
ÐD
|
|
31
|
+
ÑN
|
|
32
|
+
ÒO
|
|
33
|
+
ÓO
|
|
34
|
+
ÔO
|
|
35
|
+
ÕO
|
|
36
|
+
ÖO
|
|
37
|
+
×*
|
|
38
|
+
ØO
|
|
39
|
+
ÙU
|
|
40
|
+
ÚU
|
|
41
|
+
ÛU
|
|
42
|
+
ÜU
|
|
43
|
+
ÝY
|
|
44
|
+
ÞTH
|
|
45
|
+
ßss
|
|
46
|
+
àa
|
|
47
|
+
áa
|
|
48
|
+
âa
|
|
49
|
+
ãa
|
|
50
|
+
äa
|
|
51
|
+
åa
|
|
52
|
+
æae
|
|
53
|
+
çc
|
|
54
|
+
èe
|
|
55
|
+
ée
|
|
56
|
+
êe
|
|
57
|
+
ëe
|
|
58
|
+
ìi
|
|
59
|
+
íi
|
|
60
|
+
îi
|
|
61
|
+
ïi
|
|
62
|
+
ðd
|
|
63
|
+
ñn
|
|
64
|
+
òo
|
|
65
|
+
óo
|
|
66
|
+
ôo
|
|
67
|
+
õo
|
|
68
|
+
öo
|
|
69
|
+
÷/
|
|
70
|
+
øo
|
|
71
|
+
ùu
|
|
72
|
+
úu
|
|
73
|
+
ûu
|
|
74
|
+
üu
|
|
75
|
+
ýy
|
|
76
|
+
þth
|
|
77
|
+
ÿy
|
|
78
|
+
ĀA
|
|
79
|
+
āa
|
|
80
|
+
ĂA
|
|
81
|
+
ăa
|
|
82
|
+
ĄA
|
|
83
|
+
ąa
|
|
84
|
+
ĆC
|
|
85
|
+
ćc
|
|
86
|
+
ĈC
|
|
87
|
+
ĉc
|
|
88
|
+
ĊC
|
|
89
|
+
ċc
|
|
90
|
+
ČC
|
|
91
|
+
čc
|
|
92
|
+
ĎD
|
|
93
|
+
ďd
|
|
94
|
+
ĐD
|
|
95
|
+
đd
|
|
96
|
+
ĒE
|
|
97
|
+
ēe
|
|
98
|
+
ĔE
|
|
99
|
+
ĕe
|
|
100
|
+
ĖE
|
|
101
|
+
ėe
|
|
102
|
+
ĘE
|
|
103
|
+
ęe
|
|
104
|
+
ĚE
|
|
105
|
+
ěe
|
|
106
|
+
ĜG
|
|
107
|
+
ĝg
|
|
108
|
+
ĞG
|
|
109
|
+
ğg
|
|
110
|
+
ĠG
|
|
111
|
+
ġg
|
|
112
|
+
ĢG
|
|
113
|
+
ģg
|
|
114
|
+
ĤH
|
|
115
|
+
ĥh
|
|
116
|
+
ĦH
|
|
117
|
+
ħh
|
|
118
|
+
ĨI
|
|
119
|
+
ĩi
|
|
120
|
+
ĪI
|
|
121
|
+
īi
|
|
122
|
+
ĬI
|
|
123
|
+
ĭi
|
|
124
|
+
ĮI
|
|
125
|
+
įi
|
|
126
|
+
İI
|
|
127
|
+
ıi
|
|
128
|
+
IJIJ
|
|
129
|
+
ijij
|
|
130
|
+
ĴJ
|
|
131
|
+
ĵj
|
|
132
|
+
ĶK
|
|
133
|
+
ķk
|
|
134
|
+
ĸq
|
|
135
|
+
ĹL
|
|
136
|
+
ĺl
|
|
137
|
+
ĻL
|
|
138
|
+
ļl
|
|
139
|
+
ĽL
|
|
140
|
+
ľl
|
|
141
|
+
ĿL
|
|
142
|
+
ŀl
|
|
143
|
+
ŁL
|
|
144
|
+
łl
|
|
145
|
+
ŃN
|
|
146
|
+
ńn
|
|
147
|
+
ŅN
|
|
148
|
+
ņn
|
|
149
|
+
ŇN
|
|
150
|
+
ňn
|
|
151
|
+
ʼn'n
|
|
152
|
+
ŊN
|
|
153
|
+
ŋn
|
|
154
|
+
ŌO
|
|
155
|
+
ōo
|
|
156
|
+
ŎO
|
|
157
|
+
ŏo
|
|
158
|
+
ŐO
|
|
159
|
+
őo
|
|
160
|
+
ŒOE
|
|
161
|
+
œoe
|
|
162
|
+
ŔR
|
|
163
|
+
ŕr
|
|
164
|
+
ŖR
|
|
165
|
+
ŗr
|
|
166
|
+
ŘR
|
|
167
|
+
řr
|
|
168
|
+
ŚS
|
|
169
|
+
śs
|
|
170
|
+
ŜS
|
|
171
|
+
ŝs
|
|
172
|
+
ŞS
|
|
173
|
+
şs
|
|
174
|
+
ŠS
|
|
175
|
+
šs
|
|
176
|
+
ŢT
|
|
177
|
+
ţt
|
|
178
|
+
ŤT
|
|
179
|
+
ťt
|
|
180
|
+
ŦT
|
|
181
|
+
ŧt
|
|
182
|
+
ŨU
|
|
183
|
+
ũu
|
|
184
|
+
ŪU
|
|
185
|
+
ūu
|
|
186
|
+
ŬU
|
|
187
|
+
ŭu
|
|
188
|
+
ŮU
|
|
189
|
+
ůu
|
|
190
|
+
ŰU
|
|
191
|
+
űu
|
|
192
|
+
ŲU
|
|
193
|
+
ųu
|
|
194
|
+
ŴW
|
|
195
|
+
ŵw
|
|
196
|
+
ŶY
|
|
197
|
+
ŷy
|
|
198
|
+
ŸY
|
|
199
|
+
ŹZ
|
|
200
|
+
źz
|
|
201
|
+
ŻZ
|
|
202
|
+
żz
|
|
203
|
+
ŽZ
|
|
204
|
+
žz
|
|
205
|
+
ſs
|
|
206
|
+
ƀb
|
|
207
|
+
ƁB
|
|
208
|
+
ƂB
|
|
209
|
+
ƃb
|
|
210
|
+
ƇC
|
|
211
|
+
ƈc
|
|
212
|
+
ƉD
|
|
213
|
+
ƊD
|
|
214
|
+
ƋD
|
|
215
|
+
ƌd
|
|
216
|
+
ƐE
|
|
217
|
+
ƑF
|
|
218
|
+
ƒf
|
|
219
|
+
ƓG
|
|
220
|
+
ƕhv
|
|
221
|
+
ƖI
|
|
222
|
+
ƗI
|
|
223
|
+
ƘK
|
|
224
|
+
ƙk
|
|
225
|
+
ƚl
|
|
226
|
+
ƝN
|
|
227
|
+
ƞn
|
|
228
|
+
ƠO
|
|
229
|
+
ơo
|
|
230
|
+
ƢOI
|
|
231
|
+
ƣoi
|
|
232
|
+
ƤP
|
|
233
|
+
ƥp
|
|
234
|
+
ƫt
|
|
235
|
+
ƬT
|
|
236
|
+
ƭt
|
|
237
|
+
ƮT
|
|
238
|
+
ƯU
|
|
239
|
+
ưu
|
|
240
|
+
ƲV
|
|
241
|
+
ƳY
|
|
242
|
+
ƴy
|
|
243
|
+
ƵZ
|
|
244
|
+
ƶz
|
|
245
|
+
DŽDZ
|
|
246
|
+
DžDz
|
|
247
|
+
dždz
|
|
248
|
+
LJLJ
|
|
249
|
+
LjLj
|
|
250
|
+
ljlj
|
|
251
|
+
NJNJ
|
|
252
|
+
NjNj
|
|
253
|
+
njnj
|
|
254
|
+
ǍA
|
|
255
|
+
ǎa
|
|
256
|
+
ǏI
|
|
257
|
+
ǐi
|
|
258
|
+
ǑO
|
|
259
|
+
ǒo
|
|
260
|
+
ǓU
|
|
261
|
+
ǔu
|
|
262
|
+
ǕU
|
|
263
|
+
ǖu
|
|
264
|
+
ǗU
|
|
265
|
+
ǘu
|
|
266
|
+
ǙU
|
|
267
|
+
ǚu
|
|
268
|
+
ǛU
|
|
269
|
+
ǜu
|
|
270
|
+
ǞA
|
|
271
|
+
ǟa
|
|
272
|
+
ǠA
|
|
273
|
+
ǡa
|
|
274
|
+
ǤG
|
|
275
|
+
ǥg
|
|
276
|
+
ǦG
|
|
277
|
+
ǧg
|
|
278
|
+
ǨK
|
|
279
|
+
ǩk
|
|
280
|
+
ǪO
|
|
281
|
+
ǫo
|
|
282
|
+
ǬO
|
|
283
|
+
ǭo
|
|
284
|
+
ǰj
|
|
285
|
+
DZDZ
|
|
286
|
+
DzDz
|
|
287
|
+
dzdz
|
|
288
|
+
ǴG
|
|
289
|
+
ǵg
|
|
290
|
+
ǸN
|
|
291
|
+
ǹn
|
|
292
|
+
ǺA
|
|
293
|
+
ǻa
|
|
294
|
+
ȀA
|
|
295
|
+
ȁa
|
|
296
|
+
ȂA
|
|
297
|
+
ȃa
|
|
298
|
+
ȄE
|
|
299
|
+
ȅe
|
|
300
|
+
ȆE
|
|
301
|
+
ȇe
|
|
302
|
+
ȈI
|
|
303
|
+
ȉi
|
|
304
|
+
ȊI
|
|
305
|
+
ȋi
|
|
306
|
+
ȌO
|
|
307
|
+
ȍo
|
|
308
|
+
ȎO
|
|
309
|
+
ȏo
|
|
310
|
+
ȐR
|
|
311
|
+
ȑr
|
|
312
|
+
ȒR
|
|
313
|
+
ȓr
|
|
314
|
+
ȔU
|
|
315
|
+
ȕu
|
|
316
|
+
ȖU
|
|
317
|
+
ȗu
|
|
318
|
+
ȘS
|
|
319
|
+
șs
|
|
320
|
+
ȚT
|
|
321
|
+
țt
|
|
322
|
+
ȞH
|
|
323
|
+
ȟh
|
|
324
|
+
ȡd
|
|
325
|
+
ȤZ
|
|
326
|
+
ȥz
|
|
327
|
+
ȦA
|
|
328
|
+
ȧa
|
|
329
|
+
ȨE
|
|
330
|
+
ȩe
|
|
331
|
+
ȪO
|
|
332
|
+
ȫo
|
|
333
|
+
ȬO
|
|
334
|
+
ȭo
|
|
335
|
+
ȮO
|
|
336
|
+
ȯo
|
|
337
|
+
ȰO
|
|
338
|
+
ȱo
|
|
339
|
+
ȲY
|
|
340
|
+
ȳy
|
|
341
|
+
ȴl
|
|
342
|
+
ȵn
|
|
343
|
+
ȶt
|
|
344
|
+
ȷj
|
|
345
|
+
ȸdb
|
|
346
|
+
ȹqp
|
|
347
|
+
ȺA
|
|
348
|
+
ȻC
|
|
349
|
+
ȼc
|
|
350
|
+
ȽL
|
|
351
|
+
ȾT
|
|
352
|
+
ȿs
|
|
353
|
+
ɀz
|
|
354
|
+
ɃB
|
|
355
|
+
ɄU
|
|
356
|
+
ɆE
|
|
357
|
+
ɇe
|
|
358
|
+
ɈJ
|
|
359
|
+
ɉj
|
|
360
|
+
ɌR
|
|
361
|
+
ɍr
|
|
362
|
+
ɎY
|
|
363
|
+
ɏy
|
|
364
|
+
ɓb
|
|
365
|
+
ɕc
|
|
366
|
+
ɖd
|
|
367
|
+
ɗd
|
|
368
|
+
ɛe
|
|
369
|
+
ɟj
|
|
370
|
+
ɠg
|
|
371
|
+
ɡg
|
|
372
|
+
ɢG
|
|
373
|
+
ɦh
|
|
374
|
+
ɧh
|
|
375
|
+
ɨi
|
|
376
|
+
ɪI
|
|
377
|
+
ɫl
|
|
378
|
+
ɬl
|
|
379
|
+
ɭl
|
|
380
|
+
ɱm
|
|
381
|
+
ɲn
|
|
382
|
+
ɳn
|
|
383
|
+
ɴN
|
|
384
|
+
ɶOE
|
|
385
|
+
ɼr
|
|
386
|
+
ɽr
|
|
387
|
+
ɾr
|
|
388
|
+
ʀR
|
|
389
|
+
ʂs
|
|
390
|
+
ʈt
|
|
391
|
+
ʉu
|
|
392
|
+
ʋv
|
|
393
|
+
ʏY
|
|
394
|
+
ʐz
|
|
395
|
+
ʑz
|
|
396
|
+
ʙB
|
|
397
|
+
ʛG
|
|
398
|
+
ʜH
|
|
399
|
+
ʝj
|
|
400
|
+
ʟL
|
|
401
|
+
ʠq
|
|
402
|
+
ʣdz
|
|
403
|
+
ʥdz
|
|
404
|
+
ʦts
|
|
405
|
+
ʪls
|
|
406
|
+
ʫlz
|
|
407
|
+
ʹ'
|
|
408
|
+
ʺ"
|
|
409
|
+
ʻ'
|
|
410
|
+
ʼ'
|
|
411
|
+
ʽ'
|
|
412
|
+
˂<
|
|
413
|
+
˃>
|
|
414
|
+
˄^
|
|
415
|
+
ˆ^
|
|
416
|
+
ˈ'
|
|
417
|
+
ˋ\`
|
|
418
|
+
ː:
|
|
419
|
+
˖+
|
|
420
|
+
˗-
|
|
421
|
+
˜~
|
|
422
|
+
̀
|
|
423
|
+
́
|
|
424
|
+
̂
|
|
425
|
+
̃
|
|
426
|
+
̄
|
|
427
|
+
̅
|
|
428
|
+
̆
|
|
429
|
+
̇
|
|
430
|
+
̈
|
|
431
|
+
̉
|
|
432
|
+
̊
|
|
433
|
+
̋
|
|
434
|
+
̌
|
|
435
|
+
̍
|
|
436
|
+
̎
|
|
437
|
+
̏
|
|
438
|
+
̐
|
|
439
|
+
̑
|
|
440
|
+
̒
|
|
441
|
+
̓
|
|
442
|
+
̔
|
|
443
|
+
̕
|
|
444
|
+
̖
|
|
445
|
+
̗
|
|
446
|
+
̘
|
|
447
|
+
̙
|
|
448
|
+
̚
|
|
449
|
+
̛
|
|
450
|
+
̜
|
|
451
|
+
̝
|
|
452
|
+
̞
|
|
453
|
+
̟
|
|
454
|
+
̠
|
|
455
|
+
̡
|
|
456
|
+
̢
|
|
457
|
+
̣
|
|
458
|
+
̤
|
|
459
|
+
̥
|
|
460
|
+
̦
|
|
461
|
+
̧
|
|
462
|
+
̨
|
|
463
|
+
̩
|
|
464
|
+
̪
|
|
465
|
+
̫
|
|
466
|
+
̬
|
|
467
|
+
̭
|
|
468
|
+
̮
|
|
469
|
+
̯
|
|
470
|
+
̰
|
|
471
|
+
̱
|
|
472
|
+
̲
|
|
473
|
+
̳
|
|
474
|
+
̴
|
|
475
|
+
̵
|
|
476
|
+
̶
|
|
477
|
+
̷
|
|
478
|
+
̸
|
|
479
|
+
̹
|
|
480
|
+
̺
|
|
481
|
+
̻
|
|
482
|
+
̼
|
|
483
|
+
̽
|
|
484
|
+
̾
|
|
485
|
+
̿
|
|
486
|
+
̀
|
|
487
|
+
́
|
|
488
|
+
͂
|
|
489
|
+
̓
|
|
490
|
+
̈́
|
|
491
|
+
ͅ
|
|
492
|
+
͆
|
|
493
|
+
͇
|
|
494
|
+
͈
|
|
495
|
+
͉
|
|
496
|
+
͊
|
|
497
|
+
͋
|
|
498
|
+
͌
|
|
499
|
+
͍
|
|
500
|
+
͎
|
|
501
|
+
͏
|
|
502
|
+
͐
|
|
503
|
+
͑
|
|
504
|
+
͒
|
|
505
|
+
͓
|
|
506
|
+
͔
|
|
507
|
+
͕
|
|
508
|
+
͖
|
|
509
|
+
͗
|
|
510
|
+
͘
|
|
511
|
+
͙
|
|
512
|
+
͚
|
|
513
|
+
͛
|
|
514
|
+
͜
|
|
515
|
+
͝
|
|
516
|
+
͞
|
|
517
|
+
͟
|
|
518
|
+
͠
|
|
519
|
+
͡
|
|
520
|
+
͢
|
|
521
|
+
ΆΑ
|
|
522
|
+
ΈΕ
|
|
523
|
+
ΉΗ
|
|
524
|
+
ΊΙ
|
|
525
|
+
ΌΟ
|
|
526
|
+
ΎΥ
|
|
527
|
+
ΏΩ
|
|
528
|
+
ΐι
|
|
529
|
+
ΪΙ
|
|
530
|
+
ΫΥ
|
|
531
|
+
άα
|
|
532
|
+
έε
|
|
533
|
+
ήη
|
|
534
|
+
ίι
|
|
535
|
+
ΰυ
|
|
536
|
+
ϊι
|
|
537
|
+
ϋυ
|
|
538
|
+
όο
|
|
539
|
+
ύυ
|
|
540
|
+
ώω
|
|
541
|
+
ЁЕ
|
|
542
|
+
ёе
|
|
543
|
+
ᴀA
|
|
544
|
+
ᴁAE
|
|
545
|
+
ᴃB
|
|
546
|
+
ᴄC
|
|
547
|
+
ᴅD
|
|
548
|
+
ᴆD
|
|
549
|
+
ᴇE
|
|
550
|
+
ᴊJ
|
|
551
|
+
ᴋK
|
|
552
|
+
ᴌL
|
|
553
|
+
ᴍM
|
|
554
|
+
ᴏO
|
|
555
|
+
ᴘP
|
|
556
|
+
ᴛT
|
|
557
|
+
ᴜU
|
|
558
|
+
ᴠV
|
|
559
|
+
ᴡW
|
|
560
|
+
ᴢZ
|
|
561
|
+
ᵫue
|
|
562
|
+
ᵬb
|
|
563
|
+
ᵭd
|
|
564
|
+
ᵮf
|
|
565
|
+
ᵯm
|
|
566
|
+
ᵰn
|
|
567
|
+
ᵱp
|
|
568
|
+
ᵲr
|
|
569
|
+
ᵳr
|
|
570
|
+
ᵴs
|
|
571
|
+
ᵵt
|
|
572
|
+
ᵶz
|
|
573
|
+
ᵺth
|
|
574
|
+
ᵻI
|
|
575
|
+
ᵽp
|
|
576
|
+
ᵾU
|
|
577
|
+
ᶀb
|
|
578
|
+
ᶁd
|
|
579
|
+
ᶂf
|
|
580
|
+
ᶃg
|
|
581
|
+
ᶄk
|
|
582
|
+
ᶅl
|
|
583
|
+
ᶆm
|
|
584
|
+
ᶇn
|
|
585
|
+
ᶈp
|
|
586
|
+
ᶉr
|
|
587
|
+
ᶊs
|
|
588
|
+
ᶌv
|
|
589
|
+
ᶍx
|
|
590
|
+
ᶎz
|
|
591
|
+
ᶏa
|
|
592
|
+
ᶑd
|
|
593
|
+
ᶒe
|
|
594
|
+
ᶓe
|
|
595
|
+
ᶖi
|
|
596
|
+
ᶙu
|
|
597
|
+
ḀA
|
|
598
|
+
ḁa
|
|
599
|
+
ḂB
|
|
600
|
+
ḃb
|
|
601
|
+
ḄB
|
|
602
|
+
ḅb
|
|
603
|
+
ḆB
|
|
604
|
+
ḇb
|
|
605
|
+
ḈC
|
|
606
|
+
ḉc
|
|
607
|
+
ḊD
|
|
608
|
+
ḋd
|
|
609
|
+
ḌD
|
|
610
|
+
ḍd
|
|
611
|
+
ḎD
|
|
612
|
+
ḏd
|
|
613
|
+
ḐD
|
|
614
|
+
ḑd
|
|
615
|
+
ḒD
|
|
616
|
+
ḓd
|
|
617
|
+
ḔE
|
|
618
|
+
ḕe
|
|
619
|
+
ḖE
|
|
620
|
+
ḗe
|
|
621
|
+
ḘE
|
|
622
|
+
ḙe
|
|
623
|
+
ḚE
|
|
624
|
+
ḛe
|
|
625
|
+
ḜE
|
|
626
|
+
ḝe
|
|
627
|
+
ḞF
|
|
628
|
+
ḟf
|
|
629
|
+
ḠG
|
|
630
|
+
ḡg
|
|
631
|
+
ḢH
|
|
632
|
+
ḣh
|
|
633
|
+
ḤH
|
|
634
|
+
ḥh
|
|
635
|
+
ḦH
|
|
636
|
+
ḧh
|
|
637
|
+
ḨH
|
|
638
|
+
ḩh
|
|
639
|
+
ḪH
|
|
640
|
+
ḫh
|
|
641
|
+
ḬI
|
|
642
|
+
ḭi
|
|
643
|
+
ḮI
|
|
644
|
+
ḯi
|
|
645
|
+
ḰK
|
|
646
|
+
ḱk
|
|
647
|
+
ḲK
|
|
648
|
+
ḳk
|
|
649
|
+
ḴK
|
|
650
|
+
ḵk
|
|
651
|
+
ḶL
|
|
652
|
+
ḷl
|
|
653
|
+
ḸL
|
|
654
|
+
ḹl
|
|
655
|
+
ḺL
|
|
656
|
+
ḻl
|
|
657
|
+
ḼL
|
|
658
|
+
ḽl
|
|
659
|
+
ḾM
|
|
660
|
+
ḿm
|
|
661
|
+
ṀM
|
|
662
|
+
ṁm
|
|
663
|
+
ṂM
|
|
664
|
+
ṃm
|
|
665
|
+
ṄN
|
|
666
|
+
ṅn
|
|
667
|
+
ṆN
|
|
668
|
+
ṇn
|
|
669
|
+
ṈN
|
|
670
|
+
ṉn
|
|
671
|
+
ṊN
|
|
672
|
+
ṋn
|
|
673
|
+
ṌO
|
|
674
|
+
ṍo
|
|
675
|
+
ṎO
|
|
676
|
+
ṏo
|
|
677
|
+
ṐO
|
|
678
|
+
ṑo
|
|
679
|
+
ṒO
|
|
680
|
+
ṓo
|
|
681
|
+
ṔP
|
|
682
|
+
ṕp
|
|
683
|
+
ṖP
|
|
684
|
+
ṗp
|
|
685
|
+
ṘR
|
|
686
|
+
ṙr
|
|
687
|
+
ṚR
|
|
688
|
+
ṛr
|
|
689
|
+
ṜR
|
|
690
|
+
ṝr
|
|
691
|
+
ṞR
|
|
692
|
+
ṟr
|
|
693
|
+
ṠS
|
|
694
|
+
ṡs
|
|
695
|
+
ṢS
|
|
696
|
+
ṣs
|
|
697
|
+
ṤS
|
|
698
|
+
ṥs
|
|
699
|
+
ṦS
|
|
700
|
+
ṧs
|
|
701
|
+
ṨS
|
|
702
|
+
ṩs
|
|
703
|
+
ṪT
|
|
704
|
+
ṫt
|
|
705
|
+
ṬT
|
|
706
|
+
ṭt
|
|
707
|
+
ṮT
|
|
708
|
+
ṯt
|
|
709
|
+
ṰT
|
|
710
|
+
ṱt
|
|
711
|
+
ṲU
|
|
712
|
+
ṳu
|
|
713
|
+
ṴU
|
|
714
|
+
ṵu
|
|
715
|
+
ṶU
|
|
716
|
+
ṷu
|
|
717
|
+
ṸU
|
|
718
|
+
ṹu
|
|
719
|
+
ṺU
|
|
720
|
+
ṻu
|
|
721
|
+
ṼV
|
|
722
|
+
ṽv
|
|
723
|
+
ṾV
|
|
724
|
+
ṿv
|
|
725
|
+
ẀW
|
|
726
|
+
ẁw
|
|
727
|
+
ẂW
|
|
728
|
+
ẃw
|
|
729
|
+
ẄW
|
|
730
|
+
ẅw
|
|
731
|
+
ẆW
|
|
732
|
+
ẇw
|
|
733
|
+
ẈW
|
|
734
|
+
ẉw
|
|
735
|
+
ẊX
|
|
736
|
+
ẋx
|
|
737
|
+
ẌX
|
|
738
|
+
ẍx
|
|
739
|
+
ẎY
|
|
740
|
+
ẏy
|
|
741
|
+
ẐZ
|
|
742
|
+
ẑz
|
|
743
|
+
ẒZ
|
|
744
|
+
ẓz
|
|
745
|
+
ẔZ
|
|
746
|
+
ẕz
|
|
747
|
+
ẖh
|
|
748
|
+
ẗt
|
|
749
|
+
ẘw
|
|
750
|
+
ẙy
|
|
751
|
+
ẚa
|
|
752
|
+
ẜs
|
|
753
|
+
ẝs
|
|
754
|
+
ẞSS
|
|
755
|
+
ẠA
|
|
756
|
+
ạa
|
|
757
|
+
ẢA
|
|
758
|
+
ảa
|
|
759
|
+
ẤA
|
|
760
|
+
ấa
|
|
761
|
+
ẦA
|
|
762
|
+
ầa
|
|
763
|
+
ẨA
|
|
764
|
+
ẩa
|
|
765
|
+
ẪA
|
|
766
|
+
ẫa
|
|
767
|
+
ẬA
|
|
768
|
+
ậa
|
|
769
|
+
ẮA
|
|
770
|
+
ắa
|
|
771
|
+
ẰA
|
|
772
|
+
ằa
|
|
773
|
+
ẲA
|
|
774
|
+
ẳa
|
|
775
|
+
ẴA
|
|
776
|
+
ẵa
|
|
777
|
+
ẶA
|
|
778
|
+
ặa
|
|
779
|
+
ẸE
|
|
780
|
+
ẹe
|
|
781
|
+
ẺE
|
|
782
|
+
ẻe
|
|
783
|
+
ẼE
|
|
784
|
+
ẽe
|
|
785
|
+
ẾE
|
|
786
|
+
ếe
|
|
787
|
+
ỀE
|
|
788
|
+
ềe
|
|
789
|
+
ỂE
|
|
790
|
+
ểe
|
|
791
|
+
ỄE
|
|
792
|
+
ễe
|
|
793
|
+
ỆE
|
|
794
|
+
ệe
|
|
795
|
+
ỈI
|
|
796
|
+
ỉi
|
|
797
|
+
ỊI
|
|
798
|
+
ịi
|
|
799
|
+
ỌO
|
|
800
|
+
ọo
|
|
801
|
+
ỎO
|
|
802
|
+
ỏo
|
|
803
|
+
ỐO
|
|
804
|
+
ốo
|
|
805
|
+
ỒO
|
|
806
|
+
ồo
|
|
807
|
+
ỔO
|
|
808
|
+
ổo
|
|
809
|
+
ỖO
|
|
810
|
+
ỗo
|
|
811
|
+
ỘO
|
|
812
|
+
ộo
|
|
813
|
+
ỚO
|
|
814
|
+
ớo
|
|
815
|
+
ỜO
|
|
816
|
+
ờo
|
|
817
|
+
ỞO
|
|
818
|
+
ởo
|
|
819
|
+
ỠO
|
|
820
|
+
ỡo
|
|
821
|
+
ỢO
|
|
822
|
+
ợo
|
|
823
|
+
ỤU
|
|
824
|
+
ụu
|
|
825
|
+
ỦU
|
|
826
|
+
ủu
|
|
827
|
+
ỨU
|
|
828
|
+
ứu
|
|
829
|
+
ỪU
|
|
830
|
+
ừu
|
|
831
|
+
ỬU
|
|
832
|
+
ửu
|
|
833
|
+
ỮU
|
|
834
|
+
ữu
|
|
835
|
+
ỰU
|
|
836
|
+
ựu
|
|
837
|
+
ỲY
|
|
838
|
+
ỳy
|
|
839
|
+
ỴY
|
|
840
|
+
ỵy
|
|
841
|
+
ỶY
|
|
842
|
+
ỷy
|
|
843
|
+
ỸY
|
|
844
|
+
ỹy
|
|
845
|
+
ỺLL
|
|
846
|
+
ỻll
|
|
847
|
+
ỼV
|
|
848
|
+
ỽv
|
|
849
|
+
ỾY
|
|
850
|
+
ỿy
|
|
851
|
+
ἀα
|
|
852
|
+
ἁα
|
|
853
|
+
ἂα
|
|
854
|
+
ἃα
|
|
855
|
+
ἄα
|
|
856
|
+
ἅα
|
|
857
|
+
ἆα
|
|
858
|
+
ἇα
|
|
859
|
+
ἈΑ
|
|
860
|
+
ἉΑ
|
|
861
|
+
ἊΑ
|
|
862
|
+
ἋΑ
|
|
863
|
+
ἌΑ
|
|
864
|
+
ἍΑ
|
|
865
|
+
ἎΑ
|
|
866
|
+
ἏΑ
|
|
867
|
+
ἐε
|
|
868
|
+
ἑε
|
|
869
|
+
ἒε
|
|
870
|
+
ἓε
|
|
871
|
+
ἔε
|
|
872
|
+
ἕε
|
|
873
|
+
ἘΕ
|
|
874
|
+
ἙΕ
|
|
875
|
+
ἚΕ
|
|
876
|
+
ἛΕ
|
|
877
|
+
ἜΕ
|
|
878
|
+
ἝΕ
|
|
879
|
+
ἠη
|
|
880
|
+
ἡη
|
|
881
|
+
ἢη
|
|
882
|
+
ἣη
|
|
883
|
+
ἤη
|
|
884
|
+
ἥη
|
|
885
|
+
ἦη
|
|
886
|
+
ἧη
|
|
887
|
+
ἨΗ
|
|
888
|
+
ἩΗ
|
|
889
|
+
ἪΗ
|
|
890
|
+
ἫΗ
|
|
891
|
+
ἬΗ
|
|
892
|
+
ἭΗ
|
|
893
|
+
ἮΗ
|
|
894
|
+
ἯΗ
|
|
895
|
+
ἰι
|
|
896
|
+
ἱι
|
|
897
|
+
ἲι
|
|
898
|
+
ἳι
|
|
899
|
+
ἴι
|
|
900
|
+
ἵι
|
|
901
|
+
ἶι
|
|
902
|
+
ἷι
|
|
903
|
+
ἸΙ
|
|
904
|
+
ἹΙ
|
|
905
|
+
ἺΙ
|
|
906
|
+
ἻΙ
|
|
907
|
+
ἼΙ
|
|
908
|
+
ἽΙ
|
|
909
|
+
ἾΙ
|
|
910
|
+
ἿΙ
|
|
911
|
+
ὀο
|
|
912
|
+
ὁο
|
|
913
|
+
ὂο
|
|
914
|
+
ὃο
|
|
915
|
+
ὄο
|
|
916
|
+
ὅο
|
|
917
|
+
ὈΟ
|
|
918
|
+
ὉΟ
|
|
919
|
+
ὊΟ
|
|
920
|
+
ὋΟ
|
|
921
|
+
ὌΟ
|
|
922
|
+
ὍΟ
|
|
923
|
+
ὐυ
|
|
924
|
+
ὑυ
|
|
925
|
+
ὒυ
|
|
926
|
+
ὓυ
|
|
927
|
+
ὔυ
|
|
928
|
+
ὕυ
|
|
929
|
+
ὖυ
|
|
930
|
+
ὗυ
|
|
931
|
+
ὙΥ
|
|
932
|
+
ὛΥ
|
|
933
|
+
ὝΥ
|
|
934
|
+
ὟΥ
|
|
935
|
+
ὠω
|
|
936
|
+
ὡω
|
|
937
|
+
ὢω
|
|
938
|
+
ὣω
|
|
939
|
+
ὤω
|
|
940
|
+
ὥω
|
|
941
|
+
ὦω
|
|
942
|
+
ὧω
|
|
943
|
+
ὨΩ
|
|
944
|
+
ὩΩ
|
|
945
|
+
ὪΩ
|
|
946
|
+
ὫΩ
|
|
947
|
+
ὬΩ
|
|
948
|
+
ὭΩ
|
|
949
|
+
ὮΩ
|
|
950
|
+
ὯΩ
|
|
951
|
+
ὰα
|
|
952
|
+
ὲε
|
|
953
|
+
ὴη
|
|
954
|
+
ὶι
|
|
955
|
+
ὸο
|
|
956
|
+
ὺυ
|
|
957
|
+
ὼω
|
|
958
|
+
ᾀα
|
|
959
|
+
ᾁα
|
|
960
|
+
ᾂα
|
|
961
|
+
ᾃα
|
|
962
|
+
ᾄα
|
|
963
|
+
ᾅα
|
|
964
|
+
ᾆα
|
|
965
|
+
ᾇα
|
|
966
|
+
ᾈΑ
|
|
967
|
+
ᾉΑ
|
|
968
|
+
ᾊΑ
|
|
969
|
+
ᾋΑ
|
|
970
|
+
ᾌΑ
|
|
971
|
+
ᾍΑ
|
|
972
|
+
ᾎΑ
|
|
973
|
+
ᾏΑ
|
|
974
|
+
ᾐη
|
|
975
|
+
ᾑη
|
|
976
|
+
ᾒη
|
|
977
|
+
ᾓη
|
|
978
|
+
ᾔη
|
|
979
|
+
ᾕη
|
|
980
|
+
ᾖη
|
|
981
|
+
ᾗη
|
|
982
|
+
ᾘΗ
|
|
983
|
+
ᾙΗ
|
|
984
|
+
ᾚΗ
|
|
985
|
+
ᾛΗ
|
|
986
|
+
ᾜΗ
|
|
987
|
+
ᾝΗ
|
|
988
|
+
ᾞΗ
|
|
989
|
+
ᾟΗ
|
|
990
|
+
ᾠω
|
|
991
|
+
ᾡω
|
|
992
|
+
ᾢω
|
|
993
|
+
ᾣω
|
|
994
|
+
ᾤω
|
|
995
|
+
ᾥω
|
|
996
|
+
ᾦω
|
|
997
|
+
ᾧω
|
|
998
|
+
ᾨΩ
|
|
999
|
+
ᾩΩ
|
|
1000
|
+
ᾪΩ
|
|
1001
|
+
ᾫΩ
|
|
1002
|
+
ᾬΩ
|
|
1003
|
+
ᾭΩ
|
|
1004
|
+
ᾮΩ
|
|
1005
|
+
ᾯΩ
|
|
1006
|
+
ᾰα
|
|
1007
|
+
ᾱα
|
|
1008
|
+
ᾲα
|
|
1009
|
+
ᾳα
|
|
1010
|
+
ᾴα
|
|
1011
|
+
ᾶα
|
|
1012
|
+
ᾷα
|
|
1013
|
+
ᾸΑ
|
|
1014
|
+
ᾹΑ
|
|
1015
|
+
ᾺΑ
|
|
1016
|
+
ᾼΑ
|
|
1017
|
+
ῂη
|
|
1018
|
+
ῃη
|
|
1019
|
+
ῄη
|
|
1020
|
+
ῆη
|
|
1021
|
+
ῇη
|
|
1022
|
+
ῈΕ
|
|
1023
|
+
ῊΗ
|
|
1024
|
+
ῌΗ
|
|
1025
|
+
ῐι
|
|
1026
|
+
ῑι
|
|
1027
|
+
ῒι
|
|
1028
|
+
ῖι
|
|
1029
|
+
ῗι
|
|
1030
|
+
ῘΙ
|
|
1031
|
+
ῙΙ
|
|
1032
|
+
ῚΙ
|
|
1033
|
+
ῠυ
|
|
1034
|
+
ῡυ
|
|
1035
|
+
ῢυ
|
|
1036
|
+
ῤρ
|
|
1037
|
+
ῥρ
|
|
1038
|
+
ῦυ
|
|
1039
|
+
ῧυ
|
|
1040
|
+
ῨΥ
|
|
1041
|
+
ῩΥ
|
|
1042
|
+
ῪΥ
|
|
1043
|
+
ῬΡ
|
|
1044
|
+
ῲω
|
|
1045
|
+
ῳω
|
|
1046
|
+
ῴω
|
|
1047
|
+
ῶω
|
|
1048
|
+
ῷω
|
|
1049
|
+
ῸΟ
|
|
1050
|
+
ῺΩ
|
|
1051
|
+
ῼΩ
|
|
1052
|
+
‐-
|
|
1053
|
+
‑-
|
|
1054
|
+
‒-
|
|
1055
|
+
–-
|
|
1056
|
+
—-
|
|
1057
|
+
―-
|
|
1058
|
+
‖||
|
|
1059
|
+
‘'
|
|
1060
|
+
’'
|
|
1061
|
+
‚,
|
|
1062
|
+
‛'
|
|
1063
|
+
“"
|
|
1064
|
+
”"
|
|
1065
|
+
„,,
|
|
1066
|
+
‟"
|
|
1067
|
+
․.
|
|
1068
|
+
‥..
|
|
1069
|
+
…...
|
|
1070
|
+
′'
|
|
1071
|
+
″"
|
|
1072
|
+
‹<
|
|
1073
|
+
›>
|
|
1074
|
+
‼!!
|
|
1075
|
+
⁄/
|
|
1076
|
+
⁅[
|
|
1077
|
+
⁆]
|
|
1078
|
+
⁇??
|
|
1079
|
+
⁈?!
|
|
1080
|
+
⁉!?
|
|
1081
|
+
⁎*
|
|
1082
|
+
₠CE
|
|
1083
|
+
₢Cr
|
|
1084
|
+
₣Fr.
|
|
1085
|
+
₤L.
|
|
1086
|
+
₧Pts
|
|
1087
|
+
₹Rs
|
|
1088
|
+
₺TL
|
|
1089
|
+
⃝
|
|
1090
|
+
⃞
|
|
1091
|
+
⃟
|
|
1092
|
+
⃠
|
|
1093
|
+
⃢
|
|
1094
|
+
⃣
|
|
1095
|
+
⃤
|
|
1096
|
+
℀a/c
|
|
1097
|
+
℁a/s
|
|
1098
|
+
ℂC
|
|
1099
|
+
℃°C
|
|
1100
|
+
℅c/o
|
|
1101
|
+
℆c/u
|
|
1102
|
+
℉°F
|
|
1103
|
+
ℊg
|
|
1104
|
+
ℋH
|
|
1105
|
+
ℌx
|
|
1106
|
+
ℍH
|
|
1107
|
+
ℎh
|
|
1108
|
+
ℐI
|
|
1109
|
+
ℑI
|
|
1110
|
+
ℒL
|
|
1111
|
+
ℓl
|
|
1112
|
+
ℕN
|
|
1113
|
+
№No
|
|
1114
|
+
℗(P)
|
|
1115
|
+
℘P
|
|
1116
|
+
ℙP
|
|
1117
|
+
ℚQ
|
|
1118
|
+
ℛR
|
|
1119
|
+
ℜR
|
|
1120
|
+
ℝR
|
|
1121
|
+
℞Rx
|
|
1122
|
+
℡TEL
|
|
1123
|
+
ℤZ
|
|
1124
|
+
ℨZ
|
|
1125
|
+
ℬB
|
|
1126
|
+
ℭC
|
|
1127
|
+
ℯe
|
|
1128
|
+
ℰE
|
|
1129
|
+
ℱF
|
|
1130
|
+
ℳM
|
|
1131
|
+
ℴo
|
|
1132
|
+
ℹi
|
|
1133
|
+
℻FAX
|
|
1134
|
+
ⅅD
|
|
1135
|
+
ⅆd
|
|
1136
|
+
ⅇe
|
|
1137
|
+
ⅈi
|
|
1138
|
+
ⅉj
|
|
1139
|
+
⅐1/7
|
|
1140
|
+
⅑1/9
|
|
1141
|
+
⅒1/10
|
|
1142
|
+
⅓1/3
|
|
1143
|
+
⅔2/3
|
|
1144
|
+
⅕1/5
|
|
1145
|
+
⅖2/5
|
|
1146
|
+
⅗3/5
|
|
1147
|
+
⅘4/5
|
|
1148
|
+
⅙1/6
|
|
1149
|
+
⅚5/6
|
|
1150
|
+
⅛1/8
|
|
1151
|
+
⅜3/8
|
|
1152
|
+
⅝5/8
|
|
1153
|
+
⅞7/8
|
|
1154
|
+
⅟1/
|
|
1155
|
+
ⅠI
|
|
1156
|
+
ⅡII
|
|
1157
|
+
ⅢIII
|
|
1158
|
+
ⅣIV
|
|
1159
|
+
ⅤV
|
|
1160
|
+
ⅥVI
|
|
1161
|
+
ⅦVII
|
|
1162
|
+
ⅧVIII
|
|
1163
|
+
ⅨIX
|
|
1164
|
+
ⅩX
|
|
1165
|
+
ⅪXI
|
|
1166
|
+
ⅫXII
|
|
1167
|
+
ⅬL
|
|
1168
|
+
ⅭC
|
|
1169
|
+
ⅮD
|
|
1170
|
+
ⅯM
|
|
1171
|
+
ⅰi
|
|
1172
|
+
ⅱii
|
|
1173
|
+
ⅲiii
|
|
1174
|
+
ⅳiv
|
|
1175
|
+
ⅴv
|
|
1176
|
+
ⅵvi
|
|
1177
|
+
ⅶvii
|
|
1178
|
+
ⅷviii
|
|
1179
|
+
ⅸix
|
|
1180
|
+
ⅹx
|
|
1181
|
+
ⅺxi
|
|
1182
|
+
ⅻxii
|
|
1183
|
+
ⅼl
|
|
1184
|
+
ⅽc
|
|
1185
|
+
ⅾd
|
|
1186
|
+
ⅿm
|
|
1187
|
+
↉0/3
|
|
1188
|
+
−-
|
|
1189
|
+
∕/
|
|
1190
|
+
∖\\
|
|
1191
|
+
∣|
|
|
1192
|
+
∥||
|
|
1193
|
+
≪<<
|
|
1194
|
+
≫>>
|
|
1195
|
+
⑴(1)
|
|
1196
|
+
⑵(2)
|
|
1197
|
+
⑶(3)
|
|
1198
|
+
⑷(4)
|
|
1199
|
+
⑸(5)
|
|
1200
|
+
⑹(6)
|
|
1201
|
+
⑺(7)
|
|
1202
|
+
⑻(8)
|
|
1203
|
+
⑼(9)
|
|
1204
|
+
⑽(10)
|
|
1205
|
+
⑾(11)
|
|
1206
|
+
⑿(12)
|
|
1207
|
+
⒀(13)
|
|
1208
|
+
⒁(14)
|
|
1209
|
+
⒂(15)
|
|
1210
|
+
⒃(16)
|
|
1211
|
+
⒄(17)
|
|
1212
|
+
⒅(18)
|
|
1213
|
+
⒆(19)
|
|
1214
|
+
⒇(20)
|
|
1215
|
+
⒈1.
|
|
1216
|
+
⒉2.
|
|
1217
|
+
⒊3.
|
|
1218
|
+
⒋4.
|
|
1219
|
+
⒌5.
|
|
1220
|
+
⒍6.
|
|
1221
|
+
⒎7.
|
|
1222
|
+
⒏8.
|
|
1223
|
+
⒐9.
|
|
1224
|
+
⒑10.
|
|
1225
|
+
⒒11.
|
|
1226
|
+
⒓12.
|
|
1227
|
+
⒔13.
|
|
1228
|
+
⒕14.
|
|
1229
|
+
⒖15.
|
|
1230
|
+
⒗16.
|
|
1231
|
+
⒘17.
|
|
1232
|
+
⒙18.
|
|
1233
|
+
⒚19.
|
|
1234
|
+
⒛20.
|
|
1235
|
+
⒜(a)
|
|
1236
|
+
⒝(b)
|
|
1237
|
+
⒞(c)
|
|
1238
|
+
⒟(d)
|
|
1239
|
+
⒠(e)
|
|
1240
|
+
⒡(f)
|
|
1241
|
+
⒢(g)
|
|
1242
|
+
⒣(h)
|
|
1243
|
+
⒤(i)
|
|
1244
|
+
⒥(j)
|
|
1245
|
+
⒦(k)
|
|
1246
|
+
⒧(l)
|
|
1247
|
+
⒨(m)
|
|
1248
|
+
⒩(n)
|
|
1249
|
+
⒪(o)
|
|
1250
|
+
⒫(p)
|
|
1251
|
+
⒬(q)
|
|
1252
|
+
⒭(r)
|
|
1253
|
+
⒮(s)
|
|
1254
|
+
⒯(t)
|
|
1255
|
+
⒰(u)
|
|
1256
|
+
⒱(v)
|
|
1257
|
+
⒲(w)
|
|
1258
|
+
⒳(x)
|
|
1259
|
+
⒴(y)
|
|
1260
|
+
⒵(z)
|
|
1261
|
+
⦅((
|
|
1262
|
+
⦆))
|
|
1263
|
+
⩴::=
|
|
1264
|
+
⩵==
|
|
1265
|
+
⩶===
|
|
1266
|
+
ⱠL
|
|
1267
|
+
ⱡl
|
|
1268
|
+
ⱢL
|
|
1269
|
+
ⱣP
|
|
1270
|
+
ⱤR
|
|
1271
|
+
ⱥa
|
|
1272
|
+
ⱦt
|
|
1273
|
+
ⱧH
|
|
1274
|
+
ⱨh
|
|
1275
|
+
ⱩK
|
|
1276
|
+
ⱪk
|
|
1277
|
+
ⱫZ
|
|
1278
|
+
ⱬz
|
|
1279
|
+
ⱮM
|
|
1280
|
+
ⱱv
|
|
1281
|
+
ⱲW
|
|
1282
|
+
ⱳw
|
|
1283
|
+
ⱴv
|
|
1284
|
+
ⱸe
|
|
1285
|
+
ⱺo
|
|
1286
|
+
ⱾS
|
|
1287
|
+
ⱿZ
|
|
1288
|
+
、,
|
|
1289
|
+
。.
|
|
1290
|
+
〇0
|
|
1291
|
+
〈<
|
|
1292
|
+
〉>
|
|
1293
|
+
《<<
|
|
1294
|
+
》>>
|
|
1295
|
+
〔[
|
|
1296
|
+
〕]
|
|
1297
|
+
〘[
|
|
1298
|
+
〙]
|
|
1299
|
+
〚[
|
|
1300
|
+
〛]
|
|
1301
|
+
〝"
|
|
1302
|
+
〞"
|
|
1303
|
+
㍱hPa
|
|
1304
|
+
㍲da
|
|
1305
|
+
㍳AU
|
|
1306
|
+
㍴bar
|
|
1307
|
+
㍵oV
|
|
1308
|
+
㍶pc
|
|
1309
|
+
㍷dm
|
|
1310
|
+
㍺IU
|
|
1311
|
+
㎀pA
|
|
1312
|
+
㎁nA
|
|
1313
|
+
㎃mA
|
|
1314
|
+
㎄kA
|
|
1315
|
+
㎅KB
|
|
1316
|
+
㎆MB
|
|
1317
|
+
㎇GB
|
|
1318
|
+
㎈cal
|
|
1319
|
+
㎉kcal
|
|
1320
|
+
㎊pF
|
|
1321
|
+
㎋nF
|
|
1322
|
+
㎎mg
|
|
1323
|
+
㎏kg
|
|
1324
|
+
㎐Hz
|
|
1325
|
+
㎑kHz
|
|
1326
|
+
㎒MHz
|
|
1327
|
+
㎓GHz
|
|
1328
|
+
㎔THz
|
|
1329
|
+
㎙fm
|
|
1330
|
+
㎚nm
|
|
1331
|
+
㎜mm
|
|
1332
|
+
㎝cm
|
|
1333
|
+
㎞km
|
|
1334
|
+
㎧m/s
|
|
1335
|
+
㎩Pa
|
|
1336
|
+
㎪kPa
|
|
1337
|
+
㎫MPa
|
|
1338
|
+
㎬GPa
|
|
1339
|
+
㎭rad
|
|
1340
|
+
㎮rad/s
|
|
1341
|
+
㎰ps
|
|
1342
|
+
㎱ns
|
|
1343
|
+
㎳ms
|
|
1344
|
+
㎴pV
|
|
1345
|
+
㎵nV
|
|
1346
|
+
㎷mV
|
|
1347
|
+
㎸kV
|
|
1348
|
+
㎹MV
|
|
1349
|
+
㎺pW
|
|
1350
|
+
㎻nW
|
|
1351
|
+
㎽mW
|
|
1352
|
+
㎾kW
|
|
1353
|
+
㎿MW
|
|
1354
|
+
㏂a.m.
|
|
1355
|
+
㏃Bq
|
|
1356
|
+
㏄cc
|
|
1357
|
+
㏅cd
|
|
1358
|
+
㏆C/kg
|
|
1359
|
+
㏇Co.
|
|
1360
|
+
㏈dB
|
|
1361
|
+
㏉Gy
|
|
1362
|
+
㏊ha
|
|
1363
|
+
㏋HP
|
|
1364
|
+
㏌in
|
|
1365
|
+
㏍KK
|
|
1366
|
+
㏎KM
|
|
1367
|
+
㏏kt
|
|
1368
|
+
㏐lm
|
|
1369
|
+
㏑ln
|
|
1370
|
+
㏒log
|
|
1371
|
+
㏓lx
|
|
1372
|
+
㏔mb
|
|
1373
|
+
㏕mil
|
|
1374
|
+
㏖mol
|
|
1375
|
+
㏗pH
|
|
1376
|
+
㏘p.m.
|
|
1377
|
+
㏙PPM
|
|
1378
|
+
㏚PR
|
|
1379
|
+
㏛sr
|
|
1380
|
+
㏜Sv
|
|
1381
|
+
㏝Wb
|
|
1382
|
+
㏞V/m
|
|
1383
|
+
㏟A/m
|
|
1384
|
+
ꜰF
|
|
1385
|
+
ꜱS
|
|
1386
|
+
ꜲAA
|
|
1387
|
+
ꜳaa
|
|
1388
|
+
ꜴAO
|
|
1389
|
+
ꜵao
|
|
1390
|
+
ꜶAU
|
|
1391
|
+
ꜷau
|
|
1392
|
+
ꜸAV
|
|
1393
|
+
ꜹav
|
|
1394
|
+
ꜺAV
|
|
1395
|
+
ꜻav
|
|
1396
|
+
ꜼAY
|
|
1397
|
+
ꜽay
|
|
1398
|
+
ꝀK
|
|
1399
|
+
ꝁk
|
|
1400
|
+
ꝂK
|
|
1401
|
+
ꝃk
|
|
1402
|
+
ꝄK
|
|
1403
|
+
ꝅk
|
|
1404
|
+
ꝆL
|
|
1405
|
+
ꝇl
|
|
1406
|
+
ꝈL
|
|
1407
|
+
ꝉl
|
|
1408
|
+
ꝊO
|
|
1409
|
+
ꝋo
|
|
1410
|
+
ꝌO
|
|
1411
|
+
ꝍo
|
|
1412
|
+
ꝎOO
|
|
1413
|
+
ꝏoo
|
|
1414
|
+
ꝐP
|
|
1415
|
+
ꝑp
|
|
1416
|
+
ꝒP
|
|
1417
|
+
ꝓp
|
|
1418
|
+
ꝔP
|
|
1419
|
+
ꝕp
|
|
1420
|
+
ꝖQ
|
|
1421
|
+
ꝗq
|
|
1422
|
+
ꝘQ
|
|
1423
|
+
ꝙq
|
|
1424
|
+
ꝞV
|
|
1425
|
+
ꝟv
|
|
1426
|
+
ꝠVY
|
|
1427
|
+
ꝡvy
|
|
1428
|
+
ꝤTH
|
|
1429
|
+
ꝥth
|
|
1430
|
+
ꝦTH
|
|
1431
|
+
ꝧth
|
|
1432
|
+
ꝱd
|
|
1433
|
+
ꝲl
|
|
1434
|
+
ꝳm
|
|
1435
|
+
ꝴn
|
|
1436
|
+
ꝵr
|
|
1437
|
+
ꝶR
|
|
1438
|
+
ꝷt
|
|
1439
|
+
ꝹD
|
|
1440
|
+
ꝺd
|
|
1441
|
+
ꝻF
|
|
1442
|
+
ꝼf
|
|
1443
|
+
ꞆT
|
|
1444
|
+
ꞇt
|
|
1445
|
+
ꞐN
|
|
1446
|
+
ꞑn
|
|
1447
|
+
ꞒC
|
|
1448
|
+
ꞓc
|
|
1449
|
+
ꞠG
|
|
1450
|
+
ꞡg
|
|
1451
|
+
ꞢK
|
|
1452
|
+
ꞣk
|
|
1453
|
+
ꞤN
|
|
1454
|
+
ꞥn
|
|
1455
|
+
ꞦR
|
|
1456
|
+
ꞧr
|
|
1457
|
+
ꞨS
|
|
1458
|
+
ꞩs
|
|
1459
|
+
ꞪH
|
|
1460
|
+
ffff
|
|
1461
|
+
fifi
|
|
1462
|
+
flfl
|
|
1463
|
+
ffiffi
|
|
1464
|
+
fflffl
|
|
1465
|
+
ſtst
|
|
1466
|
+
stst
|
|
1467
|
+
︐,
|
|
1468
|
+
︑,
|
|
1469
|
+
︒.
|
|
1470
|
+
︓:
|
|
1471
|
+
︔;
|
|
1472
|
+
︕!
|
|
1473
|
+
︖?
|
|
1474
|
+
︙...
|
|
1475
|
+
︰..
|
|
1476
|
+
︱-
|
|
1477
|
+
︲-
|
|
1478
|
+
︵(
|
|
1479
|
+
︶)
|
|
1480
|
+
︷{
|
|
1481
|
+
︸}
|
|
1482
|
+
︹[
|
|
1483
|
+
︺]
|
|
1484
|
+
︽<<
|
|
1485
|
+
︾>>
|
|
1486
|
+
︿<
|
|
1487
|
+
﹀>
|
|
1488
|
+
﹇[
|
|
1489
|
+
﹈]
|
|
1490
|
+
﹐,
|
|
1491
|
+
﹑,
|
|
1492
|
+
﹒.
|
|
1493
|
+
﹔;
|
|
1494
|
+
﹕:
|
|
1495
|
+
﹖?
|
|
1496
|
+
﹗!
|
|
1497
|
+
﹘-
|
|
1498
|
+
﹙(
|
|
1499
|
+
﹚)
|
|
1500
|
+
﹛{
|
|
1501
|
+
﹜}
|
|
1502
|
+
﹝[
|
|
1503
|
+
﹞]
|
|
1504
|
+
﹟#
|
|
1505
|
+
﹠&
|
|
1506
|
+
﹡*
|
|
1507
|
+
﹢+
|
|
1508
|
+
﹣-
|
|
1509
|
+
﹤<
|
|
1510
|
+
﹥>
|
|
1511
|
+
﹦=
|
|
1512
|
+
﹨\\
|
|
1513
|
+
﹩$
|
|
1514
|
+
﹪%
|
|
1515
|
+
﹫@
|
|
1516
|
+
!!
|
|
1517
|
+
""
|
|
1518
|
+
##
|
|
1519
|
+
$$
|
|
1520
|
+
%%
|
|
1521
|
+
&&
|
|
1522
|
+
''
|
|
1523
|
+
((
|
|
1524
|
+
))
|
|
1525
|
+
**
|
|
1526
|
+
++
|
|
1527
|
+
,,
|
|
1528
|
+
--
|
|
1529
|
+
..
|
|
1530
|
+
//
|
|
1531
|
+
00
|
|
1532
|
+
11
|
|
1533
|
+
22
|
|
1534
|
+
33
|
|
1535
|
+
44
|
|
1536
|
+
55
|
|
1537
|
+
66
|
|
1538
|
+
77
|
|
1539
|
+
88
|
|
1540
|
+
99
|
|
1541
|
+
::
|
|
1542
|
+
;;
|
|
1543
|
+
<<
|
|
1544
|
+
==
|
|
1545
|
+
>>
|
|
1546
|
+
??
|
|
1547
|
+
@@
|
|
1548
|
+
AA
|
|
1549
|
+
BB
|
|
1550
|
+
CC
|
|
1551
|
+
DD
|
|
1552
|
+
EE
|
|
1553
|
+
FF
|
|
1554
|
+
GG
|
|
1555
|
+
HH
|
|
1556
|
+
II
|
|
1557
|
+
JJ
|
|
1558
|
+
KK
|
|
1559
|
+
LL
|
|
1560
|
+
MM
|
|
1561
|
+
NN
|
|
1562
|
+
OO
|
|
1563
|
+
PP
|
|
1564
|
+
QQ
|
|
1565
|
+
RR
|
|
1566
|
+
SS
|
|
1567
|
+
TT
|
|
1568
|
+
UU
|
|
1569
|
+
VV
|
|
1570
|
+
WW
|
|
1571
|
+
XX
|
|
1572
|
+
YY
|
|
1573
|
+
ZZ
|
|
1574
|
+
[[
|
|
1575
|
+
\\\
|
|
1576
|
+
]]
|
|
1577
|
+
^^
|
|
1578
|
+
__
|
|
1579
|
+
`\`
|
|
1580
|
+
aa
|
|
1581
|
+
bb
|
|
1582
|
+
cc
|
|
1583
|
+
dd
|
|
1584
|
+
ee
|
|
1585
|
+
ff
|
|
1586
|
+
gg
|
|
1587
|
+
hh
|
|
1588
|
+
ii
|
|
1589
|
+
jj
|
|
1590
|
+
kk
|
|
1591
|
+
ll
|
|
1592
|
+
mm
|
|
1593
|
+
nn
|
|
1594
|
+
oo
|
|
1595
|
+
pp
|
|
1596
|
+
qq
|
|
1597
|
+
rr
|
|
1598
|
+
ss
|
|
1599
|
+
tt
|
|
1600
|
+
uu
|
|
1601
|
+
vv
|
|
1602
|
+
ww
|
|
1603
|
+
xx
|
|
1604
|
+
yy
|
|
1605
|
+
zz
|
|
1606
|
+
{{
|
|
1607
|
+
||
|
|
1608
|
+
}}
|
|
1609
|
+
~~
|
|
1610
|
+
⦅((
|
|
1611
|
+
⦆))
|
|
1612
|
+
。.
|
|
1613
|
+
、,
|
|
1614
|
+
←<-
|
|
1615
|
+
→->
|
|
1616
|
+
🄀0.
|
|
1617
|
+
🄁0,
|
|
1618
|
+
🄂1,
|
|
1619
|
+
🄃2,
|
|
1620
|
+
🄄3,
|
|
1621
|
+
🄅4,
|
|
1622
|
+
🄆5,
|
|
1623
|
+
🄇6,
|
|
1624
|
+
🄈7,
|
|
1625
|
+
🄉8,
|
|
1626
|
+
🄊9,
|
|
1627
|
+
🄐(A)
|
|
1628
|
+
🄑(B)
|
|
1629
|
+
🄒(C)
|
|
1630
|
+
🄓(D)
|
|
1631
|
+
🄔(E)
|
|
1632
|
+
🄕(F)
|
|
1633
|
+
🄖(G)
|
|
1634
|
+
🄗(H)
|
|
1635
|
+
🄘(I)
|
|
1636
|
+
🄙(J)
|
|
1637
|
+
🄚(K)
|
|
1638
|
+
🄛(L)
|
|
1639
|
+
🄜(M)
|
|
1640
|
+
🄝(N)
|
|
1641
|
+
🄞(O)
|
|
1642
|
+
🄟(P)
|
|
1643
|
+
🄠(Q)
|
|
1644
|
+
🄡(R)
|
|
1645
|
+
🄢(S)
|
|
1646
|
+
🄣(T)
|
|
1647
|
+
🄤(U)
|
|
1648
|
+
🄥(V)
|
|
1649
|
+
🄦(W)
|
|
1650
|
+
🄧(X)
|
|
1651
|
+
🄨(Y)
|
|
1652
|
+
🄩(Z)
|
|
1653
|
+
`.split(`
|
|
1654
|
+
`)){if(t===``)continue;let n=String.fromCodePoint(t.codePointAt(0)??0);e.set(n,t.slice(n.length))}return Nd=e,e}function foldText(e){let t=unaccentRules(),n=``;for(let r of e)n+=t.get(r)??r;return n.toLowerCase()}function requestedCapabilities(e){let t=[];return e.canModify&&t.push(`modify`),e.canSend&&t.push(`send`),t}const Pd={status:`connector_status`,error:`connector_error`,provider:`connector_provider`,quota:`connector_quota`},Fd={phone:`text`,currency:`number`},Id={rename:[`kind`,`object`,`from`,`to`],phone:[`kind`,`object`,`attribute`,`to`,`defaultCountryCode`],currency:[`kind`,`object`,`attribute`,`to`,`currencyCode`]};function refuse(e,t,n){throw new P(n,[{path:t===void 0?[`resolutions`,String(e)]:[`resolutions`,String(e),t],message:n}])}function assertKeys(e,t,n){for(let r of n)(typeof t[r]!=`string`||t[r]===``)&&refuse(e,r,`Resolution ${e} needs a non-empty string \`${r}\``);let r=Object.keys(t).find(e=>!n.includes(e));r!==void 0&&refuse(e,r,`Resolution ${e} has an unknown field \`${r}\``)}function assertResolution(e,t){if(Ve(t)||refuse(e,void 0,`Resolution ${e} must be an object`),t.kind===`rename`){assertKeys(e,t,Id.rename),t.from===t.to&&refuse(e,`to`,`Resolution ${e} renames "${t.from}" to itself`);return}if(t.kind!==`retype`&&refuse(e,`kind`,`Unknown resolution kind ${JSON.stringify(t.kind)}: expected "rename" or "retype"`),t.to!==`phone`&&t.to!==`currency`&&refuse(e,`to`,`Unsupported retype to ${JSON.stringify(t.to)}: a push converts text → phone and number → currency only`),assertKeys(e,t,Id[t.to]),t.to===`phone`){let n=t.defaultCountryCode;/^[A-Z]{3}$/.test(n)&&ru(n)||refuse(e,`defaultCountryCode`,`Resolution ${e}: "${n}" is not an ISO 3166-1 alpha-3 country code`);return}let n=t.currencyCode;/^[A-Z]{3}$/.test(n)&&nu(n)||refuse(e,`currencyCode`,`Resolution ${e}: "${n}" is not a supported ISO 4217 currency code`)}function addressesOf(e){return e.kind===`rename`?{reads:e.from,lands:e.to}:{reads:e.attribute,lands:e.attribute}}function assertSchemaSourceResolutions(e){if(!Array.isArray(e))throw new P("`resolutions` must be an array",[{path:[`resolutions`],message:"`resolutions` must be an array"}]);if(e.length>100)throw new P(`A push carries ${e.length} resolutions; the limit is 100`,[]);let t=new Set;for(let[n,r]of e.entries()){assertResolution(n,r);let{reads:e,lands:i}=addressesOf(r);for(let[a,o]of[[`${r.kind}:${r.object}.${e}`,`of "${r.object}.${e}"`],[`${r.kind}>${r.object}.${i}`,`onto "${r.object}.${i}"`]])t.has(a)&&refuse(n,void 0,`Resolution ${n} repeats a ${r.kind} ${o}`),t.add(a)}}function phoneFromText(e,t){let n=e.trim();if(n===``)return{value:null};let r=iu(n,wn(t));if(!r?.isPossible()||r.country===void 0||r.ext!==void 0)return;let i=tu(r.country)?.iso3;if(i!==void 0)return{value:{countryCode:i,phoneNumber:sr(n,i)}}}function convertRetypedValue(e,t,n={}){if(t===null)return{value:null};if(e.to===`phone`)return typeof t==`string`?phoneFromText(t,e.defaultCountryCode):void 0;if(typeof t==`number`&&Math.abs(t)<=2**53-1&&!(t<0&&n.allowNegative!==!0))return{value:{code:e.currencyCode,value:t}}}const Z=L.string().refine(e=>e.trim().length>0,`Must not be blank`),Ld=L.union([L.tuple([L.literal(`object`),Z]),L.tuple([L.literal(`attribute`),Z,Z]),L.tuple([L.literal(`view`),Z,Z]),L.tuple([L.literal(`content`),Z,Z,Z])]),Rd=L.object({label:Z,pluralLabel:L.string().optional(),description:L.string().optional(),icon:_.optional(),color:ke.optional(),image:Dd.optional(),labelExpression:L.string(),embeddingExpression:L.string().optional(),sealed:L.boolean().optional(),toleratedAttributes:L.array(Z).optional(),metadata:L.record(L.string(),L.unknown()).optional(),documentLayout:L.record(L.string(),L.unknown()).optional(),hierarchical:L.boolean().optional()}).strict();function failure(e){throw new P(e,[])}function definitionSchema(e){return L.custom(t=>{let n=L.record(L.string(),L.unknown()).parse(t);for(let t of e[0]===`view`?[`object`,`name`]:[`name`])Object.hasOwn(n,t)&&failure(`Invalid schema state: unrecognized definition key ${t}`);switch(e[0]){case`object`:Rd.parse(n);break;case`attribute`:{let e=L.enum($e).parse(n.type);xn(e).extend({type:L.literal(e),label:Z,required:L.boolean().optional(),unique:L.boolean().optional(),icon:_.optional()}).strict().parse(n);break}case`view`:{let{contents:t,...r}=n,i=L.array(Z).parse(t);new Set(i).size!==i.length&&failure(`Invalid schema state: duplicate content membership`),an.parse({...r,object:e[1],name:e[2],contents:[]});break}case`content`:k.parse({...n,name:e[3]})}return!0})}function compareSchemaStateEntries(e,t){let n=JSON.stringify(e.address),r=JSON.stringify(t.address);return n<r?-1:+(n>r)}function schemaStateSourcePayload(e){return{modelVersion:1,hashVersion:1,entries:[...e].sort(compareSchemaStateEntries).filter(e=>e.source!==null).map(({address:e,source:t})=>({address:e,source:t}))}}function parseState(e){let t=L.record(L.string(),L.unknown()).parse(e);for(let[e,n]of[[`modelVersion`,`model`],[`hashVersion`,`hash`]])t[e]!==1&&failure(`Unsupported schema ${n} version: expected 1, received ${t[e]===void 0?`missing`:String(t[e])}`);let n=L.object({modelVersion:L.literal(1),hashVersion:L.literal(1),tenant:Z,sourceFingerprint:L.string().regex(/^[a-f0-9]{64}$/),entries:L.array(L.unknown())}).strict().safeParse(e);if(!n.success){let e=n.error.issues.find(e=>e.code===`unrecognized_keys`);throw e?.code===`unrecognized_keys`&&failure(`Invalid schema state: unrecognized key ${e.keys[0]}`),P.fromZodErrors(n.error.issues.map(e=>({path:e.path.map(String),message:e.message})))}let r=new Set,i=n.data.entries.map(e=>{let t=Ld.parse(L.object({address:L.unknown()}).parse(e).address),n=JSON.stringify(t);r.has(n)&&failure(`Invalid schema state: duplicate address ${n}`),r.add(n);let i=definitionSchema(t).nullable(),a=t[0]===`object`||t[0]===`attribute`?L.object({id:L.string().uuid(),updatedAt:L.string().datetime()}).strict():L.object({id:L.string().uuid(),revision:L.number().int().nonnegative()}).strict(),o=L.object({address:Ld,source:i,effective:i,status:L.enum([`source`,`runtime`,`copy`,`suppressed`]),sourceOwner:L.string().regex(B).nullable(),guard:a.nullable()}).strict().parse(e);return(o.status===`runtime`&&(o.source!==null||o.effective===null||o.sourceOwner!==null)||o.status===`suppressed`&&(t[0]!==`content`||o.source===null||o.effective!==null||o.guard===null)||o.status===`copy`&&(o.source===null||o.effective===null)||o.effective!==null&&o.guard===null||o.source===null&&o.effective===null)&&failure(`Invalid schema state: inconsistent status at ${n}`),{...o,sourceOwner:parseSchemaOwner(o.sourceOwner)}});return{...n.data,entries:i.sort(compareSchemaStateEntries)}}function parseSchemaState(e){try{return parseState(e)}catch(e){throw e instanceof L.ZodError?P.fromZodErrors(e.issues.map(e=>({path:e.path.map(String),message:e.message}))):e}}function diffSchemaState(e){let t=[];for(let n of[...e.entries].sort(compareSchemaStateEntries)){let e=n.source===null?`added`:n.status===`suppressed`?`suppressed`:n.effective===null?`removed`:I(n.source)===I(n.effective)?n.status===`copy`?`copied`:null:`changed`;e&&t.push({...n,change:e})}return{modelVersion:1,tenant:e.tenant,sourceFingerprint:e.sourceFingerprint,changes:t}}const Q=L.string().min(1),zd=L.union([L.object({objectName:Q,viewName:Q,contentName:Q.optional()}).strict().describe(`Full configuration of a view, or of one content when contentName is given`),L.object({objectId:Q}).strict().describe(`An object with its attributes, by id`),L.object({objectName:Q}).strict().describe(`An object with its attributes`),L.object({objectId:Q,attributeName:Q}).strict().describe(`One attribute's config, by name`),L.object({objectId:Q,attributeId:Q}).strict().describe(`One attribute's config, by id`),L.object({objectId:Q,recordId:Q}).strict().describe(`One sample record`)]);function parseNamedTarget(e){let t=zd.safeParse(e);if(!t.success)throw new P(`Invalid scoped target`,[{path:[`target`],message:`Expected exactly one named target branch`}]);return t.data}const Bd=[`object`,`attribute`,`view`,`content`,`sample`],Vd=L.object({mode:L.enum([`inline`,`window`]),interaction:L.enum([`static`,`interactive`]),size:L.enum([`compact`,`regular`]),aspectRatio:L.number().positive().finite().optional()}).strict(),Hd=L.object({artifactId:L.string().min(1),revision:L.number().int().positive(),name:L.string().min(1),kind:L.string().min(1),retention:L.enum(Nu),display:Vd}).strict();function readArtifactResult(e){let t=Hd.safeParse(e);return t.success?t.data:null}const Ud=L.string().regex(/^[^/\s]+\/[^/\s]+$/),Wd=L.object({kind:L.literal(`generated-image`),artifact:L.unknown(),generation:L.object({attemptId:L.uuid(),requestedModelId:Ud,executedModelId:Ud.nullable(),format:L.enum(zu),mimeType:L.enum([`image/png`,`image/jpeg`,`image/webp`])}).strict()}).strict();function readGeneratedImageResult(e){let t=Wd.safeParse(e);if(!t.success)return null;let n=readArtifactResult(t.data.artifact);return!n||n.kind!==`image`?null:{...t.data,artifact:{...n,kind:`image`}}}function isCompletedToolPart(e){return e.type===`tool`&&e.state===`completed`}function readString(e,t){let n=e[t];return typeof n==`string`?n:void 0}function upsertWithPrecedence(e,t,n,r){let i=e.get(t),a=i&&r[i.kind]>r[n.kind]?i:n;e.delete(t),e.set(t,a)}function asRecord(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function readRefId(e,t,n){let r=readString(e,t),i=`${n}:`;return r?.startsWith(i)&&r.length>i.length?r.slice(i.length):void 0}function verbResultEntries(e){let t=asRecord(e);if(!t)return[];let n=[t];for(let e of[`members`,`created`,`updated`]){let r=t[e];if(Array.isArray(r))for(let e of r){let t=asRecord(e);t&&n.push(t)}}return n.filter(e=>!(`error`in e))}function extractReadRecordIds(e){let t=new Set;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e)||e.name!==`read`)continue;let n=e.args.refs;if(Array.isArray(n))for(let e of n){if(typeof e!=`string`)continue;let n=parseReference(e);n.ok&&n.ref.kind===`record`&&t.add(n.ref.id)}}return[...t]}const Gd={created:1,modified:0};function readSingleRecordEntry(e){if(typeof e!=`object`||!e)return null;let t=e,n=typeof t.record==`object`&&t.record!==null?t.record:void 0,r=(n&&readString(n,`id`))??readString(t,`recordId`);return r?{id:r,label:(n&&readString(n,`label`))??r,objectName:(n&&readString(n,`objectName`))??``}:null}function readBulkRecordEntries(e,t,n){if(typeof e!=`object`||!e)return[];let r=e[t];if(!Array.isArray(r))return[];let i=[];for(let e of r){if(typeof e!=`object`||!e)continue;let t=e,r=readString(t,`id`);r&&i.push({id:r,label:readString(t,`label`)??r,objectName:readString(t,`objectName`)??n})}return i}function readVerbRecordEntries(e){let t=asRecord(asRecord(e.result)?.record),n=readString(e.args,`object`)??(t&&readString(t,`objectName`))??``,r=[];for(let t of verbResultEntries(e.result)){let e=readRefId(t,`ref`,`record`);e&&r.push({id:e,label:readString(t,`title`)||readString(t,`label`)||e,objectName:readString(t,`objectName`)??n})}return r}function extractTouchedRecords(e){let t=new Map;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e))continue;let n=[],r;if(e.name===`create_record`||e.name===`update_record`||e.name===`edit_content`){let t=readSingleRecordEntry(e.result);n=t?[t]:[],r=e.name===`create_record`?`created`:`modified`}else if(e.name===`bulk_create_records`||e.name===`bulk_update_records`){let t=readString(e.args,`objectId`)??``,i=e.name===`bulk_create_records`?`created`:`updated`;n=readBulkRecordEntries(e.result,i,t),r=e.name===`bulk_create_records`?`created`:`modified`}else if(e.name===`write`)n=readVerbRecordEntries(e),r=readString(e.args,`action`)===`create`?`created`:`modified`;else continue;for(let e of n){let n={recordId:e.id,objectName:e.objectName,label:e.label,kind:r};upsertWithPrecedence(t,e.id,n,Gd)}}return[...t.values()]}const Kd={modified:1,consulted:0};function isFilePart(e){return e.type===`file`}function entryFromDocumentMutation(e,t){if(typeof e.result!=`object`||e.result===null)return null;let n=e.result,r=readString(n,`documentId`)??(t===`folderId`?readString(n,t):void 0);return r?{id:r,title:readString(e.args,`name`)??readString(e.args,`title`)??r,kind:`modified`}:null}function entryFromReadDocument(e){let t=readString(e.args,`documentId`);return t?{id:t,title:t,kind:`consulted`}:null}function entryFromRef(e,t,n){let r=readRefId(e,`ref`,`file`),i=r??readRefId(e,`ref`,`document`);return i?{id:i,...r?{fileId:r}:{},title:n||readString(e,`title`)||i,kind:t,mimeType:readString(e,`mimeType`)}:null}function entriesFromOrganize(e){let t=asRecord(e.result);if(!t||`error`in t)return[];let n=readString(e.args,`action`),r=readString(e.args,`name`)??readString(e.args,`title`),i=readString(t,`documentId`);if(i)return[{id:i,title:r??i,kind:`modified`}];let a=readString(t,`folderId`);if(a)return n===`create_folder`?[{id:a,title:r??a,kind:`modified`}]:[];let o=entryFromRef(t,`modified`,r);return o?[o]:[]}function entriesFromCopy(e){let t=asRecord(e.result);if(!t||`error`in t)return[];let n=(Array.isArray(t.copied)?t.copied:[]).flatMap(e=>{let t=asRecord(e),n=t?entryFromRef(t,`modified`,void 0):null;return n?[n]:[]});if(n.length>0)return n;let r=entryFromRef(t,t.ref!==void 0&&t.ref===readString(e.args,`from`)?`consulted`:`modified`,void 0);return r?[r]:[]}function entriesFromRead(e){let t=asRecord(e.result);return(Array.isArray(t?.members)?t.members:[]).flatMap(e=>{let t=asRecord(e);if(!t||`error`in t||!readRefId(t,`ref`,`document`))return[];let n=entryFromRef(t,`consulted`,void 0);return n?[n]:[]})}function entriesFromToolPart(e){switch(e.name){case`organize`:return entriesFromOrganize(e);case`copy`:return entriesFromCopy(e);case`read`:return entriesFromRead(e);default:{let t=entryFromToolPart(e);return t?[t]:[]}}}function entryFromSandboxUpload(e){if(typeof e.result!=`object`||e.result===null)return null;let t=e.result,n=readString(t,`fileId`);return n?{id:n,fileId:n,title:readString(t,`title`)??n,kind:`modified`,mimeType:readString(t,`mimeType`)}:null}function entryFromToolPart(e){switch(e.name){case`update_document`:case`attach_file`:return entryFromDocumentMutation(e,`documentId`);case`create_folder`:return entryFromDocumentMutation(e,`folderId`);case`read_document`:return entryFromReadDocument(e);case`sandbox_upload_file`:return entryFromSandboxUpload(e);default:return null}}function extractTouchedDocuments(e){let t=new Map;for(let n of e)if(n.role===`assistant`){for(let e of n.parts)if(isCompletedToolPart(e))for(let n of entriesFromToolPart(e))upsertWithPrecedence(t,n.id,n,Kd);else if(isFilePart(e)&&e.fileId){let n={id:e.fileId,fileId:e.fileId,title:e.name||e.fileId,kind:`modified`,mimeType:e.mimeType};upsertWithPrecedence(t,n.id,n,Kd)}}return[...t.values()]}function extractTouchedArtifacts(e){let t=new Map;for(let n of e)if(n.role===`assistant`)for(let e of n.parts){if(!isCompletedToolPart(e)||e.error)continue;let n=e.name===`generate_image`?readGeneratedImageResult(e.result)?.artifact:e.name===`publish_artifact`?readArtifactResult(e.result):null;if(!n)continue;let r=`${n.artifactId}:${n.revision}`;t.delete(r),t.set(r,n)}return[...t.values()]}function isNonBlankString(e){return typeof e==`string`&&/\S/u.test(e)}const qd=L.object({provider:L.custom(e=>isNonBlankString(e)&&e.length<=200,{message:`must be a non-blank string of at most 200 characters`}),model:L.string().max(200).regex(/\S/u)});function normalizeNewsLocale(e){return e.toLowerCase().split(`-`)[0]===`fr`?`fr`:`en`}function resolveLocalized(e,t){return e[normalizeNewsLocale(t)]||(e.en?e.en:e.fr||void 0)}function hasLocale(e){return!!(e.fr||e.en)}const Jd=Object.keys({home:!0,agents:!0,routines:!0,object:!0,settings:!0}),Yd=[`dot`,`label`,`bubble`];function parseNewsIntensity(e){return Yd.find(t=>t===e)??`dot`}function parseNewsTarget(e){let[t,...n]=e.split(`:`),r=n.join(`:`);switch(t){case`home`:case`agents`:case`routines`:return r===``?{kind:t}:null;case`object`:return r?{kind:t,name:r}:null;case`settings`:return r?{kind:t,section:r}:null;default:return null}}function formatNewsTarget(e){return e.kind===`object`?`object:${e.name}`:e.kind===`settings`?`settings:${e.section}`:e.kind}function withoutTrailingSlashes(e){let t=e.length;for(;t>0&&e[t-1]===`/`;)--t;return e.slice(0,t)}const Xd=/^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?$/;function compareIdentifiers(e,t){let n=/^\d+$/.test(e),r=/^\d+$/.test(t);return n&&r?Math.sign(Number(e)-Number(t)):n?-1:r?1:e<t?-1:+(e>t)}function compareVersions(e,t){let n=Xd.exec(e),r=Xd.exec(t);if(!(n&&r))return null;for(let e=1;e<=3;e+=1){let t=Number(n[e])-Number(r[e]);if(t!==0)return t<0?-1:1}let i=n[4],a=r[4];if(i===void 0&&a===void 0)return 0;if(i===void 0)return 1;if(a===void 0)return-1;let o=i.split(`.`),s=a.split(`.`);for(let e=0;e<Math.max(o.length,s.length);e+=1){let t=o[e],n=s[e];if(t===void 0)return-1;if(n===void 0)return 1;let r=compareIdentifiers(t,n);if(r!==0)return r<0?-1:1}return 0}function isSemver(e){return Xd.test(e)}const Zd=30,Qd=90,$d=50,ef=L.looseObject({fr:L.string().optional(),en:L.string().optional()}),$=L.iso.datetime({offset:!0}),tf=L.looseObject({id:L.string().min(1),slug:L.string().min(1),updatedAt:$,publishedAt:$,since:L.string(),displayDays:L.number().int().positive().optional(),requires:L.looseObject({capability:L.string(),level:L.string()}).optional(),target:L.string().optional(),intensity:L.unknown().optional(),title:ef,summary:ef});function knownRequirement(e){let t=G.find(t=>t.id===e.capability);return t!==void 0&&levelActions(t,e.level).length>0}function parseEntry(e){let t=tf.safeParse(e);if(!t.success)return`malformed entry: ${t.error.issues[0]?.message??`invalid`}`;let n=t.data;if(!isSemver(n.since))return`entry ${n.id}: since "${n.since}" is not semver`;if(!hasLocale(n.title))return`entry ${n.id}: title has no locale`;if(!hasLocale(n.summary))return`entry ${n.id}: summary has no locale`;if(n.requires&&!knownRequirement(n.requires))return`entry ${n.id}: unknown requirement ${n.requires.capability}/${n.requires.level}`;let r=n.target?parseNewsTarget(n.target):null;return{...n,displayDays:n.displayDays??30,intensity:parseNewsIntensity(n.intensity),target:r??void 0}}function httpsUrl(e){return typeof e==`string`&&e.startsWith(`https://`)?e:void 0}function parseNewsIndex(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw new P(`News feed: document must be an object`,[]);let n=e;if(!Array.isArray(n.entries))throw new P(`News feed: entries must be an array`,[]);let r=[];for(let e of n.entries){let n=parseEntry(e);typeof n==`string`?t?.(n):r.push(n)}let i=httpsUrl(n.blogUrl),a=httpsUrl(n.mediaBaseUrl),o=a?withoutTrailingSlashes(a):void 0;return{...i?{blogUrl:i}:{},...o?{mediaBaseUrl:o}:{},entries:r.slice(0,50)}}const nf=L.looseObject({id:L.string().min(1),slug:L.string().min(1),updatedAt:$,body:ef});function parseNewsBody(e){let t=nf.safeParse(e);if(!t.success)throw new P(`News body: malformed document`,[]);if(!hasLocale(t.data.body))throw new P(`News body: body needs at least one locale`,[]);return t.data}function preference(e,t){return{key:e,value:t.value,default:t.default,audited:t.audited??!1,...t.parameter===void 0?{}:{parameter:t.parameter},...t.parameters===void 0?{}:{parameters:t.parameters},...t.refine===void 0?{}:{refine:t.refine}}}const rf=``;function refusal(e,t){return{ok:!1,field:e,message:t,issues:[{path:[e],message:t}]}}function declarationOf(e,t){return`get`in e?e.get(t):e.find(e=>e.key===t)}function locatePreference(e,t,n){let r=declarationOf(e,t);return r?r.parameter===void 0?n===void 0?{ok:!0,declaration:r,parameter:``}:refusal(`parameter`,`Preference "${t}" takes no parameter`):n===void 0||n===``||n.trim()!==n?refusal(`parameter`,`Preference "${t}" is keyed by ${r.parameter}`):r.parameters&&!r.parameters.includes(n)?refusal(`parameter`,`"${n}" is not a ${r.parameter} of "${t}"`):{ok:!0,declaration:r,parameter:n}:refusal(`key`,`Unknown preference "${t}"`)}function judgePreferenceWrite(e,t,n,r){let i=locatePreference(e,t,n);if(!i.ok)return i;let a=i.declaration.value.safeParse(r);if(a.success){let e=i.declaration.refine?.(a.data,i.parameter);return e===void 0?{...i,value:a.data}:refusal(`value`,e)}return{ok:!1,field:`value`,message:`Invalid value for preference "${t}"`,issues:a.error.issues.map(e=>({path:[`value`,...e.path.map(String)],message:e.message}))}}const af=L.strictObject({model:qd.optional(),routing:L.literal(`auto`).optional()}),of=L.strictObject({inApp:L.boolean()});function isActionableType(e){let t=h[e];return t!==void 0&&Re(t.kind)}const sf=[preference(`workPosture`,{value:L.enum(As),default:`auto`,audited:!0}),preference(`chat.default`,{value:af,default:{},audited:!0}),preference(`conversationSurface`,{value:L.enum(Da),default:`panel`}),preference(`mailboxListMode`,{value:L.enum(bo),default:`threads`}),preference(`home`,{value:L.string().uuid().nullable(),default:null}),preference(`memory.learnFromEmail`,{value:L.boolean(),default:!0,audited:!0}),preference(`memory.shareWithTeam`,{value:L.boolean(),default:!0,audited:!0}),preference(`onboarding.completed`,{value:L.boolean(),default:!1,audited:!1}),preference(`decisions.seenAt`,{value:L.iso.datetime().nullable(),default:null}),preference(`decisions.delivery`,{value:of,default:{inApp:!0},parameter:`decision type`,parameters:Object.keys(h),refine:(e,t)=>!e.inApp&&isActionableType(t)?`A "${t}" decision asks you to act: it is always shown in-app`:void 0})];function preferenceEntry(e,t,n){return n===void 0?{key:e,value:t}:{key:e,parameter:n,value:t}}function withPreferenceEntry(e,t){if(t.parameter===void 0)return{...e,values:{...e.values,[t.key]:t.value}};let n=e.entries.findIndex(e=>e.key===t.key&&e.parameter===t.parameter),r=n===-1?[...e.entries,t]:e.entries.map((e,r)=>r===n?t:e);return{...e,entries:r}}export{Gi as ACCESS_LEVELS,Ki as ACCESS_ROLES,e as ACTIONABLE_DECISION_KINDS,y as AGENDA_BLOCK,qi as AGENT_ASIDE_ANSWER_MAX_LENGTH,Ji as AGENT_ASIDE_HISTORY_LIMIT,Yi as AGENT_ASIDE_QUESTION_MAX_LENGTH,Xi as AGENT_AVATAR_EXPRESSIONS,Zi as AGENT_AVATAR_TYPES,Qi as AGENT_MESSAGE_KIND,$i as AGENT_MESSAGE_SENDER_NAME_KEY,ea as AGENT_NOTIFICATION_KIND,ta as AGENT_SESSION_ACCESS_ROLES,na as AGENT_SESSION_LIST_ORDERS,ra as AGENT_SESSION_ORIGINS,ia as AGENT_SESSION_PROVENANCES,aa as AGENT_STARTERS_MAX,oa as AGENT_STARTER_MAX_LENGTH,sa as AGENT_SYSTEM_PROMPT_MAX_LENGTH,ca as AGENT_TASK_KINDS,la as AGENT_WAKE_KIND,t as AGGREGATE_BUCKETS,n as AGGREGATE_MEASURES,Uu as ALLOWED_PROPERTY_TYPES,ua as ALL_CATALOG_TOOL_NAMES,V as ALL_PIPES,da as ALWAYS_KINDS,Ed as APPEARANCE_FACETS,fa as APPROVAL_FAMILY_TOOL_NAMES,pa as ARCHITECT_PUBLICATION_KIND,Pu as ARTIFACT_FILE_ROLES,Mu as ARTIFACT_KINDS,Ze as ARTIFACT_PREVIEW_EXTENSION,Nu as ARTIFACT_RETENTIONS,ma as ASK_QUESTIONS_ANSWER_MAX_LENGTH,ha as ASK_QUESTIONS_ANSWER_MAX_VALUES,ga as ASK_QUESTIONS_MAX_BATCH,_a as ASK_QUESTIONS_TOOL_NAME,Qe as ATTRIBUTE_FILTER_OPERATORS,r as ATTRIBUTE_NAME_SCHEMA,$e as ATTRIBUTE_TYPES,et as ATTRIBUTE_TYPE_DESCRIPTORS,va as AUDIT_ACTIONS,ya as AUDIT_AGENT_SESSION_METADATA_KEY,ba as AUDIT_RESOURCE_TYPES,ti as AccessDeniedError,AgendaBuilder,F as AgentBuilder,ni as AggregateValidationError,ri as AmbiguousSchemaChangeError,ii as AttributeInUseError,ai as AttributeNotFoundError,tt as BLOCK_CONTEXTS,nt as BLOCK_PERIODS,b as BLOCK_WIDTHS,xa as BROWSER_LAUNCH_TOOL_NAME,Sa as BROWSER_TOOL_NAMES,Ca as BUNDLE_LOCALES,gd as BUNDLE_NAME_PATTERN,wa as BUNDLE_SETUP_PROMPT_MAX_LENGTH,Hu as BYTE_UNIT_LABELS,BlockContentBuilder,BundleBuilder,x as CARD_BLOCK,td as CATALOG_RESOURCES,S as CHART_BLOCK,rt as CHART_KINDS,it as COMPUTED_RETURN_TYPES,Ta as CONNECTION_GRANT_PROVIDERS,Pd as CONNECTOR_CALLBACK_PARAM,at as CONTENT_PLACEMENT_CONTEXTS,Ea as CONTINUATION_KEY_PATTERN,Da as CONVERSATION_SURFACES,Oa as COPY_VERB_NAME,_d as CORE_BUNDLE_NAME,sf as CORE_PREFERENCES,ka as CORE_RECORD_TOOL_NAMES,Aa as CORE_TOOL_NAMES,ja as COUNT_MODES,ed as CUSTOM_LEVEL,CardBuilder,ChartBuilder,ChartQuery,oi as ConcurrentModificationError,X as ContentBuilder,ot as DECISIONS_BLOCK,i as DECISION_INBOX_STATES,a as DECISION_KINDS,o as DECISION_LINE_MAX_LENGTH,s as DECISION_LINK_TARGET_TYPES,c as DECISION_LIST_STATES,l as DECISION_READ_STATES,u as DECISION_SETTINGS_AREAS,d as DECISION_TITLE_MAX_LENGTH,f as DECISION_TRANSFERS_KEY,p as DECISION_TYPES_V1,m as DECISION_TYPE_ACCESS_GRANTED,ee as DECISION_TYPE_AGENT_APPROVAL,te as DECISION_TYPE_AGENT_MESSAGE,ne as DECISION_TYPE_AGENT_QUESTION,re as DECISION_TYPE_AGENT_REVIEW,ie as DECISION_TYPE_AGENT_ROUTINE_RUN_FAILED,ae as DECISION_TYPE_AGENT_SETUP,oe as DECISION_TYPE_BUNDLE_SETUP,se as DECISION_TYPE_CONNECTOR_CONNECTION_ERROR,ce as DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED,le as DECISION_TYPE_ENVIRONMENT_BUILD_FAILED,h as DECISION_TYPE_KINDS,ue as DECISION_TYPE_PERSON,de as DECISION_TYPE_RECORD_ASSIGNED,fe as DECISION_TYPE_RECORD_MENTIONED,pe as DECISION_WORK_STATES,Ma as DEFAULT_AGENT_EXECUTION_CONFIG,Na as DEFAULT_AGENT_TOOL_GROUPS,Cd as DEFAULT_APPEARANCE_ICON,Pa as DEFAULT_APPROVAL_POLICY,Fa as DEFAULT_BLUEPRINT_TOOL_GROUPS,Ia as DEFAULT_DAILY_ACTIVITY_DAYS,ju as DEFAULT_DICTATION_LIMITS,Zu as DEFAULT_LABEL_FALLBACK,st as DEFAULT_LAYOUT_TRAITS,La as DEFAULT_MEETING_BOT_DISPLAY_NAME,Ra as DEFAULT_TENANT_SETTINGS,ct as DEFAULT_VALIDATION_MESSAGES,za as DEVICE_ACCESS_ROLES,lu as DEVICE_CHANNEL_AUTHENTICATE_TIMEOUT_MS,uu as DEVICE_CHANNEL_IDLE_POLL_MS,fu as DEVICE_CHANNEL_KEEPALIVE_MS,cu as DEVICE_CHANNEL_MAX_FRAME_BYTES,su as DEVICE_CHANNEL_PATH,du as DEVICE_CHANNEL_PRESENCE_MS,pu as DEVICE_CHANNEL_WORKER_CLOSE_PROTOCOL_VIOLATION,hu as DEVICE_COMMAND_ERROR_CODES,_u as DEVICE_DESKTOP_STATES,gu as DEVICE_SHELLS,ku as DICTATION_FINALIZATION_TIMEOUT_MS,Cu as DICTATION_FRAME_BYTES,Tu as DICTATION_MAX_BUFFER_BYTES,wu as DICTATION_MAX_FRAME_BYTES,Eu as DICTATION_MAX_TRANSCRIPT_BYTES,Au as DICTATION_MODEL_ID,Ou as DICTATION_PREPARATION_TIMEOUT_MS,Su as DICTATION_SAMPLE_RATE,Du as DICTATION_TICKET_TTL_MS,Ba as DISCARD_ARCHITECT_DRAFT_TOOL_NAME,Va as DOCUMENT_SORT_MODES,Bd as DRAFT_CONFLICT_KINDS,Ha as DRAFT_WRITE_TOOL_NAMES,DecisionsBuilder,DeviceChannelProtocolError,bu as DeviceChannelServerFrameSchema,yu as DeviceChannelWorkerFrameSchema,vu as DeviceDesktopStatusSchema,A as DuplicateError,Ua as EMAIL_CATEGORY_DEFAULT_COLOR,Wa as EMAIL_CATEGORY_DEFAULT_ICON,Ga as EMAIL_CATEGORY_DESCRIPTION_MAX,Ka as EMAIL_CATEGORY_DESCRIPTION_MIN,qa as EMAIL_CATEGORY_LIMIT,Ja as EMAIL_CATEGORY_NAME_MAX,Ya as ENVIRONMENT_BUILD_LOG_STEPS,Xa as ENVIRONMENT_BUILD_LOG_STEP_PREFIX,Za as ENVIRONMENT_HARNESSES,Qa as ENVIRONMENT_HARNESS_SANDBOX_WORKDIR,$a as ENVIRONMENT_HARNESS_WORKDIR,eo as ENVIRONMENT_IMAGES,to as ENVIRONMENT_MEMORY_GB_PER_VCPU,no as ENVIRONMENT_NAME_MAX_CHARS,ro as ENVIRONMENT_NETWORK_ALLOW_MAX,io as ENVIRONMENT_SCRIPT_MAX_BYTES,ao as ENVIRONMENT_SIZES,oo as ENVIRONMENT_SIZE_VCPUS,so as ENVIRONMENT_STANDARDS_WORKDIR,co as ENV_VAR_KEY_PATTERN,lo as ESTIMATED_COUNT_CAP,si as ExportTooLargeError,uo as FILE_URLS_MAX_IDS,z as FORM_FORBIDDEN_ATTRIBUTE_TYPES,ci as ForbiddenError,FormBuilder,FormRowBuilder,FormStepBuilder,fo as GET_ARCHITECT_DRAFT_TOOL_NAME,po as GITHUB_TRIGGER_CATALOG,mo as GRANT_ENABLES,lt as GROUPABLE_ATTRIBUTE_TYPES,Od as GroupBuilder,ut as HEADING_BLOCK,me as HIERARCHY_ATTRIBUTE_IDS,he as HIERARCHY_ATTRIBUTE_NAMES,ge as HIERARCHY_CHILD_IDS_LIMIT,ho as HITL_TOOL_NAMES,zu as IMAGE_FORMATS,wd as IMAGE_SHAPES,Td as IMAGE_SOURCES,go as INFERENCE_REASONING_OPTIONS,_o as INFERENCE_ROUTING_MODES,vo as INFERENCE_SPEEDS,dt as INVENTORY_LIMIT,li as InvalidPermissionGrantError,yo as LAST_RUN_ERROR_MAX_LENGTH,_e as LIST_VIEW_TAB_VISIBILITIES,ft as LOCATION_FILTER_PROPERTIES,ui as LogoProviderUnavailableError,di as LogoSearchRateLimitedError,pt as MAILBOX_BLOCK,bo as MAILBOX_LIST_MODES,xo as MAIL_DRAFT_BODY_MAX_CHARS,So as MAIL_SIGNATURE_MAX_CHARS,Co as MAIL_SUBJECT_MAX_CHARS,ve as MAX_AGGREGATE_GROUPS,wo as MAX_DAILY_ACTIVITY_DAYS,xu as MAX_PRESET_DEPTH,To as MAX_TODOS,Eo as MAX_TODO_DESCRIPTION_CHARS,Do as MAX_TODO_ID_CHARS,Oo as MCP_SERVER_NAME_MAX_LENGTH,mt as MEASURABLE_ATTRIBUTE_TYPES,ht as MEETINGS_UPCOMING_BLOCK,ko as MEETING_BOT_IMAGE,Ao as MEETING_BOT_IMAGE_BASE64_MAX_LENGTH,jo as MEETING_BOT_NO_CREDITS,Mo as MEETING_BOT_SILENT_REASON,No as MEETING_RESPONSES,K as MEMORY_ATTRIBUTES,od as MEMORY_PAGE_MAX_CHARS,Po as MEMORY_SPEND_LIMIT_PATTERN,sd as MEMORY_WORKSPACE_PROFILE,ad as MEMORY_WRITE_SOURCE,ld as METERED_CHARGE_KINDS,cd as METERED_RATES_USD,C as METRIC_BLOCK,MailboxBuilder,Fo as McpOAuthCompletionMode,fi as MemoryNotFoundError,MetricBuilder,MetricQuery,MultiRelationAttributeBuilder,au as NATIVE_AGENT_UI_PART_IDS_METADATA_KEY,ou as NATIVE_AGENT_UI_PART_IDS_METADATA_SCHEMA_VERSION,gt as NATIVE_BLOCKS,ye as NATIVE_OBJECT_NAMES,Io as NATIVE_TOOL_GROUPS,Lo as NATIVE_TOOL_GROUP_CATALOG,Zd as NEWS_DEFAULT_DISPLAY_DAYS,Qd as NEWS_DISPLAY_CAP_DAYS,$d as NEWS_INDEX_MAX_ENTRIES,Yd as NEWS_INTENSITIES,Jd as NEWS_TARGET_KINDS,U as NO_ACCESS,rf as NO_PREFERENCE_PARAMETER,Ro as NO_RECORDING,_t as NO_VALUE_OPERATORS,Gl as NonJsonValueError,NoopGeocodingAdapter,pi as NotFoundError,mi as NotImplementedError,W as OBJECT_GRANT,be as OBJECT_NAME_SCHEMA,q as OFFICIAL_SKILLS_REPO,zo as OPEN_TOOL_PART_STATES,Bo as OPERATION_MAX_STEPS,vt as OPERATORS_BY_TYPE,ObjectBuilder,hi as ObjectNotFoundError,gi as ObjectReferencedError,_i as OrphanSystemAttributeError,yt as PAGE_GRID_COLUMNS,rd as PERMISSION_ACTIONS,G as PERMISSION_CAPABILITIES,$u as PERMISSION_CATALOG,Vu as PERSISTENCE_OWNED_QUOTA_KEYS,Gu as PIPES_WITH_ARGS,Vo as PROVIDER_DRAFT_LABEL,Ho as PROVIDER_NAMES,Uo as PUBLIC_MAIL_DOMAINS,yd as PageBuilder,vi as PageReferencedError,yi as ProtectedResourceError,bi as ProtectedRoleError,bt as QUALIFIED_SEPARATOR,xt as QUERY_OBJECT,Wo as QUESTION_FAMILY_TOOL_NAMES,Bu as QUOTA_KEYS,xi as QueryTimeoutError,Go as RECENT_ACTIVITY_LEDGER_LIMIT,Ko as RECIPIENT_IDENTITIES_MAX,qo as RECORDING_OVERRIDES,Jo as RECORDING_POLICIES,Yo as RECORD_ACCESS_ROLES,Xo as RECORD_ACCESS_SOURCES,Zo as RECORD_DRIVE_CURSOR_MAX_LENGTH,Qo as RECORD_DRIVE_PAGE_DEFAULT_LIMIT,$o as RECORD_DRIVE_PAGE_MAX_LIMIT,es as RECORD_GRAPH_DEFAULT_LIMIT_PER_NODE,ts as RECORD_GRAPH_MAX_LIMIT_PER_NODE,ns as RECORD_GRAPH_MAX_NODES,rs as RECORD_IMAGE_MAX_BYTES,St as RECORD_LINKS_BLOCK,w as RECORD_LINKS_CONTENT,xe as RECORD_LIST_SCOPES,Ct as RECORD_OBJECT,Ad as REFERENCE_KINDS,wt as RELATION_TARGET_ANY,Tt as REMOVED_OPERATOR_REPLACEMENTS,is as REPLY_MODES,as as REQUEST_DESIGN_REVIEW_TOOL_NAME,os as REQUEST_SETUP_TOOL_NAME,Se as RESERVED_ATTRIBUTE_NAMES,Ce as RESERVED_OBJECT_NAMES,ss as RESOURCE_GRANT_KINDS,cs as RESOURCE_KIND_CATALOG,we as RESOURCE_VISIBILITIES,ls as ROUTING_PRICE_CEILINGS,Si as RealtimeDeliveryError,Ci as RealtimeRateLimitedError,wi as RealtimeSubscriptionError,Ti as RecordNotFoundError,Et as RecordQuery,Ei as RecordReferencedError,Di as RepositoryError,j as ReservedObjectNameError,Oi as RoleNotFoundError,g as SCHEMA_LIMITS,B as SCHEMA_OWNER_PATTERN,Fd as SCHEMA_SOURCE_RETYPE_FROM,us as SEND_VERB_NAME,ds as SESSION_INFERENCE_PATCH_KEYS,Wu as SIMPLE_PIPES,Dt as SIMPLE_PROPERTY_TYPES,fs as SLACK_TRIGGER_CATALOG,ps as SPEAKS_THROUGH_SEND_METADATA_KEY,dd as STANDARD_SCHEMA_VENDOR,ms as SURFACE_TOOL_NAMES,Ot as SYNONYM_ALIASES,Te as SYSTEM_ATTRIBUTES,Ee as SYSTEM_ATTRIBUTE_I18N_KEYS,hs as SYSTEM_EMAIL_CATEGORIES,gs as SYSTEM_EMAIL_CATEGORY_NAMES,De as SYSTEM_FIELD_NAMES,kt as SYSTEM_FILTER_ATTRIBUTE_TYPES,_s as SYSTEM_PART_CODES,M as SchemaError,N as SchemaErrorCode,ki as SearchBackendError,Ai as SearchPathNotIndexedError,SingleRelationAttributeBuilder,ji as StorageError,Mi as SyncCascadeError,Ni as SyncConflictError,Pi as SyncError,Fi as SystemEntityImmutableError,vs as TASK_DEMAND_LEVELS,Fu as TENANT_INVITATION_DEFAULT_TTL_MS,Lu as TENANT_INVITATION_MAX_TTL_MS,Iu as TENANT_INVITATION_MIN_TTL_MS,Ru as TENANT_INVITATION_RESEND_INTERVAL_MS,At as TEXT_BLOCK,jt as TEXT_FORMAT_PATTERNS,ys as TODO_PHASES,bs as TODO_PLAN_STATUSES,xs as TODO_STATUSES,Ss as TOOL_APPROVAL_STATES,Cs as TOOL_IMPACT_COUNT_KEYS,ws as TRIAGE_ACTIONS,Ts as TRIGGER_EVENT_TYPES,Es as TURN_OUTCOMES,Ii as ToolGroupGrantError,Ds as UNSHAREABLE_OBJECT_NAMES,Os as USERS_RESOLVE_MAX_IDS,ks as USER_STATUSES,As as USER_WORK_POSTURES,js as VERB_NAMES,P as ValidationError,Y as ViewBuilder,Ms as WAKE_TURN_METADATA_KEY,Ns as WAKE_TURN_SPOKE_METADATA_KEY,Mt as WIRE_OFFERED_BASE_CONFIG,Nt as WIRE_OMITTED_CONFIG_KEYS,Li as WorkspaceInvariantReason,Ps as agent,Fs as agentAvatarFromMetadata,Is as agentAvatarSchema,Ls as agentDataChunk,Rs as agentDisplayName,zs as agentInferencePreferencesSchema,Bs as agentMessageAttachmentSchema,Vs as agentMessagePartSchema,Hs as agentScheduleSchema,Us as agentSessionInferenceOverridesInputSchema,Ws as agentSessionInferenceOverridesSchema,Gs as agentSessionMessageSchema,Ks as agentStartersSchema,qs as agentTriggerBaseSchema,Js as agentTriggerPatchSchema,Ys as agentTriggerSchema,Xs as agentUIValidationError,applyPipes,Zs as artifactQuoteSchema,Kl as asTenantId,ql as asUserId,Qs as askQuestionsOutputSchema,assertBundleName,$s as assertCustomAgentUIMessageChunk,assertSchemaSourceResolutions,ec as assertSessionState,Pt as attributeConfigSchemas,Ft as attributeFilterTarget,It as attributeInventory,Lt as blockObjectInputs,buildPropertySchema,Rt as buildQualifiedAttribute,builtBundleFromPieces,bundle,I as canonicalStringify,tc as canonicalToolGroups,zt as canonicalizeFilterValue,capabilityForResource,Bt as capped,checkbox,nc as classificationRestoreSchema,rc as classifyEmailSchema,ic as cliDefaultModelOf,Vt as collectContentViewCatalogue,Ht as collectQualifiedRuleIssues,Ut as collectionContentSourceSchema,Wt as collectionSourceAddress,Gt as collectionSourceAddressOf,ke as colorIdSchema,Kt as columnsSchema,ac as compareAgentSessionMessages,compareSchemaStateEntries,compareVersions,oc as compiledHarnessModels,computeByteMagnitude,computeReconnectDelay,computeRetryDelay,sc as connectionGrantKindsOf,cc as connectorTriggerMatchSchema,kd as content,contentDefinition,qt as contentExtensionRegistry,Jt as contentReadObjects,T as contentViewDefinitionSchema,Yt as contentViewDefinitionSchemaFor,convertRetypedValue,Xt as createAttributeValidator,Zt as createFormAttributeValidator,createStandardSchemaProps,currency,$t as currentActor,lc as customDataChunkSchemas,date,Ae as decisionThreadKey,je as decisionTransferBy,Me as decisionTransfersOf,declaredImageRequests,uc as decodeAgentSessionListCursor,Jl as deepEqual,tn as defineBlock,deriveLayout6,dc as deriveViewerAccess,nn as describeViewIssue,detailView,deviceChannelUrl,diffSchemaState,rn as displayAttributesSchema,document,an as draftContentViewDefinitionSchema,on as draftContentViewDefinitionSchemaFor,droppedContents,fc as durableDateSchema,sn as edgePropertyFilterTarget,pc as emailCategoryCreateSchema,mc as emailCategoryDeleteSchema,hc as emailCategoryScopeQuerySchema,gc as emailCategoryUpdateSchema,_c as emailRuleScopeSchema,vc as encodeAgentSessionListCursor,yc as environmentHarness,bc as environmentWorkdir,extractAttributeNames,extractAttributePaths,cn as extractCurrencyFilterValue,ln as extractFilterValue,extractReadRecordIds,extractTouchedArtifacts,extractTouchedDocuments,extractTouchedRecords,un as filterOperatorsOfType,dn as filterStateSchema,fn as filterTargetsOf,xc as findEnvironmentHarness,findGrantIssues,pn as findGridViolation,mn as findGroupViolation,hn as findLayoutRuleViolation,gn as findRelationAttribute,_n as findRowLimitViolation,foldText,form,formFieldFlatKey,formFieldKey,formatByteSize,Ne as formatDecisionLink,formatNewsTarget,vn as formatPhoneForDisplay,formatReference,formatSkillSource,yn as formatZodErrors,formula,Yl as generateId,bn as getAttributeCapabilities,xn as getAttributeConfigSchema,Sn as getAttributeConfigWriteSchema,Cn as getAttributeFilterOperators,getEditableLabelAttribute,Pe as getHierarchyAttributes,Fe as getObjectSystemAttributes,Tn as getOperatorPolarity,En as getRollupFilterOperators,getSingleAttributeFromExpression,getSlotFieldTargets,Ie as getSystemAttributeI18nKey,Le as getSystemAttributeList,Sc as githubConditionSchema,Cc as githubTriggerMatchSchema,wc as grantKindOf,Dn as gridPositionSchema,group,On as groupSizeMessage,kn as groupedMembers,Tc as harnessModelChoices,hasLocale,hasOptions,An as hasTypeTrait,jn as hasValueKind,hashBundlePieces,Ec as humanRequestId,Dc as humanRequestKind,_ as iconNameSchema,imageLookupKindOf,imageModelFormatDefect,Oc as imageModelIdSchema,Xl as indexBy,Mn as inferInverseCardinality,kc as inferenceReasoningSchema,Ac as inferenceRoutingSchema,jc as inferenceSpeedSchema,Nn as input,Pn as invalidViewMessage,Re as isActionableDecisionKind,Mc as isAgentMessageMetadata,Nc as isAgentNotificationMetadata,Pc as isAgentUIDataName,Fc as isAgentWakeMetadata,Ic as isAgentWrittenAuditEntry,Lc as isArchitectPublicationMetadata,Fn as isAttributeFilterable,In as isAttributeGroupable,Ri as isAttributeInUseError,Ln as isAttributeKanbanGroupable,Rn as isAttributeSearchable,zn as isAttributeSortable,Rc as isAwaitingHuman,Bn as isBilateralRelation,zc as isBlocking,Vn as isBoardGrouping,isBundle,Hn as isCalendarDay,isCatalogResource,Un as isCollectionContent,Wn as isDynamicValue,Gn as isEmptyValue,Bc as isEnvironmentBuildLogStep,Vc as isEnvironmentHarnessId,isFormDefinition,isFormFieldsRow,isFormFreeFieldRef,isFormHeadingRow,isFormSeparatorRow,isFormSlotFieldRef,isFormTextRow,ze as isHierarchyAttribute,isImageSource,isLabelExpression,Kn as isLocationFilterProperty,qn as isLocationPartOperator,Hc as isMailProvider,Uc as isMailboxListMode,Be as isManagedSystemAttribute,isMeteredChargeKind,v as isNativeObjectName,Wc as isNativeToolGroup,Jn as isNoValueOperator,zi as isNotFoundError,Yn as isNullishOrEmptyString,Bi as isObjectReferencedError,Gc as isOpenToolPartState,Kc as isParkedOnHuman,isPinnedSkillSource,Ve as isPlainRecord,Vi as isProtectedResourceError,qc as isProviderDraft,Jc as isPublicMailDomain,Yc as isQuestionPart,Hi as isRecordReferencedError,Xn as isRelativeDateValue,Xc as isReplyMode,Zc as isResourceGrant,Qc as isRoutineActorMetadata,Ui as isSchemaError,isSemver,$c as isSessionInferencePatch,Zn as isSetMembershipOperator,isSkillRepository,isStandardSchema,el as isSystemEmailCategory,tl as isSystemEmailCategoryName,nl as isSystemPartCode,rl as isToolApprovalState,il as isToolImpactCountKey,Qn as isUniversalRelation,Wi as isValidationError,E as isValueKindType,$n as isValuePresent,isWherePipe,isWildcard,judgePreferenceWrite,keptFill,H as labelExpressionSchema,er as layoutTraitsOf,levelActions,levelFloor,levelOf,listView,locatePreference,location,tr as locationPartFilterTarget,al as lockingSendCall,ol as meetingBotDispatchRequestSchema,sl as meetingBotDispatchResponseSchema,cl as meetingBotNotificationSchema,ll as meetingTranscriptSegmentSchema,D as memberlessGroups,memoryPageViewOf,ul as mentionReferenceSchema,dl as mergeSessionInferencePatch,meteredUsd,nr as metricComparePeriod,fl as modelDefinitionSchema,qd as modelIdentitySchema,pl as modelReferenceSchema,moveWidensAudience,multiselect,nameSlug,zd as namedTargetSchema,nativeAgentUIPartIdMetadataKey,ml as needsManageWhenUnattended,rr as normalizeCountrylessPhoneNumber,ir as normalizeFilterRule,ar as normalizeForEdgeRpc,normalizeNewsLocale,or as normalizeOperator,sr as normalizePhoneNumber,hl as normalizedMeetingTranscriptSchema,cr as now,number,object,Dd as objectImageSchema,gl as openRequests,_l as orderAgentSessionMessages,packLayout,page,pageCompactor,ur as pageTraitsOf,vl as parseAgentDefinitionAccessRole,yl as parseAgentSessionAccessRole,dr as parseAttributeConfig,fr as parseAttributeConfigForCreate,pr as parseAttributeConfigForUpdate,O as parseBlockParameters,bl as parseCountMode,He as parseDecisionLink,xl as parseDeviceAccessRole,parseDeviceChannelFrame,Sl as parseMergedAgentTrigger,parseNamedTarget,parseNativeAgentUIPartIdsMetadata,parseNewsBody,parseNewsIndex,parseNewsIntensity,parseNewsTarget,Cl as parseOptionalCountMode,wl as parsePageAccessRole,mr as parseQualifiedAttribute,Tl as parseRecordAccessRole,Ue as parseRecordListScope,parseReference,We as parseResourceVisibility,parseSchemaGroupPresentation,parseSchemaOwner,parseSchemaState,parseServerFrame,parseSkillSource,El as parseToolGroupGrant,parseWherePipe,parseWorkerFrame,id as permissionGrantSchema,phone,placeNew,preference,preferenceEntry,hr as propertyAttributeSchema,gr as propertyAttributeWireSchema,_r as propertySchemaSchema,vr as propertySchemaWireSchema,Dl as providerNameSchema,k as publishedViewContentDefinitionSchema,yr as query,Ol as readArchitectPublication,readArtifactResult,kl as readAskQuestionsResult,readFormFieldValue,readGeneratedImageResult,Al as recentActivityEntryKey,jl as recordGraphNodeKey,Ml as recordGraphRequestSchema,recordLinksTab,Nl as recordMeetingsCount,Pl as recordOperationSchema,br as recordQueryDefinitionSchema,Fl as refineTrigger,xr as refuseForeignKeys,Sr as rejectUnknownAttributesOrThrow,relation,Cr as relationAcceptsObject,relationProperty,wr as relationTargetsOf,renderLabelExpression,repairPageGrid,requestedCapabilities,Er as requireRecordContentContext,Dr as requireSingleRelationTarget,resolveAppearance,Or as resolveCollectionActions,kr as resolveContentNavigation,Ar as resolveEffectiveFilterType,resolveFieldRequired,jr as resolveIsWithinBounds,resolveLocalized,resolvePageGrid,resolvePropertyDefinitions,Mr as resolveTextPattern,Nr as resolveUtcDayBounds,resolveViewContents,Il as resourceGrant,richtext,rollup,Ll as routedMessageInferenceSchema,sameActions,Zl as sameStableValue,schemaGroupKey,schemaStateSourcePayload,select,Pr as selectOptionWriteSchema,Ql as serializeCanonicalJson,$l as serializeStableJson,Rl as sessionInferencePatchSchema,settleLayout,sha256Hex,Fr as singleRelationTarget,zl as slackConditionSchema,Bl as slackTriggerMatchSchema,snapWidth,Ir as sortsSchema,Lr as sourcedAttributeOf,status,Rr as statusGroupSchema,zr as statusOptionWriteSchema,storedContentDefinition,Br as systemColumnFilterTarget,text,Vr as toMultiValueOperator,Hr as toUtcDayString,Ur as today,Vl as todoItemSchema,Hl as todoPlanSchema,Ul as toolImpactSchema,user,Wl as utf8ByteLength,Wr as validateAttribute,Ge as validateAttributeName,Gr as validateContentViewCatalogue,Kr as validateDraft,qr as validateDraftOrThrow,validateLabelExpression,Jr as validateObject,validateObjectExpressions,validateObjectImage,Je as validateObjectName,Yr as validateObjectOrThrow,Xr as validateQualifiedRule,Zr as validateStoredViews,Xe as validateViewName,widthStepConstraint,Qr as wireHiddenTypeConfigMask,$r as wireOmittedConfigKeysFor,withPreferenceEntry,withoutTrailingSlashes,ei as withoutUnknownOptionKeys,workspaceViewAuthoring};
|