diff --git a/.quixos-subtree-source.json b/.quixos-subtree-source.json index 14bf34c..ba20215 100644 --- a/.quixos-subtree-source.json +++ b/.quixos-subtree-source.json @@ -1,7 +1,7 @@ { "version": 1, "sourceRepo": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos", - "sourceCommit": "db6d7990a4ffec273258ac313b7d2aeac57b261a", + "sourceCommit": "53b9a56e8cb120c34d6b5c85b52b18080dd1d9a3", "sourcePath": "quixos-protocol", "exportName": "quixos-protocol", "mirrorRemote": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git" diff --git a/grammar/QuixosCapability.g4 b/grammar/QuixosCapability.g4 index 38d4512..eb3b1e9 100644 --- a/grammar/QuixosCapability.g4 +++ b/grammar/QuixosCapability.g4 @@ -100,7 +100,7 @@ operationMember ; valueMember - : VALUE identifier ID stringLiteral COLON valueType + : queryReadContract? VALUE identifier ID stringLiteral COLON valueType LBRACE valueMemberOperation* RBRACE ; @@ -111,10 +111,14 @@ valueMemberOperation ; relationshipMember - : RELATION identifier ID stringLiteral COLON cardinality targetConstraint ORDERED? + : queryReadContract? RELATION identifier ID stringLiteral COLON cardinality targetConstraint ORDERED? (KEYED stringLiteral)? LBRACE relationshipOperation* RBRACE ; +queryReadContract + : QUERYABLE RPC? + ; + relationshipOperation : RESOLVE ID stringLiteral SEMI | CONNECT ID stringLiteral SEMI @@ -138,6 +142,26 @@ packageExport : packageOperationExport | packageFunctionExport | packageConstructorExport + | packageQuery + | packageQuerySpecialization + ; + +packageQuery + : QUERY identifier typeParameters? ID stringLiteral ROOT interfaceType + DOCUMENT stringLiteral OPERATION stringLiteral LBRACE queryClause* RBRACE + ; + +packageQuerySpecialization + : QUERY identifier ID stringLiteral SPECIALIZE identifier typeArguments SEMI + ; + +queryClause + : FRAGMENTS stringLiteral SEMI + | VIEW OBJECT? identifier AS interfaceType SEMI + | MAX identifier INTEGER SEMI + | ALLOW interfaceType DOT identifier identifier stringLiteral SEMI + | WATCH SEMI + | POLL INTEGER stringLiteral SEMI ; packageOperationExport @@ -187,6 +211,7 @@ dependencyPort | EDGE identifier ID stringLiteral COLON cardinality targetConstraint primitiveList SEMI | INTERFACE identifier ID stringLiteral COLON identifier typeArguments? SEMI | CONSTRUCTOR identifier ID stringLiteral COLON identifier (INPUT valueType)? SEMI + | QUERY identifier ID stringLiteral COLON identifier DOT identifier SEMI ; primitiveList @@ -252,7 +277,7 @@ relationshipMaterializationDecl ; operationBindingDecl - : BIND memberOperationRef TO operationProvider SEMI + : BIND memberOperationRef TO operationProvider (QUERY_REASON stringLiteral)? SEMI ; memberOperationRef @@ -303,6 +328,7 @@ dependencyBinding | identifier TO EDGE identifier DOT identifier (VIA EDGE identifier DOT identifier)? SEMI | identifier TO INTERFACE identifier typeArguments? (VIA EDGE identifier DOT identifier)? SEMI | identifier TO CONSTRUCTOR identifier SEMI + | identifier TO QUERY identifier DOT identifier (VIA EDGE identifier DOT identifier)? SEMI ; constructorBindingDecl @@ -371,6 +397,17 @@ jsonArray identifier : IDENTIFIER | SOURCE + | QUERY + | SPECIALIZE + | ROOT + | DOCUMENT + | FRAGMENTS + | VIEW + | MAX + | ALLOW + | POLL + | RPC + | QUERYABLE ; stringLiteral @@ -378,6 +415,18 @@ stringLiteral ; WORKSPACE: 'workspace'; +QUERY: 'query'; +SPECIALIZE: 'specialize'; +ROOT: 'root'; +DOCUMENT: 'document'; +FRAGMENTS: 'fragments'; +VIEW: 'view'; +MAX: 'max'; +ALLOW: 'allow'; +POLL: 'poll'; +QUERYABLE: 'queryable'; +RPC: 'rpc'; +QUERY_REASON: 'query-reason'; TYPE: 'type'; OBJECT: 'object'; STORABLE: 'storable'; diff --git a/package.json b/package.json index bb98102..c499da9 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "@babel/parser": "^7.28.0", "@bufbuild/protobuf": "^2.12.1", "@bufbuild/protoc-gen-es": "^2.12.1", - "antlr4ng": "^3.0.16" + "antlr4ng": "^3.0.16", + "graphql": "16.11.0" }, "devDependencies": { "@types/node": "^24", diff --git a/proto/camino/api.proto b/proto/camino/api.proto index f277459..a673e18 100644 --- a/proto/camino/api.proto +++ b/proto/camino/api.proto @@ -5,6 +5,8 @@ package camino; import "camino/schema.proto"; service CaminoService { + rpc ExecuteQuery(QueryRequest) returns (QueryResponse); + rpc QueryChanges(QueryChangesRequest) returns (QueryChangesResponse); rpc InstallPersistencePlan(InstallPersistencePlanRequest) returns (InstallPersistencePlanResponse); rpc GetPersistencePlan(GetPersistencePlanRequest) returns (GetPersistencePlanResponse); rpc CreateObject(CreateObjectRequest) returns (CreateObjectResponse); @@ -214,3 +216,84 @@ message CaminoOp { string created_at = 6; string client_mutation_id = 7; } + +message QueryRequest { + string query_id = 1; + string object_id = 2; + map variables = 3; + // Typed callers require this exact checked definition. Administrative/raw + // callers may omit it to explicitly select the currently installed definition. + string expected_definition_digest = 4; +} +message QueryPathPart { + oneof part { + string field = 1; + uint32 index = 2; + } +} +message QueryPendingField { + repeated QueryPathPart path = 1; + string object_id = 2; + string interface_revision_id = 3; + string member_id = 4; + string operation_id = 5; + string value_type_json = 6; + // Internal residual facts are separate from the authored result projection. + optional uint32 residual_window = 7; + uint32 residual_row = 8; + string residual_field = 9; +} +message QueryStats { + uint32 sql_count = 1; + double sql_ms = 2; + uint32 rpc_count = 3; + double rpc_ms = 4; + uint32 result_bytes = 5; + double preparation_ms = 6; + double total_ms = 7; +} +message QueryResponse { + Value value = 1; + string data_version = 2; + string binding_digest = 3; + repeated QueryPendingField pending = 4; + QueryStats stats = 5; + // Redeemable only through the host's private control socket, not an RPC grant. + string preparation_token = 6; + repeated QueryFieldFailure errors = 7; + repeated QueryResidualWindow residual_windows = 8; + // Native reads share one database snapshot; package enrichment does not. + string consistency = 9; // native-snapshot | mixed +} + +message QueryResidualRow { + string entry_id = 1; + map fields = 2; +} +message QueryResidualOrder { + string field = 1; + bool descending = 2; +} +message QueryResidualWindow { + repeated QueryPathPart path = 1; + repeated QueryResidualRow rows = 2; + string predicate_json = 3; + repeated QueryResidualOrder order = 4; + uint32 limit = 5; + bool bounded_all = 6; + repeated QuerySelection selection = 7; + map field_types = 8; +} + +message QueryFieldFailure { + repeated QueryPathPart path = 1; + string error = 2; +} +message QueryChangesRequest { + string query_id = 1; + string object_id = 2; + string data_version = 3; +} +message QueryChangesResponse { + bool changed = 1; +} diff --git a/proto/camino/schema.proto b/proto/camino/schema.proto index 7d25678..9565d82 100644 --- a/proto/camino/schema.proto +++ b/proto/camino/schema.proto @@ -70,4 +70,76 @@ message PersistencePlan { repeated AtomConformance conformances = 4; repeated StateAttachment states = 5; repeated EdgeAttachment edges = 6; + repeated InstalledQuery queries = 7; +} + +// Immutable checked query IR. Installed only with the checked persistence plan; +// query callers select its ID, never send or modify these definitions. +message QueryArgument { + oneof value { + string variable = 1; + string literal_json = 2; + QueryArgumentList list = 3; + QueryArgumentObject object = 4; + } +} +message QueryArgumentList { + repeated QueryArgument values = 1; +} +message QueryArgumentObject { + map fields = 1; +} +message QueryCondition { + bool include = 1; + QueryArgument value = 2; +} +message QuerySelection { + string name = 1; + string key = 2; + string interface_revision_id = 3; + string member_id = 4; + string target_interface_revision_id = 5; + repeated QueryCondition conditions = 6; + map arguments = 7; + repeated QuerySelection selection = 8; +} +message QueryReadBinding { + string atom_id = 1; + string interface_revision_id = 2; + string member_id = 3; + string getter_operation_id = 4; + string slot_id = 5; + string edge_type_id = 6; + string projection_id = 7; + bool rpc = 8; + string watch_start_operation_id = 9; + string watch_stop_operation_id = 10; + string field_name = 11; + string value_type_json = 12; + Cardinality cardinality = 13; + string key_type = 14; +} +message QueryBudgets { + uint32 rows = 1; + uint32 depth = 2; + uint32 result_bytes = 3; + uint32 candidates = 4; + uint32 rpc_calls = 5; + uint32 concurrency = 6; + uint32 deadline_ms = 7; +} +message InstalledQuery { + string id = 1; + string definition_digest = 2; + string binding_digest = 3; + string root_interface_revision_id = 4; + repeated QuerySelection selection = 5; + repeated QueryReadBinding bindings = 6; + QueryBudgets budgets = 7; + string variables_type_json = 8; + string output_type_json = 9; + map variable_defaults = 10; + bool watch = 11; + uint32 polling_interval_ms = 12; + bool rpc_predicate_or_order = 13; } diff --git a/proto/quixos/orch.proto b/proto/quixos/orch.proto index d454d78..d086022 100644 --- a/proto/quixos/orch.proto +++ b/proto/quixos/orch.proto @@ -3,11 +3,14 @@ syntax = "proto3"; package quixos.orch; import "camino/api.proto"; +import "camino/schema.proto"; import "quixos/package.proto"; import "quixos/refs.proto"; import "quixos/runtime.proto"; service OrchestratorRuntime { + rpc ExecuteQuery(camino.QueryRequest) returns (camino.QueryResponse); + rpc WatchQuery(camino.QueryRequest) returns (stream QueryEvent); rpc TryConform(TryConformRequest) returns (TryConformResponse); rpc InvokeCapability(InvokeCapabilityRequest) returns (InvokeCapabilityResponse); rpc EditCapabilityField(EditCapabilityFieldRequest) returns (InvokeCapabilityResponse); @@ -23,6 +26,16 @@ service OrchestratorRuntime { rpc CloseActivation(CloseActivationRequest) returns (CloseActivationResponse); } +message QueryEvent { + string run_id = 1; + uint64 sequence = 2; + string kind = 3; + camino.QueryResponse snapshot = 4; + repeated camino.QueryPathPart path = 5; + camino.Value value = 6; + string error = 7; +} + // Exact closed interface lookup; no policy selection or competing conformances. message TryConformRequest { string object_id = 1; @@ -110,6 +123,7 @@ message WatchCapabilityEvent { message GetWorkspaceRequest { // Revision polling must not download the entire interface graph. bool include_interface_contracts = 1; + bool include_query_contracts = 2; } message GetWorkspaceResponse { string workspace_id = 1; @@ -123,6 +137,18 @@ message GetWorkspaceResponse { // Exact closed interface contracts used by checked presentation consumers. string interfaces_json = 7; repeated ClassCapability class_capabilities = 8; + repeated QueryDescription queries = 9; + uint32 active_query_executions = 10; +} +message QueryDescription { + string id = 1; + string name = 2; + string package_revision_id = 3; + string document = 4; + string schema = 5; + repeated string source_files = 6; + string effects_json = 7; + camino.InstalledQuery plan = 8; } message ClassCapability { string conformance_id = 1; diff --git a/proto/quixos/refs.proto b/proto/quixos/refs.proto index 9213cea..7b0efc5 100644 --- a/proto/quixos/refs.proto +++ b/proto/quixos/refs.proto @@ -29,6 +29,7 @@ message InjectedDependency { EdgeDependency edge = 3; string interface_revision_id = 4; string constructor_atom_id = 5; + string query_id = 7; } // Defaults to the invocation receiver. A checked dependency traversal can // select a related object explicitly before the package runtime starts. diff --git a/src/bindings/generics.ts b/src/bindings/generics.ts index e2fa66a..fc275a1 100644 --- a/src/bindings/generics.ts +++ b/src/bindings/generics.ts @@ -13,6 +13,9 @@ export const genericImplementationType = ( definition: GenericPackageExport, interfaces: InterfaceRevision[], concrete: (type: ValueType) => string, + queryPort: (requirement: Extract) => string = () => { + throw new Error("Query binding schema required"); + }, ): string => { const names = new Map(definition.parameters.map((parameter, index) => [parameter.id, `T${index}`])); type Scope = { arguments: Map; aliases: ValueAliasDefinition[] }; @@ -108,6 +111,8 @@ export const genericImplementationType = ( ]); return object(methods); } + case "query": + return queryPort(requirement); case "constructor": return object([ [ diff --git a/src/bindings/index.ts b/src/bindings/index.ts index bce2140..3891275 100644 --- a/src/bindings/index.ts +++ b/src/bindings/index.ts @@ -144,6 +144,33 @@ export const generateTypeScriptBindings = ( const port = (entry: DependencyPort): { type: string; spec: unknown } => { const requirement = entry.requirement; switch (requirement.kind) { + case "query": { + const query = schema.packages + .find((candidate) => candidate.revisionId === requirement.packageRevisionId) + ?.checkedQueries?.find((query) => query.declaration.id === requirement.queryId); + if (!query) throw new Error(`Missing checked query ${requirement.packageRevisionId}:${requirement.queryId}`); + return { + type: object([ + ["execute", `(variables: ${type(query.variables)}) => Promise<${type(query.output)}>`], + ...(query.declaration.watch + ? ([ + [ + "watch", + `(variables: ${type(query.variables)}, signal: AbortSignal) => AsyncIterable>`, + ], + ] as [string, string][]) + : []), + ]), + spec: { + kind: "query", + id: entry.id, + definitionDigest: query.definitionDigest, + variables: query.variables, + output: query.output, + watch: query.declaration.watch, + }, + }; + } case "state": { const methods = requirement.primitives.map((primitive): [string, string] => { if (primitive === "read") return ["get", `() => Promise<${type(requirement.valueType)}>`]; @@ -282,7 +309,12 @@ export const generateTypeScriptBindings = ( for (const definition of pkg.genericExports ?? []) { handlers.push([ definition.displayName, - genericImplementationType(definition, [...schema.interfaces, ...(schema.interfaceTemplates ?? [])], type), + genericImplementationType( + definition, + [...schema.interfaces, ...(schema.interfaceTemplates ?? [])], + type, + (requirement) => port({ id: capabilityId.dependencyPort("query"), displayName: "query", requirement }).type, + ), ]); } // Unused imported interfaces must not introduce new message-codec obligations. @@ -320,7 +352,19 @@ export const generateTypeScriptBindings = ( throw new Error(`Invalid message binding export ${binding.export}`); return `import { ${binding.export} as ${alias} } from ${q(binding.module)};`; }); - const signatures = `${object(contexts)} ${object(handlers)} ${object(results)} ${contracts.map((entry) => entry.type).join(" ")}`; + const queryVariables = object( + (pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, type(query.variables)]), + ); + const queryResults = object( + (pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, type(query.output)]), + ); + const queryDescriptors = object( + (pkg.checkedQueries ?? []).map((query) => [ + query.declaration.displayName, + `QxQueryDescriptor`, + ]), + ); + const signatures = `${object(contexts)} ${object(handlers)} ${object(results)} ${queryVariables} ${queryResults} ${queryDescriptors} ${contracts.map((entry) => entry.type).join(" ")}`; const typeImports = [ "BindingValue", "QxObjectRef", @@ -333,6 +377,8 @@ export const generateTypeScriptBindings = ( "QxLiveValue", "RelationshipCollection", "RelationshipEntry", + "QxQuerySnapshot", + "QxQueryDescriptor", ].filter((name) => new RegExp(`\\b${name}\\b`).test(signatures)); return ( `// Generated by quixos-codegen-ts. Do not edit. Binding ABI version 1.\n` + @@ -341,6 +387,8 @@ export const generateTypeScriptBindings = ( `\nexport const packageRevisionId = ${q(pkg.revisionId)};\n` + `declare const appliedType: unique symbol;\ntype QxApplied = string & {readonly [appliedType]: (value: [Definition, Arguments]) => [Definition, Arguments]};\n` + `export type Contexts = ${object(contexts)};\nexport type Results = ${object(results)};\nexport type Implementation = ${object(handlers)};\n` + + `export type QueryVariables = ${queryVariables};\nexport type QueryResults = ${queryResults};\n` + + `export const queries: ${queryDescriptors} = ${JSON.stringify(Object.fromEntries((pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, { id: `${pkg.revisionId}:${query.declaration.id}`, definitionDigest: query.definitionDigest, rootInterfaceRevisionId: query.declaration.root, variables: query.variables, output: query.output, watch: query.declaration.watch }])), null, 2)} as const;\n` + `export const contracts = {${contracts.map((entry) => `${q(entry.iface.revisionId)}: ${entry.code}`).join(",\n")}};\n` + `export const interfaces = {${contracts .filter((entry) => contracts.filter((other) => other.iface.displayName === entry.iface.displayName).length === 1) diff --git a/src/bindings/react-platform.ts b/src/bindings/react-platform.ts index 039c267..bc90192 100644 --- a/src/bindings/react-platform.ts +++ b/src/bindings/react-platform.ts @@ -20,6 +20,15 @@ declare module "@quixos/web-studio-react-runtime" { export function tryConform(object: string | {readonly $quixosRef: string}, contract: ReactInterfaceContract, options?: {signal?: AbortSignal}): Promise; export type ConformanceResult = {status: "loading"} | {status: "absent"} | {status: "available"; view: View} | {status: "error"; error: Error}; export function useTryConform(object: string | {readonly $quixosRef: string}, contract: ReactInterfaceContract): ConformanceResult; + export type QueryValueType = {kind: "builtin" | "scalar"; name: string} | {kind: "record"; fields: Record} | {kind: "optional" | "list"; value: QueryValueType} | {kind: "object-ref"; expectation: {kind: "atom"; atomId: string} | {kind: "interface"; interfaceRevisionId: string}}; + export type QueryReference = {readonly $quixosRef: string; readonly queryContract: Contract}; + export interface QueryDescriptor {readonly id: string; readonly definitionDigest: string; readonly rootInterfaceRevisionId: string; readonly variables: QueryValueType; readonly output: QueryValueType; readonly watch: boolean; readonly $types?: (variables: Variables, result: Result) => [Variables, Result]} + export type QueryPartial = T extends QueryReference ? T : T extends readonly (infer Item)[] ? QueryPartial[] : T extends object ? {[Key in keyof T]?: QueryPartial} : T; + export type QueryFieldState = {path: readonly (string | number)[]; status: "pending" | "error"; error?: string}; + export type QueryState = {refreshing: boolean; fields: QueryFieldState[]; runId?: string; sequence?: bigint; consistency?: string} & ({status: "loading"; data?: undefined; error?: undefined} | {status: "ready"; data: T; error?: undefined} | {status: "partial"; data: QueryPartial; error?: undefined} | {status: "error"; data?: T | QueryPartial; error: Error}); + export function useQuery(descriptor: QueryDescriptor, options: {root: string | {readonly $quixosRef: string}; variables: Variables}): QueryState & {refresh(): void}; + export interface QueryConnection {entries: {key: string; node: Row; cursor?: string | null}[]; pageInfo: {hasNextPage: boolean; endCursor?: string | null}} + export function CollectionView(props: {result: QueryState & {refresh(): void}; connection(data: QueryPartial): QueryPartial> | undefined; renderItem(row: QueryPartial, entryKey: string): React.ReactNode; onCreate?: () => void; onLoadMore?: (cursor: string | null) => void; onReset?: () => void; loadingMore?: boolean; empty?: React.ReactNode; prefetch?: boolean}): React.ReactElement; export type ReactComponentHostProps = { onAction?: (action: Action) => void; fallback?: React.ReactNode; diff --git a/src/bindings/react.ts b/src/bindings/react.ts index 4622560..589bfc5 100644 --- a/src/bindings/react.ts +++ b/src/bindings/react.ts @@ -116,8 +116,39 @@ export function generateReactBindings( ); return { iface, view: `${reference} & {call: {${calls.join(";")}}}` }; }); + const queryType = (value: ValueType): string => { + if (value.kind === "object-ref") + return `QueryReference<${q(value.expectation.kind === "atom" ? value.expectation.atomId : value.expectation.interfaceRevisionId)}>`; + if (value.kind === "optional") return `(${queryType(value.value)} | null)`; + if (value.kind === "list") return `Array<${queryType(value.value)}>`; + if (value.kind === "record") + return `{${Object.entries(value.fields) + .map(([name, field]) => `${q(name)}: ${queryType(field)}`) + .join(";")}}`; + return type(value); + }; + const queries = pkg.checkedQueries ?? []; + const queryCode = + `export type QueryVariables = {${queries.map((query) => `${q(query.declaration.displayName)}: ${queryType(query.variables)}`).join(";")}};\n` + + `export type QueryResults = {${queries.map((query) => `${q(query.declaration.displayName)}: ${queryType(query.output)}`).join(";")}};\n` + + `export const queries: {${queries.map((query) => `${q(query.declaration.displayName)}: QueryDescriptor`).join(";")}} = ${JSON.stringify( + Object.fromEntries( + queries.map((query) => [ + query.declaration.displayName, + { + id: `${pkg.revisionId}:${query.declaration.id}`, + definitionDigest: query.definitionDigest, + rootInterfaceRevisionId: query.declaration.root, + variables: query.variables, + output: query.output, + watch: query.declaration.watch, + }, + ]), + ), + )};\n`; return ( - `// Generated from checked QX contracts. Do not edit.\nimport {defineReactInterfaceContract} from "@quixos/web-studio-react-runtime";\nimport type {ObjectRef, InterfaceReference, ReadableField, WritableField} from "@quixos/web-studio-react-runtime";\n${declarations.join("\n")}\nexport type ReactResults = {${results.join(";\n")}};\n` + + `// Generated from checked QX contracts. Do not edit.\nimport {defineReactInterfaceContract} from "@quixos/web-studio-react-runtime";\nimport type {ObjectRef, InterfaceReference, ReadableField, WritableField, QueryDescriptor, QueryReference} from "@quixos/web-studio-react-runtime";\n${declarations.join("\n")}\nexport type ReactResults = {${results.join(";\n")}};\n` + + queryCode + `const contractsData = ${JSON.stringify(schema.interfaces)};\n` + `export const reactContracts = {${contracts.map(({ iface, view }) => `${q(iface.revisionId)}: defineReactInterfaceContract<${view}>(${q(iface.revisionId)}, contractsData)`).join(",\n")}};\n` + `export const reactInterfaces = {${contracts diff --git a/src/capability-language/assembly.ts b/src/capability-language/assembly.ts index ca13370..d388d02 100644 --- a/src/capability-language/assembly.ts +++ b/src/capability-language/assembly.ts @@ -1,6 +1,10 @@ import { readFile, realpath } from "node:fs/promises"; import path from "node:path"; import { loadQxSources, resolveQxSources } from "./source-loader.js"; +import { compileRepositoryQuery } from "../query/compile.js"; +import { checkQueryTemplate } from "../query/templates.js"; +import { readRepositorySource } from "./source-loader.js"; +import { linkQueries } from "../query/link.js"; import { capabilityId, compileWorkspaceRevision, @@ -231,6 +235,20 @@ const createResourceGraphResolver = (quixosCommit: string, resolveResource: Capa } assertImportsMatchLock(manifestPath, compiled.resource.imports, lockResult.lock.resources); if (compiled.resource.kind === "package") { + const queryInterfaces = [ + ...(environment.interfaceClosure ?? []), + ...(compiled.resource.specializations ?? []), + ]; + for (const template of compiled.resource.revision.queryTemplates ?? []) + await checkQueryTemplate(template, queryInterfaces, (name) => + readRepositorySource(snapshot.directory, name), + ); + if (compiled.resource.revision.queries?.length) + compiled.resource.revision.checkedQueries = await Promise.all( + compiled.resource.revision.queries.map((query) => + compileRepositoryQuery(snapshot.directory, query, queryInterfaces), + ), + ); let catalogText: string | undefined; try { catalogText = await readFile(path.join(snapshot.directory, "quixos.migrations.json"), "utf8"); @@ -389,6 +407,11 @@ export const compileWorkspaceRepository = async (options: { .join("\n")}`, ); } + const linkedQueries = linkQueries(workspace); + if (linkedQueries.length) { + workspace.linkedQueries = linkedQueries; + checked.plan.source.linkedQueries = structuredClone(linkedQueries); + } return { workspace, plan: checked.plan, diff --git a/src/capability-language/generated/QuixosCapability.interp b/src/capability-language/generated/QuixosCapability.interp index a4830e8..d60fbbf 100644 --- a/src/capability-language/generated/QuixosCapability.interp +++ b/src/capability-language/generated/QuixosCapability.interp @@ -1,6 +1,18 @@ token literal names: null 'workspace' +'query' +'specialize' +'root' +'document' +'fragments' +'view' +'max' +'allow' +'poll' +'queryable' +'rpc' +'query-reason' 'type' 'object' 'storable' @@ -122,6 +134,18 @@ null token symbolic names: null WORKSPACE +QUERY +SPECIALIZE +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -263,10 +287,14 @@ operationMember valueMember valueMemberOperation relationshipMember +queryReadContract relationshipOperation targetConstraint packageResourceDecl packageExport +packageQuery +packageQuerySpecialization +queryClause packageOperationExport packageFunctionExport packageConstructorExport @@ -310,4 +338,4 @@ stringLiteral atn: -[4, 1, 118, 971, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 145, 8, 0, 1, 1, 1, 1, 1, 1, 5, 1, 150, 8, 1, 10, 1, 12, 1, 153, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 171, 8, 3, 10, 3, 12, 3, 174, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 185, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 197, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 217, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 225, 8, 9, 1, 9, 1, 9, 1, 10, 5, 10, 230, 8, 10, 10, 10, 12, 10, 233, 9, 10, 1, 10, 1, 10, 1, 10, 3, 10, 238, 8, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 248, 8, 10, 10, 10, 12, 10, 251, 9, 10, 3, 10, 253, 8, 10, 1, 10, 1, 10, 5, 10, 257, 8, 10, 10, 10, 12, 10, 260, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 268, 8, 11, 10, 11, 12, 11, 271, 9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 279, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 287, 8, 12, 10, 12, 12, 12, 290, 9, 12, 3, 12, 292, 8, 12, 3, 12, 294, 8, 12, 1, 13, 1, 13, 3, 13, 298, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 304, 8, 14, 10, 14, 12, 14, 307, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 318, 8, 15, 1, 16, 1, 16, 1, 16, 3, 16, 323, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 3, 17, 332, 8, 17, 1, 18, 3, 18, 335, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 360, 8, 19, 10, 19, 12, 19, 363, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 386, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 396, 8, 21, 1, 21, 1, 21, 5, 21, 400, 8, 21, 10, 21, 12, 21, 403, 9, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 431, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 438, 8, 23, 1, 23, 1, 23, 3, 23, 442, 8, 23, 1, 24, 5, 24, 445, 8, 24, 10, 24, 12, 24, 448, 9, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, 24, 458, 8, 24, 1, 24, 1, 24, 5, 24, 462, 8, 24, 10, 24, 12, 24, 465, 9, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 3, 25, 472, 8, 25, 1, 26, 1, 26, 1, 26, 3, 26, 477, 8, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 488, 8, 26, 1, 26, 1, 26, 1, 26, 3, 26, 493, 8, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 3, 27, 500, 8, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 509, 8, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 522, 8, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 541, 8, 31, 10, 31, 12, 31, 544, 9, 31, 3, 31, 546, 8, 31, 1, 31, 3, 31, 549, 8, 31, 1, 32, 1, 32, 1, 32, 5, 32, 554, 8, 32, 10, 32, 12, 32, 557, 9, 32, 1, 33, 1, 33, 1, 33, 5, 33, 562, 8, 33, 10, 33, 12, 33, 565, 9, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 595, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 607, 8, 34, 1, 34, 1, 34, 3, 34, 611, 8, 34, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 617, 8, 35, 10, 35, 12, 35, 620, 9, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 645, 8, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 655, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 673, 8, 42, 1, 42, 1, 42, 3, 42, 677, 8, 42, 1, 42, 3, 42, 680, 8, 42, 1, 42, 1, 42, 3, 42, 684, 8, 42, 1, 42, 3, 42, 687, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 696, 8, 43, 1, 43, 1, 43, 3, 43, 700, 8, 43, 1, 43, 1, 43, 3, 43, 704, 8, 43, 1, 43, 1, 43, 5, 43, 708, 8, 43, 10, 43, 12, 43, 711, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 720, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 764, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 783, 8, 50, 1, 50, 3, 50, 786, 8, 50, 3, 50, 788, 8, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 5, 53, 797, 8, 53, 10, 53, 12, 53, 800, 9, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 830, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 839, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 847, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 857, 8, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 3, 55, 866, 8, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 3, 56, 884, 8, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 5, 56, 906, 8, 56, 10, 56, 12, 56, 909, 9, 56, 1, 56, 1, 56, 1, 56, 3, 56, 914, 8, 56, 3, 56, 916, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 3, 60, 935, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 5, 61, 941, 8, 61, 10, 61, 12, 61, 944, 9, 61, 3, 61, 946, 8, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 5, 63, 958, 8, 63, 10, 63, 12, 63, 961, 9, 63, 3, 63, 963, 8, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 0, 0, 66, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 0, 7, 1, 0, 66, 70, 2, 0, 61, 65, 67, 68, 2, 0, 61, 62, 67, 68, 2, 0, 63, 65, 67, 68, 1, 0, 86, 93, 1, 0, 73, 76, 2, 0, 40, 40, 114, 114, 1036, 0, 144, 1, 0, 0, 0, 2, 146, 1, 0, 0, 0, 4, 156, 1, 0, 0, 0, 6, 160, 1, 0, 0, 0, 8, 184, 1, 0, 0, 0, 10, 196, 1, 0, 0, 0, 12, 198, 1, 0, 0, 0, 14, 205, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 218, 1, 0, 0, 0, 20, 231, 1, 0, 0, 0, 22, 263, 1, 0, 0, 0, 24, 293, 1, 0, 0, 0, 26, 295, 1, 0, 0, 0, 28, 299, 1, 0, 0, 0, 30, 317, 1, 0, 0, 0, 32, 319, 1, 0, 0, 0, 34, 331, 1, 0, 0, 0, 36, 334, 1, 0, 0, 0, 38, 351, 1, 0, 0, 0, 40, 385, 1, 0, 0, 0, 42, 387, 1, 0, 0, 0, 44, 430, 1, 0, 0, 0, 46, 441, 1, 0, 0, 0, 48, 446, 1, 0, 0, 0, 50, 471, 1, 0, 0, 0, 52, 473, 1, 0, 0, 0, 54, 496, 1, 0, 0, 0, 56, 512, 1, 0, 0, 0, 58, 525, 1, 0, 0, 0, 60, 528, 1, 0, 0, 0, 62, 548, 1, 0, 0, 0, 64, 550, 1, 0, 0, 0, 66, 558, 1, 0, 0, 0, 68, 610, 1, 0, 0, 0, 70, 612, 1, 0, 0, 0, 72, 623, 1, 0, 0, 0, 74, 625, 1, 0, 0, 0, 76, 630, 1, 0, 0, 0, 78, 632, 1, 0, 0, 0, 80, 654, 1, 0, 0, 0, 82, 656, 1, 0, 0, 0, 84, 665, 1, 0, 0, 0, 86, 690, 1, 0, 0, 0, 88, 719, 1, 0, 0, 0, 90, 721, 1, 0, 0, 0, 92, 728, 1, 0, 0, 0, 94, 742, 1, 0, 0, 0, 96, 748, 1, 0, 0, 0, 98, 763, 1, 0, 0, 0, 100, 787, 1, 0, 0, 0, 102, 789, 1, 0, 0, 0, 104, 791, 1, 0, 0, 0, 106, 793, 1, 0, 0, 0, 108, 856, 1, 0, 0, 0, 110, 858, 1, 0, 0, 0, 112, 915, 1, 0, 0, 0, 114, 917, 1, 0, 0, 0, 116, 922, 1, 0, 0, 0, 118, 924, 1, 0, 0, 0, 120, 934, 1, 0, 0, 0, 122, 936, 1, 0, 0, 0, 124, 949, 1, 0, 0, 0, 126, 953, 1, 0, 0, 0, 128, 966, 1, 0, 0, 0, 130, 968, 1, 0, 0, 0, 132, 133, 3, 6, 3, 0, 133, 134, 5, 0, 0, 1, 134, 145, 1, 0, 0, 0, 135, 136, 3, 20, 10, 0, 136, 137, 5, 0, 0, 1, 137, 145, 1, 0, 0, 0, 138, 139, 3, 48, 24, 0, 139, 140, 5, 0, 0, 1, 140, 145, 1, 0, 0, 0, 141, 142, 3, 2, 1, 0, 142, 143, 5, 0, 0, 1, 143, 145, 1, 0, 0, 0, 144, 132, 1, 0, 0, 0, 144, 135, 1, 0, 0, 0, 144, 138, 1, 0, 0, 0, 144, 141, 1, 0, 0, 0, 145, 1, 1, 0, 0, 0, 146, 147, 5, 7, 0, 0, 147, 151, 5, 102, 0, 0, 148, 150, 3, 8, 4, 0, 149, 148, 1, 0, 0, 0, 150, 153, 1, 0, 0, 0, 151, 149, 1, 0, 0, 0, 151, 152, 1, 0, 0, 0, 152, 154, 1, 0, 0, 0, 153, 151, 1, 0, 0, 0, 154, 155, 5, 103, 0, 0, 155, 3, 1, 0, 0, 0, 156, 157, 5, 8, 0, 0, 157, 158, 3, 130, 65, 0, 158, 159, 5, 99, 0, 0, 159, 5, 1, 0, 0, 0, 160, 161, 5, 1, 0, 0, 161, 162, 3, 128, 64, 0, 162, 163, 5, 49, 0, 0, 163, 164, 3, 130, 65, 0, 164, 165, 5, 43, 0, 0, 165, 166, 3, 130, 65, 0, 166, 167, 5, 42, 0, 0, 167, 168, 3, 130, 65, 0, 168, 172, 5, 102, 0, 0, 169, 171, 3, 8, 4, 0, 170, 169, 1, 0, 0, 0, 171, 174, 1, 0, 0, 0, 172, 170, 1, 0, 0, 0, 172, 173, 1, 0, 0, 0, 173, 175, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 175, 176, 5, 103, 0, 0, 176, 7, 1, 0, 0, 0, 177, 185, 3, 4, 2, 0, 178, 185, 3, 18, 9, 0, 179, 185, 3, 10, 5, 0, 180, 185, 3, 74, 37, 0, 181, 185, 3, 86, 43, 0, 182, 185, 3, 110, 55, 0, 183, 185, 3, 32, 16, 0, 184, 177, 1, 0, 0, 0, 184, 178, 1, 0, 0, 0, 184, 179, 1, 0, 0, 0, 184, 180, 1, 0, 0, 0, 184, 181, 1, 0, 0, 0, 184, 182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 9, 1, 0, 0, 0, 186, 187, 5, 8, 0, 0, 187, 188, 5, 11, 0, 0, 188, 189, 3, 128, 64, 0, 189, 190, 5, 99, 0, 0, 190, 197, 1, 0, 0, 0, 191, 192, 5, 8, 0, 0, 192, 193, 5, 13, 0, 0, 193, 194, 3, 128, 64, 0, 194, 195, 5, 99, 0, 0, 195, 197, 1, 0, 0, 0, 196, 186, 1, 0, 0, 0, 196, 191, 1, 0, 0, 0, 197, 11, 1, 0, 0, 0, 198, 199, 5, 9, 0, 0, 199, 200, 5, 10, 0, 0, 200, 201, 3, 128, 64, 0, 201, 202, 5, 49, 0, 0, 202, 203, 3, 130, 65, 0, 203, 204, 5, 99, 0, 0, 204, 13, 1, 0, 0, 0, 205, 206, 5, 9, 0, 0, 206, 207, 5, 11, 0, 0, 207, 208, 3, 128, 64, 0, 208, 209, 5, 43, 0, 0, 209, 210, 3, 130, 65, 0, 210, 211, 5, 99, 0, 0, 211, 15, 1, 0, 0, 0, 212, 217, 3, 10, 5, 0, 213, 217, 3, 12, 6, 0, 214, 217, 3, 14, 7, 0, 215, 217, 3, 32, 16, 0, 216, 212, 1, 0, 0, 0, 216, 213, 1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 216, 215, 1, 0, 0, 0, 217, 17, 1, 0, 0, 0, 218, 219, 5, 10, 0, 0, 219, 220, 3, 128, 64, 0, 220, 221, 5, 49, 0, 0, 221, 224, 3, 130, 65, 0, 222, 223, 5, 50, 0, 0, 223, 225, 3, 130, 65, 0, 224, 222, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 227, 5, 99, 0, 0, 227, 19, 1, 0, 0, 0, 228, 230, 3, 16, 8, 0, 229, 228, 1, 0, 0, 0, 230, 233, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 234, 1, 0, 0, 0, 233, 231, 1, 0, 0, 0, 234, 235, 5, 11, 0, 0, 235, 237, 3, 128, 64, 0, 236, 238, 3, 22, 11, 0, 237, 236, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 240, 5, 49, 0, 0, 240, 241, 3, 130, 65, 0, 241, 242, 5, 43, 0, 0, 242, 252, 3, 130, 65, 0, 243, 244, 5, 54, 0, 0, 244, 249, 3, 26, 13, 0, 245, 246, 5, 100, 0, 0, 246, 248, 3, 26, 13, 0, 247, 245, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 253, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 243, 1, 0, 0, 0, 252, 253, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 258, 5, 102, 0, 0, 255, 257, 3, 34, 17, 0, 256, 255, 1, 0, 0, 0, 257, 260, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 258, 259, 1, 0, 0, 0, 259, 261, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 261, 262, 5, 103, 0, 0, 262, 21, 1, 0, 0, 0, 263, 264, 5, 108, 0, 0, 264, 269, 3, 24, 12, 0, 265, 266, 5, 100, 0, 0, 266, 268, 3, 24, 12, 0, 267, 265, 1, 0, 0, 0, 268, 271, 1, 0, 0, 0, 269, 267, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 272, 1, 0, 0, 0, 271, 269, 1, 0, 0, 0, 272, 273, 5, 109, 0, 0, 273, 23, 1, 0, 0, 0, 274, 275, 5, 14, 0, 0, 275, 278, 3, 128, 64, 0, 276, 277, 5, 98, 0, 0, 277, 279, 5, 4, 0, 0, 278, 276, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 294, 1, 0, 0, 0, 280, 281, 5, 3, 0, 0, 281, 291, 3, 128, 64, 0, 282, 283, 5, 5, 0, 0, 283, 288, 3, 26, 13, 0, 284, 285, 5, 110, 0, 0, 285, 287, 3, 26, 13, 0, 286, 284, 1, 0, 0, 0, 287, 290, 1, 0, 0, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 292, 1, 0, 0, 0, 290, 288, 1, 0, 0, 0, 291, 282, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 294, 1, 0, 0, 0, 293, 274, 1, 0, 0, 0, 293, 280, 1, 0, 0, 0, 294, 25, 1, 0, 0, 0, 295, 297, 3, 128, 64, 0, 296, 298, 3, 28, 14, 0, 297, 296, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 27, 1, 0, 0, 0, 299, 300, 5, 108, 0, 0, 300, 305, 3, 30, 15, 0, 301, 302, 5, 100, 0, 0, 302, 304, 3, 30, 15, 0, 303, 301, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 308, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 309, 5, 109, 0, 0, 309, 29, 1, 0, 0, 0, 310, 311, 5, 10, 0, 0, 311, 318, 3, 128, 64, 0, 312, 313, 5, 11, 0, 0, 313, 318, 3, 26, 13, 0, 314, 315, 5, 3, 0, 0, 315, 318, 3, 128, 64, 0, 316, 318, 3, 112, 56, 0, 317, 310, 1, 0, 0, 0, 317, 312, 1, 0, 0, 0, 317, 314, 1, 0, 0, 0, 317, 316, 1, 0, 0, 0, 318, 31, 1, 0, 0, 0, 319, 320, 5, 2, 0, 0, 320, 322, 3, 128, 64, 0, 321, 323, 3, 22, 11, 0, 322, 321, 1, 0, 0, 0, 322, 323, 1, 0, 0, 0, 323, 324, 1, 0, 0, 0, 324, 325, 5, 111, 0, 0, 325, 326, 3, 112, 56, 0, 326, 327, 5, 99, 0, 0, 327, 33, 1, 0, 0, 0, 328, 332, 3, 38, 19, 0, 329, 332, 3, 42, 21, 0, 330, 332, 3, 36, 18, 0, 331, 328, 1, 0, 0, 0, 331, 329, 1, 0, 0, 0, 331, 330, 1, 0, 0, 0, 332, 35, 1, 0, 0, 0, 333, 335, 5, 24, 0, 0, 334, 333, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 337, 5, 16, 0, 0, 337, 338, 3, 128, 64, 0, 338, 339, 5, 49, 0, 0, 339, 340, 3, 130, 65, 0, 340, 341, 5, 98, 0, 0, 341, 342, 3, 112, 56, 0, 342, 343, 5, 97, 0, 0, 343, 344, 3, 112, 56, 0, 344, 345, 5, 102, 0, 0, 345, 346, 5, 66, 0, 0, 346, 347, 5, 49, 0, 0, 347, 348, 3, 130, 65, 0, 348, 349, 5, 99, 0, 0, 349, 350, 5, 103, 0, 0, 350, 37, 1, 0, 0, 0, 351, 352, 5, 14, 0, 0, 352, 353, 3, 128, 64, 0, 353, 354, 5, 49, 0, 0, 354, 355, 3, 130, 65, 0, 355, 356, 5, 98, 0, 0, 356, 357, 3, 112, 56, 0, 357, 361, 5, 102, 0, 0, 358, 360, 3, 40, 20, 0, 359, 358, 1, 0, 0, 0, 360, 363, 1, 0, 0, 0, 361, 359, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 364, 1, 0, 0, 0, 363, 361, 1, 0, 0, 0, 364, 365, 5, 103, 0, 0, 365, 39, 1, 0, 0, 0, 366, 367, 5, 56, 0, 0, 367, 368, 5, 49, 0, 0, 368, 369, 3, 130, 65, 0, 369, 370, 5, 99, 0, 0, 370, 386, 1, 0, 0, 0, 371, 372, 5, 57, 0, 0, 372, 373, 5, 49, 0, 0, 373, 374, 3, 130, 65, 0, 374, 375, 5, 99, 0, 0, 375, 386, 1, 0, 0, 0, 376, 377, 5, 58, 0, 0, 377, 378, 5, 59, 0, 0, 378, 379, 5, 49, 0, 0, 379, 380, 3, 130, 65, 0, 380, 381, 5, 60, 0, 0, 381, 382, 5, 49, 0, 0, 382, 383, 3, 130, 65, 0, 383, 384, 5, 99, 0, 0, 384, 386, 1, 0, 0, 0, 385, 366, 1, 0, 0, 0, 385, 371, 1, 0, 0, 0, 385, 376, 1, 0, 0, 0, 386, 41, 1, 0, 0, 0, 387, 388, 5, 15, 0, 0, 388, 389, 3, 128, 64, 0, 389, 390, 5, 49, 0, 0, 390, 391, 3, 130, 65, 0, 391, 392, 5, 98, 0, 0, 392, 393, 3, 118, 59, 0, 393, 395, 3, 46, 23, 0, 394, 396, 5, 77, 0, 0, 395, 394, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 397, 1, 0, 0, 0, 397, 401, 5, 102, 0, 0, 398, 400, 3, 44, 22, 0, 399, 398, 1, 0, 0, 0, 400, 403, 1, 0, 0, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 404, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 404, 405, 5, 103, 0, 0, 405, 43, 1, 0, 0, 0, 406, 407, 5, 63, 0, 0, 407, 408, 5, 49, 0, 0, 408, 409, 3, 130, 65, 0, 409, 410, 5, 99, 0, 0, 410, 431, 1, 0, 0, 0, 411, 412, 5, 64, 0, 0, 412, 413, 5, 49, 0, 0, 413, 414, 3, 130, 65, 0, 414, 415, 5, 99, 0, 0, 415, 431, 1, 0, 0, 0, 416, 417, 5, 65, 0, 0, 417, 418, 5, 49, 0, 0, 418, 419, 3, 130, 65, 0, 419, 420, 5, 99, 0, 0, 420, 431, 1, 0, 0, 0, 421, 422, 5, 58, 0, 0, 422, 423, 5, 59, 0, 0, 423, 424, 5, 49, 0, 0, 424, 425, 3, 130, 65, 0, 425, 426, 5, 60, 0, 0, 426, 427, 5, 49, 0, 0, 427, 428, 3, 130, 65, 0, 428, 429, 5, 99, 0, 0, 429, 431, 1, 0, 0, 0, 430, 406, 1, 0, 0, 0, 430, 411, 1, 0, 0, 0, 430, 416, 1, 0, 0, 0, 430, 421, 1, 0, 0, 0, 431, 45, 1, 0, 0, 0, 432, 433, 5, 10, 0, 0, 433, 442, 3, 128, 64, 0, 434, 435, 5, 11, 0, 0, 435, 437, 3, 128, 64, 0, 436, 438, 3, 28, 14, 0, 437, 436, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 442, 1, 0, 0, 0, 439, 440, 5, 3, 0, 0, 440, 442, 3, 128, 64, 0, 441, 432, 1, 0, 0, 0, 441, 434, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 47, 1, 0, 0, 0, 443, 445, 3, 16, 8, 0, 444, 443, 1, 0, 0, 0, 445, 448, 1, 0, 0, 0, 446, 444, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 446, 1, 0, 0, 0, 449, 450, 5, 13, 0, 0, 450, 451, 3, 128, 64, 0, 451, 452, 5, 49, 0, 0, 452, 453, 3, 130, 65, 0, 453, 454, 5, 43, 0, 0, 454, 457, 3, 130, 65, 0, 455, 456, 5, 44, 0, 0, 456, 458, 5, 112, 0, 0, 457, 455, 1, 0, 0, 0, 457, 458, 1, 0, 0, 0, 458, 459, 1, 0, 0, 0, 459, 463, 5, 102, 0, 0, 460, 462, 3, 50, 25, 0, 461, 460, 1, 0, 0, 0, 462, 465, 1, 0, 0, 0, 463, 461, 1, 0, 0, 0, 463, 464, 1, 0, 0, 0, 464, 466, 1, 0, 0, 0, 465, 463, 1, 0, 0, 0, 466, 467, 5, 103, 0, 0, 467, 49, 1, 0, 0, 0, 468, 472, 3, 52, 26, 0, 469, 472, 3, 54, 27, 0, 470, 472, 3, 56, 28, 0, 471, 468, 1, 0, 0, 0, 471, 469, 1, 0, 0, 0, 471, 470, 1, 0, 0, 0, 472, 51, 1, 0, 0, 0, 473, 474, 5, 16, 0, 0, 474, 476, 3, 128, 64, 0, 475, 477, 3, 22, 11, 0, 476, 475, 1, 0, 0, 0, 476, 477, 1, 0, 0, 0, 477, 478, 1, 0, 0, 0, 478, 479, 5, 49, 0, 0, 479, 480, 3, 130, 65, 0, 480, 481, 5, 98, 0, 0, 481, 482, 3, 112, 56, 0, 482, 483, 5, 97, 0, 0, 483, 484, 3, 112, 56, 0, 484, 485, 5, 51, 0, 0, 485, 487, 3, 60, 30, 0, 486, 488, 3, 58, 29, 0, 487, 486, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 488, 489, 1, 0, 0, 0, 489, 490, 5, 53, 0, 0, 490, 492, 3, 62, 31, 0, 491, 493, 3, 66, 33, 0, 492, 491, 1, 0, 0, 0, 492, 493, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 495, 5, 99, 0, 0, 495, 53, 1, 0, 0, 0, 496, 497, 5, 17, 0, 0, 497, 499, 3, 128, 64, 0, 498, 500, 3, 22, 11, 0, 499, 498, 1, 0, 0, 0, 499, 500, 1, 0, 0, 0, 500, 501, 1, 0, 0, 0, 501, 502, 5, 49, 0, 0, 502, 503, 3, 130, 65, 0, 503, 504, 5, 98, 0, 0, 504, 505, 3, 112, 56, 0, 505, 506, 5, 97, 0, 0, 506, 508, 3, 112, 56, 0, 507, 509, 3, 66, 33, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 511, 5, 99, 0, 0, 511, 55, 1, 0, 0, 0, 512, 513, 5, 18, 0, 0, 513, 514, 3, 128, 64, 0, 514, 515, 5, 49, 0, 0, 515, 516, 3, 130, 65, 0, 516, 517, 5, 19, 0, 0, 517, 518, 3, 128, 64, 0, 518, 519, 5, 98, 0, 0, 519, 521, 3, 112, 56, 0, 520, 522, 3, 66, 33, 0, 521, 520, 1, 0, 0, 0, 521, 522, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 524, 5, 99, 0, 0, 524, 57, 1, 0, 0, 0, 525, 526, 5, 52, 0, 0, 526, 527, 3, 112, 56, 0, 527, 59, 1, 0, 0, 0, 528, 529, 7, 0, 0, 0, 529, 61, 1, 0, 0, 0, 530, 549, 5, 55, 0, 0, 531, 532, 5, 10, 0, 0, 532, 549, 3, 128, 64, 0, 533, 534, 5, 3, 0, 0, 534, 549, 3, 128, 64, 0, 535, 536, 5, 12, 0, 0, 536, 545, 5, 104, 0, 0, 537, 542, 3, 26, 13, 0, 538, 539, 5, 100, 0, 0, 539, 541, 3, 26, 13, 0, 540, 538, 1, 0, 0, 0, 541, 544, 1, 0, 0, 0, 542, 540, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 546, 1, 0, 0, 0, 544, 542, 1, 0, 0, 0, 545, 537, 1, 0, 0, 0, 545, 546, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 5, 105, 0, 0, 548, 530, 1, 0, 0, 0, 548, 531, 1, 0, 0, 0, 548, 533, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 549, 63, 1, 0, 0, 0, 550, 555, 3, 128, 64, 0, 551, 552, 5, 100, 0, 0, 552, 554, 3, 128, 64, 0, 553, 551, 1, 0, 0, 0, 554, 557, 1, 0, 0, 0, 555, 553, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 65, 1, 0, 0, 0, 557, 555, 1, 0, 0, 0, 558, 559, 5, 54, 0, 0, 559, 563, 5, 102, 0, 0, 560, 562, 3, 68, 34, 0, 561, 560, 1, 0, 0, 0, 562, 565, 1, 0, 0, 0, 563, 561, 1, 0, 0, 0, 563, 564, 1, 0, 0, 0, 564, 566, 1, 0, 0, 0, 565, 563, 1, 0, 0, 0, 566, 567, 5, 103, 0, 0, 567, 67, 1, 0, 0, 0, 568, 569, 5, 28, 0, 0, 569, 570, 3, 128, 64, 0, 570, 571, 5, 49, 0, 0, 571, 572, 3, 130, 65, 0, 572, 573, 5, 98, 0, 0, 573, 574, 3, 112, 56, 0, 574, 575, 3, 70, 35, 0, 575, 576, 5, 99, 0, 0, 576, 611, 1, 0, 0, 0, 577, 578, 5, 29, 0, 0, 578, 579, 3, 128, 64, 0, 579, 580, 5, 49, 0, 0, 580, 581, 3, 130, 65, 0, 581, 582, 5, 98, 0, 0, 582, 583, 3, 118, 59, 0, 583, 584, 3, 46, 23, 0, 584, 585, 3, 70, 35, 0, 585, 586, 5, 99, 0, 0, 586, 611, 1, 0, 0, 0, 587, 588, 5, 11, 0, 0, 588, 589, 3, 128, 64, 0, 589, 590, 5, 49, 0, 0, 590, 591, 3, 130, 65, 0, 591, 592, 5, 98, 0, 0, 592, 594, 3, 128, 64, 0, 593, 595, 3, 28, 14, 0, 594, 593, 1, 0, 0, 0, 594, 595, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 597, 5, 99, 0, 0, 597, 611, 1, 0, 0, 0, 598, 599, 5, 18, 0, 0, 599, 600, 3, 128, 64, 0, 600, 601, 5, 49, 0, 0, 601, 602, 3, 130, 65, 0, 602, 603, 5, 98, 0, 0, 603, 606, 3, 128, 64, 0, 604, 605, 5, 20, 0, 0, 605, 607, 3, 112, 56, 0, 606, 604, 1, 0, 0, 0, 606, 607, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 609, 5, 99, 0, 0, 609, 611, 1, 0, 0, 0, 610, 568, 1, 0, 0, 0, 610, 577, 1, 0, 0, 0, 610, 587, 1, 0, 0, 0, 610, 598, 1, 0, 0, 0, 611, 69, 1, 0, 0, 0, 612, 613, 5, 104, 0, 0, 613, 618, 3, 72, 36, 0, 614, 615, 5, 100, 0, 0, 615, 617, 3, 72, 36, 0, 616, 614, 1, 0, 0, 0, 617, 620, 1, 0, 0, 0, 618, 616, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 618, 1, 0, 0, 0, 621, 622, 5, 105, 0, 0, 622, 71, 1, 0, 0, 0, 623, 624, 7, 1, 0, 0, 624, 73, 1, 0, 0, 0, 625, 626, 5, 27, 0, 0, 626, 627, 3, 76, 38, 0, 627, 75, 1, 0, 0, 0, 628, 631, 3, 78, 39, 0, 629, 631, 3, 82, 41, 0, 630, 628, 1, 0, 0, 0, 630, 629, 1, 0, 0, 0, 631, 77, 1, 0, 0, 0, 632, 633, 5, 28, 0, 0, 633, 634, 3, 128, 64, 0, 634, 635, 5, 49, 0, 0, 635, 636, 3, 130, 65, 0, 636, 637, 5, 37, 0, 0, 637, 638, 3, 128, 64, 0, 638, 639, 5, 98, 0, 0, 639, 640, 3, 112, 56, 0, 640, 641, 5, 38, 0, 0, 641, 644, 3, 80, 40, 0, 642, 643, 5, 39, 0, 0, 643, 645, 3, 120, 60, 0, 644, 642, 1, 0, 0, 0, 644, 645, 1, 0, 0, 0, 645, 646, 1, 0, 0, 0, 646, 647, 5, 99, 0, 0, 647, 79, 1, 0, 0, 0, 648, 655, 5, 71, 0, 0, 649, 650, 5, 72, 0, 0, 650, 651, 5, 106, 0, 0, 651, 652, 3, 112, 56, 0, 652, 653, 5, 107, 0, 0, 653, 655, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 649, 1, 0, 0, 0, 655, 81, 1, 0, 0, 0, 656, 657, 5, 29, 0, 0, 657, 658, 3, 128, 64, 0, 658, 659, 5, 49, 0, 0, 659, 660, 3, 130, 65, 0, 660, 661, 5, 102, 0, 0, 661, 662, 3, 84, 42, 0, 662, 663, 3, 84, 42, 0, 663, 664, 5, 103, 0, 0, 664, 83, 1, 0, 0, 0, 665, 666, 3, 46, 23, 0, 666, 667, 5, 30, 0, 0, 667, 668, 3, 128, 64, 0, 668, 669, 5, 49, 0, 0, 669, 670, 3, 130, 65, 0, 670, 672, 3, 118, 59, 0, 671, 673, 5, 77, 0, 0, 672, 671, 1, 0, 0, 0, 672, 673, 1, 0, 0, 0, 673, 676, 1, 0, 0, 0, 674, 675, 5, 45, 0, 0, 675, 677, 3, 130, 65, 0, 676, 674, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 679, 1, 0, 0, 0, 678, 680, 5, 46, 0, 0, 679, 678, 1, 0, 0, 0, 679, 680, 1, 0, 0, 0, 680, 683, 1, 0, 0, 0, 681, 682, 5, 47, 0, 0, 682, 684, 3, 130, 65, 0, 683, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 686, 1, 0, 0, 0, 685, 687, 5, 48, 0, 0, 686, 685, 1, 0, 0, 0, 686, 687, 1, 0, 0, 0, 687, 688, 1, 0, 0, 0, 688, 689, 5, 99, 0, 0, 689, 85, 1, 0, 0, 0, 690, 691, 5, 21, 0, 0, 691, 692, 3, 128, 64, 0, 692, 693, 5, 22, 0, 0, 693, 695, 3, 128, 64, 0, 694, 696, 3, 28, 14, 0, 695, 694, 1, 0, 0, 0, 695, 696, 1, 0, 0, 0, 696, 699, 1, 0, 0, 0, 697, 698, 5, 49, 0, 0, 698, 700, 3, 130, 65, 0, 699, 697, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 703, 1, 0, 0, 0, 701, 702, 5, 44, 0, 0, 702, 704, 5, 112, 0, 0, 703, 701, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 709, 5, 102, 0, 0, 706, 708, 3, 88, 44, 0, 707, 706, 1, 0, 0, 0, 708, 711, 1, 0, 0, 0, 709, 707, 1, 0, 0, 0, 709, 710, 1, 0, 0, 0, 710, 712, 1, 0, 0, 0, 711, 709, 1, 0, 0, 0, 712, 713, 5, 103, 0, 0, 713, 87, 1, 0, 0, 0, 714, 715, 5, 26, 0, 0, 715, 720, 3, 76, 38, 0, 716, 720, 3, 94, 47, 0, 717, 720, 3, 90, 45, 0, 718, 720, 3, 92, 46, 0, 719, 714, 1, 0, 0, 0, 719, 716, 1, 0, 0, 0, 719, 717, 1, 0, 0, 0, 719, 718, 1, 0, 0, 0, 720, 89, 1, 0, 0, 0, 721, 722, 5, 23, 0, 0, 722, 723, 3, 128, 64, 0, 723, 724, 5, 25, 0, 0, 724, 725, 5, 28, 0, 0, 725, 726, 3, 128, 64, 0, 726, 727, 5, 99, 0, 0, 727, 91, 1, 0, 0, 0, 728, 729, 5, 34, 0, 0, 729, 730, 3, 128, 64, 0, 730, 731, 5, 35, 0, 0, 731, 732, 5, 36, 0, 0, 732, 733, 5, 32, 0, 0, 733, 734, 5, 18, 0, 0, 734, 735, 3, 128, 64, 0, 735, 736, 5, 33, 0, 0, 736, 737, 5, 29, 0, 0, 737, 738, 3, 128, 64, 0, 738, 739, 5, 101, 0, 0, 739, 740, 3, 128, 64, 0, 740, 741, 5, 99, 0, 0, 741, 93, 1, 0, 0, 0, 742, 743, 5, 23, 0, 0, 743, 744, 3, 96, 48, 0, 744, 745, 5, 25, 0, 0, 745, 746, 3, 100, 50, 0, 746, 747, 5, 99, 0, 0, 747, 95, 1, 0, 0, 0, 748, 749, 3, 128, 64, 0, 749, 750, 5, 101, 0, 0, 750, 751, 3, 98, 49, 0, 751, 97, 1, 0, 0, 0, 752, 764, 3, 128, 64, 0, 753, 764, 5, 66, 0, 0, 754, 764, 5, 56, 0, 0, 755, 764, 5, 57, 0, 0, 756, 764, 5, 63, 0, 0, 757, 764, 5, 64, 0, 0, 758, 764, 5, 65, 0, 0, 759, 764, 5, 67, 0, 0, 760, 764, 5, 68, 0, 0, 761, 764, 5, 69, 0, 0, 762, 764, 5, 70, 0, 0, 763, 752, 1, 0, 0, 0, 763, 753, 1, 0, 0, 0, 763, 754, 1, 0, 0, 0, 763, 755, 1, 0, 0, 0, 763, 756, 1, 0, 0, 0, 763, 757, 1, 0, 0, 0, 763, 758, 1, 0, 0, 0, 763, 759, 1, 0, 0, 0, 763, 760, 1, 0, 0, 0, 763, 761, 1, 0, 0, 0, 763, 762, 1, 0, 0, 0, 764, 99, 1, 0, 0, 0, 765, 766, 5, 28, 0, 0, 766, 767, 3, 128, 64, 0, 767, 768, 5, 101, 0, 0, 768, 769, 3, 102, 51, 0, 769, 788, 1, 0, 0, 0, 770, 771, 5, 29, 0, 0, 771, 772, 3, 128, 64, 0, 772, 773, 5, 101, 0, 0, 773, 774, 3, 128, 64, 0, 774, 775, 5, 101, 0, 0, 775, 776, 3, 104, 52, 0, 776, 788, 1, 0, 0, 0, 777, 778, 5, 13, 0, 0, 778, 779, 3, 128, 64, 0, 779, 780, 5, 101, 0, 0, 780, 782, 3, 128, 64, 0, 781, 783, 3, 28, 14, 0, 782, 781, 1, 0, 0, 0, 782, 783, 1, 0, 0, 0, 783, 785, 1, 0, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 788, 1, 0, 0, 0, 787, 765, 1, 0, 0, 0, 787, 770, 1, 0, 0, 0, 787, 777, 1, 0, 0, 0, 788, 101, 1, 0, 0, 0, 789, 790, 7, 2, 0, 0, 790, 103, 1, 0, 0, 0, 791, 792, 7, 3, 0, 0, 792, 105, 1, 0, 0, 0, 793, 794, 5, 31, 0, 0, 794, 798, 5, 102, 0, 0, 795, 797, 3, 108, 54, 0, 796, 795, 1, 0, 0, 0, 797, 800, 1, 0, 0, 0, 798, 796, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 801, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 801, 802, 5, 103, 0, 0, 802, 107, 1, 0, 0, 0, 803, 804, 3, 128, 64, 0, 804, 805, 5, 25, 0, 0, 805, 806, 5, 28, 0, 0, 806, 813, 3, 128, 64, 0, 807, 808, 5, 33, 0, 0, 808, 809, 5, 29, 0, 0, 809, 810, 3, 128, 64, 0, 810, 811, 5, 101, 0, 0, 811, 812, 3, 128, 64, 0, 812, 814, 1, 0, 0, 0, 813, 807, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 815, 1, 0, 0, 0, 815, 816, 5, 99, 0, 0, 816, 857, 1, 0, 0, 0, 817, 818, 3, 128, 64, 0, 818, 819, 5, 25, 0, 0, 819, 820, 5, 29, 0, 0, 820, 821, 3, 128, 64, 0, 821, 822, 5, 101, 0, 0, 822, 829, 3, 128, 64, 0, 823, 824, 5, 33, 0, 0, 824, 825, 5, 29, 0, 0, 825, 826, 3, 128, 64, 0, 826, 827, 5, 101, 0, 0, 827, 828, 3, 128, 64, 0, 828, 830, 1, 0, 0, 0, 829, 823, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 99, 0, 0, 832, 857, 1, 0, 0, 0, 833, 834, 3, 128, 64, 0, 834, 835, 5, 25, 0, 0, 835, 836, 5, 11, 0, 0, 836, 838, 3, 128, 64, 0, 837, 839, 3, 28, 14, 0, 838, 837, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 846, 1, 0, 0, 0, 840, 841, 5, 33, 0, 0, 841, 842, 5, 29, 0, 0, 842, 843, 3, 128, 64, 0, 843, 844, 5, 101, 0, 0, 844, 845, 3, 128, 64, 0, 845, 847, 1, 0, 0, 0, 846, 840, 1, 0, 0, 0, 846, 847, 1, 0, 0, 0, 847, 848, 1, 0, 0, 0, 848, 849, 5, 99, 0, 0, 849, 857, 1, 0, 0, 0, 850, 851, 3, 128, 64, 0, 851, 852, 5, 25, 0, 0, 852, 853, 5, 18, 0, 0, 853, 854, 3, 128, 64, 0, 854, 855, 5, 99, 0, 0, 855, 857, 1, 0, 0, 0, 856, 803, 1, 0, 0, 0, 856, 817, 1, 0, 0, 0, 856, 833, 1, 0, 0, 0, 856, 850, 1, 0, 0, 0, 857, 109, 1, 0, 0, 0, 858, 859, 5, 18, 0, 0, 859, 860, 3, 128, 64, 0, 860, 861, 5, 25, 0, 0, 861, 862, 3, 128, 64, 0, 862, 863, 5, 101, 0, 0, 863, 865, 3, 128, 64, 0, 864, 866, 3, 106, 53, 0, 865, 864, 1, 0, 0, 0, 865, 866, 1, 0, 0, 0, 866, 867, 1, 0, 0, 0, 867, 868, 5, 99, 0, 0, 868, 111, 1, 0, 0, 0, 869, 916, 3, 116, 58, 0, 870, 916, 5, 78, 0, 0, 871, 916, 5, 79, 0, 0, 872, 873, 5, 80, 0, 0, 873, 916, 3, 130, 65, 0, 874, 875, 5, 81, 0, 0, 875, 876, 5, 108, 0, 0, 876, 877, 3, 128, 64, 0, 877, 878, 5, 109, 0, 0, 878, 916, 1, 0, 0, 0, 879, 880, 5, 82, 0, 0, 880, 881, 5, 108, 0, 0, 881, 883, 3, 128, 64, 0, 882, 884, 3, 28, 14, 0, 883, 882, 1, 0, 0, 0, 883, 884, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 886, 5, 109, 0, 0, 886, 916, 1, 0, 0, 0, 887, 888, 5, 6, 0, 0, 888, 889, 5, 108, 0, 0, 889, 890, 3, 128, 64, 0, 890, 891, 5, 109, 0, 0, 891, 916, 1, 0, 0, 0, 892, 893, 5, 83, 0, 0, 893, 894, 5, 108, 0, 0, 894, 895, 3, 112, 56, 0, 895, 896, 5, 109, 0, 0, 896, 916, 1, 0, 0, 0, 897, 898, 5, 84, 0, 0, 898, 899, 5, 108, 0, 0, 899, 900, 3, 112, 56, 0, 900, 901, 5, 109, 0, 0, 901, 916, 1, 0, 0, 0, 902, 903, 5, 85, 0, 0, 903, 907, 5, 102, 0, 0, 904, 906, 3, 114, 57, 0, 905, 904, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 910, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 916, 5, 103, 0, 0, 911, 913, 3, 128, 64, 0, 912, 914, 3, 28, 14, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 916, 1, 0, 0, 0, 915, 869, 1, 0, 0, 0, 915, 870, 1, 0, 0, 0, 915, 871, 1, 0, 0, 0, 915, 872, 1, 0, 0, 0, 915, 874, 1, 0, 0, 0, 915, 879, 1, 0, 0, 0, 915, 887, 1, 0, 0, 0, 915, 892, 1, 0, 0, 0, 915, 897, 1, 0, 0, 0, 915, 902, 1, 0, 0, 0, 915, 911, 1, 0, 0, 0, 916, 113, 1, 0, 0, 0, 917, 918, 3, 128, 64, 0, 918, 919, 5, 98, 0, 0, 919, 920, 3, 112, 56, 0, 920, 921, 5, 99, 0, 0, 921, 115, 1, 0, 0, 0, 922, 923, 7, 4, 0, 0, 923, 117, 1, 0, 0, 0, 924, 925, 7, 5, 0, 0, 925, 119, 1, 0, 0, 0, 926, 935, 3, 130, 65, 0, 927, 935, 5, 112, 0, 0, 928, 935, 5, 113, 0, 0, 929, 935, 5, 94, 0, 0, 930, 935, 5, 95, 0, 0, 931, 935, 5, 96, 0, 0, 932, 935, 3, 122, 61, 0, 933, 935, 3, 126, 63, 0, 934, 926, 1, 0, 0, 0, 934, 927, 1, 0, 0, 0, 934, 928, 1, 0, 0, 0, 934, 929, 1, 0, 0, 0, 934, 930, 1, 0, 0, 0, 934, 931, 1, 0, 0, 0, 934, 932, 1, 0, 0, 0, 934, 933, 1, 0, 0, 0, 935, 121, 1, 0, 0, 0, 936, 945, 5, 102, 0, 0, 937, 942, 3, 124, 62, 0, 938, 939, 5, 100, 0, 0, 939, 941, 3, 124, 62, 0, 940, 938, 1, 0, 0, 0, 941, 944, 1, 0, 0, 0, 942, 940, 1, 0, 0, 0, 942, 943, 1, 0, 0, 0, 943, 946, 1, 0, 0, 0, 944, 942, 1, 0, 0, 0, 945, 937, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 947, 1, 0, 0, 0, 947, 948, 5, 103, 0, 0, 948, 123, 1, 0, 0, 0, 949, 950, 3, 130, 65, 0, 950, 951, 5, 98, 0, 0, 951, 952, 3, 120, 60, 0, 952, 125, 1, 0, 0, 0, 953, 962, 5, 104, 0, 0, 954, 959, 3, 120, 60, 0, 955, 956, 5, 100, 0, 0, 956, 958, 3, 120, 60, 0, 957, 955, 1, 0, 0, 0, 958, 961, 1, 0, 0, 0, 959, 957, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 963, 1, 0, 0, 0, 961, 959, 1, 0, 0, 0, 962, 954, 1, 0, 0, 0, 962, 963, 1, 0, 0, 0, 963, 964, 1, 0, 0, 0, 964, 965, 5, 105, 0, 0, 965, 127, 1, 0, 0, 0, 966, 967, 7, 6, 0, 0, 967, 129, 1, 0, 0, 0, 968, 969, 5, 115, 0, 0, 969, 131, 1, 0, 0, 0, 82, 144, 151, 172, 184, 196, 216, 224, 231, 237, 249, 252, 258, 269, 278, 288, 291, 293, 297, 305, 317, 322, 331, 334, 361, 385, 395, 401, 430, 437, 441, 446, 457, 463, 471, 476, 487, 492, 499, 508, 521, 542, 545, 548, 555, 563, 594, 606, 610, 618, 630, 644, 654, 672, 676, 679, 683, 686, 695, 699, 703, 709, 719, 763, 782, 785, 787, 798, 813, 829, 838, 846, 856, 865, 883, 907, 913, 915, 934, 942, 945, 959, 962] \ No newline at end of file +[4, 1, 130, 1091, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 153, 8, 0, 1, 1, 1, 1, 1, 1, 5, 1, 158, 8, 1, 10, 1, 12, 1, 161, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 179, 8, 3, 10, 3, 12, 3, 182, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 193, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 205, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 225, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 233, 8, 9, 1, 9, 1, 9, 1, 10, 5, 10, 238, 8, 10, 10, 10, 12, 10, 241, 9, 10, 1, 10, 1, 10, 1, 10, 3, 10, 246, 8, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 256, 8, 10, 10, 10, 12, 10, 259, 9, 10, 3, 10, 261, 8, 10, 1, 10, 1, 10, 5, 10, 265, 8, 10, 10, 10, 12, 10, 268, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 276, 8, 11, 10, 11, 12, 11, 279, 9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 287, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 295, 8, 12, 10, 12, 12, 12, 298, 9, 12, 3, 12, 300, 8, 12, 3, 12, 302, 8, 12, 1, 13, 1, 13, 3, 13, 306, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 312, 8, 14, 10, 14, 12, 14, 315, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 326, 8, 15, 1, 16, 1, 16, 1, 16, 3, 16, 331, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 3, 17, 340, 8, 17, 1, 18, 3, 18, 343, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 3, 19, 361, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 371, 8, 19, 10, 19, 12, 19, 374, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 397, 8, 20, 1, 21, 3, 21, 400, 8, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 410, 8, 21, 1, 21, 1, 21, 3, 21, 414, 8, 21, 1, 21, 1, 21, 5, 21, 418, 8, 21, 10, 21, 12, 21, 421, 9, 21, 1, 21, 1, 21, 1, 22, 1, 22, 3, 22, 427, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 453, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, 24, 460, 8, 24, 1, 24, 1, 24, 3, 24, 464, 8, 24, 1, 25, 5, 25, 467, 8, 25, 10, 25, 12, 25, 470, 9, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 480, 8, 25, 1, 25, 1, 25, 5, 25, 484, 8, 25, 10, 25, 12, 25, 487, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 496, 8, 26, 1, 27, 1, 27, 1, 27, 3, 27, 501, 8, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 513, 8, 27, 10, 27, 12, 27, 516, 9, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 3, 29, 535, 8, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 3, 29, 562, 8, 29, 1, 30, 1, 30, 1, 30, 3, 30, 567, 8, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 578, 8, 30, 1, 30, 1, 30, 1, 30, 3, 30, 583, 8, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 3, 31, 590, 8, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 599, 8, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 612, 8, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 631, 8, 35, 10, 35, 12, 35, 634, 9, 35, 3, 35, 636, 8, 35, 1, 35, 3, 35, 639, 8, 35, 1, 36, 1, 36, 1, 36, 5, 36, 644, 8, 36, 10, 36, 12, 36, 647, 9, 36, 1, 37, 1, 37, 1, 37, 5, 37, 652, 8, 37, 10, 37, 12, 37, 655, 9, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 685, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 697, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 711, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 5, 39, 717, 8, 39, 10, 39, 12, 39, 720, 9, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 3, 42, 731, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 745, 8, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 755, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 773, 8, 46, 1, 46, 1, 46, 3, 46, 777, 8, 46, 1, 46, 3, 46, 780, 8, 46, 1, 46, 1, 46, 3, 46, 784, 8, 46, 1, 46, 3, 46, 787, 8, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 796, 8, 47, 1, 47, 1, 47, 3, 47, 800, 8, 47, 1, 47, 1, 47, 3, 47, 804, 8, 47, 1, 47, 1, 47, 5, 47, 808, 8, 47, 10, 47, 12, 47, 811, 9, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 820, 8, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 849, 8, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 868, 8, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 887, 8, 54, 1, 54, 3, 54, 890, 8, 54, 3, 54, 892, 8, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 5, 57, 901, 8, 57, 10, 57, 12, 57, 904, 9, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 918, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 934, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 943, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 951, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 973, 8, 58, 1, 58, 1, 58, 3, 58, 977, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 986, 8, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 3, 60, 1004, 8, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 1026, 8, 60, 10, 60, 12, 60, 1029, 9, 60, 1, 60, 1, 60, 1, 60, 3, 60, 1034, 8, 60, 3, 60, 1036, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 1055, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 5, 65, 1061, 8, 65, 10, 65, 12, 65, 1064, 9, 65, 3, 65, 1066, 8, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 1078, 8, 67, 10, 67, 12, 67, 1081, 9, 67, 3, 67, 1083, 8, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 0, 0, 70, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 0, 7, 1, 0, 78, 82, 2, 0, 73, 77, 79, 80, 2, 0, 73, 74, 79, 80, 2, 0, 75, 77, 79, 80, 1, 0, 98, 105, 1, 0, 85, 88, 3, 0, 2, 12, 52, 52, 126, 126, 1170, 0, 152, 1, 0, 0, 0, 2, 154, 1, 0, 0, 0, 4, 164, 1, 0, 0, 0, 6, 168, 1, 0, 0, 0, 8, 192, 1, 0, 0, 0, 10, 204, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 213, 1, 0, 0, 0, 16, 224, 1, 0, 0, 0, 18, 226, 1, 0, 0, 0, 20, 239, 1, 0, 0, 0, 22, 271, 1, 0, 0, 0, 24, 301, 1, 0, 0, 0, 26, 303, 1, 0, 0, 0, 28, 307, 1, 0, 0, 0, 30, 325, 1, 0, 0, 0, 32, 327, 1, 0, 0, 0, 34, 339, 1, 0, 0, 0, 36, 342, 1, 0, 0, 0, 38, 360, 1, 0, 0, 0, 40, 396, 1, 0, 0, 0, 42, 399, 1, 0, 0, 0, 44, 424, 1, 0, 0, 0, 46, 452, 1, 0, 0, 0, 48, 463, 1, 0, 0, 0, 50, 468, 1, 0, 0, 0, 52, 495, 1, 0, 0, 0, 54, 497, 1, 0, 0, 0, 56, 519, 1, 0, 0, 0, 58, 561, 1, 0, 0, 0, 60, 563, 1, 0, 0, 0, 62, 586, 1, 0, 0, 0, 64, 602, 1, 0, 0, 0, 66, 615, 1, 0, 0, 0, 68, 618, 1, 0, 0, 0, 70, 638, 1, 0, 0, 0, 72, 640, 1, 0, 0, 0, 74, 648, 1, 0, 0, 0, 76, 710, 1, 0, 0, 0, 78, 712, 1, 0, 0, 0, 80, 723, 1, 0, 0, 0, 82, 725, 1, 0, 0, 0, 84, 730, 1, 0, 0, 0, 86, 732, 1, 0, 0, 0, 88, 754, 1, 0, 0, 0, 90, 756, 1, 0, 0, 0, 92, 765, 1, 0, 0, 0, 94, 790, 1, 0, 0, 0, 96, 819, 1, 0, 0, 0, 98, 821, 1, 0, 0, 0, 100, 828, 1, 0, 0, 0, 102, 842, 1, 0, 0, 0, 104, 852, 1, 0, 0, 0, 106, 867, 1, 0, 0, 0, 108, 891, 1, 0, 0, 0, 110, 893, 1, 0, 0, 0, 112, 895, 1, 0, 0, 0, 114, 897, 1, 0, 0, 0, 116, 976, 1, 0, 0, 0, 118, 978, 1, 0, 0, 0, 120, 1035, 1, 0, 0, 0, 122, 1037, 1, 0, 0, 0, 124, 1042, 1, 0, 0, 0, 126, 1044, 1, 0, 0, 0, 128, 1054, 1, 0, 0, 0, 130, 1056, 1, 0, 0, 0, 132, 1069, 1, 0, 0, 0, 134, 1073, 1, 0, 0, 0, 136, 1086, 1, 0, 0, 0, 138, 1088, 1, 0, 0, 0, 140, 141, 3, 6, 3, 0, 141, 142, 5, 0, 0, 1, 142, 153, 1, 0, 0, 0, 143, 144, 3, 20, 10, 0, 144, 145, 5, 0, 0, 1, 145, 153, 1, 0, 0, 0, 146, 147, 3, 50, 25, 0, 147, 148, 5, 0, 0, 1, 148, 153, 1, 0, 0, 0, 149, 150, 3, 2, 1, 0, 150, 151, 5, 0, 0, 1, 151, 153, 1, 0, 0, 0, 152, 140, 1, 0, 0, 0, 152, 143, 1, 0, 0, 0, 152, 146, 1, 0, 0, 0, 152, 149, 1, 0, 0, 0, 153, 1, 1, 0, 0, 0, 154, 155, 5, 19, 0, 0, 155, 159, 5, 114, 0, 0, 156, 158, 3, 8, 4, 0, 157, 156, 1, 0, 0, 0, 158, 161, 1, 0, 0, 0, 159, 157, 1, 0, 0, 0, 159, 160, 1, 0, 0, 0, 160, 162, 1, 0, 0, 0, 161, 159, 1, 0, 0, 0, 162, 163, 5, 115, 0, 0, 163, 3, 1, 0, 0, 0, 164, 165, 5, 20, 0, 0, 165, 166, 3, 138, 69, 0, 166, 167, 5, 111, 0, 0, 167, 5, 1, 0, 0, 0, 168, 169, 5, 1, 0, 0, 169, 170, 3, 136, 68, 0, 170, 171, 5, 61, 0, 0, 171, 172, 3, 138, 69, 0, 172, 173, 5, 55, 0, 0, 173, 174, 3, 138, 69, 0, 174, 175, 5, 54, 0, 0, 175, 176, 3, 138, 69, 0, 176, 180, 5, 114, 0, 0, 177, 179, 3, 8, 4, 0, 178, 177, 1, 0, 0, 0, 179, 182, 1, 0, 0, 0, 180, 178, 1, 0, 0, 0, 180, 181, 1, 0, 0, 0, 181, 183, 1, 0, 0, 0, 182, 180, 1, 0, 0, 0, 183, 184, 5, 115, 0, 0, 184, 7, 1, 0, 0, 0, 185, 193, 3, 4, 2, 0, 186, 193, 3, 18, 9, 0, 187, 193, 3, 10, 5, 0, 188, 193, 3, 82, 41, 0, 189, 193, 3, 94, 47, 0, 190, 193, 3, 118, 59, 0, 191, 193, 3, 32, 16, 0, 192, 185, 1, 0, 0, 0, 192, 186, 1, 0, 0, 0, 192, 187, 1, 0, 0, 0, 192, 188, 1, 0, 0, 0, 192, 189, 1, 0, 0, 0, 192, 190, 1, 0, 0, 0, 192, 191, 1, 0, 0, 0, 193, 9, 1, 0, 0, 0, 194, 195, 5, 20, 0, 0, 195, 196, 5, 23, 0, 0, 196, 197, 3, 136, 68, 0, 197, 198, 5, 111, 0, 0, 198, 205, 1, 0, 0, 0, 199, 200, 5, 20, 0, 0, 200, 201, 5, 25, 0, 0, 201, 202, 3, 136, 68, 0, 202, 203, 5, 111, 0, 0, 203, 205, 1, 0, 0, 0, 204, 194, 1, 0, 0, 0, 204, 199, 1, 0, 0, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 21, 0, 0, 207, 208, 5, 22, 0, 0, 208, 209, 3, 136, 68, 0, 209, 210, 5, 61, 0, 0, 210, 211, 3, 138, 69, 0, 211, 212, 5, 111, 0, 0, 212, 13, 1, 0, 0, 0, 213, 214, 5, 21, 0, 0, 214, 215, 5, 23, 0, 0, 215, 216, 3, 136, 68, 0, 216, 217, 5, 55, 0, 0, 217, 218, 3, 138, 69, 0, 218, 219, 5, 111, 0, 0, 219, 15, 1, 0, 0, 0, 220, 225, 3, 10, 5, 0, 221, 225, 3, 12, 6, 0, 222, 225, 3, 14, 7, 0, 223, 225, 3, 32, 16, 0, 224, 220, 1, 0, 0, 0, 224, 221, 1, 0, 0, 0, 224, 222, 1, 0, 0, 0, 224, 223, 1, 0, 0, 0, 225, 17, 1, 0, 0, 0, 226, 227, 5, 22, 0, 0, 227, 228, 3, 136, 68, 0, 228, 229, 5, 61, 0, 0, 229, 232, 3, 138, 69, 0, 230, 231, 5, 62, 0, 0, 231, 233, 3, 138, 69, 0, 232, 230, 1, 0, 0, 0, 232, 233, 1, 0, 0, 0, 233, 234, 1, 0, 0, 0, 234, 235, 5, 111, 0, 0, 235, 19, 1, 0, 0, 0, 236, 238, 3, 16, 8, 0, 237, 236, 1, 0, 0, 0, 238, 241, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 242, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 242, 243, 5, 23, 0, 0, 243, 245, 3, 136, 68, 0, 244, 246, 3, 22, 11, 0, 245, 244, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 247, 1, 0, 0, 0, 247, 248, 5, 61, 0, 0, 248, 249, 3, 138, 69, 0, 249, 250, 5, 55, 0, 0, 250, 260, 3, 138, 69, 0, 251, 252, 5, 66, 0, 0, 252, 257, 3, 26, 13, 0, 253, 254, 5, 112, 0, 0, 254, 256, 3, 26, 13, 0, 255, 253, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 261, 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 260, 251, 1, 0, 0, 0, 260, 261, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 266, 5, 114, 0, 0, 263, 265, 3, 34, 17, 0, 264, 263, 1, 0, 0, 0, 265, 268, 1, 0, 0, 0, 266, 264, 1, 0, 0, 0, 266, 267, 1, 0, 0, 0, 267, 269, 1, 0, 0, 0, 268, 266, 1, 0, 0, 0, 269, 270, 5, 115, 0, 0, 270, 21, 1, 0, 0, 0, 271, 272, 5, 120, 0, 0, 272, 277, 3, 24, 12, 0, 273, 274, 5, 112, 0, 0, 274, 276, 3, 24, 12, 0, 275, 273, 1, 0, 0, 0, 276, 279, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 280, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 280, 281, 5, 121, 0, 0, 281, 23, 1, 0, 0, 0, 282, 283, 5, 26, 0, 0, 283, 286, 3, 136, 68, 0, 284, 285, 5, 110, 0, 0, 285, 287, 5, 16, 0, 0, 286, 284, 1, 0, 0, 0, 286, 287, 1, 0, 0, 0, 287, 302, 1, 0, 0, 0, 288, 289, 5, 15, 0, 0, 289, 299, 3, 136, 68, 0, 290, 291, 5, 17, 0, 0, 291, 296, 3, 26, 13, 0, 292, 293, 5, 122, 0, 0, 293, 295, 3, 26, 13, 0, 294, 292, 1, 0, 0, 0, 295, 298, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 300, 1, 0, 0, 0, 298, 296, 1, 0, 0, 0, 299, 290, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 302, 1, 0, 0, 0, 301, 282, 1, 0, 0, 0, 301, 288, 1, 0, 0, 0, 302, 25, 1, 0, 0, 0, 303, 305, 3, 136, 68, 0, 304, 306, 3, 28, 14, 0, 305, 304, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 27, 1, 0, 0, 0, 307, 308, 5, 120, 0, 0, 308, 313, 3, 30, 15, 0, 309, 310, 5, 112, 0, 0, 310, 312, 3, 30, 15, 0, 311, 309, 1, 0, 0, 0, 312, 315, 1, 0, 0, 0, 313, 311, 1, 0, 0, 0, 313, 314, 1, 0, 0, 0, 314, 316, 1, 0, 0, 0, 315, 313, 1, 0, 0, 0, 316, 317, 5, 121, 0, 0, 317, 29, 1, 0, 0, 0, 318, 319, 5, 22, 0, 0, 319, 326, 3, 136, 68, 0, 320, 321, 5, 23, 0, 0, 321, 326, 3, 26, 13, 0, 322, 323, 5, 15, 0, 0, 323, 326, 3, 136, 68, 0, 324, 326, 3, 120, 60, 0, 325, 318, 1, 0, 0, 0, 325, 320, 1, 0, 0, 0, 325, 322, 1, 0, 0, 0, 325, 324, 1, 0, 0, 0, 326, 31, 1, 0, 0, 0, 327, 328, 5, 14, 0, 0, 328, 330, 3, 136, 68, 0, 329, 331, 3, 22, 11, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 333, 5, 123, 0, 0, 333, 334, 3, 120, 60, 0, 334, 335, 5, 111, 0, 0, 335, 33, 1, 0, 0, 0, 336, 340, 3, 38, 19, 0, 337, 340, 3, 42, 21, 0, 338, 340, 3, 36, 18, 0, 339, 336, 1, 0, 0, 0, 339, 337, 1, 0, 0, 0, 339, 338, 1, 0, 0, 0, 340, 35, 1, 0, 0, 0, 341, 343, 5, 36, 0, 0, 342, 341, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 345, 5, 28, 0, 0, 345, 346, 3, 136, 68, 0, 346, 347, 5, 61, 0, 0, 347, 348, 3, 138, 69, 0, 348, 349, 5, 110, 0, 0, 349, 350, 3, 120, 60, 0, 350, 351, 5, 109, 0, 0, 351, 352, 3, 120, 60, 0, 352, 353, 5, 114, 0, 0, 353, 354, 5, 78, 0, 0, 354, 355, 5, 61, 0, 0, 355, 356, 3, 138, 69, 0, 356, 357, 5, 111, 0, 0, 357, 358, 5, 115, 0, 0, 358, 37, 1, 0, 0, 0, 359, 361, 3, 44, 22, 0, 360, 359, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 363, 5, 26, 0, 0, 363, 364, 3, 136, 68, 0, 364, 365, 5, 61, 0, 0, 365, 366, 3, 138, 69, 0, 366, 367, 5, 110, 0, 0, 367, 368, 3, 120, 60, 0, 368, 372, 5, 114, 0, 0, 369, 371, 3, 40, 20, 0, 370, 369, 1, 0, 0, 0, 371, 374, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 372, 373, 1, 0, 0, 0, 373, 375, 1, 0, 0, 0, 374, 372, 1, 0, 0, 0, 375, 376, 5, 115, 0, 0, 376, 39, 1, 0, 0, 0, 377, 378, 5, 68, 0, 0, 378, 379, 5, 61, 0, 0, 379, 380, 3, 138, 69, 0, 380, 381, 5, 111, 0, 0, 381, 397, 1, 0, 0, 0, 382, 383, 5, 69, 0, 0, 383, 384, 5, 61, 0, 0, 384, 385, 3, 138, 69, 0, 385, 386, 5, 111, 0, 0, 386, 397, 1, 0, 0, 0, 387, 388, 5, 70, 0, 0, 388, 389, 5, 71, 0, 0, 389, 390, 5, 61, 0, 0, 390, 391, 3, 138, 69, 0, 391, 392, 5, 72, 0, 0, 392, 393, 5, 61, 0, 0, 393, 394, 3, 138, 69, 0, 394, 395, 5, 111, 0, 0, 395, 397, 1, 0, 0, 0, 396, 377, 1, 0, 0, 0, 396, 382, 1, 0, 0, 0, 396, 387, 1, 0, 0, 0, 397, 41, 1, 0, 0, 0, 398, 400, 3, 44, 22, 0, 399, 398, 1, 0, 0, 0, 399, 400, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 402, 5, 27, 0, 0, 402, 403, 3, 136, 68, 0, 403, 404, 5, 61, 0, 0, 404, 405, 3, 138, 69, 0, 405, 406, 5, 110, 0, 0, 406, 407, 3, 126, 63, 0, 407, 409, 3, 48, 24, 0, 408, 410, 5, 89, 0, 0, 409, 408, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 413, 1, 0, 0, 0, 411, 412, 5, 59, 0, 0, 412, 414, 3, 138, 69, 0, 413, 411, 1, 0, 0, 0, 413, 414, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 419, 5, 114, 0, 0, 416, 418, 3, 46, 23, 0, 417, 416, 1, 0, 0, 0, 418, 421, 1, 0, 0, 0, 419, 417, 1, 0, 0, 0, 419, 420, 1, 0, 0, 0, 420, 422, 1, 0, 0, 0, 421, 419, 1, 0, 0, 0, 422, 423, 5, 115, 0, 0, 423, 43, 1, 0, 0, 0, 424, 426, 5, 11, 0, 0, 425, 427, 5, 12, 0, 0, 426, 425, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 45, 1, 0, 0, 0, 428, 429, 5, 75, 0, 0, 429, 430, 5, 61, 0, 0, 430, 431, 3, 138, 69, 0, 431, 432, 5, 111, 0, 0, 432, 453, 1, 0, 0, 0, 433, 434, 5, 76, 0, 0, 434, 435, 5, 61, 0, 0, 435, 436, 3, 138, 69, 0, 436, 437, 5, 111, 0, 0, 437, 453, 1, 0, 0, 0, 438, 439, 5, 77, 0, 0, 439, 440, 5, 61, 0, 0, 440, 441, 3, 138, 69, 0, 441, 442, 5, 111, 0, 0, 442, 453, 1, 0, 0, 0, 443, 444, 5, 70, 0, 0, 444, 445, 5, 71, 0, 0, 445, 446, 5, 61, 0, 0, 446, 447, 3, 138, 69, 0, 447, 448, 5, 72, 0, 0, 448, 449, 5, 61, 0, 0, 449, 450, 3, 138, 69, 0, 450, 451, 5, 111, 0, 0, 451, 453, 1, 0, 0, 0, 452, 428, 1, 0, 0, 0, 452, 433, 1, 0, 0, 0, 452, 438, 1, 0, 0, 0, 452, 443, 1, 0, 0, 0, 453, 47, 1, 0, 0, 0, 454, 455, 5, 22, 0, 0, 455, 464, 3, 136, 68, 0, 456, 457, 5, 23, 0, 0, 457, 459, 3, 136, 68, 0, 458, 460, 3, 28, 14, 0, 459, 458, 1, 0, 0, 0, 459, 460, 1, 0, 0, 0, 460, 464, 1, 0, 0, 0, 461, 462, 5, 15, 0, 0, 462, 464, 3, 136, 68, 0, 463, 454, 1, 0, 0, 0, 463, 456, 1, 0, 0, 0, 463, 461, 1, 0, 0, 0, 464, 49, 1, 0, 0, 0, 465, 467, 3, 16, 8, 0, 466, 465, 1, 0, 0, 0, 467, 470, 1, 0, 0, 0, 468, 466, 1, 0, 0, 0, 468, 469, 1, 0, 0, 0, 469, 471, 1, 0, 0, 0, 470, 468, 1, 0, 0, 0, 471, 472, 5, 25, 0, 0, 472, 473, 3, 136, 68, 0, 473, 474, 5, 61, 0, 0, 474, 475, 3, 138, 69, 0, 475, 476, 5, 55, 0, 0, 476, 479, 3, 138, 69, 0, 477, 478, 5, 56, 0, 0, 478, 480, 5, 124, 0, 0, 479, 477, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 481, 1, 0, 0, 0, 481, 485, 5, 114, 0, 0, 482, 484, 3, 52, 26, 0, 483, 482, 1, 0, 0, 0, 484, 487, 1, 0, 0, 0, 485, 483, 1, 0, 0, 0, 485, 486, 1, 0, 0, 0, 486, 488, 1, 0, 0, 0, 487, 485, 1, 0, 0, 0, 488, 489, 5, 115, 0, 0, 489, 51, 1, 0, 0, 0, 490, 496, 3, 60, 30, 0, 491, 496, 3, 62, 31, 0, 492, 496, 3, 64, 32, 0, 493, 496, 3, 54, 27, 0, 494, 496, 3, 56, 28, 0, 495, 490, 1, 0, 0, 0, 495, 491, 1, 0, 0, 0, 495, 492, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 495, 494, 1, 0, 0, 0, 496, 53, 1, 0, 0, 0, 497, 498, 5, 2, 0, 0, 498, 500, 3, 136, 68, 0, 499, 501, 3, 22, 11, 0, 500, 499, 1, 0, 0, 0, 500, 501, 1, 0, 0, 0, 501, 502, 1, 0, 0, 0, 502, 503, 5, 61, 0, 0, 503, 504, 3, 138, 69, 0, 504, 505, 5, 4, 0, 0, 505, 506, 3, 26, 13, 0, 506, 507, 5, 5, 0, 0, 507, 508, 3, 138, 69, 0, 508, 509, 5, 28, 0, 0, 509, 510, 3, 138, 69, 0, 510, 514, 5, 114, 0, 0, 511, 513, 3, 58, 29, 0, 512, 511, 1, 0, 0, 0, 513, 516, 1, 0, 0, 0, 514, 512, 1, 0, 0, 0, 514, 515, 1, 0, 0, 0, 515, 517, 1, 0, 0, 0, 516, 514, 1, 0, 0, 0, 517, 518, 5, 115, 0, 0, 518, 55, 1, 0, 0, 0, 519, 520, 5, 2, 0, 0, 520, 521, 3, 136, 68, 0, 521, 522, 5, 61, 0, 0, 522, 523, 3, 138, 69, 0, 523, 524, 5, 3, 0, 0, 524, 525, 3, 136, 68, 0, 525, 526, 3, 28, 14, 0, 526, 527, 5, 111, 0, 0, 527, 57, 1, 0, 0, 0, 528, 529, 5, 6, 0, 0, 529, 530, 3, 138, 69, 0, 530, 531, 5, 111, 0, 0, 531, 562, 1, 0, 0, 0, 532, 534, 5, 7, 0, 0, 533, 535, 5, 15, 0, 0, 534, 533, 1, 0, 0, 0, 534, 535, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 3, 136, 68, 0, 537, 538, 5, 34, 0, 0, 538, 539, 3, 26, 13, 0, 539, 540, 5, 111, 0, 0, 540, 562, 1, 0, 0, 0, 541, 542, 5, 8, 0, 0, 542, 543, 3, 136, 68, 0, 543, 544, 5, 124, 0, 0, 544, 545, 5, 111, 0, 0, 545, 562, 1, 0, 0, 0, 546, 547, 5, 9, 0, 0, 547, 548, 3, 26, 13, 0, 548, 549, 5, 113, 0, 0, 549, 550, 3, 136, 68, 0, 550, 551, 3, 136, 68, 0, 551, 552, 3, 138, 69, 0, 552, 553, 5, 111, 0, 0, 553, 562, 1, 0, 0, 0, 554, 555, 5, 70, 0, 0, 555, 562, 5, 111, 0, 0, 556, 557, 5, 10, 0, 0, 557, 558, 5, 124, 0, 0, 558, 559, 3, 138, 69, 0, 559, 560, 5, 111, 0, 0, 560, 562, 1, 0, 0, 0, 561, 528, 1, 0, 0, 0, 561, 532, 1, 0, 0, 0, 561, 541, 1, 0, 0, 0, 561, 546, 1, 0, 0, 0, 561, 554, 1, 0, 0, 0, 561, 556, 1, 0, 0, 0, 562, 59, 1, 0, 0, 0, 563, 564, 5, 28, 0, 0, 564, 566, 3, 136, 68, 0, 565, 567, 3, 22, 11, 0, 566, 565, 1, 0, 0, 0, 566, 567, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 569, 5, 61, 0, 0, 569, 570, 3, 138, 69, 0, 570, 571, 5, 110, 0, 0, 571, 572, 3, 120, 60, 0, 572, 573, 5, 109, 0, 0, 573, 574, 3, 120, 60, 0, 574, 575, 5, 63, 0, 0, 575, 577, 3, 68, 34, 0, 576, 578, 3, 66, 33, 0, 577, 576, 1, 0, 0, 0, 577, 578, 1, 0, 0, 0, 578, 579, 1, 0, 0, 0, 579, 580, 5, 65, 0, 0, 580, 582, 3, 70, 35, 0, 581, 583, 3, 74, 37, 0, 582, 581, 1, 0, 0, 0, 582, 583, 1, 0, 0, 0, 583, 584, 1, 0, 0, 0, 584, 585, 5, 111, 0, 0, 585, 61, 1, 0, 0, 0, 586, 587, 5, 29, 0, 0, 587, 589, 3, 136, 68, 0, 588, 590, 3, 22, 11, 0, 589, 588, 1, 0, 0, 0, 589, 590, 1, 0, 0, 0, 590, 591, 1, 0, 0, 0, 591, 592, 5, 61, 0, 0, 592, 593, 3, 138, 69, 0, 593, 594, 5, 110, 0, 0, 594, 595, 3, 120, 60, 0, 595, 596, 5, 109, 0, 0, 596, 598, 3, 120, 60, 0, 597, 599, 3, 74, 37, 0, 598, 597, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 600, 1, 0, 0, 0, 600, 601, 5, 111, 0, 0, 601, 63, 1, 0, 0, 0, 602, 603, 5, 30, 0, 0, 603, 604, 3, 136, 68, 0, 604, 605, 5, 61, 0, 0, 605, 606, 3, 138, 69, 0, 606, 607, 5, 31, 0, 0, 607, 608, 3, 136, 68, 0, 608, 609, 5, 110, 0, 0, 609, 611, 3, 120, 60, 0, 610, 612, 3, 74, 37, 0, 611, 610, 1, 0, 0, 0, 611, 612, 1, 0, 0, 0, 612, 613, 1, 0, 0, 0, 613, 614, 5, 111, 0, 0, 614, 65, 1, 0, 0, 0, 615, 616, 5, 64, 0, 0, 616, 617, 3, 120, 60, 0, 617, 67, 1, 0, 0, 0, 618, 619, 7, 0, 0, 0, 619, 69, 1, 0, 0, 0, 620, 639, 5, 67, 0, 0, 621, 622, 5, 22, 0, 0, 622, 639, 3, 136, 68, 0, 623, 624, 5, 15, 0, 0, 624, 639, 3, 136, 68, 0, 625, 626, 5, 24, 0, 0, 626, 635, 5, 116, 0, 0, 627, 632, 3, 26, 13, 0, 628, 629, 5, 112, 0, 0, 629, 631, 3, 26, 13, 0, 630, 628, 1, 0, 0, 0, 631, 634, 1, 0, 0, 0, 632, 630, 1, 0, 0, 0, 632, 633, 1, 0, 0, 0, 633, 636, 1, 0, 0, 0, 634, 632, 1, 0, 0, 0, 635, 627, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 1, 0, 0, 0, 637, 639, 5, 117, 0, 0, 638, 620, 1, 0, 0, 0, 638, 621, 1, 0, 0, 0, 638, 623, 1, 0, 0, 0, 638, 625, 1, 0, 0, 0, 639, 71, 1, 0, 0, 0, 640, 645, 3, 136, 68, 0, 641, 642, 5, 112, 0, 0, 642, 644, 3, 136, 68, 0, 643, 641, 1, 0, 0, 0, 644, 647, 1, 0, 0, 0, 645, 643, 1, 0, 0, 0, 645, 646, 1, 0, 0, 0, 646, 73, 1, 0, 0, 0, 647, 645, 1, 0, 0, 0, 648, 649, 5, 66, 0, 0, 649, 653, 5, 114, 0, 0, 650, 652, 3, 76, 38, 0, 651, 650, 1, 0, 0, 0, 652, 655, 1, 0, 0, 0, 653, 651, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 656, 1, 0, 0, 0, 655, 653, 1, 0, 0, 0, 656, 657, 5, 115, 0, 0, 657, 75, 1, 0, 0, 0, 658, 659, 5, 40, 0, 0, 659, 660, 3, 136, 68, 0, 660, 661, 5, 61, 0, 0, 661, 662, 3, 138, 69, 0, 662, 663, 5, 110, 0, 0, 663, 664, 3, 120, 60, 0, 664, 665, 3, 78, 39, 0, 665, 666, 5, 111, 0, 0, 666, 711, 1, 0, 0, 0, 667, 668, 5, 41, 0, 0, 668, 669, 3, 136, 68, 0, 669, 670, 5, 61, 0, 0, 670, 671, 3, 138, 69, 0, 671, 672, 5, 110, 0, 0, 672, 673, 3, 126, 63, 0, 673, 674, 3, 48, 24, 0, 674, 675, 3, 78, 39, 0, 675, 676, 5, 111, 0, 0, 676, 711, 1, 0, 0, 0, 677, 678, 5, 23, 0, 0, 678, 679, 3, 136, 68, 0, 679, 680, 5, 61, 0, 0, 680, 681, 3, 138, 69, 0, 681, 682, 5, 110, 0, 0, 682, 684, 3, 136, 68, 0, 683, 685, 3, 28, 14, 0, 684, 683, 1, 0, 0, 0, 684, 685, 1, 0, 0, 0, 685, 686, 1, 0, 0, 0, 686, 687, 5, 111, 0, 0, 687, 711, 1, 0, 0, 0, 688, 689, 5, 30, 0, 0, 689, 690, 3, 136, 68, 0, 690, 691, 5, 61, 0, 0, 691, 692, 3, 138, 69, 0, 692, 693, 5, 110, 0, 0, 693, 696, 3, 136, 68, 0, 694, 695, 5, 32, 0, 0, 695, 697, 3, 120, 60, 0, 696, 694, 1, 0, 0, 0, 696, 697, 1, 0, 0, 0, 697, 698, 1, 0, 0, 0, 698, 699, 5, 111, 0, 0, 699, 711, 1, 0, 0, 0, 700, 701, 5, 2, 0, 0, 701, 702, 3, 136, 68, 0, 702, 703, 5, 61, 0, 0, 703, 704, 3, 138, 69, 0, 704, 705, 5, 110, 0, 0, 705, 706, 3, 136, 68, 0, 706, 707, 5, 113, 0, 0, 707, 708, 3, 136, 68, 0, 708, 709, 5, 111, 0, 0, 709, 711, 1, 0, 0, 0, 710, 658, 1, 0, 0, 0, 710, 667, 1, 0, 0, 0, 710, 677, 1, 0, 0, 0, 710, 688, 1, 0, 0, 0, 710, 700, 1, 0, 0, 0, 711, 77, 1, 0, 0, 0, 712, 713, 5, 116, 0, 0, 713, 718, 3, 80, 40, 0, 714, 715, 5, 112, 0, 0, 715, 717, 3, 80, 40, 0, 716, 714, 1, 0, 0, 0, 717, 720, 1, 0, 0, 0, 718, 716, 1, 0, 0, 0, 718, 719, 1, 0, 0, 0, 719, 721, 1, 0, 0, 0, 720, 718, 1, 0, 0, 0, 721, 722, 5, 117, 0, 0, 722, 79, 1, 0, 0, 0, 723, 724, 7, 1, 0, 0, 724, 81, 1, 0, 0, 0, 725, 726, 5, 39, 0, 0, 726, 727, 3, 84, 42, 0, 727, 83, 1, 0, 0, 0, 728, 731, 3, 86, 43, 0, 729, 731, 3, 90, 45, 0, 730, 728, 1, 0, 0, 0, 730, 729, 1, 0, 0, 0, 731, 85, 1, 0, 0, 0, 732, 733, 5, 40, 0, 0, 733, 734, 3, 136, 68, 0, 734, 735, 5, 61, 0, 0, 735, 736, 3, 138, 69, 0, 736, 737, 5, 49, 0, 0, 737, 738, 3, 136, 68, 0, 738, 739, 5, 110, 0, 0, 739, 740, 3, 120, 60, 0, 740, 741, 5, 50, 0, 0, 741, 744, 3, 88, 44, 0, 742, 743, 5, 51, 0, 0, 743, 745, 3, 128, 64, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 111, 0, 0, 747, 87, 1, 0, 0, 0, 748, 755, 5, 83, 0, 0, 749, 750, 5, 84, 0, 0, 750, 751, 5, 118, 0, 0, 751, 752, 3, 120, 60, 0, 752, 753, 5, 119, 0, 0, 753, 755, 1, 0, 0, 0, 754, 748, 1, 0, 0, 0, 754, 749, 1, 0, 0, 0, 755, 89, 1, 0, 0, 0, 756, 757, 5, 41, 0, 0, 757, 758, 3, 136, 68, 0, 758, 759, 5, 61, 0, 0, 759, 760, 3, 138, 69, 0, 760, 761, 5, 114, 0, 0, 761, 762, 3, 92, 46, 0, 762, 763, 3, 92, 46, 0, 763, 764, 5, 115, 0, 0, 764, 91, 1, 0, 0, 0, 765, 766, 3, 48, 24, 0, 766, 767, 5, 42, 0, 0, 767, 768, 3, 136, 68, 0, 768, 769, 5, 61, 0, 0, 769, 770, 3, 138, 69, 0, 770, 772, 3, 126, 63, 0, 771, 773, 5, 89, 0, 0, 772, 771, 1, 0, 0, 0, 772, 773, 1, 0, 0, 0, 773, 776, 1, 0, 0, 0, 774, 775, 5, 57, 0, 0, 775, 777, 3, 138, 69, 0, 776, 774, 1, 0, 0, 0, 776, 777, 1, 0, 0, 0, 777, 779, 1, 0, 0, 0, 778, 780, 5, 58, 0, 0, 779, 778, 1, 0, 0, 0, 779, 780, 1, 0, 0, 0, 780, 783, 1, 0, 0, 0, 781, 782, 5, 59, 0, 0, 782, 784, 3, 138, 69, 0, 783, 781, 1, 0, 0, 0, 783, 784, 1, 0, 0, 0, 784, 786, 1, 0, 0, 0, 785, 787, 5, 60, 0, 0, 786, 785, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 1, 0, 0, 0, 788, 789, 5, 111, 0, 0, 789, 93, 1, 0, 0, 0, 790, 791, 5, 33, 0, 0, 791, 792, 3, 136, 68, 0, 792, 793, 5, 34, 0, 0, 793, 795, 3, 136, 68, 0, 794, 796, 3, 28, 14, 0, 795, 794, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 799, 1, 0, 0, 0, 797, 798, 5, 61, 0, 0, 798, 800, 3, 138, 69, 0, 799, 797, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 803, 1, 0, 0, 0, 801, 802, 5, 56, 0, 0, 802, 804, 5, 124, 0, 0, 803, 801, 1, 0, 0, 0, 803, 804, 1, 0, 0, 0, 804, 805, 1, 0, 0, 0, 805, 809, 5, 114, 0, 0, 806, 808, 3, 96, 48, 0, 807, 806, 1, 0, 0, 0, 808, 811, 1, 0, 0, 0, 809, 807, 1, 0, 0, 0, 809, 810, 1, 0, 0, 0, 810, 812, 1, 0, 0, 0, 811, 809, 1, 0, 0, 0, 812, 813, 5, 115, 0, 0, 813, 95, 1, 0, 0, 0, 814, 815, 5, 38, 0, 0, 815, 820, 3, 84, 42, 0, 816, 820, 3, 102, 51, 0, 817, 820, 3, 98, 49, 0, 818, 820, 3, 100, 50, 0, 819, 814, 1, 0, 0, 0, 819, 816, 1, 0, 0, 0, 819, 817, 1, 0, 0, 0, 819, 818, 1, 0, 0, 0, 820, 97, 1, 0, 0, 0, 821, 822, 5, 35, 0, 0, 822, 823, 3, 136, 68, 0, 823, 824, 5, 37, 0, 0, 824, 825, 5, 40, 0, 0, 825, 826, 3, 136, 68, 0, 826, 827, 5, 111, 0, 0, 827, 99, 1, 0, 0, 0, 828, 829, 5, 46, 0, 0, 829, 830, 3, 136, 68, 0, 830, 831, 5, 47, 0, 0, 831, 832, 5, 48, 0, 0, 832, 833, 5, 44, 0, 0, 833, 834, 5, 30, 0, 0, 834, 835, 3, 136, 68, 0, 835, 836, 5, 45, 0, 0, 836, 837, 5, 41, 0, 0, 837, 838, 3, 136, 68, 0, 838, 839, 5, 113, 0, 0, 839, 840, 3, 136, 68, 0, 840, 841, 5, 111, 0, 0, 841, 101, 1, 0, 0, 0, 842, 843, 5, 35, 0, 0, 843, 844, 3, 104, 52, 0, 844, 845, 5, 37, 0, 0, 845, 848, 3, 108, 54, 0, 846, 847, 5, 13, 0, 0, 847, 849, 3, 138, 69, 0, 848, 846, 1, 0, 0, 0, 848, 849, 1, 0, 0, 0, 849, 850, 1, 0, 0, 0, 850, 851, 5, 111, 0, 0, 851, 103, 1, 0, 0, 0, 852, 853, 3, 136, 68, 0, 853, 854, 5, 113, 0, 0, 854, 855, 3, 106, 53, 0, 855, 105, 1, 0, 0, 0, 856, 868, 3, 136, 68, 0, 857, 868, 5, 78, 0, 0, 858, 868, 5, 68, 0, 0, 859, 868, 5, 69, 0, 0, 860, 868, 5, 75, 0, 0, 861, 868, 5, 76, 0, 0, 862, 868, 5, 77, 0, 0, 863, 868, 5, 79, 0, 0, 864, 868, 5, 80, 0, 0, 865, 868, 5, 81, 0, 0, 866, 868, 5, 82, 0, 0, 867, 856, 1, 0, 0, 0, 867, 857, 1, 0, 0, 0, 867, 858, 1, 0, 0, 0, 867, 859, 1, 0, 0, 0, 867, 860, 1, 0, 0, 0, 867, 861, 1, 0, 0, 0, 867, 862, 1, 0, 0, 0, 867, 863, 1, 0, 0, 0, 867, 864, 1, 0, 0, 0, 867, 865, 1, 0, 0, 0, 867, 866, 1, 0, 0, 0, 868, 107, 1, 0, 0, 0, 869, 870, 5, 40, 0, 0, 870, 871, 3, 136, 68, 0, 871, 872, 5, 113, 0, 0, 872, 873, 3, 110, 55, 0, 873, 892, 1, 0, 0, 0, 874, 875, 5, 41, 0, 0, 875, 876, 3, 136, 68, 0, 876, 877, 5, 113, 0, 0, 877, 878, 3, 136, 68, 0, 878, 879, 5, 113, 0, 0, 879, 880, 3, 112, 56, 0, 880, 892, 1, 0, 0, 0, 881, 882, 5, 25, 0, 0, 882, 883, 3, 136, 68, 0, 883, 884, 5, 113, 0, 0, 884, 886, 3, 136, 68, 0, 885, 887, 3, 28, 14, 0, 886, 885, 1, 0, 0, 0, 886, 887, 1, 0, 0, 0, 887, 889, 1, 0, 0, 0, 888, 890, 3, 114, 57, 0, 889, 888, 1, 0, 0, 0, 889, 890, 1, 0, 0, 0, 890, 892, 1, 0, 0, 0, 891, 869, 1, 0, 0, 0, 891, 874, 1, 0, 0, 0, 891, 881, 1, 0, 0, 0, 892, 109, 1, 0, 0, 0, 893, 894, 7, 2, 0, 0, 894, 111, 1, 0, 0, 0, 895, 896, 7, 3, 0, 0, 896, 113, 1, 0, 0, 0, 897, 898, 5, 43, 0, 0, 898, 902, 5, 114, 0, 0, 899, 901, 3, 116, 58, 0, 900, 899, 1, 0, 0, 0, 901, 904, 1, 0, 0, 0, 902, 900, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 905, 1, 0, 0, 0, 904, 902, 1, 0, 0, 0, 905, 906, 5, 115, 0, 0, 906, 115, 1, 0, 0, 0, 907, 908, 3, 136, 68, 0, 908, 909, 5, 37, 0, 0, 909, 910, 5, 40, 0, 0, 910, 917, 3, 136, 68, 0, 911, 912, 5, 45, 0, 0, 912, 913, 5, 41, 0, 0, 913, 914, 3, 136, 68, 0, 914, 915, 5, 113, 0, 0, 915, 916, 3, 136, 68, 0, 916, 918, 1, 0, 0, 0, 917, 911, 1, 0, 0, 0, 917, 918, 1, 0, 0, 0, 918, 919, 1, 0, 0, 0, 919, 920, 5, 111, 0, 0, 920, 977, 1, 0, 0, 0, 921, 922, 3, 136, 68, 0, 922, 923, 5, 37, 0, 0, 923, 924, 5, 41, 0, 0, 924, 925, 3, 136, 68, 0, 925, 926, 5, 113, 0, 0, 926, 933, 3, 136, 68, 0, 927, 928, 5, 45, 0, 0, 928, 929, 5, 41, 0, 0, 929, 930, 3, 136, 68, 0, 930, 931, 5, 113, 0, 0, 931, 932, 3, 136, 68, 0, 932, 934, 1, 0, 0, 0, 933, 927, 1, 0, 0, 0, 933, 934, 1, 0, 0, 0, 934, 935, 1, 0, 0, 0, 935, 936, 5, 111, 0, 0, 936, 977, 1, 0, 0, 0, 937, 938, 3, 136, 68, 0, 938, 939, 5, 37, 0, 0, 939, 940, 5, 23, 0, 0, 940, 942, 3, 136, 68, 0, 941, 943, 3, 28, 14, 0, 942, 941, 1, 0, 0, 0, 942, 943, 1, 0, 0, 0, 943, 950, 1, 0, 0, 0, 944, 945, 5, 45, 0, 0, 945, 946, 5, 41, 0, 0, 946, 947, 3, 136, 68, 0, 947, 948, 5, 113, 0, 0, 948, 949, 3, 136, 68, 0, 949, 951, 1, 0, 0, 0, 950, 944, 1, 0, 0, 0, 950, 951, 1, 0, 0, 0, 951, 952, 1, 0, 0, 0, 952, 953, 5, 111, 0, 0, 953, 977, 1, 0, 0, 0, 954, 955, 3, 136, 68, 0, 955, 956, 5, 37, 0, 0, 956, 957, 5, 30, 0, 0, 957, 958, 3, 136, 68, 0, 958, 959, 5, 111, 0, 0, 959, 977, 1, 0, 0, 0, 960, 961, 3, 136, 68, 0, 961, 962, 5, 37, 0, 0, 962, 963, 5, 2, 0, 0, 963, 964, 3, 136, 68, 0, 964, 965, 5, 113, 0, 0, 965, 972, 3, 136, 68, 0, 966, 967, 5, 45, 0, 0, 967, 968, 5, 41, 0, 0, 968, 969, 3, 136, 68, 0, 969, 970, 5, 113, 0, 0, 970, 971, 3, 136, 68, 0, 971, 973, 1, 0, 0, 0, 972, 966, 1, 0, 0, 0, 972, 973, 1, 0, 0, 0, 973, 974, 1, 0, 0, 0, 974, 975, 5, 111, 0, 0, 975, 977, 1, 0, 0, 0, 976, 907, 1, 0, 0, 0, 976, 921, 1, 0, 0, 0, 976, 937, 1, 0, 0, 0, 976, 954, 1, 0, 0, 0, 976, 960, 1, 0, 0, 0, 977, 117, 1, 0, 0, 0, 978, 979, 5, 30, 0, 0, 979, 980, 3, 136, 68, 0, 980, 981, 5, 37, 0, 0, 981, 982, 3, 136, 68, 0, 982, 983, 5, 113, 0, 0, 983, 985, 3, 136, 68, 0, 984, 986, 3, 114, 57, 0, 985, 984, 1, 0, 0, 0, 985, 986, 1, 0, 0, 0, 986, 987, 1, 0, 0, 0, 987, 988, 5, 111, 0, 0, 988, 119, 1, 0, 0, 0, 989, 1036, 3, 124, 62, 0, 990, 1036, 5, 90, 0, 0, 991, 1036, 5, 91, 0, 0, 992, 993, 5, 92, 0, 0, 993, 1036, 3, 138, 69, 0, 994, 995, 5, 93, 0, 0, 995, 996, 5, 120, 0, 0, 996, 997, 3, 136, 68, 0, 997, 998, 5, 121, 0, 0, 998, 1036, 1, 0, 0, 0, 999, 1000, 5, 94, 0, 0, 1000, 1001, 5, 120, 0, 0, 1001, 1003, 3, 136, 68, 0, 1002, 1004, 3, 28, 14, 0, 1003, 1002, 1, 0, 0, 0, 1003, 1004, 1, 0, 0, 0, 1004, 1005, 1, 0, 0, 0, 1005, 1006, 5, 121, 0, 0, 1006, 1036, 1, 0, 0, 0, 1007, 1008, 5, 18, 0, 0, 1008, 1009, 5, 120, 0, 0, 1009, 1010, 3, 136, 68, 0, 1010, 1011, 5, 121, 0, 0, 1011, 1036, 1, 0, 0, 0, 1012, 1013, 5, 95, 0, 0, 1013, 1014, 5, 120, 0, 0, 1014, 1015, 3, 120, 60, 0, 1015, 1016, 5, 121, 0, 0, 1016, 1036, 1, 0, 0, 0, 1017, 1018, 5, 96, 0, 0, 1018, 1019, 5, 120, 0, 0, 1019, 1020, 3, 120, 60, 0, 1020, 1021, 5, 121, 0, 0, 1021, 1036, 1, 0, 0, 0, 1022, 1023, 5, 97, 0, 0, 1023, 1027, 5, 114, 0, 0, 1024, 1026, 3, 122, 61, 0, 1025, 1024, 1, 0, 0, 0, 1026, 1029, 1, 0, 0, 0, 1027, 1025, 1, 0, 0, 0, 1027, 1028, 1, 0, 0, 0, 1028, 1030, 1, 0, 0, 0, 1029, 1027, 1, 0, 0, 0, 1030, 1036, 5, 115, 0, 0, 1031, 1033, 3, 136, 68, 0, 1032, 1034, 3, 28, 14, 0, 1033, 1032, 1, 0, 0, 0, 1033, 1034, 1, 0, 0, 0, 1034, 1036, 1, 0, 0, 0, 1035, 989, 1, 0, 0, 0, 1035, 990, 1, 0, 0, 0, 1035, 991, 1, 0, 0, 0, 1035, 992, 1, 0, 0, 0, 1035, 994, 1, 0, 0, 0, 1035, 999, 1, 0, 0, 0, 1035, 1007, 1, 0, 0, 0, 1035, 1012, 1, 0, 0, 0, 1035, 1017, 1, 0, 0, 0, 1035, 1022, 1, 0, 0, 0, 1035, 1031, 1, 0, 0, 0, 1036, 121, 1, 0, 0, 0, 1037, 1038, 3, 136, 68, 0, 1038, 1039, 5, 110, 0, 0, 1039, 1040, 3, 120, 60, 0, 1040, 1041, 5, 111, 0, 0, 1041, 123, 1, 0, 0, 0, 1042, 1043, 7, 4, 0, 0, 1043, 125, 1, 0, 0, 0, 1044, 1045, 7, 5, 0, 0, 1045, 127, 1, 0, 0, 0, 1046, 1055, 3, 138, 69, 0, 1047, 1055, 5, 124, 0, 0, 1048, 1055, 5, 125, 0, 0, 1049, 1055, 5, 106, 0, 0, 1050, 1055, 5, 107, 0, 0, 1051, 1055, 5, 108, 0, 0, 1052, 1055, 3, 130, 65, 0, 1053, 1055, 3, 134, 67, 0, 1054, 1046, 1, 0, 0, 0, 1054, 1047, 1, 0, 0, 0, 1054, 1048, 1, 0, 0, 0, 1054, 1049, 1, 0, 0, 0, 1054, 1050, 1, 0, 0, 0, 1054, 1051, 1, 0, 0, 0, 1054, 1052, 1, 0, 0, 0, 1054, 1053, 1, 0, 0, 0, 1055, 129, 1, 0, 0, 0, 1056, 1065, 5, 114, 0, 0, 1057, 1062, 3, 132, 66, 0, 1058, 1059, 5, 112, 0, 0, 1059, 1061, 3, 132, 66, 0, 1060, 1058, 1, 0, 0, 0, 1061, 1064, 1, 0, 0, 0, 1062, 1060, 1, 0, 0, 0, 1062, 1063, 1, 0, 0, 0, 1063, 1066, 1, 0, 0, 0, 1064, 1062, 1, 0, 0, 0, 1065, 1057, 1, 0, 0, 0, 1065, 1066, 1, 0, 0, 0, 1066, 1067, 1, 0, 0, 0, 1067, 1068, 5, 115, 0, 0, 1068, 131, 1, 0, 0, 0, 1069, 1070, 3, 138, 69, 0, 1070, 1071, 5, 110, 0, 0, 1071, 1072, 3, 128, 64, 0, 1072, 133, 1, 0, 0, 0, 1073, 1082, 5, 116, 0, 0, 1074, 1079, 3, 128, 64, 0, 1075, 1076, 5, 112, 0, 0, 1076, 1078, 3, 128, 64, 0, 1077, 1075, 1, 0, 0, 0, 1078, 1081, 1, 0, 0, 0, 1079, 1077, 1, 0, 0, 0, 1079, 1080, 1, 0, 0, 0, 1080, 1083, 1, 0, 0, 0, 1081, 1079, 1, 0, 0, 0, 1082, 1074, 1, 0, 0, 0, 1082, 1083, 1, 0, 0, 0, 1083, 1084, 1, 0, 0, 0, 1084, 1085, 5, 117, 0, 0, 1085, 135, 1, 0, 0, 0, 1086, 1087, 7, 6, 0, 0, 1087, 137, 1, 0, 0, 0, 1088, 1089, 5, 127, 0, 0, 1089, 139, 1, 0, 0, 0, 92, 152, 159, 180, 192, 204, 224, 232, 239, 245, 257, 260, 266, 277, 286, 296, 299, 301, 305, 313, 325, 330, 339, 342, 360, 372, 396, 399, 409, 413, 419, 426, 452, 459, 463, 468, 479, 485, 495, 500, 514, 534, 561, 566, 577, 582, 589, 598, 611, 632, 635, 638, 645, 653, 684, 696, 710, 718, 730, 744, 754, 772, 776, 779, 783, 786, 795, 799, 803, 809, 819, 848, 867, 886, 889, 891, 902, 917, 933, 942, 950, 972, 976, 985, 1003, 1027, 1033, 1035, 1054, 1062, 1065, 1079, 1082] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapability.tokens b/src/capability-language/generated/QuixosCapability.tokens index ed12769..d498b01 100644 --- a/src/capability-language/generated/QuixosCapability.tokens +++ b/src/capability-language/generated/QuixosCapability.tokens @@ -1,229 +1,253 @@ WORKSPACE=1 -TYPE=2 -OBJECT=3 -STORABLE=4 -IMPLEMENTS=5 -REF=6 -FRAGMENT=7 -IMPORT=8 -EXTERNAL=9 -ATOM=10 -INTERFACE=11 -INTERFACES=12 -PACKAGE=13 -VALUE=14 -RELATION=15 -OPERATION=16 -FUNCTION=17 -CONSTRUCTOR=18 -CONSTRUCTS=19 -INPUT=20 -CONFORM=21 -AS=22 -BIND=23 -STATIC=24 -TO=25 -PRIVATE=26 -SHARED=27 -STATE=28 -EDGE=29 -PROJECTION=30 -WITH=31 -USING=32 -VIA=33 -MATERIALIZE=34 -IF=35 -ABSENT=36 -ON=37 -POLICY=38 -DEFAULT=39 -SOURCE=40 -REPOSITORY=41 -COMMIT=42 -REVISION=43 -SEMANTIC_MAJOR=44 -ON_DELETE=45 -RETAIN_OTHER=46 -KEYED=47 -PUBLIC_TRAVERSAL=48 -ID=49 -DOC=50 -MODE=51 -EMITS=52 -RECEIVER=53 -REQUIRES=54 -ANY=55 -GET=56 -SET=57 -WATCH=58 -START=59 -STOP=60 -READ=61 -WRITE=62 -RESOLVE=63 -CONNECT=64 -DISCONNECT=65 -CALL=66 -WATCH_START=67 -WATCH_STOP=68 -SUBSCRIBE=69 -UNSUBSCRIBE=70 -OPTIMISTIC_REGISTER=71 -CRDT=72 -OPTIONAL_ONE=73 -EXACTLY_ONE=74 -MANY_UNIQUE=75 -MANY=76 -ORDERED=77 -UNIT=78 -WATCH_HANDLE=79 -MESSAGE=80 -ATOM_REF=81 -INTERFACE_REF=82 -OPTIONAL=83 -LIST=84 -RECORD=85 -BOOL=86 -BYTES=87 -DOUBLE=88 -INT32=89 -INT64=90 -STRING=91 -UINT32=92 -UINT64=93 -TRUE=94 -FALSE=95 -NULL=96 -ARROW=97 -COLON=98 -SEMI=99 -COMMA=100 -DOT=101 -LBRACE=102 -RBRACE=103 -LBRACK=104 -RBRACK=105 -LPAREN=106 -RPAREN=107 -LT=108 -GT=109 -AMP=110 -EQUAL=111 -INTEGER=112 -JSON_NUMBER=113 -IDENTIFIER=114 -STRING_LITERAL=115 -LINE_COMMENT=116 -BLOCK_COMMENT=117 -WS=118 +QUERY=2 +SPECIALIZE=3 +ROOT=4 +DOCUMENT=5 +FRAGMENTS=6 +VIEW=7 +MAX=8 +ALLOW=9 +POLL=10 +QUERYABLE=11 +RPC=12 +QUERY_REASON=13 +TYPE=14 +OBJECT=15 +STORABLE=16 +IMPLEMENTS=17 +REF=18 +FRAGMENT=19 +IMPORT=20 +EXTERNAL=21 +ATOM=22 +INTERFACE=23 +INTERFACES=24 +PACKAGE=25 +VALUE=26 +RELATION=27 +OPERATION=28 +FUNCTION=29 +CONSTRUCTOR=30 +CONSTRUCTS=31 +INPUT=32 +CONFORM=33 +AS=34 +BIND=35 +STATIC=36 +TO=37 +PRIVATE=38 +SHARED=39 +STATE=40 +EDGE=41 +PROJECTION=42 +WITH=43 +USING=44 +VIA=45 +MATERIALIZE=46 +IF=47 +ABSENT=48 +ON=49 +POLICY=50 +DEFAULT=51 +SOURCE=52 +REPOSITORY=53 +COMMIT=54 +REVISION=55 +SEMANTIC_MAJOR=56 +ON_DELETE=57 +RETAIN_OTHER=58 +KEYED=59 +PUBLIC_TRAVERSAL=60 +ID=61 +DOC=62 +MODE=63 +EMITS=64 +RECEIVER=65 +REQUIRES=66 +ANY=67 +GET=68 +SET=69 +WATCH=70 +START=71 +STOP=72 +READ=73 +WRITE=74 +RESOLVE=75 +CONNECT=76 +DISCONNECT=77 +CALL=78 +WATCH_START=79 +WATCH_STOP=80 +SUBSCRIBE=81 +UNSUBSCRIBE=82 +OPTIMISTIC_REGISTER=83 +CRDT=84 +OPTIONAL_ONE=85 +EXACTLY_ONE=86 +MANY_UNIQUE=87 +MANY=88 +ORDERED=89 +UNIT=90 +WATCH_HANDLE=91 +MESSAGE=92 +ATOM_REF=93 +INTERFACE_REF=94 +OPTIONAL=95 +LIST=96 +RECORD=97 +BOOL=98 +BYTES=99 +DOUBLE=100 +INT32=101 +INT64=102 +STRING=103 +UINT32=104 +UINT64=105 +TRUE=106 +FALSE=107 +NULL=108 +ARROW=109 +COLON=110 +SEMI=111 +COMMA=112 +DOT=113 +LBRACE=114 +RBRACE=115 +LBRACK=116 +RBRACK=117 +LPAREN=118 +RPAREN=119 +LT=120 +GT=121 +AMP=122 +EQUAL=123 +INTEGER=124 +JSON_NUMBER=125 +IDENTIFIER=126 +STRING_LITERAL=127 +LINE_COMMENT=128 +BLOCK_COMMENT=129 +WS=130 'workspace'=1 -'type'=2 -'object'=3 -'storable'=4 -'implements'=5 -'ref'=6 -'fragment'=7 -'import'=8 -'external'=9 -'atom'=10 -'interface'=11 -'interfaces'=12 -'package'=13 -'value'=14 -'relation'=15 -'operation'=16 -'function'=17 -'constructor'=18 -'constructs'=19 -'input'=20 -'conform'=21 -'as'=22 -'bind'=23 -'static'=24 -'to'=25 -'private'=26 -'shared'=27 -'state'=28 -'edge'=29 -'projection'=30 -'with'=31 -'using'=32 -'via'=33 -'materialize'=34 -'if'=35 -'absent'=36 -'on'=37 -'policy'=38 -'default'=39 -'source'=40 -'repository'=41 -'commit'=42 -'revision'=43 -'semantic-major'=44 -'on-delete'=45 -'retain-other'=46 -'keyed'=47 -'public-traversal'=48 -'id'=49 -'doc'=50 -'mode'=51 -'emits'=52 -'receiver'=53 -'requires'=54 -'any'=55 -'get'=56 -'set'=57 -'watch'=58 -'start'=59 -'stop'=60 -'read'=61 -'write'=62 -'resolve'=63 -'connect'=64 -'disconnect'=65 -'call'=66 -'watch-start'=67 -'watch-stop'=68 -'subscribe'=69 -'unsubscribe'=70 -'optimistic-register'=71 -'crdt'=72 -'optional-one'=73 -'exactly-one'=74 -'many-unique'=75 -'many'=76 -'ordered'=77 -'unit'=78 -'watch-handle'=79 -'message'=80 -'atom-ref'=81 -'interface-ref'=82 -'optional'=83 -'list'=84 -'record'=85 -'bool'=86 -'bytes'=87 -'double'=88 -'int32'=89 -'int64'=90 -'string'=91 -'uint32'=92 -'uint64'=93 -'true'=94 -'false'=95 -'null'=96 -'->'=97 -':'=98 -';'=99 -','=100 -'.'=101 -'{'=102 -'}'=103 -'['=104 -']'=105 -'('=106 -')'=107 -'<'=108 -'>'=109 -'&'=110 -'='=111 +'query'=2 +'specialize'=3 +'root'=4 +'document'=5 +'fragments'=6 +'view'=7 +'max'=8 +'allow'=9 +'poll'=10 +'queryable'=11 +'rpc'=12 +'query-reason'=13 +'type'=14 +'object'=15 +'storable'=16 +'implements'=17 +'ref'=18 +'fragment'=19 +'import'=20 +'external'=21 +'atom'=22 +'interface'=23 +'interfaces'=24 +'package'=25 +'value'=26 +'relation'=27 +'operation'=28 +'function'=29 +'constructor'=30 +'constructs'=31 +'input'=32 +'conform'=33 +'as'=34 +'bind'=35 +'static'=36 +'to'=37 +'private'=38 +'shared'=39 +'state'=40 +'edge'=41 +'projection'=42 +'with'=43 +'using'=44 +'via'=45 +'materialize'=46 +'if'=47 +'absent'=48 +'on'=49 +'policy'=50 +'default'=51 +'source'=52 +'repository'=53 +'commit'=54 +'revision'=55 +'semantic-major'=56 +'on-delete'=57 +'retain-other'=58 +'keyed'=59 +'public-traversal'=60 +'id'=61 +'doc'=62 +'mode'=63 +'emits'=64 +'receiver'=65 +'requires'=66 +'any'=67 +'get'=68 +'set'=69 +'watch'=70 +'start'=71 +'stop'=72 +'read'=73 +'write'=74 +'resolve'=75 +'connect'=76 +'disconnect'=77 +'call'=78 +'watch-start'=79 +'watch-stop'=80 +'subscribe'=81 +'unsubscribe'=82 +'optimistic-register'=83 +'crdt'=84 +'optional-one'=85 +'exactly-one'=86 +'many-unique'=87 +'many'=88 +'ordered'=89 +'unit'=90 +'watch-handle'=91 +'message'=92 +'atom-ref'=93 +'interface-ref'=94 +'optional'=95 +'list'=96 +'record'=97 +'bool'=98 +'bytes'=99 +'double'=100 +'int32'=101 +'int64'=102 +'string'=103 +'uint32'=104 +'uint64'=105 +'true'=106 +'false'=107 +'null'=108 +'->'=109 +':'=110 +';'=111 +','=112 +'.'=113 +'{'=114 +'}'=115 +'['=116 +']'=117 +'('=118 +')'=119 +'<'=120 +'>'=121 +'&'=122 +'='=123 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.interp b/src/capability-language/generated/QuixosCapabilityLexer.interp index d67bca1..fda8656 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.interp +++ b/src/capability-language/generated/QuixosCapabilityLexer.interp @@ -1,6 +1,18 @@ token literal names: null 'workspace' +'query' +'specialize' +'root' +'document' +'fragments' +'view' +'max' +'allow' +'poll' +'queryable' +'rpc' +'query-reason' 'type' 'object' 'storable' @@ -122,6 +134,18 @@ null token symbolic names: null WORKSPACE +QUERY +SPECIALIZE +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -242,6 +266,18 @@ WS rule names: WORKSPACE +QUERY +SPECIALIZE +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -370,4 +406,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 118, 1119, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 2, 114, 7, 114, 2, 115, 7, 115, 2, 116, 7, 116, 2, 117, 7, 117, 2, 118, 7, 118, 2, 119, 7, 119, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 98, 1, 98, 1, 99, 1, 99, 1, 100, 1, 100, 1, 101, 1, 101, 1, 102, 1, 102, 1, 103, 1, 103, 1, 104, 1, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 107, 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 3, 111, 1020, 8, 111, 1, 111, 4, 111, 1023, 8, 111, 11, 111, 12, 111, 1024, 1, 112, 3, 112, 1028, 8, 112, 1, 112, 1, 112, 1, 112, 5, 112, 1033, 8, 112, 10, 112, 12, 112, 1036, 9, 112, 3, 112, 1038, 8, 112, 1, 112, 1, 112, 4, 112, 1042, 8, 112, 11, 112, 12, 112, 1043, 3, 112, 1046, 8, 112, 1, 112, 1, 112, 3, 112, 1050, 8, 112, 1, 112, 4, 112, 1053, 8, 112, 11, 112, 12, 112, 1054, 3, 112, 1057, 8, 112, 1, 113, 1, 113, 5, 113, 1061, 8, 113, 10, 113, 12, 113, 1064, 9, 113, 1, 114, 1, 114, 1, 114, 5, 114, 1069, 8, 114, 10, 114, 12, 114, 1072, 9, 114, 1, 114, 1, 114, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 3, 115, 1084, 8, 115, 1, 116, 1, 116, 1, 117, 1, 117, 1, 117, 1, 117, 5, 117, 1092, 8, 117, 10, 117, 12, 117, 1095, 9, 117, 1, 117, 1, 117, 1, 118, 1, 118, 1, 118, 1, 118, 5, 118, 1103, 8, 118, 10, 118, 12, 118, 1106, 9, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 119, 4, 119, 1114, 8, 119, 11, 119, 12, 119, 1115, 1, 119, 1, 119, 1, 1104, 0, 120, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 185, 93, 187, 94, 189, 95, 191, 96, 193, 97, 195, 98, 197, 99, 199, 100, 201, 101, 203, 102, 205, 103, 207, 104, 209, 105, 211, 106, 213, 107, 215, 108, 217, 109, 219, 110, 221, 111, 223, 112, 225, 113, 227, 114, 229, 115, 231, 0, 233, 0, 235, 116, 237, 117, 239, 118, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 1133, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 0, 185, 1, 0, 0, 0, 0, 187, 1, 0, 0, 0, 0, 189, 1, 0, 0, 0, 0, 191, 1, 0, 0, 0, 0, 193, 1, 0, 0, 0, 0, 195, 1, 0, 0, 0, 0, 197, 1, 0, 0, 0, 0, 199, 1, 0, 0, 0, 0, 201, 1, 0, 0, 0, 0, 203, 1, 0, 0, 0, 0, 205, 1, 0, 0, 0, 0, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 0, 213, 1, 0, 0, 0, 0, 215, 1, 0, 0, 0, 0, 217, 1, 0, 0, 0, 0, 219, 1, 0, 0, 0, 0, 221, 1, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 225, 1, 0, 0, 0, 0, 227, 1, 0, 0, 0, 0, 229, 1, 0, 0, 0, 0, 235, 1, 0, 0, 0, 0, 237, 1, 0, 0, 0, 0, 239, 1, 0, 0, 0, 1, 241, 1, 0, 0, 0, 3, 251, 1, 0, 0, 0, 5, 256, 1, 0, 0, 0, 7, 263, 1, 0, 0, 0, 9, 272, 1, 0, 0, 0, 11, 283, 1, 0, 0, 0, 13, 287, 1, 0, 0, 0, 15, 296, 1, 0, 0, 0, 17, 303, 1, 0, 0, 0, 19, 312, 1, 0, 0, 0, 21, 317, 1, 0, 0, 0, 23, 327, 1, 0, 0, 0, 25, 338, 1, 0, 0, 0, 27, 346, 1, 0, 0, 0, 29, 352, 1, 0, 0, 0, 31, 361, 1, 0, 0, 0, 33, 371, 1, 0, 0, 0, 35, 380, 1, 0, 0, 0, 37, 392, 1, 0, 0, 0, 39, 403, 1, 0, 0, 0, 41, 409, 1, 0, 0, 0, 43, 417, 1, 0, 0, 0, 45, 420, 1, 0, 0, 0, 47, 425, 1, 0, 0, 0, 49, 432, 1, 0, 0, 0, 51, 435, 1, 0, 0, 0, 53, 443, 1, 0, 0, 0, 55, 450, 1, 0, 0, 0, 57, 456, 1, 0, 0, 0, 59, 461, 1, 0, 0, 0, 61, 472, 1, 0, 0, 0, 63, 477, 1, 0, 0, 0, 65, 483, 1, 0, 0, 0, 67, 487, 1, 0, 0, 0, 69, 499, 1, 0, 0, 0, 71, 502, 1, 0, 0, 0, 73, 509, 1, 0, 0, 0, 75, 512, 1, 0, 0, 0, 77, 519, 1, 0, 0, 0, 79, 527, 1, 0, 0, 0, 81, 534, 1, 0, 0, 0, 83, 545, 1, 0, 0, 0, 85, 552, 1, 0, 0, 0, 87, 561, 1, 0, 0, 0, 89, 576, 1, 0, 0, 0, 91, 586, 1, 0, 0, 0, 93, 599, 1, 0, 0, 0, 95, 605, 1, 0, 0, 0, 97, 622, 1, 0, 0, 0, 99, 625, 1, 0, 0, 0, 101, 629, 1, 0, 0, 0, 103, 634, 1, 0, 0, 0, 105, 640, 1, 0, 0, 0, 107, 649, 1, 0, 0, 0, 109, 658, 1, 0, 0, 0, 111, 662, 1, 0, 0, 0, 113, 666, 1, 0, 0, 0, 115, 670, 1, 0, 0, 0, 117, 676, 1, 0, 0, 0, 119, 682, 1, 0, 0, 0, 121, 687, 1, 0, 0, 0, 123, 692, 1, 0, 0, 0, 125, 698, 1, 0, 0, 0, 127, 706, 1, 0, 0, 0, 129, 714, 1, 0, 0, 0, 131, 725, 1, 0, 0, 0, 133, 730, 1, 0, 0, 0, 135, 742, 1, 0, 0, 0, 137, 753, 1, 0, 0, 0, 139, 763, 1, 0, 0, 0, 141, 775, 1, 0, 0, 0, 143, 795, 1, 0, 0, 0, 145, 800, 1, 0, 0, 0, 147, 813, 1, 0, 0, 0, 149, 825, 1, 0, 0, 0, 151, 837, 1, 0, 0, 0, 153, 842, 1, 0, 0, 0, 155, 850, 1, 0, 0, 0, 157, 855, 1, 0, 0, 0, 159, 868, 1, 0, 0, 0, 161, 876, 1, 0, 0, 0, 163, 885, 1, 0, 0, 0, 165, 899, 1, 0, 0, 0, 167, 908, 1, 0, 0, 0, 169, 913, 1, 0, 0, 0, 171, 920, 1, 0, 0, 0, 173, 925, 1, 0, 0, 0, 175, 931, 1, 0, 0, 0, 177, 938, 1, 0, 0, 0, 179, 944, 1, 0, 0, 0, 181, 950, 1, 0, 0, 0, 183, 957, 1, 0, 0, 0, 185, 964, 1, 0, 0, 0, 187, 971, 1, 0, 0, 0, 189, 976, 1, 0, 0, 0, 191, 982, 1, 0, 0, 0, 193, 987, 1, 0, 0, 0, 195, 990, 1, 0, 0, 0, 197, 992, 1, 0, 0, 0, 199, 994, 1, 0, 0, 0, 201, 996, 1, 0, 0, 0, 203, 998, 1, 0, 0, 0, 205, 1000, 1, 0, 0, 0, 207, 1002, 1, 0, 0, 0, 209, 1004, 1, 0, 0, 0, 211, 1006, 1, 0, 0, 0, 213, 1008, 1, 0, 0, 0, 215, 1010, 1, 0, 0, 0, 217, 1012, 1, 0, 0, 0, 219, 1014, 1, 0, 0, 0, 221, 1016, 1, 0, 0, 0, 223, 1019, 1, 0, 0, 0, 225, 1027, 1, 0, 0, 0, 227, 1058, 1, 0, 0, 0, 229, 1065, 1, 0, 0, 0, 231, 1075, 1, 0, 0, 0, 233, 1085, 1, 0, 0, 0, 235, 1087, 1, 0, 0, 0, 237, 1098, 1, 0, 0, 0, 239, 1113, 1, 0, 0, 0, 241, 242, 5, 119, 0, 0, 242, 243, 5, 111, 0, 0, 243, 244, 5, 114, 0, 0, 244, 245, 5, 107, 0, 0, 245, 246, 5, 115, 0, 0, 246, 247, 5, 112, 0, 0, 247, 248, 5, 97, 0, 0, 248, 249, 5, 99, 0, 0, 249, 250, 5, 101, 0, 0, 250, 2, 1, 0, 0, 0, 251, 252, 5, 116, 0, 0, 252, 253, 5, 121, 0, 0, 253, 254, 5, 112, 0, 0, 254, 255, 5, 101, 0, 0, 255, 4, 1, 0, 0, 0, 256, 257, 5, 111, 0, 0, 257, 258, 5, 98, 0, 0, 258, 259, 5, 106, 0, 0, 259, 260, 5, 101, 0, 0, 260, 261, 5, 99, 0, 0, 261, 262, 5, 116, 0, 0, 262, 6, 1, 0, 0, 0, 263, 264, 5, 115, 0, 0, 264, 265, 5, 116, 0, 0, 265, 266, 5, 111, 0, 0, 266, 267, 5, 114, 0, 0, 267, 268, 5, 97, 0, 0, 268, 269, 5, 98, 0, 0, 269, 270, 5, 108, 0, 0, 270, 271, 5, 101, 0, 0, 271, 8, 1, 0, 0, 0, 272, 273, 5, 105, 0, 0, 273, 274, 5, 109, 0, 0, 274, 275, 5, 112, 0, 0, 275, 276, 5, 108, 0, 0, 276, 277, 5, 101, 0, 0, 277, 278, 5, 109, 0, 0, 278, 279, 5, 101, 0, 0, 279, 280, 5, 110, 0, 0, 280, 281, 5, 116, 0, 0, 281, 282, 5, 115, 0, 0, 282, 10, 1, 0, 0, 0, 283, 284, 5, 114, 0, 0, 284, 285, 5, 101, 0, 0, 285, 286, 5, 102, 0, 0, 286, 12, 1, 0, 0, 0, 287, 288, 5, 102, 0, 0, 288, 289, 5, 114, 0, 0, 289, 290, 5, 97, 0, 0, 290, 291, 5, 103, 0, 0, 291, 292, 5, 109, 0, 0, 292, 293, 5, 101, 0, 0, 293, 294, 5, 110, 0, 0, 294, 295, 5, 116, 0, 0, 295, 14, 1, 0, 0, 0, 296, 297, 5, 105, 0, 0, 297, 298, 5, 109, 0, 0, 298, 299, 5, 112, 0, 0, 299, 300, 5, 111, 0, 0, 300, 301, 5, 114, 0, 0, 301, 302, 5, 116, 0, 0, 302, 16, 1, 0, 0, 0, 303, 304, 5, 101, 0, 0, 304, 305, 5, 120, 0, 0, 305, 306, 5, 116, 0, 0, 306, 307, 5, 101, 0, 0, 307, 308, 5, 114, 0, 0, 308, 309, 5, 110, 0, 0, 309, 310, 5, 97, 0, 0, 310, 311, 5, 108, 0, 0, 311, 18, 1, 0, 0, 0, 312, 313, 5, 97, 0, 0, 313, 314, 5, 116, 0, 0, 314, 315, 5, 111, 0, 0, 315, 316, 5, 109, 0, 0, 316, 20, 1, 0, 0, 0, 317, 318, 5, 105, 0, 0, 318, 319, 5, 110, 0, 0, 319, 320, 5, 116, 0, 0, 320, 321, 5, 101, 0, 0, 321, 322, 5, 114, 0, 0, 322, 323, 5, 102, 0, 0, 323, 324, 5, 97, 0, 0, 324, 325, 5, 99, 0, 0, 325, 326, 5, 101, 0, 0, 326, 22, 1, 0, 0, 0, 327, 328, 5, 105, 0, 0, 328, 329, 5, 110, 0, 0, 329, 330, 5, 116, 0, 0, 330, 331, 5, 101, 0, 0, 331, 332, 5, 114, 0, 0, 332, 333, 5, 102, 0, 0, 333, 334, 5, 97, 0, 0, 334, 335, 5, 99, 0, 0, 335, 336, 5, 101, 0, 0, 336, 337, 5, 115, 0, 0, 337, 24, 1, 0, 0, 0, 338, 339, 5, 112, 0, 0, 339, 340, 5, 97, 0, 0, 340, 341, 5, 99, 0, 0, 341, 342, 5, 107, 0, 0, 342, 343, 5, 97, 0, 0, 343, 344, 5, 103, 0, 0, 344, 345, 5, 101, 0, 0, 345, 26, 1, 0, 0, 0, 346, 347, 5, 118, 0, 0, 347, 348, 5, 97, 0, 0, 348, 349, 5, 108, 0, 0, 349, 350, 5, 117, 0, 0, 350, 351, 5, 101, 0, 0, 351, 28, 1, 0, 0, 0, 352, 353, 5, 114, 0, 0, 353, 354, 5, 101, 0, 0, 354, 355, 5, 108, 0, 0, 355, 356, 5, 97, 0, 0, 356, 357, 5, 116, 0, 0, 357, 358, 5, 105, 0, 0, 358, 359, 5, 111, 0, 0, 359, 360, 5, 110, 0, 0, 360, 30, 1, 0, 0, 0, 361, 362, 5, 111, 0, 0, 362, 363, 5, 112, 0, 0, 363, 364, 5, 101, 0, 0, 364, 365, 5, 114, 0, 0, 365, 366, 5, 97, 0, 0, 366, 367, 5, 116, 0, 0, 367, 368, 5, 105, 0, 0, 368, 369, 5, 111, 0, 0, 369, 370, 5, 110, 0, 0, 370, 32, 1, 0, 0, 0, 371, 372, 5, 102, 0, 0, 372, 373, 5, 117, 0, 0, 373, 374, 5, 110, 0, 0, 374, 375, 5, 99, 0, 0, 375, 376, 5, 116, 0, 0, 376, 377, 5, 105, 0, 0, 377, 378, 5, 111, 0, 0, 378, 379, 5, 110, 0, 0, 379, 34, 1, 0, 0, 0, 380, 381, 5, 99, 0, 0, 381, 382, 5, 111, 0, 0, 382, 383, 5, 110, 0, 0, 383, 384, 5, 115, 0, 0, 384, 385, 5, 116, 0, 0, 385, 386, 5, 114, 0, 0, 386, 387, 5, 117, 0, 0, 387, 388, 5, 99, 0, 0, 388, 389, 5, 116, 0, 0, 389, 390, 5, 111, 0, 0, 390, 391, 5, 114, 0, 0, 391, 36, 1, 0, 0, 0, 392, 393, 5, 99, 0, 0, 393, 394, 5, 111, 0, 0, 394, 395, 5, 110, 0, 0, 395, 396, 5, 115, 0, 0, 396, 397, 5, 116, 0, 0, 397, 398, 5, 114, 0, 0, 398, 399, 5, 117, 0, 0, 399, 400, 5, 99, 0, 0, 400, 401, 5, 116, 0, 0, 401, 402, 5, 115, 0, 0, 402, 38, 1, 0, 0, 0, 403, 404, 5, 105, 0, 0, 404, 405, 5, 110, 0, 0, 405, 406, 5, 112, 0, 0, 406, 407, 5, 117, 0, 0, 407, 408, 5, 116, 0, 0, 408, 40, 1, 0, 0, 0, 409, 410, 5, 99, 0, 0, 410, 411, 5, 111, 0, 0, 411, 412, 5, 110, 0, 0, 412, 413, 5, 102, 0, 0, 413, 414, 5, 111, 0, 0, 414, 415, 5, 114, 0, 0, 415, 416, 5, 109, 0, 0, 416, 42, 1, 0, 0, 0, 417, 418, 5, 97, 0, 0, 418, 419, 5, 115, 0, 0, 419, 44, 1, 0, 0, 0, 420, 421, 5, 98, 0, 0, 421, 422, 5, 105, 0, 0, 422, 423, 5, 110, 0, 0, 423, 424, 5, 100, 0, 0, 424, 46, 1, 0, 0, 0, 425, 426, 5, 115, 0, 0, 426, 427, 5, 116, 0, 0, 427, 428, 5, 97, 0, 0, 428, 429, 5, 116, 0, 0, 429, 430, 5, 105, 0, 0, 430, 431, 5, 99, 0, 0, 431, 48, 1, 0, 0, 0, 432, 433, 5, 116, 0, 0, 433, 434, 5, 111, 0, 0, 434, 50, 1, 0, 0, 0, 435, 436, 5, 112, 0, 0, 436, 437, 5, 114, 0, 0, 437, 438, 5, 105, 0, 0, 438, 439, 5, 118, 0, 0, 439, 440, 5, 97, 0, 0, 440, 441, 5, 116, 0, 0, 441, 442, 5, 101, 0, 0, 442, 52, 1, 0, 0, 0, 443, 444, 5, 115, 0, 0, 444, 445, 5, 104, 0, 0, 445, 446, 5, 97, 0, 0, 446, 447, 5, 114, 0, 0, 447, 448, 5, 101, 0, 0, 448, 449, 5, 100, 0, 0, 449, 54, 1, 0, 0, 0, 450, 451, 5, 115, 0, 0, 451, 452, 5, 116, 0, 0, 452, 453, 5, 97, 0, 0, 453, 454, 5, 116, 0, 0, 454, 455, 5, 101, 0, 0, 455, 56, 1, 0, 0, 0, 456, 457, 5, 101, 0, 0, 457, 458, 5, 100, 0, 0, 458, 459, 5, 103, 0, 0, 459, 460, 5, 101, 0, 0, 460, 58, 1, 0, 0, 0, 461, 462, 5, 112, 0, 0, 462, 463, 5, 114, 0, 0, 463, 464, 5, 111, 0, 0, 464, 465, 5, 106, 0, 0, 465, 466, 5, 101, 0, 0, 466, 467, 5, 99, 0, 0, 467, 468, 5, 116, 0, 0, 468, 469, 5, 105, 0, 0, 469, 470, 5, 111, 0, 0, 470, 471, 5, 110, 0, 0, 471, 60, 1, 0, 0, 0, 472, 473, 5, 119, 0, 0, 473, 474, 5, 105, 0, 0, 474, 475, 5, 116, 0, 0, 475, 476, 5, 104, 0, 0, 476, 62, 1, 0, 0, 0, 477, 478, 5, 117, 0, 0, 478, 479, 5, 115, 0, 0, 479, 480, 5, 105, 0, 0, 480, 481, 5, 110, 0, 0, 481, 482, 5, 103, 0, 0, 482, 64, 1, 0, 0, 0, 483, 484, 5, 118, 0, 0, 484, 485, 5, 105, 0, 0, 485, 486, 5, 97, 0, 0, 486, 66, 1, 0, 0, 0, 487, 488, 5, 109, 0, 0, 488, 489, 5, 97, 0, 0, 489, 490, 5, 116, 0, 0, 490, 491, 5, 101, 0, 0, 491, 492, 5, 114, 0, 0, 492, 493, 5, 105, 0, 0, 493, 494, 5, 97, 0, 0, 494, 495, 5, 108, 0, 0, 495, 496, 5, 105, 0, 0, 496, 497, 5, 122, 0, 0, 497, 498, 5, 101, 0, 0, 498, 68, 1, 0, 0, 0, 499, 500, 5, 105, 0, 0, 500, 501, 5, 102, 0, 0, 501, 70, 1, 0, 0, 0, 502, 503, 5, 97, 0, 0, 503, 504, 5, 98, 0, 0, 504, 505, 5, 115, 0, 0, 505, 506, 5, 101, 0, 0, 506, 507, 5, 110, 0, 0, 507, 508, 5, 116, 0, 0, 508, 72, 1, 0, 0, 0, 509, 510, 5, 111, 0, 0, 510, 511, 5, 110, 0, 0, 511, 74, 1, 0, 0, 0, 512, 513, 5, 112, 0, 0, 513, 514, 5, 111, 0, 0, 514, 515, 5, 108, 0, 0, 515, 516, 5, 105, 0, 0, 516, 517, 5, 99, 0, 0, 517, 518, 5, 121, 0, 0, 518, 76, 1, 0, 0, 0, 519, 520, 5, 100, 0, 0, 520, 521, 5, 101, 0, 0, 521, 522, 5, 102, 0, 0, 522, 523, 5, 97, 0, 0, 523, 524, 5, 117, 0, 0, 524, 525, 5, 108, 0, 0, 525, 526, 5, 116, 0, 0, 526, 78, 1, 0, 0, 0, 527, 528, 5, 115, 0, 0, 528, 529, 5, 111, 0, 0, 529, 530, 5, 117, 0, 0, 530, 531, 5, 114, 0, 0, 531, 532, 5, 99, 0, 0, 532, 533, 5, 101, 0, 0, 533, 80, 1, 0, 0, 0, 534, 535, 5, 114, 0, 0, 535, 536, 5, 101, 0, 0, 536, 537, 5, 112, 0, 0, 537, 538, 5, 111, 0, 0, 538, 539, 5, 115, 0, 0, 539, 540, 5, 105, 0, 0, 540, 541, 5, 116, 0, 0, 541, 542, 5, 111, 0, 0, 542, 543, 5, 114, 0, 0, 543, 544, 5, 121, 0, 0, 544, 82, 1, 0, 0, 0, 545, 546, 5, 99, 0, 0, 546, 547, 5, 111, 0, 0, 547, 548, 5, 109, 0, 0, 548, 549, 5, 109, 0, 0, 549, 550, 5, 105, 0, 0, 550, 551, 5, 116, 0, 0, 551, 84, 1, 0, 0, 0, 552, 553, 5, 114, 0, 0, 553, 554, 5, 101, 0, 0, 554, 555, 5, 118, 0, 0, 555, 556, 5, 105, 0, 0, 556, 557, 5, 115, 0, 0, 557, 558, 5, 105, 0, 0, 558, 559, 5, 111, 0, 0, 559, 560, 5, 110, 0, 0, 560, 86, 1, 0, 0, 0, 561, 562, 5, 115, 0, 0, 562, 563, 5, 101, 0, 0, 563, 564, 5, 109, 0, 0, 564, 565, 5, 97, 0, 0, 565, 566, 5, 110, 0, 0, 566, 567, 5, 116, 0, 0, 567, 568, 5, 105, 0, 0, 568, 569, 5, 99, 0, 0, 569, 570, 5, 45, 0, 0, 570, 571, 5, 109, 0, 0, 571, 572, 5, 97, 0, 0, 572, 573, 5, 106, 0, 0, 573, 574, 5, 111, 0, 0, 574, 575, 5, 114, 0, 0, 575, 88, 1, 0, 0, 0, 576, 577, 5, 111, 0, 0, 577, 578, 5, 110, 0, 0, 578, 579, 5, 45, 0, 0, 579, 580, 5, 100, 0, 0, 580, 581, 5, 101, 0, 0, 581, 582, 5, 108, 0, 0, 582, 583, 5, 101, 0, 0, 583, 584, 5, 116, 0, 0, 584, 585, 5, 101, 0, 0, 585, 90, 1, 0, 0, 0, 586, 587, 5, 114, 0, 0, 587, 588, 5, 101, 0, 0, 588, 589, 5, 116, 0, 0, 589, 590, 5, 97, 0, 0, 590, 591, 5, 105, 0, 0, 591, 592, 5, 110, 0, 0, 592, 593, 5, 45, 0, 0, 593, 594, 5, 111, 0, 0, 594, 595, 5, 116, 0, 0, 595, 596, 5, 104, 0, 0, 596, 597, 5, 101, 0, 0, 597, 598, 5, 114, 0, 0, 598, 92, 1, 0, 0, 0, 599, 600, 5, 107, 0, 0, 600, 601, 5, 101, 0, 0, 601, 602, 5, 121, 0, 0, 602, 603, 5, 101, 0, 0, 603, 604, 5, 100, 0, 0, 604, 94, 1, 0, 0, 0, 605, 606, 5, 112, 0, 0, 606, 607, 5, 117, 0, 0, 607, 608, 5, 98, 0, 0, 608, 609, 5, 108, 0, 0, 609, 610, 5, 105, 0, 0, 610, 611, 5, 99, 0, 0, 611, 612, 5, 45, 0, 0, 612, 613, 5, 116, 0, 0, 613, 614, 5, 114, 0, 0, 614, 615, 5, 97, 0, 0, 615, 616, 5, 118, 0, 0, 616, 617, 5, 101, 0, 0, 617, 618, 5, 114, 0, 0, 618, 619, 5, 115, 0, 0, 619, 620, 5, 97, 0, 0, 620, 621, 5, 108, 0, 0, 621, 96, 1, 0, 0, 0, 622, 623, 5, 105, 0, 0, 623, 624, 5, 100, 0, 0, 624, 98, 1, 0, 0, 0, 625, 626, 5, 100, 0, 0, 626, 627, 5, 111, 0, 0, 627, 628, 5, 99, 0, 0, 628, 100, 1, 0, 0, 0, 629, 630, 5, 109, 0, 0, 630, 631, 5, 111, 0, 0, 631, 632, 5, 100, 0, 0, 632, 633, 5, 101, 0, 0, 633, 102, 1, 0, 0, 0, 634, 635, 5, 101, 0, 0, 635, 636, 5, 109, 0, 0, 636, 637, 5, 105, 0, 0, 637, 638, 5, 116, 0, 0, 638, 639, 5, 115, 0, 0, 639, 104, 1, 0, 0, 0, 640, 641, 5, 114, 0, 0, 641, 642, 5, 101, 0, 0, 642, 643, 5, 99, 0, 0, 643, 644, 5, 101, 0, 0, 644, 645, 5, 105, 0, 0, 645, 646, 5, 118, 0, 0, 646, 647, 5, 101, 0, 0, 647, 648, 5, 114, 0, 0, 648, 106, 1, 0, 0, 0, 649, 650, 5, 114, 0, 0, 650, 651, 5, 101, 0, 0, 651, 652, 5, 113, 0, 0, 652, 653, 5, 117, 0, 0, 653, 654, 5, 105, 0, 0, 654, 655, 5, 114, 0, 0, 655, 656, 5, 101, 0, 0, 656, 657, 5, 115, 0, 0, 657, 108, 1, 0, 0, 0, 658, 659, 5, 97, 0, 0, 659, 660, 5, 110, 0, 0, 660, 661, 5, 121, 0, 0, 661, 110, 1, 0, 0, 0, 662, 663, 5, 103, 0, 0, 663, 664, 5, 101, 0, 0, 664, 665, 5, 116, 0, 0, 665, 112, 1, 0, 0, 0, 666, 667, 5, 115, 0, 0, 667, 668, 5, 101, 0, 0, 668, 669, 5, 116, 0, 0, 669, 114, 1, 0, 0, 0, 670, 671, 5, 119, 0, 0, 671, 672, 5, 97, 0, 0, 672, 673, 5, 116, 0, 0, 673, 674, 5, 99, 0, 0, 674, 675, 5, 104, 0, 0, 675, 116, 1, 0, 0, 0, 676, 677, 5, 115, 0, 0, 677, 678, 5, 116, 0, 0, 678, 679, 5, 97, 0, 0, 679, 680, 5, 114, 0, 0, 680, 681, 5, 116, 0, 0, 681, 118, 1, 0, 0, 0, 682, 683, 5, 115, 0, 0, 683, 684, 5, 116, 0, 0, 684, 685, 5, 111, 0, 0, 685, 686, 5, 112, 0, 0, 686, 120, 1, 0, 0, 0, 687, 688, 5, 114, 0, 0, 688, 689, 5, 101, 0, 0, 689, 690, 5, 97, 0, 0, 690, 691, 5, 100, 0, 0, 691, 122, 1, 0, 0, 0, 692, 693, 5, 119, 0, 0, 693, 694, 5, 114, 0, 0, 694, 695, 5, 105, 0, 0, 695, 696, 5, 116, 0, 0, 696, 697, 5, 101, 0, 0, 697, 124, 1, 0, 0, 0, 698, 699, 5, 114, 0, 0, 699, 700, 5, 101, 0, 0, 700, 701, 5, 115, 0, 0, 701, 702, 5, 111, 0, 0, 702, 703, 5, 108, 0, 0, 703, 704, 5, 118, 0, 0, 704, 705, 5, 101, 0, 0, 705, 126, 1, 0, 0, 0, 706, 707, 5, 99, 0, 0, 707, 708, 5, 111, 0, 0, 708, 709, 5, 110, 0, 0, 709, 710, 5, 110, 0, 0, 710, 711, 5, 101, 0, 0, 711, 712, 5, 99, 0, 0, 712, 713, 5, 116, 0, 0, 713, 128, 1, 0, 0, 0, 714, 715, 5, 100, 0, 0, 715, 716, 5, 105, 0, 0, 716, 717, 5, 115, 0, 0, 717, 718, 5, 99, 0, 0, 718, 719, 5, 111, 0, 0, 719, 720, 5, 110, 0, 0, 720, 721, 5, 110, 0, 0, 721, 722, 5, 101, 0, 0, 722, 723, 5, 99, 0, 0, 723, 724, 5, 116, 0, 0, 724, 130, 1, 0, 0, 0, 725, 726, 5, 99, 0, 0, 726, 727, 5, 97, 0, 0, 727, 728, 5, 108, 0, 0, 728, 729, 5, 108, 0, 0, 729, 132, 1, 0, 0, 0, 730, 731, 5, 119, 0, 0, 731, 732, 5, 97, 0, 0, 732, 733, 5, 116, 0, 0, 733, 734, 5, 99, 0, 0, 734, 735, 5, 104, 0, 0, 735, 736, 5, 45, 0, 0, 736, 737, 5, 115, 0, 0, 737, 738, 5, 116, 0, 0, 738, 739, 5, 97, 0, 0, 739, 740, 5, 114, 0, 0, 740, 741, 5, 116, 0, 0, 741, 134, 1, 0, 0, 0, 742, 743, 5, 119, 0, 0, 743, 744, 5, 97, 0, 0, 744, 745, 5, 116, 0, 0, 745, 746, 5, 99, 0, 0, 746, 747, 5, 104, 0, 0, 747, 748, 5, 45, 0, 0, 748, 749, 5, 115, 0, 0, 749, 750, 5, 116, 0, 0, 750, 751, 5, 111, 0, 0, 751, 752, 5, 112, 0, 0, 752, 136, 1, 0, 0, 0, 753, 754, 5, 115, 0, 0, 754, 755, 5, 117, 0, 0, 755, 756, 5, 98, 0, 0, 756, 757, 5, 115, 0, 0, 757, 758, 5, 99, 0, 0, 758, 759, 5, 114, 0, 0, 759, 760, 5, 105, 0, 0, 760, 761, 5, 98, 0, 0, 761, 762, 5, 101, 0, 0, 762, 138, 1, 0, 0, 0, 763, 764, 5, 117, 0, 0, 764, 765, 5, 110, 0, 0, 765, 766, 5, 115, 0, 0, 766, 767, 5, 117, 0, 0, 767, 768, 5, 98, 0, 0, 768, 769, 5, 115, 0, 0, 769, 770, 5, 99, 0, 0, 770, 771, 5, 114, 0, 0, 771, 772, 5, 105, 0, 0, 772, 773, 5, 98, 0, 0, 773, 774, 5, 101, 0, 0, 774, 140, 1, 0, 0, 0, 775, 776, 5, 111, 0, 0, 776, 777, 5, 112, 0, 0, 777, 778, 5, 116, 0, 0, 778, 779, 5, 105, 0, 0, 779, 780, 5, 109, 0, 0, 780, 781, 5, 105, 0, 0, 781, 782, 5, 115, 0, 0, 782, 783, 5, 116, 0, 0, 783, 784, 5, 105, 0, 0, 784, 785, 5, 99, 0, 0, 785, 786, 5, 45, 0, 0, 786, 787, 5, 114, 0, 0, 787, 788, 5, 101, 0, 0, 788, 789, 5, 103, 0, 0, 789, 790, 5, 105, 0, 0, 790, 791, 5, 115, 0, 0, 791, 792, 5, 116, 0, 0, 792, 793, 5, 101, 0, 0, 793, 794, 5, 114, 0, 0, 794, 142, 1, 0, 0, 0, 795, 796, 5, 99, 0, 0, 796, 797, 5, 114, 0, 0, 797, 798, 5, 100, 0, 0, 798, 799, 5, 116, 0, 0, 799, 144, 1, 0, 0, 0, 800, 801, 5, 111, 0, 0, 801, 802, 5, 112, 0, 0, 802, 803, 5, 116, 0, 0, 803, 804, 5, 105, 0, 0, 804, 805, 5, 111, 0, 0, 805, 806, 5, 110, 0, 0, 806, 807, 5, 97, 0, 0, 807, 808, 5, 108, 0, 0, 808, 809, 5, 45, 0, 0, 809, 810, 5, 111, 0, 0, 810, 811, 5, 110, 0, 0, 811, 812, 5, 101, 0, 0, 812, 146, 1, 0, 0, 0, 813, 814, 5, 101, 0, 0, 814, 815, 5, 120, 0, 0, 815, 816, 5, 97, 0, 0, 816, 817, 5, 99, 0, 0, 817, 818, 5, 116, 0, 0, 818, 819, 5, 108, 0, 0, 819, 820, 5, 121, 0, 0, 820, 821, 5, 45, 0, 0, 821, 822, 5, 111, 0, 0, 822, 823, 5, 110, 0, 0, 823, 824, 5, 101, 0, 0, 824, 148, 1, 0, 0, 0, 825, 826, 5, 109, 0, 0, 826, 827, 5, 97, 0, 0, 827, 828, 5, 110, 0, 0, 828, 829, 5, 121, 0, 0, 829, 830, 5, 45, 0, 0, 830, 831, 5, 117, 0, 0, 831, 832, 5, 110, 0, 0, 832, 833, 5, 105, 0, 0, 833, 834, 5, 113, 0, 0, 834, 835, 5, 117, 0, 0, 835, 836, 5, 101, 0, 0, 836, 150, 1, 0, 0, 0, 837, 838, 5, 109, 0, 0, 838, 839, 5, 97, 0, 0, 839, 840, 5, 110, 0, 0, 840, 841, 5, 121, 0, 0, 841, 152, 1, 0, 0, 0, 842, 843, 5, 111, 0, 0, 843, 844, 5, 114, 0, 0, 844, 845, 5, 100, 0, 0, 845, 846, 5, 101, 0, 0, 846, 847, 5, 114, 0, 0, 847, 848, 5, 101, 0, 0, 848, 849, 5, 100, 0, 0, 849, 154, 1, 0, 0, 0, 850, 851, 5, 117, 0, 0, 851, 852, 5, 110, 0, 0, 852, 853, 5, 105, 0, 0, 853, 854, 5, 116, 0, 0, 854, 156, 1, 0, 0, 0, 855, 856, 5, 119, 0, 0, 856, 857, 5, 97, 0, 0, 857, 858, 5, 116, 0, 0, 858, 859, 5, 99, 0, 0, 859, 860, 5, 104, 0, 0, 860, 861, 5, 45, 0, 0, 861, 862, 5, 104, 0, 0, 862, 863, 5, 97, 0, 0, 863, 864, 5, 110, 0, 0, 864, 865, 5, 100, 0, 0, 865, 866, 5, 108, 0, 0, 866, 867, 5, 101, 0, 0, 867, 158, 1, 0, 0, 0, 868, 869, 5, 109, 0, 0, 869, 870, 5, 101, 0, 0, 870, 871, 5, 115, 0, 0, 871, 872, 5, 115, 0, 0, 872, 873, 5, 97, 0, 0, 873, 874, 5, 103, 0, 0, 874, 875, 5, 101, 0, 0, 875, 160, 1, 0, 0, 0, 876, 877, 5, 97, 0, 0, 877, 878, 5, 116, 0, 0, 878, 879, 5, 111, 0, 0, 879, 880, 5, 109, 0, 0, 880, 881, 5, 45, 0, 0, 881, 882, 5, 114, 0, 0, 882, 883, 5, 101, 0, 0, 883, 884, 5, 102, 0, 0, 884, 162, 1, 0, 0, 0, 885, 886, 5, 105, 0, 0, 886, 887, 5, 110, 0, 0, 887, 888, 5, 116, 0, 0, 888, 889, 5, 101, 0, 0, 889, 890, 5, 114, 0, 0, 890, 891, 5, 102, 0, 0, 891, 892, 5, 97, 0, 0, 892, 893, 5, 99, 0, 0, 893, 894, 5, 101, 0, 0, 894, 895, 5, 45, 0, 0, 895, 896, 5, 114, 0, 0, 896, 897, 5, 101, 0, 0, 897, 898, 5, 102, 0, 0, 898, 164, 1, 0, 0, 0, 899, 900, 5, 111, 0, 0, 900, 901, 5, 112, 0, 0, 901, 902, 5, 116, 0, 0, 902, 903, 5, 105, 0, 0, 903, 904, 5, 111, 0, 0, 904, 905, 5, 110, 0, 0, 905, 906, 5, 97, 0, 0, 906, 907, 5, 108, 0, 0, 907, 166, 1, 0, 0, 0, 908, 909, 5, 108, 0, 0, 909, 910, 5, 105, 0, 0, 910, 911, 5, 115, 0, 0, 911, 912, 5, 116, 0, 0, 912, 168, 1, 0, 0, 0, 913, 914, 5, 114, 0, 0, 914, 915, 5, 101, 0, 0, 915, 916, 5, 99, 0, 0, 916, 917, 5, 111, 0, 0, 917, 918, 5, 114, 0, 0, 918, 919, 5, 100, 0, 0, 919, 170, 1, 0, 0, 0, 920, 921, 5, 98, 0, 0, 921, 922, 5, 111, 0, 0, 922, 923, 5, 111, 0, 0, 923, 924, 5, 108, 0, 0, 924, 172, 1, 0, 0, 0, 925, 926, 5, 98, 0, 0, 926, 927, 5, 121, 0, 0, 927, 928, 5, 116, 0, 0, 928, 929, 5, 101, 0, 0, 929, 930, 5, 115, 0, 0, 930, 174, 1, 0, 0, 0, 931, 932, 5, 100, 0, 0, 932, 933, 5, 111, 0, 0, 933, 934, 5, 117, 0, 0, 934, 935, 5, 98, 0, 0, 935, 936, 5, 108, 0, 0, 936, 937, 5, 101, 0, 0, 937, 176, 1, 0, 0, 0, 938, 939, 5, 105, 0, 0, 939, 940, 5, 110, 0, 0, 940, 941, 5, 116, 0, 0, 941, 942, 5, 51, 0, 0, 942, 943, 5, 50, 0, 0, 943, 178, 1, 0, 0, 0, 944, 945, 5, 105, 0, 0, 945, 946, 5, 110, 0, 0, 946, 947, 5, 116, 0, 0, 947, 948, 5, 54, 0, 0, 948, 949, 5, 52, 0, 0, 949, 180, 1, 0, 0, 0, 950, 951, 5, 115, 0, 0, 951, 952, 5, 116, 0, 0, 952, 953, 5, 114, 0, 0, 953, 954, 5, 105, 0, 0, 954, 955, 5, 110, 0, 0, 955, 956, 5, 103, 0, 0, 956, 182, 1, 0, 0, 0, 957, 958, 5, 117, 0, 0, 958, 959, 5, 105, 0, 0, 959, 960, 5, 110, 0, 0, 960, 961, 5, 116, 0, 0, 961, 962, 5, 51, 0, 0, 962, 963, 5, 50, 0, 0, 963, 184, 1, 0, 0, 0, 964, 965, 5, 117, 0, 0, 965, 966, 5, 105, 0, 0, 966, 967, 5, 110, 0, 0, 967, 968, 5, 116, 0, 0, 968, 969, 5, 54, 0, 0, 969, 970, 5, 52, 0, 0, 970, 186, 1, 0, 0, 0, 971, 972, 5, 116, 0, 0, 972, 973, 5, 114, 0, 0, 973, 974, 5, 117, 0, 0, 974, 975, 5, 101, 0, 0, 975, 188, 1, 0, 0, 0, 976, 977, 5, 102, 0, 0, 977, 978, 5, 97, 0, 0, 978, 979, 5, 108, 0, 0, 979, 980, 5, 115, 0, 0, 980, 981, 5, 101, 0, 0, 981, 190, 1, 0, 0, 0, 982, 983, 5, 110, 0, 0, 983, 984, 5, 117, 0, 0, 984, 985, 5, 108, 0, 0, 985, 986, 5, 108, 0, 0, 986, 192, 1, 0, 0, 0, 987, 988, 5, 45, 0, 0, 988, 989, 5, 62, 0, 0, 989, 194, 1, 0, 0, 0, 990, 991, 5, 58, 0, 0, 991, 196, 1, 0, 0, 0, 992, 993, 5, 59, 0, 0, 993, 198, 1, 0, 0, 0, 994, 995, 5, 44, 0, 0, 995, 200, 1, 0, 0, 0, 996, 997, 5, 46, 0, 0, 997, 202, 1, 0, 0, 0, 998, 999, 5, 123, 0, 0, 999, 204, 1, 0, 0, 0, 1000, 1001, 5, 125, 0, 0, 1001, 206, 1, 0, 0, 0, 1002, 1003, 5, 91, 0, 0, 1003, 208, 1, 0, 0, 0, 1004, 1005, 5, 93, 0, 0, 1005, 210, 1, 0, 0, 0, 1006, 1007, 5, 40, 0, 0, 1007, 212, 1, 0, 0, 0, 1008, 1009, 5, 41, 0, 0, 1009, 214, 1, 0, 0, 0, 1010, 1011, 5, 60, 0, 0, 1011, 216, 1, 0, 0, 0, 1012, 1013, 5, 62, 0, 0, 1013, 218, 1, 0, 0, 0, 1014, 1015, 5, 38, 0, 0, 1015, 220, 1, 0, 0, 0, 1016, 1017, 5, 61, 0, 0, 1017, 222, 1, 0, 0, 0, 1018, 1020, 5, 45, 0, 0, 1019, 1018, 1, 0, 0, 0, 1019, 1020, 1, 0, 0, 0, 1020, 1022, 1, 0, 0, 0, 1021, 1023, 7, 0, 0, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1024, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 224, 1, 0, 0, 0, 1026, 1028, 5, 45, 0, 0, 1027, 1026, 1, 0, 0, 0, 1027, 1028, 1, 0, 0, 0, 1028, 1037, 1, 0, 0, 0, 1029, 1038, 5, 48, 0, 0, 1030, 1034, 7, 1, 0, 0, 1031, 1033, 7, 0, 0, 0, 1032, 1031, 1, 0, 0, 0, 1033, 1036, 1, 0, 0, 0, 1034, 1032, 1, 0, 0, 0, 1034, 1035, 1, 0, 0, 0, 1035, 1038, 1, 0, 0, 0, 1036, 1034, 1, 0, 0, 0, 1037, 1029, 1, 0, 0, 0, 1037, 1030, 1, 0, 0, 0, 1038, 1045, 1, 0, 0, 0, 1039, 1041, 5, 46, 0, 0, 1040, 1042, 7, 0, 0, 0, 1041, 1040, 1, 0, 0, 0, 1042, 1043, 1, 0, 0, 0, 1043, 1041, 1, 0, 0, 0, 1043, 1044, 1, 0, 0, 0, 1044, 1046, 1, 0, 0, 0, 1045, 1039, 1, 0, 0, 0, 1045, 1046, 1, 0, 0, 0, 1046, 1056, 1, 0, 0, 0, 1047, 1049, 7, 2, 0, 0, 1048, 1050, 7, 3, 0, 0, 1049, 1048, 1, 0, 0, 0, 1049, 1050, 1, 0, 0, 0, 1050, 1052, 1, 0, 0, 0, 1051, 1053, 7, 0, 0, 0, 1052, 1051, 1, 0, 0, 0, 1053, 1054, 1, 0, 0, 0, 1054, 1052, 1, 0, 0, 0, 1054, 1055, 1, 0, 0, 0, 1055, 1057, 1, 0, 0, 0, 1056, 1047, 1, 0, 0, 0, 1056, 1057, 1, 0, 0, 0, 1057, 226, 1, 0, 0, 0, 1058, 1062, 7, 4, 0, 0, 1059, 1061, 7, 5, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 1064, 1, 0, 0, 0, 1062, 1060, 1, 0, 0, 0, 1062, 1063, 1, 0, 0, 0, 1063, 228, 1, 0, 0, 0, 1064, 1062, 1, 0, 0, 0, 1065, 1070, 5, 34, 0, 0, 1066, 1069, 3, 231, 115, 0, 1067, 1069, 8, 6, 0, 0, 1068, 1066, 1, 0, 0, 0, 1068, 1067, 1, 0, 0, 0, 1069, 1072, 1, 0, 0, 0, 1070, 1068, 1, 0, 0, 0, 1070, 1071, 1, 0, 0, 0, 1071, 1073, 1, 0, 0, 0, 1072, 1070, 1, 0, 0, 0, 1073, 1074, 5, 34, 0, 0, 1074, 230, 1, 0, 0, 0, 1075, 1083, 5, 92, 0, 0, 1076, 1084, 7, 7, 0, 0, 1077, 1078, 5, 117, 0, 0, 1078, 1079, 3, 233, 116, 0, 1079, 1080, 3, 233, 116, 0, 1080, 1081, 3, 233, 116, 0, 1081, 1082, 3, 233, 116, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1076, 1, 0, 0, 0, 1083, 1077, 1, 0, 0, 0, 1084, 232, 1, 0, 0, 0, 1085, 1086, 7, 8, 0, 0, 1086, 234, 1, 0, 0, 0, 1087, 1088, 5, 47, 0, 0, 1088, 1089, 5, 47, 0, 0, 1089, 1093, 1, 0, 0, 0, 1090, 1092, 8, 9, 0, 0, 1091, 1090, 1, 0, 0, 0, 1092, 1095, 1, 0, 0, 0, 1093, 1091, 1, 0, 0, 0, 1093, 1094, 1, 0, 0, 0, 1094, 1096, 1, 0, 0, 0, 1095, 1093, 1, 0, 0, 0, 1096, 1097, 6, 117, 0, 0, 1097, 236, 1, 0, 0, 0, 1098, 1099, 5, 47, 0, 0, 1099, 1100, 5, 42, 0, 0, 1100, 1104, 1, 0, 0, 0, 1101, 1103, 9, 0, 0, 0, 1102, 1101, 1, 0, 0, 0, 1103, 1106, 1, 0, 0, 0, 1104, 1105, 1, 0, 0, 0, 1104, 1102, 1, 0, 0, 0, 1105, 1107, 1, 0, 0, 0, 1106, 1104, 1, 0, 0, 0, 1107, 1108, 5, 42, 0, 0, 1108, 1109, 5, 47, 0, 0, 1109, 1110, 1, 0, 0, 0, 1110, 1111, 6, 118, 0, 0, 1111, 238, 1, 0, 0, 0, 1112, 1114, 7, 10, 0, 0, 1113, 1112, 1, 0, 0, 0, 1114, 1115, 1, 0, 0, 0, 1115, 1113, 1, 0, 0, 0, 1115, 1116, 1, 0, 0, 0, 1116, 1117, 1, 0, 0, 0, 1117, 1118, 6, 119, 0, 0, 1118, 240, 1, 0, 0, 0, 18, 0, 1019, 1024, 1027, 1034, 1037, 1043, 1045, 1049, 1054, 1056, 1062, 1068, 1070, 1083, 1093, 1104, 1115, 1, 0, 1, 0] \ No newline at end of file +[4, 0, 130, 1231, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 2, 114, 7, 114, 2, 115, 7, 115, 2, 116, 7, 116, 2, 117, 7, 117, 2, 118, 7, 118, 2, 119, 7, 119, 2, 120, 7, 120, 2, 121, 7, 121, 2, 122, 7, 122, 2, 123, 7, 123, 2, 124, 7, 124, 2, 125, 7, 125, 2, 126, 7, 126, 2, 127, 7, 127, 2, 128, 7, 128, 2, 129, 7, 129, 2, 130, 7, 130, 2, 131, 7, 131, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 108, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 1, 111, 1, 112, 1, 112, 1, 113, 1, 113, 1, 114, 1, 114, 1, 115, 1, 115, 1, 116, 1, 116, 1, 117, 1, 117, 1, 118, 1, 118, 1, 119, 1, 119, 1, 120, 1, 120, 1, 121, 1, 121, 1, 122, 1, 122, 1, 123, 3, 123, 1132, 8, 123, 1, 123, 4, 123, 1135, 8, 123, 11, 123, 12, 123, 1136, 1, 124, 3, 124, 1140, 8, 124, 1, 124, 1, 124, 1, 124, 5, 124, 1145, 8, 124, 10, 124, 12, 124, 1148, 9, 124, 3, 124, 1150, 8, 124, 1, 124, 1, 124, 4, 124, 1154, 8, 124, 11, 124, 12, 124, 1155, 3, 124, 1158, 8, 124, 1, 124, 1, 124, 3, 124, 1162, 8, 124, 1, 124, 4, 124, 1165, 8, 124, 11, 124, 12, 124, 1166, 3, 124, 1169, 8, 124, 1, 125, 1, 125, 5, 125, 1173, 8, 125, 10, 125, 12, 125, 1176, 9, 125, 1, 126, 1, 126, 1, 126, 5, 126, 1181, 8, 126, 10, 126, 12, 126, 1184, 9, 126, 1, 126, 1, 126, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 3, 127, 1196, 8, 127, 1, 128, 1, 128, 1, 129, 1, 129, 1, 129, 1, 129, 5, 129, 1204, 8, 129, 10, 129, 12, 129, 1207, 9, 129, 1, 129, 1, 129, 1, 130, 1, 130, 1, 130, 1, 130, 5, 130, 1215, 8, 130, 10, 130, 12, 130, 1218, 9, 130, 1, 130, 1, 130, 1, 130, 1, 130, 1, 130, 1, 131, 4, 131, 1226, 8, 131, 11, 131, 12, 131, 1227, 1, 131, 1, 131, 1, 1216, 0, 132, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 185, 93, 187, 94, 189, 95, 191, 96, 193, 97, 195, 98, 197, 99, 199, 100, 201, 101, 203, 102, 205, 103, 207, 104, 209, 105, 211, 106, 213, 107, 215, 108, 217, 109, 219, 110, 221, 111, 223, 112, 225, 113, 227, 114, 229, 115, 231, 116, 233, 117, 235, 118, 237, 119, 239, 120, 241, 121, 243, 122, 245, 123, 247, 124, 249, 125, 251, 126, 253, 127, 255, 0, 257, 0, 259, 128, 261, 129, 263, 130, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 1245, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 0, 185, 1, 0, 0, 0, 0, 187, 1, 0, 0, 0, 0, 189, 1, 0, 0, 0, 0, 191, 1, 0, 0, 0, 0, 193, 1, 0, 0, 0, 0, 195, 1, 0, 0, 0, 0, 197, 1, 0, 0, 0, 0, 199, 1, 0, 0, 0, 0, 201, 1, 0, 0, 0, 0, 203, 1, 0, 0, 0, 0, 205, 1, 0, 0, 0, 0, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 0, 213, 1, 0, 0, 0, 0, 215, 1, 0, 0, 0, 0, 217, 1, 0, 0, 0, 0, 219, 1, 0, 0, 0, 0, 221, 1, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 225, 1, 0, 0, 0, 0, 227, 1, 0, 0, 0, 0, 229, 1, 0, 0, 0, 0, 231, 1, 0, 0, 0, 0, 233, 1, 0, 0, 0, 0, 235, 1, 0, 0, 0, 0, 237, 1, 0, 0, 0, 0, 239, 1, 0, 0, 0, 0, 241, 1, 0, 0, 0, 0, 243, 1, 0, 0, 0, 0, 245, 1, 0, 0, 0, 0, 247, 1, 0, 0, 0, 0, 249, 1, 0, 0, 0, 0, 251, 1, 0, 0, 0, 0, 253, 1, 0, 0, 0, 0, 259, 1, 0, 0, 0, 0, 261, 1, 0, 0, 0, 0, 263, 1, 0, 0, 0, 1, 265, 1, 0, 0, 0, 3, 275, 1, 0, 0, 0, 5, 281, 1, 0, 0, 0, 7, 292, 1, 0, 0, 0, 9, 297, 1, 0, 0, 0, 11, 306, 1, 0, 0, 0, 13, 316, 1, 0, 0, 0, 15, 321, 1, 0, 0, 0, 17, 325, 1, 0, 0, 0, 19, 331, 1, 0, 0, 0, 21, 336, 1, 0, 0, 0, 23, 346, 1, 0, 0, 0, 25, 350, 1, 0, 0, 0, 27, 363, 1, 0, 0, 0, 29, 368, 1, 0, 0, 0, 31, 375, 1, 0, 0, 0, 33, 384, 1, 0, 0, 0, 35, 395, 1, 0, 0, 0, 37, 399, 1, 0, 0, 0, 39, 408, 1, 0, 0, 0, 41, 415, 1, 0, 0, 0, 43, 424, 1, 0, 0, 0, 45, 429, 1, 0, 0, 0, 47, 439, 1, 0, 0, 0, 49, 450, 1, 0, 0, 0, 51, 458, 1, 0, 0, 0, 53, 464, 1, 0, 0, 0, 55, 473, 1, 0, 0, 0, 57, 483, 1, 0, 0, 0, 59, 492, 1, 0, 0, 0, 61, 504, 1, 0, 0, 0, 63, 515, 1, 0, 0, 0, 65, 521, 1, 0, 0, 0, 67, 529, 1, 0, 0, 0, 69, 532, 1, 0, 0, 0, 71, 537, 1, 0, 0, 0, 73, 544, 1, 0, 0, 0, 75, 547, 1, 0, 0, 0, 77, 555, 1, 0, 0, 0, 79, 562, 1, 0, 0, 0, 81, 568, 1, 0, 0, 0, 83, 573, 1, 0, 0, 0, 85, 584, 1, 0, 0, 0, 87, 589, 1, 0, 0, 0, 89, 595, 1, 0, 0, 0, 91, 599, 1, 0, 0, 0, 93, 611, 1, 0, 0, 0, 95, 614, 1, 0, 0, 0, 97, 621, 1, 0, 0, 0, 99, 624, 1, 0, 0, 0, 101, 631, 1, 0, 0, 0, 103, 639, 1, 0, 0, 0, 105, 646, 1, 0, 0, 0, 107, 657, 1, 0, 0, 0, 109, 664, 1, 0, 0, 0, 111, 673, 1, 0, 0, 0, 113, 688, 1, 0, 0, 0, 115, 698, 1, 0, 0, 0, 117, 711, 1, 0, 0, 0, 119, 717, 1, 0, 0, 0, 121, 734, 1, 0, 0, 0, 123, 737, 1, 0, 0, 0, 125, 741, 1, 0, 0, 0, 127, 746, 1, 0, 0, 0, 129, 752, 1, 0, 0, 0, 131, 761, 1, 0, 0, 0, 133, 770, 1, 0, 0, 0, 135, 774, 1, 0, 0, 0, 137, 778, 1, 0, 0, 0, 139, 782, 1, 0, 0, 0, 141, 788, 1, 0, 0, 0, 143, 794, 1, 0, 0, 0, 145, 799, 1, 0, 0, 0, 147, 804, 1, 0, 0, 0, 149, 810, 1, 0, 0, 0, 151, 818, 1, 0, 0, 0, 153, 826, 1, 0, 0, 0, 155, 837, 1, 0, 0, 0, 157, 842, 1, 0, 0, 0, 159, 854, 1, 0, 0, 0, 161, 865, 1, 0, 0, 0, 163, 875, 1, 0, 0, 0, 165, 887, 1, 0, 0, 0, 167, 907, 1, 0, 0, 0, 169, 912, 1, 0, 0, 0, 171, 925, 1, 0, 0, 0, 173, 937, 1, 0, 0, 0, 175, 949, 1, 0, 0, 0, 177, 954, 1, 0, 0, 0, 179, 962, 1, 0, 0, 0, 181, 967, 1, 0, 0, 0, 183, 980, 1, 0, 0, 0, 185, 988, 1, 0, 0, 0, 187, 997, 1, 0, 0, 0, 189, 1011, 1, 0, 0, 0, 191, 1020, 1, 0, 0, 0, 193, 1025, 1, 0, 0, 0, 195, 1032, 1, 0, 0, 0, 197, 1037, 1, 0, 0, 0, 199, 1043, 1, 0, 0, 0, 201, 1050, 1, 0, 0, 0, 203, 1056, 1, 0, 0, 0, 205, 1062, 1, 0, 0, 0, 207, 1069, 1, 0, 0, 0, 209, 1076, 1, 0, 0, 0, 211, 1083, 1, 0, 0, 0, 213, 1088, 1, 0, 0, 0, 215, 1094, 1, 0, 0, 0, 217, 1099, 1, 0, 0, 0, 219, 1102, 1, 0, 0, 0, 221, 1104, 1, 0, 0, 0, 223, 1106, 1, 0, 0, 0, 225, 1108, 1, 0, 0, 0, 227, 1110, 1, 0, 0, 0, 229, 1112, 1, 0, 0, 0, 231, 1114, 1, 0, 0, 0, 233, 1116, 1, 0, 0, 0, 235, 1118, 1, 0, 0, 0, 237, 1120, 1, 0, 0, 0, 239, 1122, 1, 0, 0, 0, 241, 1124, 1, 0, 0, 0, 243, 1126, 1, 0, 0, 0, 245, 1128, 1, 0, 0, 0, 247, 1131, 1, 0, 0, 0, 249, 1139, 1, 0, 0, 0, 251, 1170, 1, 0, 0, 0, 253, 1177, 1, 0, 0, 0, 255, 1187, 1, 0, 0, 0, 257, 1197, 1, 0, 0, 0, 259, 1199, 1, 0, 0, 0, 261, 1210, 1, 0, 0, 0, 263, 1225, 1, 0, 0, 0, 265, 266, 5, 119, 0, 0, 266, 267, 5, 111, 0, 0, 267, 268, 5, 114, 0, 0, 268, 269, 5, 107, 0, 0, 269, 270, 5, 115, 0, 0, 270, 271, 5, 112, 0, 0, 271, 272, 5, 97, 0, 0, 272, 273, 5, 99, 0, 0, 273, 274, 5, 101, 0, 0, 274, 2, 1, 0, 0, 0, 275, 276, 5, 113, 0, 0, 276, 277, 5, 117, 0, 0, 277, 278, 5, 101, 0, 0, 278, 279, 5, 114, 0, 0, 279, 280, 5, 121, 0, 0, 280, 4, 1, 0, 0, 0, 281, 282, 5, 115, 0, 0, 282, 283, 5, 112, 0, 0, 283, 284, 5, 101, 0, 0, 284, 285, 5, 99, 0, 0, 285, 286, 5, 105, 0, 0, 286, 287, 5, 97, 0, 0, 287, 288, 5, 108, 0, 0, 288, 289, 5, 105, 0, 0, 289, 290, 5, 122, 0, 0, 290, 291, 5, 101, 0, 0, 291, 6, 1, 0, 0, 0, 292, 293, 5, 114, 0, 0, 293, 294, 5, 111, 0, 0, 294, 295, 5, 111, 0, 0, 295, 296, 5, 116, 0, 0, 296, 8, 1, 0, 0, 0, 297, 298, 5, 100, 0, 0, 298, 299, 5, 111, 0, 0, 299, 300, 5, 99, 0, 0, 300, 301, 5, 117, 0, 0, 301, 302, 5, 109, 0, 0, 302, 303, 5, 101, 0, 0, 303, 304, 5, 110, 0, 0, 304, 305, 5, 116, 0, 0, 305, 10, 1, 0, 0, 0, 306, 307, 5, 102, 0, 0, 307, 308, 5, 114, 0, 0, 308, 309, 5, 97, 0, 0, 309, 310, 5, 103, 0, 0, 310, 311, 5, 109, 0, 0, 311, 312, 5, 101, 0, 0, 312, 313, 5, 110, 0, 0, 313, 314, 5, 116, 0, 0, 314, 315, 5, 115, 0, 0, 315, 12, 1, 0, 0, 0, 316, 317, 5, 118, 0, 0, 317, 318, 5, 105, 0, 0, 318, 319, 5, 101, 0, 0, 319, 320, 5, 119, 0, 0, 320, 14, 1, 0, 0, 0, 321, 322, 5, 109, 0, 0, 322, 323, 5, 97, 0, 0, 323, 324, 5, 120, 0, 0, 324, 16, 1, 0, 0, 0, 325, 326, 5, 97, 0, 0, 326, 327, 5, 108, 0, 0, 327, 328, 5, 108, 0, 0, 328, 329, 5, 111, 0, 0, 329, 330, 5, 119, 0, 0, 330, 18, 1, 0, 0, 0, 331, 332, 5, 112, 0, 0, 332, 333, 5, 111, 0, 0, 333, 334, 5, 108, 0, 0, 334, 335, 5, 108, 0, 0, 335, 20, 1, 0, 0, 0, 336, 337, 5, 113, 0, 0, 337, 338, 5, 117, 0, 0, 338, 339, 5, 101, 0, 0, 339, 340, 5, 114, 0, 0, 340, 341, 5, 121, 0, 0, 341, 342, 5, 97, 0, 0, 342, 343, 5, 98, 0, 0, 343, 344, 5, 108, 0, 0, 344, 345, 5, 101, 0, 0, 345, 22, 1, 0, 0, 0, 346, 347, 5, 114, 0, 0, 347, 348, 5, 112, 0, 0, 348, 349, 5, 99, 0, 0, 349, 24, 1, 0, 0, 0, 350, 351, 5, 113, 0, 0, 351, 352, 5, 117, 0, 0, 352, 353, 5, 101, 0, 0, 353, 354, 5, 114, 0, 0, 354, 355, 5, 121, 0, 0, 355, 356, 5, 45, 0, 0, 356, 357, 5, 114, 0, 0, 357, 358, 5, 101, 0, 0, 358, 359, 5, 97, 0, 0, 359, 360, 5, 115, 0, 0, 360, 361, 5, 111, 0, 0, 361, 362, 5, 110, 0, 0, 362, 26, 1, 0, 0, 0, 363, 364, 5, 116, 0, 0, 364, 365, 5, 121, 0, 0, 365, 366, 5, 112, 0, 0, 366, 367, 5, 101, 0, 0, 367, 28, 1, 0, 0, 0, 368, 369, 5, 111, 0, 0, 369, 370, 5, 98, 0, 0, 370, 371, 5, 106, 0, 0, 371, 372, 5, 101, 0, 0, 372, 373, 5, 99, 0, 0, 373, 374, 5, 116, 0, 0, 374, 30, 1, 0, 0, 0, 375, 376, 5, 115, 0, 0, 376, 377, 5, 116, 0, 0, 377, 378, 5, 111, 0, 0, 378, 379, 5, 114, 0, 0, 379, 380, 5, 97, 0, 0, 380, 381, 5, 98, 0, 0, 381, 382, 5, 108, 0, 0, 382, 383, 5, 101, 0, 0, 383, 32, 1, 0, 0, 0, 384, 385, 5, 105, 0, 0, 385, 386, 5, 109, 0, 0, 386, 387, 5, 112, 0, 0, 387, 388, 5, 108, 0, 0, 388, 389, 5, 101, 0, 0, 389, 390, 5, 109, 0, 0, 390, 391, 5, 101, 0, 0, 391, 392, 5, 110, 0, 0, 392, 393, 5, 116, 0, 0, 393, 394, 5, 115, 0, 0, 394, 34, 1, 0, 0, 0, 395, 396, 5, 114, 0, 0, 396, 397, 5, 101, 0, 0, 397, 398, 5, 102, 0, 0, 398, 36, 1, 0, 0, 0, 399, 400, 5, 102, 0, 0, 400, 401, 5, 114, 0, 0, 401, 402, 5, 97, 0, 0, 402, 403, 5, 103, 0, 0, 403, 404, 5, 109, 0, 0, 404, 405, 5, 101, 0, 0, 405, 406, 5, 110, 0, 0, 406, 407, 5, 116, 0, 0, 407, 38, 1, 0, 0, 0, 408, 409, 5, 105, 0, 0, 409, 410, 5, 109, 0, 0, 410, 411, 5, 112, 0, 0, 411, 412, 5, 111, 0, 0, 412, 413, 5, 114, 0, 0, 413, 414, 5, 116, 0, 0, 414, 40, 1, 0, 0, 0, 415, 416, 5, 101, 0, 0, 416, 417, 5, 120, 0, 0, 417, 418, 5, 116, 0, 0, 418, 419, 5, 101, 0, 0, 419, 420, 5, 114, 0, 0, 420, 421, 5, 110, 0, 0, 421, 422, 5, 97, 0, 0, 422, 423, 5, 108, 0, 0, 423, 42, 1, 0, 0, 0, 424, 425, 5, 97, 0, 0, 425, 426, 5, 116, 0, 0, 426, 427, 5, 111, 0, 0, 427, 428, 5, 109, 0, 0, 428, 44, 1, 0, 0, 0, 429, 430, 5, 105, 0, 0, 430, 431, 5, 110, 0, 0, 431, 432, 5, 116, 0, 0, 432, 433, 5, 101, 0, 0, 433, 434, 5, 114, 0, 0, 434, 435, 5, 102, 0, 0, 435, 436, 5, 97, 0, 0, 436, 437, 5, 99, 0, 0, 437, 438, 5, 101, 0, 0, 438, 46, 1, 0, 0, 0, 439, 440, 5, 105, 0, 0, 440, 441, 5, 110, 0, 0, 441, 442, 5, 116, 0, 0, 442, 443, 5, 101, 0, 0, 443, 444, 5, 114, 0, 0, 444, 445, 5, 102, 0, 0, 445, 446, 5, 97, 0, 0, 446, 447, 5, 99, 0, 0, 447, 448, 5, 101, 0, 0, 448, 449, 5, 115, 0, 0, 449, 48, 1, 0, 0, 0, 450, 451, 5, 112, 0, 0, 451, 452, 5, 97, 0, 0, 452, 453, 5, 99, 0, 0, 453, 454, 5, 107, 0, 0, 454, 455, 5, 97, 0, 0, 455, 456, 5, 103, 0, 0, 456, 457, 5, 101, 0, 0, 457, 50, 1, 0, 0, 0, 458, 459, 5, 118, 0, 0, 459, 460, 5, 97, 0, 0, 460, 461, 5, 108, 0, 0, 461, 462, 5, 117, 0, 0, 462, 463, 5, 101, 0, 0, 463, 52, 1, 0, 0, 0, 464, 465, 5, 114, 0, 0, 465, 466, 5, 101, 0, 0, 466, 467, 5, 108, 0, 0, 467, 468, 5, 97, 0, 0, 468, 469, 5, 116, 0, 0, 469, 470, 5, 105, 0, 0, 470, 471, 5, 111, 0, 0, 471, 472, 5, 110, 0, 0, 472, 54, 1, 0, 0, 0, 473, 474, 5, 111, 0, 0, 474, 475, 5, 112, 0, 0, 475, 476, 5, 101, 0, 0, 476, 477, 5, 114, 0, 0, 477, 478, 5, 97, 0, 0, 478, 479, 5, 116, 0, 0, 479, 480, 5, 105, 0, 0, 480, 481, 5, 111, 0, 0, 481, 482, 5, 110, 0, 0, 482, 56, 1, 0, 0, 0, 483, 484, 5, 102, 0, 0, 484, 485, 5, 117, 0, 0, 485, 486, 5, 110, 0, 0, 486, 487, 5, 99, 0, 0, 487, 488, 5, 116, 0, 0, 488, 489, 5, 105, 0, 0, 489, 490, 5, 111, 0, 0, 490, 491, 5, 110, 0, 0, 491, 58, 1, 0, 0, 0, 492, 493, 5, 99, 0, 0, 493, 494, 5, 111, 0, 0, 494, 495, 5, 110, 0, 0, 495, 496, 5, 115, 0, 0, 496, 497, 5, 116, 0, 0, 497, 498, 5, 114, 0, 0, 498, 499, 5, 117, 0, 0, 499, 500, 5, 99, 0, 0, 500, 501, 5, 116, 0, 0, 501, 502, 5, 111, 0, 0, 502, 503, 5, 114, 0, 0, 503, 60, 1, 0, 0, 0, 504, 505, 5, 99, 0, 0, 505, 506, 5, 111, 0, 0, 506, 507, 5, 110, 0, 0, 507, 508, 5, 115, 0, 0, 508, 509, 5, 116, 0, 0, 509, 510, 5, 114, 0, 0, 510, 511, 5, 117, 0, 0, 511, 512, 5, 99, 0, 0, 512, 513, 5, 116, 0, 0, 513, 514, 5, 115, 0, 0, 514, 62, 1, 0, 0, 0, 515, 516, 5, 105, 0, 0, 516, 517, 5, 110, 0, 0, 517, 518, 5, 112, 0, 0, 518, 519, 5, 117, 0, 0, 519, 520, 5, 116, 0, 0, 520, 64, 1, 0, 0, 0, 521, 522, 5, 99, 0, 0, 522, 523, 5, 111, 0, 0, 523, 524, 5, 110, 0, 0, 524, 525, 5, 102, 0, 0, 525, 526, 5, 111, 0, 0, 526, 527, 5, 114, 0, 0, 527, 528, 5, 109, 0, 0, 528, 66, 1, 0, 0, 0, 529, 530, 5, 97, 0, 0, 530, 531, 5, 115, 0, 0, 531, 68, 1, 0, 0, 0, 532, 533, 5, 98, 0, 0, 533, 534, 5, 105, 0, 0, 534, 535, 5, 110, 0, 0, 535, 536, 5, 100, 0, 0, 536, 70, 1, 0, 0, 0, 537, 538, 5, 115, 0, 0, 538, 539, 5, 116, 0, 0, 539, 540, 5, 97, 0, 0, 540, 541, 5, 116, 0, 0, 541, 542, 5, 105, 0, 0, 542, 543, 5, 99, 0, 0, 543, 72, 1, 0, 0, 0, 544, 545, 5, 116, 0, 0, 545, 546, 5, 111, 0, 0, 546, 74, 1, 0, 0, 0, 547, 548, 5, 112, 0, 0, 548, 549, 5, 114, 0, 0, 549, 550, 5, 105, 0, 0, 550, 551, 5, 118, 0, 0, 551, 552, 5, 97, 0, 0, 552, 553, 5, 116, 0, 0, 553, 554, 5, 101, 0, 0, 554, 76, 1, 0, 0, 0, 555, 556, 5, 115, 0, 0, 556, 557, 5, 104, 0, 0, 557, 558, 5, 97, 0, 0, 558, 559, 5, 114, 0, 0, 559, 560, 5, 101, 0, 0, 560, 561, 5, 100, 0, 0, 561, 78, 1, 0, 0, 0, 562, 563, 5, 115, 0, 0, 563, 564, 5, 116, 0, 0, 564, 565, 5, 97, 0, 0, 565, 566, 5, 116, 0, 0, 566, 567, 5, 101, 0, 0, 567, 80, 1, 0, 0, 0, 568, 569, 5, 101, 0, 0, 569, 570, 5, 100, 0, 0, 570, 571, 5, 103, 0, 0, 571, 572, 5, 101, 0, 0, 572, 82, 1, 0, 0, 0, 573, 574, 5, 112, 0, 0, 574, 575, 5, 114, 0, 0, 575, 576, 5, 111, 0, 0, 576, 577, 5, 106, 0, 0, 577, 578, 5, 101, 0, 0, 578, 579, 5, 99, 0, 0, 579, 580, 5, 116, 0, 0, 580, 581, 5, 105, 0, 0, 581, 582, 5, 111, 0, 0, 582, 583, 5, 110, 0, 0, 583, 84, 1, 0, 0, 0, 584, 585, 5, 119, 0, 0, 585, 586, 5, 105, 0, 0, 586, 587, 5, 116, 0, 0, 587, 588, 5, 104, 0, 0, 588, 86, 1, 0, 0, 0, 589, 590, 5, 117, 0, 0, 590, 591, 5, 115, 0, 0, 591, 592, 5, 105, 0, 0, 592, 593, 5, 110, 0, 0, 593, 594, 5, 103, 0, 0, 594, 88, 1, 0, 0, 0, 595, 596, 5, 118, 0, 0, 596, 597, 5, 105, 0, 0, 597, 598, 5, 97, 0, 0, 598, 90, 1, 0, 0, 0, 599, 600, 5, 109, 0, 0, 600, 601, 5, 97, 0, 0, 601, 602, 5, 116, 0, 0, 602, 603, 5, 101, 0, 0, 603, 604, 5, 114, 0, 0, 604, 605, 5, 105, 0, 0, 605, 606, 5, 97, 0, 0, 606, 607, 5, 108, 0, 0, 607, 608, 5, 105, 0, 0, 608, 609, 5, 122, 0, 0, 609, 610, 5, 101, 0, 0, 610, 92, 1, 0, 0, 0, 611, 612, 5, 105, 0, 0, 612, 613, 5, 102, 0, 0, 613, 94, 1, 0, 0, 0, 614, 615, 5, 97, 0, 0, 615, 616, 5, 98, 0, 0, 616, 617, 5, 115, 0, 0, 617, 618, 5, 101, 0, 0, 618, 619, 5, 110, 0, 0, 619, 620, 5, 116, 0, 0, 620, 96, 1, 0, 0, 0, 621, 622, 5, 111, 0, 0, 622, 623, 5, 110, 0, 0, 623, 98, 1, 0, 0, 0, 624, 625, 5, 112, 0, 0, 625, 626, 5, 111, 0, 0, 626, 627, 5, 108, 0, 0, 627, 628, 5, 105, 0, 0, 628, 629, 5, 99, 0, 0, 629, 630, 5, 121, 0, 0, 630, 100, 1, 0, 0, 0, 631, 632, 5, 100, 0, 0, 632, 633, 5, 101, 0, 0, 633, 634, 5, 102, 0, 0, 634, 635, 5, 97, 0, 0, 635, 636, 5, 117, 0, 0, 636, 637, 5, 108, 0, 0, 637, 638, 5, 116, 0, 0, 638, 102, 1, 0, 0, 0, 639, 640, 5, 115, 0, 0, 640, 641, 5, 111, 0, 0, 641, 642, 5, 117, 0, 0, 642, 643, 5, 114, 0, 0, 643, 644, 5, 99, 0, 0, 644, 645, 5, 101, 0, 0, 645, 104, 1, 0, 0, 0, 646, 647, 5, 114, 0, 0, 647, 648, 5, 101, 0, 0, 648, 649, 5, 112, 0, 0, 649, 650, 5, 111, 0, 0, 650, 651, 5, 115, 0, 0, 651, 652, 5, 105, 0, 0, 652, 653, 5, 116, 0, 0, 653, 654, 5, 111, 0, 0, 654, 655, 5, 114, 0, 0, 655, 656, 5, 121, 0, 0, 656, 106, 1, 0, 0, 0, 657, 658, 5, 99, 0, 0, 658, 659, 5, 111, 0, 0, 659, 660, 5, 109, 0, 0, 660, 661, 5, 109, 0, 0, 661, 662, 5, 105, 0, 0, 662, 663, 5, 116, 0, 0, 663, 108, 1, 0, 0, 0, 664, 665, 5, 114, 0, 0, 665, 666, 5, 101, 0, 0, 666, 667, 5, 118, 0, 0, 667, 668, 5, 105, 0, 0, 668, 669, 5, 115, 0, 0, 669, 670, 5, 105, 0, 0, 670, 671, 5, 111, 0, 0, 671, 672, 5, 110, 0, 0, 672, 110, 1, 0, 0, 0, 673, 674, 5, 115, 0, 0, 674, 675, 5, 101, 0, 0, 675, 676, 5, 109, 0, 0, 676, 677, 5, 97, 0, 0, 677, 678, 5, 110, 0, 0, 678, 679, 5, 116, 0, 0, 679, 680, 5, 105, 0, 0, 680, 681, 5, 99, 0, 0, 681, 682, 5, 45, 0, 0, 682, 683, 5, 109, 0, 0, 683, 684, 5, 97, 0, 0, 684, 685, 5, 106, 0, 0, 685, 686, 5, 111, 0, 0, 686, 687, 5, 114, 0, 0, 687, 112, 1, 0, 0, 0, 688, 689, 5, 111, 0, 0, 689, 690, 5, 110, 0, 0, 690, 691, 5, 45, 0, 0, 691, 692, 5, 100, 0, 0, 692, 693, 5, 101, 0, 0, 693, 694, 5, 108, 0, 0, 694, 695, 5, 101, 0, 0, 695, 696, 5, 116, 0, 0, 696, 697, 5, 101, 0, 0, 697, 114, 1, 0, 0, 0, 698, 699, 5, 114, 0, 0, 699, 700, 5, 101, 0, 0, 700, 701, 5, 116, 0, 0, 701, 702, 5, 97, 0, 0, 702, 703, 5, 105, 0, 0, 703, 704, 5, 110, 0, 0, 704, 705, 5, 45, 0, 0, 705, 706, 5, 111, 0, 0, 706, 707, 5, 116, 0, 0, 707, 708, 5, 104, 0, 0, 708, 709, 5, 101, 0, 0, 709, 710, 5, 114, 0, 0, 710, 116, 1, 0, 0, 0, 711, 712, 5, 107, 0, 0, 712, 713, 5, 101, 0, 0, 713, 714, 5, 121, 0, 0, 714, 715, 5, 101, 0, 0, 715, 716, 5, 100, 0, 0, 716, 118, 1, 0, 0, 0, 717, 718, 5, 112, 0, 0, 718, 719, 5, 117, 0, 0, 719, 720, 5, 98, 0, 0, 720, 721, 5, 108, 0, 0, 721, 722, 5, 105, 0, 0, 722, 723, 5, 99, 0, 0, 723, 724, 5, 45, 0, 0, 724, 725, 5, 116, 0, 0, 725, 726, 5, 114, 0, 0, 726, 727, 5, 97, 0, 0, 727, 728, 5, 118, 0, 0, 728, 729, 5, 101, 0, 0, 729, 730, 5, 114, 0, 0, 730, 731, 5, 115, 0, 0, 731, 732, 5, 97, 0, 0, 732, 733, 5, 108, 0, 0, 733, 120, 1, 0, 0, 0, 734, 735, 5, 105, 0, 0, 735, 736, 5, 100, 0, 0, 736, 122, 1, 0, 0, 0, 737, 738, 5, 100, 0, 0, 738, 739, 5, 111, 0, 0, 739, 740, 5, 99, 0, 0, 740, 124, 1, 0, 0, 0, 741, 742, 5, 109, 0, 0, 742, 743, 5, 111, 0, 0, 743, 744, 5, 100, 0, 0, 744, 745, 5, 101, 0, 0, 745, 126, 1, 0, 0, 0, 746, 747, 5, 101, 0, 0, 747, 748, 5, 109, 0, 0, 748, 749, 5, 105, 0, 0, 749, 750, 5, 116, 0, 0, 750, 751, 5, 115, 0, 0, 751, 128, 1, 0, 0, 0, 752, 753, 5, 114, 0, 0, 753, 754, 5, 101, 0, 0, 754, 755, 5, 99, 0, 0, 755, 756, 5, 101, 0, 0, 756, 757, 5, 105, 0, 0, 757, 758, 5, 118, 0, 0, 758, 759, 5, 101, 0, 0, 759, 760, 5, 114, 0, 0, 760, 130, 1, 0, 0, 0, 761, 762, 5, 114, 0, 0, 762, 763, 5, 101, 0, 0, 763, 764, 5, 113, 0, 0, 764, 765, 5, 117, 0, 0, 765, 766, 5, 105, 0, 0, 766, 767, 5, 114, 0, 0, 767, 768, 5, 101, 0, 0, 768, 769, 5, 115, 0, 0, 769, 132, 1, 0, 0, 0, 770, 771, 5, 97, 0, 0, 771, 772, 5, 110, 0, 0, 772, 773, 5, 121, 0, 0, 773, 134, 1, 0, 0, 0, 774, 775, 5, 103, 0, 0, 775, 776, 5, 101, 0, 0, 776, 777, 5, 116, 0, 0, 777, 136, 1, 0, 0, 0, 778, 779, 5, 115, 0, 0, 779, 780, 5, 101, 0, 0, 780, 781, 5, 116, 0, 0, 781, 138, 1, 0, 0, 0, 782, 783, 5, 119, 0, 0, 783, 784, 5, 97, 0, 0, 784, 785, 5, 116, 0, 0, 785, 786, 5, 99, 0, 0, 786, 787, 5, 104, 0, 0, 787, 140, 1, 0, 0, 0, 788, 789, 5, 115, 0, 0, 789, 790, 5, 116, 0, 0, 790, 791, 5, 97, 0, 0, 791, 792, 5, 114, 0, 0, 792, 793, 5, 116, 0, 0, 793, 142, 1, 0, 0, 0, 794, 795, 5, 115, 0, 0, 795, 796, 5, 116, 0, 0, 796, 797, 5, 111, 0, 0, 797, 798, 5, 112, 0, 0, 798, 144, 1, 0, 0, 0, 799, 800, 5, 114, 0, 0, 800, 801, 5, 101, 0, 0, 801, 802, 5, 97, 0, 0, 802, 803, 5, 100, 0, 0, 803, 146, 1, 0, 0, 0, 804, 805, 5, 119, 0, 0, 805, 806, 5, 114, 0, 0, 806, 807, 5, 105, 0, 0, 807, 808, 5, 116, 0, 0, 808, 809, 5, 101, 0, 0, 809, 148, 1, 0, 0, 0, 810, 811, 5, 114, 0, 0, 811, 812, 5, 101, 0, 0, 812, 813, 5, 115, 0, 0, 813, 814, 5, 111, 0, 0, 814, 815, 5, 108, 0, 0, 815, 816, 5, 118, 0, 0, 816, 817, 5, 101, 0, 0, 817, 150, 1, 0, 0, 0, 818, 819, 5, 99, 0, 0, 819, 820, 5, 111, 0, 0, 820, 821, 5, 110, 0, 0, 821, 822, 5, 110, 0, 0, 822, 823, 5, 101, 0, 0, 823, 824, 5, 99, 0, 0, 824, 825, 5, 116, 0, 0, 825, 152, 1, 0, 0, 0, 826, 827, 5, 100, 0, 0, 827, 828, 5, 105, 0, 0, 828, 829, 5, 115, 0, 0, 829, 830, 5, 99, 0, 0, 830, 831, 5, 111, 0, 0, 831, 832, 5, 110, 0, 0, 832, 833, 5, 110, 0, 0, 833, 834, 5, 101, 0, 0, 834, 835, 5, 99, 0, 0, 835, 836, 5, 116, 0, 0, 836, 154, 1, 0, 0, 0, 837, 838, 5, 99, 0, 0, 838, 839, 5, 97, 0, 0, 839, 840, 5, 108, 0, 0, 840, 841, 5, 108, 0, 0, 841, 156, 1, 0, 0, 0, 842, 843, 5, 119, 0, 0, 843, 844, 5, 97, 0, 0, 844, 845, 5, 116, 0, 0, 845, 846, 5, 99, 0, 0, 846, 847, 5, 104, 0, 0, 847, 848, 5, 45, 0, 0, 848, 849, 5, 115, 0, 0, 849, 850, 5, 116, 0, 0, 850, 851, 5, 97, 0, 0, 851, 852, 5, 114, 0, 0, 852, 853, 5, 116, 0, 0, 853, 158, 1, 0, 0, 0, 854, 855, 5, 119, 0, 0, 855, 856, 5, 97, 0, 0, 856, 857, 5, 116, 0, 0, 857, 858, 5, 99, 0, 0, 858, 859, 5, 104, 0, 0, 859, 860, 5, 45, 0, 0, 860, 861, 5, 115, 0, 0, 861, 862, 5, 116, 0, 0, 862, 863, 5, 111, 0, 0, 863, 864, 5, 112, 0, 0, 864, 160, 1, 0, 0, 0, 865, 866, 5, 115, 0, 0, 866, 867, 5, 117, 0, 0, 867, 868, 5, 98, 0, 0, 868, 869, 5, 115, 0, 0, 869, 870, 5, 99, 0, 0, 870, 871, 5, 114, 0, 0, 871, 872, 5, 105, 0, 0, 872, 873, 5, 98, 0, 0, 873, 874, 5, 101, 0, 0, 874, 162, 1, 0, 0, 0, 875, 876, 5, 117, 0, 0, 876, 877, 5, 110, 0, 0, 877, 878, 5, 115, 0, 0, 878, 879, 5, 117, 0, 0, 879, 880, 5, 98, 0, 0, 880, 881, 5, 115, 0, 0, 881, 882, 5, 99, 0, 0, 882, 883, 5, 114, 0, 0, 883, 884, 5, 105, 0, 0, 884, 885, 5, 98, 0, 0, 885, 886, 5, 101, 0, 0, 886, 164, 1, 0, 0, 0, 887, 888, 5, 111, 0, 0, 888, 889, 5, 112, 0, 0, 889, 890, 5, 116, 0, 0, 890, 891, 5, 105, 0, 0, 891, 892, 5, 109, 0, 0, 892, 893, 5, 105, 0, 0, 893, 894, 5, 115, 0, 0, 894, 895, 5, 116, 0, 0, 895, 896, 5, 105, 0, 0, 896, 897, 5, 99, 0, 0, 897, 898, 5, 45, 0, 0, 898, 899, 5, 114, 0, 0, 899, 900, 5, 101, 0, 0, 900, 901, 5, 103, 0, 0, 901, 902, 5, 105, 0, 0, 902, 903, 5, 115, 0, 0, 903, 904, 5, 116, 0, 0, 904, 905, 5, 101, 0, 0, 905, 906, 5, 114, 0, 0, 906, 166, 1, 0, 0, 0, 907, 908, 5, 99, 0, 0, 908, 909, 5, 114, 0, 0, 909, 910, 5, 100, 0, 0, 910, 911, 5, 116, 0, 0, 911, 168, 1, 0, 0, 0, 912, 913, 5, 111, 0, 0, 913, 914, 5, 112, 0, 0, 914, 915, 5, 116, 0, 0, 915, 916, 5, 105, 0, 0, 916, 917, 5, 111, 0, 0, 917, 918, 5, 110, 0, 0, 918, 919, 5, 97, 0, 0, 919, 920, 5, 108, 0, 0, 920, 921, 5, 45, 0, 0, 921, 922, 5, 111, 0, 0, 922, 923, 5, 110, 0, 0, 923, 924, 5, 101, 0, 0, 924, 170, 1, 0, 0, 0, 925, 926, 5, 101, 0, 0, 926, 927, 5, 120, 0, 0, 927, 928, 5, 97, 0, 0, 928, 929, 5, 99, 0, 0, 929, 930, 5, 116, 0, 0, 930, 931, 5, 108, 0, 0, 931, 932, 5, 121, 0, 0, 932, 933, 5, 45, 0, 0, 933, 934, 5, 111, 0, 0, 934, 935, 5, 110, 0, 0, 935, 936, 5, 101, 0, 0, 936, 172, 1, 0, 0, 0, 937, 938, 5, 109, 0, 0, 938, 939, 5, 97, 0, 0, 939, 940, 5, 110, 0, 0, 940, 941, 5, 121, 0, 0, 941, 942, 5, 45, 0, 0, 942, 943, 5, 117, 0, 0, 943, 944, 5, 110, 0, 0, 944, 945, 5, 105, 0, 0, 945, 946, 5, 113, 0, 0, 946, 947, 5, 117, 0, 0, 947, 948, 5, 101, 0, 0, 948, 174, 1, 0, 0, 0, 949, 950, 5, 109, 0, 0, 950, 951, 5, 97, 0, 0, 951, 952, 5, 110, 0, 0, 952, 953, 5, 121, 0, 0, 953, 176, 1, 0, 0, 0, 954, 955, 5, 111, 0, 0, 955, 956, 5, 114, 0, 0, 956, 957, 5, 100, 0, 0, 957, 958, 5, 101, 0, 0, 958, 959, 5, 114, 0, 0, 959, 960, 5, 101, 0, 0, 960, 961, 5, 100, 0, 0, 961, 178, 1, 0, 0, 0, 962, 963, 5, 117, 0, 0, 963, 964, 5, 110, 0, 0, 964, 965, 5, 105, 0, 0, 965, 966, 5, 116, 0, 0, 966, 180, 1, 0, 0, 0, 967, 968, 5, 119, 0, 0, 968, 969, 5, 97, 0, 0, 969, 970, 5, 116, 0, 0, 970, 971, 5, 99, 0, 0, 971, 972, 5, 104, 0, 0, 972, 973, 5, 45, 0, 0, 973, 974, 5, 104, 0, 0, 974, 975, 5, 97, 0, 0, 975, 976, 5, 110, 0, 0, 976, 977, 5, 100, 0, 0, 977, 978, 5, 108, 0, 0, 978, 979, 5, 101, 0, 0, 979, 182, 1, 0, 0, 0, 980, 981, 5, 109, 0, 0, 981, 982, 5, 101, 0, 0, 982, 983, 5, 115, 0, 0, 983, 984, 5, 115, 0, 0, 984, 985, 5, 97, 0, 0, 985, 986, 5, 103, 0, 0, 986, 987, 5, 101, 0, 0, 987, 184, 1, 0, 0, 0, 988, 989, 5, 97, 0, 0, 989, 990, 5, 116, 0, 0, 990, 991, 5, 111, 0, 0, 991, 992, 5, 109, 0, 0, 992, 993, 5, 45, 0, 0, 993, 994, 5, 114, 0, 0, 994, 995, 5, 101, 0, 0, 995, 996, 5, 102, 0, 0, 996, 186, 1, 0, 0, 0, 997, 998, 5, 105, 0, 0, 998, 999, 5, 110, 0, 0, 999, 1000, 5, 116, 0, 0, 1000, 1001, 5, 101, 0, 0, 1001, 1002, 5, 114, 0, 0, 1002, 1003, 5, 102, 0, 0, 1003, 1004, 5, 97, 0, 0, 1004, 1005, 5, 99, 0, 0, 1005, 1006, 5, 101, 0, 0, 1006, 1007, 5, 45, 0, 0, 1007, 1008, 5, 114, 0, 0, 1008, 1009, 5, 101, 0, 0, 1009, 1010, 5, 102, 0, 0, 1010, 188, 1, 0, 0, 0, 1011, 1012, 5, 111, 0, 0, 1012, 1013, 5, 112, 0, 0, 1013, 1014, 5, 116, 0, 0, 1014, 1015, 5, 105, 0, 0, 1015, 1016, 5, 111, 0, 0, 1016, 1017, 5, 110, 0, 0, 1017, 1018, 5, 97, 0, 0, 1018, 1019, 5, 108, 0, 0, 1019, 190, 1, 0, 0, 0, 1020, 1021, 5, 108, 0, 0, 1021, 1022, 5, 105, 0, 0, 1022, 1023, 5, 115, 0, 0, 1023, 1024, 5, 116, 0, 0, 1024, 192, 1, 0, 0, 0, 1025, 1026, 5, 114, 0, 0, 1026, 1027, 5, 101, 0, 0, 1027, 1028, 5, 99, 0, 0, 1028, 1029, 5, 111, 0, 0, 1029, 1030, 5, 114, 0, 0, 1030, 1031, 5, 100, 0, 0, 1031, 194, 1, 0, 0, 0, 1032, 1033, 5, 98, 0, 0, 1033, 1034, 5, 111, 0, 0, 1034, 1035, 5, 111, 0, 0, 1035, 1036, 5, 108, 0, 0, 1036, 196, 1, 0, 0, 0, 1037, 1038, 5, 98, 0, 0, 1038, 1039, 5, 121, 0, 0, 1039, 1040, 5, 116, 0, 0, 1040, 1041, 5, 101, 0, 0, 1041, 1042, 5, 115, 0, 0, 1042, 198, 1, 0, 0, 0, 1043, 1044, 5, 100, 0, 0, 1044, 1045, 5, 111, 0, 0, 1045, 1046, 5, 117, 0, 0, 1046, 1047, 5, 98, 0, 0, 1047, 1048, 5, 108, 0, 0, 1048, 1049, 5, 101, 0, 0, 1049, 200, 1, 0, 0, 0, 1050, 1051, 5, 105, 0, 0, 1051, 1052, 5, 110, 0, 0, 1052, 1053, 5, 116, 0, 0, 1053, 1054, 5, 51, 0, 0, 1054, 1055, 5, 50, 0, 0, 1055, 202, 1, 0, 0, 0, 1056, 1057, 5, 105, 0, 0, 1057, 1058, 5, 110, 0, 0, 1058, 1059, 5, 116, 0, 0, 1059, 1060, 5, 54, 0, 0, 1060, 1061, 5, 52, 0, 0, 1061, 204, 1, 0, 0, 0, 1062, 1063, 5, 115, 0, 0, 1063, 1064, 5, 116, 0, 0, 1064, 1065, 5, 114, 0, 0, 1065, 1066, 5, 105, 0, 0, 1066, 1067, 5, 110, 0, 0, 1067, 1068, 5, 103, 0, 0, 1068, 206, 1, 0, 0, 0, 1069, 1070, 5, 117, 0, 0, 1070, 1071, 5, 105, 0, 0, 1071, 1072, 5, 110, 0, 0, 1072, 1073, 5, 116, 0, 0, 1073, 1074, 5, 51, 0, 0, 1074, 1075, 5, 50, 0, 0, 1075, 208, 1, 0, 0, 0, 1076, 1077, 5, 117, 0, 0, 1077, 1078, 5, 105, 0, 0, 1078, 1079, 5, 110, 0, 0, 1079, 1080, 5, 116, 0, 0, 1080, 1081, 5, 54, 0, 0, 1081, 1082, 5, 52, 0, 0, 1082, 210, 1, 0, 0, 0, 1083, 1084, 5, 116, 0, 0, 1084, 1085, 5, 114, 0, 0, 1085, 1086, 5, 117, 0, 0, 1086, 1087, 5, 101, 0, 0, 1087, 212, 1, 0, 0, 0, 1088, 1089, 5, 102, 0, 0, 1089, 1090, 5, 97, 0, 0, 1090, 1091, 5, 108, 0, 0, 1091, 1092, 5, 115, 0, 0, 1092, 1093, 5, 101, 0, 0, 1093, 214, 1, 0, 0, 0, 1094, 1095, 5, 110, 0, 0, 1095, 1096, 5, 117, 0, 0, 1096, 1097, 5, 108, 0, 0, 1097, 1098, 5, 108, 0, 0, 1098, 216, 1, 0, 0, 0, 1099, 1100, 5, 45, 0, 0, 1100, 1101, 5, 62, 0, 0, 1101, 218, 1, 0, 0, 0, 1102, 1103, 5, 58, 0, 0, 1103, 220, 1, 0, 0, 0, 1104, 1105, 5, 59, 0, 0, 1105, 222, 1, 0, 0, 0, 1106, 1107, 5, 44, 0, 0, 1107, 224, 1, 0, 0, 0, 1108, 1109, 5, 46, 0, 0, 1109, 226, 1, 0, 0, 0, 1110, 1111, 5, 123, 0, 0, 1111, 228, 1, 0, 0, 0, 1112, 1113, 5, 125, 0, 0, 1113, 230, 1, 0, 0, 0, 1114, 1115, 5, 91, 0, 0, 1115, 232, 1, 0, 0, 0, 1116, 1117, 5, 93, 0, 0, 1117, 234, 1, 0, 0, 0, 1118, 1119, 5, 40, 0, 0, 1119, 236, 1, 0, 0, 0, 1120, 1121, 5, 41, 0, 0, 1121, 238, 1, 0, 0, 0, 1122, 1123, 5, 60, 0, 0, 1123, 240, 1, 0, 0, 0, 1124, 1125, 5, 62, 0, 0, 1125, 242, 1, 0, 0, 0, 1126, 1127, 5, 38, 0, 0, 1127, 244, 1, 0, 0, 0, 1128, 1129, 5, 61, 0, 0, 1129, 246, 1, 0, 0, 0, 1130, 1132, 5, 45, 0, 0, 1131, 1130, 1, 0, 0, 0, 1131, 1132, 1, 0, 0, 0, 1132, 1134, 1, 0, 0, 0, 1133, 1135, 7, 0, 0, 0, 1134, 1133, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 1134, 1, 0, 0, 0, 1136, 1137, 1, 0, 0, 0, 1137, 248, 1, 0, 0, 0, 1138, 1140, 5, 45, 0, 0, 1139, 1138, 1, 0, 0, 0, 1139, 1140, 1, 0, 0, 0, 1140, 1149, 1, 0, 0, 0, 1141, 1150, 5, 48, 0, 0, 1142, 1146, 7, 1, 0, 0, 1143, 1145, 7, 0, 0, 0, 1144, 1143, 1, 0, 0, 0, 1145, 1148, 1, 0, 0, 0, 1146, 1144, 1, 0, 0, 0, 1146, 1147, 1, 0, 0, 0, 1147, 1150, 1, 0, 0, 0, 1148, 1146, 1, 0, 0, 0, 1149, 1141, 1, 0, 0, 0, 1149, 1142, 1, 0, 0, 0, 1150, 1157, 1, 0, 0, 0, 1151, 1153, 5, 46, 0, 0, 1152, 1154, 7, 0, 0, 0, 1153, 1152, 1, 0, 0, 0, 1154, 1155, 1, 0, 0, 0, 1155, 1153, 1, 0, 0, 0, 1155, 1156, 1, 0, 0, 0, 1156, 1158, 1, 0, 0, 0, 1157, 1151, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1168, 1, 0, 0, 0, 1159, 1161, 7, 2, 0, 0, 1160, 1162, 7, 3, 0, 0, 1161, 1160, 1, 0, 0, 0, 1161, 1162, 1, 0, 0, 0, 1162, 1164, 1, 0, 0, 0, 1163, 1165, 7, 0, 0, 0, 1164, 1163, 1, 0, 0, 0, 1165, 1166, 1, 0, 0, 0, 1166, 1164, 1, 0, 0, 0, 1166, 1167, 1, 0, 0, 0, 1167, 1169, 1, 0, 0, 0, 1168, 1159, 1, 0, 0, 0, 1168, 1169, 1, 0, 0, 0, 1169, 250, 1, 0, 0, 0, 1170, 1174, 7, 4, 0, 0, 1171, 1173, 7, 5, 0, 0, 1172, 1171, 1, 0, 0, 0, 1173, 1176, 1, 0, 0, 0, 1174, 1172, 1, 0, 0, 0, 1174, 1175, 1, 0, 0, 0, 1175, 252, 1, 0, 0, 0, 1176, 1174, 1, 0, 0, 0, 1177, 1182, 5, 34, 0, 0, 1178, 1181, 3, 255, 127, 0, 1179, 1181, 8, 6, 0, 0, 1180, 1178, 1, 0, 0, 0, 1180, 1179, 1, 0, 0, 0, 1181, 1184, 1, 0, 0, 0, 1182, 1180, 1, 0, 0, 0, 1182, 1183, 1, 0, 0, 0, 1183, 1185, 1, 0, 0, 0, 1184, 1182, 1, 0, 0, 0, 1185, 1186, 5, 34, 0, 0, 1186, 254, 1, 0, 0, 0, 1187, 1195, 5, 92, 0, 0, 1188, 1196, 7, 7, 0, 0, 1189, 1190, 5, 117, 0, 0, 1190, 1191, 3, 257, 128, 0, 1191, 1192, 3, 257, 128, 0, 1192, 1193, 3, 257, 128, 0, 1193, 1194, 3, 257, 128, 0, 1194, 1196, 1, 0, 0, 0, 1195, 1188, 1, 0, 0, 0, 1195, 1189, 1, 0, 0, 0, 1196, 256, 1, 0, 0, 0, 1197, 1198, 7, 8, 0, 0, 1198, 258, 1, 0, 0, 0, 1199, 1200, 5, 47, 0, 0, 1200, 1201, 5, 47, 0, 0, 1201, 1205, 1, 0, 0, 0, 1202, 1204, 8, 9, 0, 0, 1203, 1202, 1, 0, 0, 0, 1204, 1207, 1, 0, 0, 0, 1205, 1203, 1, 0, 0, 0, 1205, 1206, 1, 0, 0, 0, 1206, 1208, 1, 0, 0, 0, 1207, 1205, 1, 0, 0, 0, 1208, 1209, 6, 129, 0, 0, 1209, 260, 1, 0, 0, 0, 1210, 1211, 5, 47, 0, 0, 1211, 1212, 5, 42, 0, 0, 1212, 1216, 1, 0, 0, 0, 1213, 1215, 9, 0, 0, 0, 1214, 1213, 1, 0, 0, 0, 1215, 1218, 1, 0, 0, 0, 1216, 1217, 1, 0, 0, 0, 1216, 1214, 1, 0, 0, 0, 1217, 1219, 1, 0, 0, 0, 1218, 1216, 1, 0, 0, 0, 1219, 1220, 5, 42, 0, 0, 1220, 1221, 5, 47, 0, 0, 1221, 1222, 1, 0, 0, 0, 1222, 1223, 6, 130, 0, 0, 1223, 262, 1, 0, 0, 0, 1224, 1226, 7, 10, 0, 0, 1225, 1224, 1, 0, 0, 0, 1226, 1227, 1, 0, 0, 0, 1227, 1225, 1, 0, 0, 0, 1227, 1228, 1, 0, 0, 0, 1228, 1229, 1, 0, 0, 0, 1229, 1230, 6, 131, 0, 0, 1230, 264, 1, 0, 0, 0, 18, 0, 1131, 1136, 1139, 1146, 1149, 1155, 1157, 1161, 1166, 1168, 1174, 1180, 1182, 1195, 1205, 1216, 1227, 1, 0, 1, 0] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapabilityLexer.tokens b/src/capability-language/generated/QuixosCapabilityLexer.tokens index ed12769..d498b01 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.tokens +++ b/src/capability-language/generated/QuixosCapabilityLexer.tokens @@ -1,229 +1,253 @@ WORKSPACE=1 -TYPE=2 -OBJECT=3 -STORABLE=4 -IMPLEMENTS=5 -REF=6 -FRAGMENT=7 -IMPORT=8 -EXTERNAL=9 -ATOM=10 -INTERFACE=11 -INTERFACES=12 -PACKAGE=13 -VALUE=14 -RELATION=15 -OPERATION=16 -FUNCTION=17 -CONSTRUCTOR=18 -CONSTRUCTS=19 -INPUT=20 -CONFORM=21 -AS=22 -BIND=23 -STATIC=24 -TO=25 -PRIVATE=26 -SHARED=27 -STATE=28 -EDGE=29 -PROJECTION=30 -WITH=31 -USING=32 -VIA=33 -MATERIALIZE=34 -IF=35 -ABSENT=36 -ON=37 -POLICY=38 -DEFAULT=39 -SOURCE=40 -REPOSITORY=41 -COMMIT=42 -REVISION=43 -SEMANTIC_MAJOR=44 -ON_DELETE=45 -RETAIN_OTHER=46 -KEYED=47 -PUBLIC_TRAVERSAL=48 -ID=49 -DOC=50 -MODE=51 -EMITS=52 -RECEIVER=53 -REQUIRES=54 -ANY=55 -GET=56 -SET=57 -WATCH=58 -START=59 -STOP=60 -READ=61 -WRITE=62 -RESOLVE=63 -CONNECT=64 -DISCONNECT=65 -CALL=66 -WATCH_START=67 -WATCH_STOP=68 -SUBSCRIBE=69 -UNSUBSCRIBE=70 -OPTIMISTIC_REGISTER=71 -CRDT=72 -OPTIONAL_ONE=73 -EXACTLY_ONE=74 -MANY_UNIQUE=75 -MANY=76 -ORDERED=77 -UNIT=78 -WATCH_HANDLE=79 -MESSAGE=80 -ATOM_REF=81 -INTERFACE_REF=82 -OPTIONAL=83 -LIST=84 -RECORD=85 -BOOL=86 -BYTES=87 -DOUBLE=88 -INT32=89 -INT64=90 -STRING=91 -UINT32=92 -UINT64=93 -TRUE=94 -FALSE=95 -NULL=96 -ARROW=97 -COLON=98 -SEMI=99 -COMMA=100 -DOT=101 -LBRACE=102 -RBRACE=103 -LBRACK=104 -RBRACK=105 -LPAREN=106 -RPAREN=107 -LT=108 -GT=109 -AMP=110 -EQUAL=111 -INTEGER=112 -JSON_NUMBER=113 -IDENTIFIER=114 -STRING_LITERAL=115 -LINE_COMMENT=116 -BLOCK_COMMENT=117 -WS=118 +QUERY=2 +SPECIALIZE=3 +ROOT=4 +DOCUMENT=5 +FRAGMENTS=6 +VIEW=7 +MAX=8 +ALLOW=9 +POLL=10 +QUERYABLE=11 +RPC=12 +QUERY_REASON=13 +TYPE=14 +OBJECT=15 +STORABLE=16 +IMPLEMENTS=17 +REF=18 +FRAGMENT=19 +IMPORT=20 +EXTERNAL=21 +ATOM=22 +INTERFACE=23 +INTERFACES=24 +PACKAGE=25 +VALUE=26 +RELATION=27 +OPERATION=28 +FUNCTION=29 +CONSTRUCTOR=30 +CONSTRUCTS=31 +INPUT=32 +CONFORM=33 +AS=34 +BIND=35 +STATIC=36 +TO=37 +PRIVATE=38 +SHARED=39 +STATE=40 +EDGE=41 +PROJECTION=42 +WITH=43 +USING=44 +VIA=45 +MATERIALIZE=46 +IF=47 +ABSENT=48 +ON=49 +POLICY=50 +DEFAULT=51 +SOURCE=52 +REPOSITORY=53 +COMMIT=54 +REVISION=55 +SEMANTIC_MAJOR=56 +ON_DELETE=57 +RETAIN_OTHER=58 +KEYED=59 +PUBLIC_TRAVERSAL=60 +ID=61 +DOC=62 +MODE=63 +EMITS=64 +RECEIVER=65 +REQUIRES=66 +ANY=67 +GET=68 +SET=69 +WATCH=70 +START=71 +STOP=72 +READ=73 +WRITE=74 +RESOLVE=75 +CONNECT=76 +DISCONNECT=77 +CALL=78 +WATCH_START=79 +WATCH_STOP=80 +SUBSCRIBE=81 +UNSUBSCRIBE=82 +OPTIMISTIC_REGISTER=83 +CRDT=84 +OPTIONAL_ONE=85 +EXACTLY_ONE=86 +MANY_UNIQUE=87 +MANY=88 +ORDERED=89 +UNIT=90 +WATCH_HANDLE=91 +MESSAGE=92 +ATOM_REF=93 +INTERFACE_REF=94 +OPTIONAL=95 +LIST=96 +RECORD=97 +BOOL=98 +BYTES=99 +DOUBLE=100 +INT32=101 +INT64=102 +STRING=103 +UINT32=104 +UINT64=105 +TRUE=106 +FALSE=107 +NULL=108 +ARROW=109 +COLON=110 +SEMI=111 +COMMA=112 +DOT=113 +LBRACE=114 +RBRACE=115 +LBRACK=116 +RBRACK=117 +LPAREN=118 +RPAREN=119 +LT=120 +GT=121 +AMP=122 +EQUAL=123 +INTEGER=124 +JSON_NUMBER=125 +IDENTIFIER=126 +STRING_LITERAL=127 +LINE_COMMENT=128 +BLOCK_COMMENT=129 +WS=130 'workspace'=1 -'type'=2 -'object'=3 -'storable'=4 -'implements'=5 -'ref'=6 -'fragment'=7 -'import'=8 -'external'=9 -'atom'=10 -'interface'=11 -'interfaces'=12 -'package'=13 -'value'=14 -'relation'=15 -'operation'=16 -'function'=17 -'constructor'=18 -'constructs'=19 -'input'=20 -'conform'=21 -'as'=22 -'bind'=23 -'static'=24 -'to'=25 -'private'=26 -'shared'=27 -'state'=28 -'edge'=29 -'projection'=30 -'with'=31 -'using'=32 -'via'=33 -'materialize'=34 -'if'=35 -'absent'=36 -'on'=37 -'policy'=38 -'default'=39 -'source'=40 -'repository'=41 -'commit'=42 -'revision'=43 -'semantic-major'=44 -'on-delete'=45 -'retain-other'=46 -'keyed'=47 -'public-traversal'=48 -'id'=49 -'doc'=50 -'mode'=51 -'emits'=52 -'receiver'=53 -'requires'=54 -'any'=55 -'get'=56 -'set'=57 -'watch'=58 -'start'=59 -'stop'=60 -'read'=61 -'write'=62 -'resolve'=63 -'connect'=64 -'disconnect'=65 -'call'=66 -'watch-start'=67 -'watch-stop'=68 -'subscribe'=69 -'unsubscribe'=70 -'optimistic-register'=71 -'crdt'=72 -'optional-one'=73 -'exactly-one'=74 -'many-unique'=75 -'many'=76 -'ordered'=77 -'unit'=78 -'watch-handle'=79 -'message'=80 -'atom-ref'=81 -'interface-ref'=82 -'optional'=83 -'list'=84 -'record'=85 -'bool'=86 -'bytes'=87 -'double'=88 -'int32'=89 -'int64'=90 -'string'=91 -'uint32'=92 -'uint64'=93 -'true'=94 -'false'=95 -'null'=96 -'->'=97 -':'=98 -';'=99 -','=100 -'.'=101 -'{'=102 -'}'=103 -'['=104 -']'=105 -'('=106 -')'=107 -'<'=108 -'>'=109 -'&'=110 -'='=111 +'query'=2 +'specialize'=3 +'root'=4 +'document'=5 +'fragments'=6 +'view'=7 +'max'=8 +'allow'=9 +'poll'=10 +'queryable'=11 +'rpc'=12 +'query-reason'=13 +'type'=14 +'object'=15 +'storable'=16 +'implements'=17 +'ref'=18 +'fragment'=19 +'import'=20 +'external'=21 +'atom'=22 +'interface'=23 +'interfaces'=24 +'package'=25 +'value'=26 +'relation'=27 +'operation'=28 +'function'=29 +'constructor'=30 +'constructs'=31 +'input'=32 +'conform'=33 +'as'=34 +'bind'=35 +'static'=36 +'to'=37 +'private'=38 +'shared'=39 +'state'=40 +'edge'=41 +'projection'=42 +'with'=43 +'using'=44 +'via'=45 +'materialize'=46 +'if'=47 +'absent'=48 +'on'=49 +'policy'=50 +'default'=51 +'source'=52 +'repository'=53 +'commit'=54 +'revision'=55 +'semantic-major'=56 +'on-delete'=57 +'retain-other'=58 +'keyed'=59 +'public-traversal'=60 +'id'=61 +'doc'=62 +'mode'=63 +'emits'=64 +'receiver'=65 +'requires'=66 +'any'=67 +'get'=68 +'set'=69 +'watch'=70 +'start'=71 +'stop'=72 +'read'=73 +'write'=74 +'resolve'=75 +'connect'=76 +'disconnect'=77 +'call'=78 +'watch-start'=79 +'watch-stop'=80 +'subscribe'=81 +'unsubscribe'=82 +'optimistic-register'=83 +'crdt'=84 +'optional-one'=85 +'exactly-one'=86 +'many-unique'=87 +'many'=88 +'ordered'=89 +'unit'=90 +'watch-handle'=91 +'message'=92 +'atom-ref'=93 +'interface-ref'=94 +'optional'=95 +'list'=96 +'record'=97 +'bool'=98 +'bytes'=99 +'double'=100 +'int32'=101 +'int64'=102 +'string'=103 +'uint32'=104 +'uint64'=105 +'true'=106 +'false'=107 +'null'=108 +'->'=109 +':'=110 +';'=111 +','=112 +'.'=113 +'{'=114 +'}'=115 +'['=116 +']'=117 +'('=118 +')'=119 +'<'=120 +'>'=121 +'&'=122 +'='=123 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.ts b/src/capability-language/generated/QuixosCapabilityLexer.ts index c3baf4c..cc84617 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.ts +++ b/src/capability-language/generated/QuixosCapabilityLexer.ts @@ -5,130 +5,144 @@ import { Token } from "antlr4ng"; export class QuixosCapabilityLexer extends antlr.Lexer { public static readonly WORKSPACE = 1; - public static readonly TYPE = 2; - public static readonly OBJECT = 3; - public static readonly STORABLE = 4; - public static readonly IMPLEMENTS = 5; - public static readonly REF = 6; - public static readonly FRAGMENT = 7; - public static readonly IMPORT = 8; - public static readonly EXTERNAL = 9; - public static readonly ATOM = 10; - public static readonly INTERFACE = 11; - public static readonly INTERFACES = 12; - public static readonly PACKAGE = 13; - public static readonly VALUE = 14; - public static readonly RELATION = 15; - public static readonly OPERATION = 16; - public static readonly FUNCTION = 17; - public static readonly CONSTRUCTOR = 18; - public static readonly CONSTRUCTS = 19; - public static readonly INPUT = 20; - public static readonly CONFORM = 21; - public static readonly AS = 22; - public static readonly BIND = 23; - public static readonly STATIC = 24; - public static readonly TO = 25; - public static readonly PRIVATE = 26; - public static readonly SHARED = 27; - public static readonly STATE = 28; - public static readonly EDGE = 29; - public static readonly PROJECTION = 30; - public static readonly WITH = 31; - public static readonly USING = 32; - public static readonly VIA = 33; - public static readonly MATERIALIZE = 34; - public static readonly IF = 35; - public static readonly ABSENT = 36; - public static readonly ON = 37; - public static readonly POLICY = 38; - public static readonly DEFAULT = 39; - public static readonly SOURCE = 40; - public static readonly REPOSITORY = 41; - public static readonly COMMIT = 42; - public static readonly REVISION = 43; - public static readonly SEMANTIC_MAJOR = 44; - public static readonly ON_DELETE = 45; - public static readonly RETAIN_OTHER = 46; - public static readonly KEYED = 47; - public static readonly PUBLIC_TRAVERSAL = 48; - public static readonly ID = 49; - public static readonly DOC = 50; - public static readonly MODE = 51; - public static readonly EMITS = 52; - public static readonly RECEIVER = 53; - public static readonly REQUIRES = 54; - public static readonly ANY = 55; - public static readonly GET = 56; - public static readonly SET = 57; - public static readonly WATCH = 58; - public static readonly START = 59; - public static readonly STOP = 60; - public static readonly READ = 61; - public static readonly WRITE = 62; - public static readonly RESOLVE = 63; - public static readonly CONNECT = 64; - public static readonly DISCONNECT = 65; - public static readonly CALL = 66; - public static readonly WATCH_START = 67; - public static readonly WATCH_STOP = 68; - public static readonly SUBSCRIBE = 69; - public static readonly UNSUBSCRIBE = 70; - public static readonly OPTIMISTIC_REGISTER = 71; - public static readonly CRDT = 72; - public static readonly OPTIONAL_ONE = 73; - public static readonly EXACTLY_ONE = 74; - public static readonly MANY_UNIQUE = 75; - public static readonly MANY = 76; - public static readonly ORDERED = 77; - public static readonly UNIT = 78; - public static readonly WATCH_HANDLE = 79; - public static readonly MESSAGE = 80; - public static readonly ATOM_REF = 81; - public static readonly INTERFACE_REF = 82; - public static readonly OPTIONAL = 83; - public static readonly LIST = 84; - public static readonly RECORD = 85; - public static readonly BOOL = 86; - public static readonly BYTES = 87; - public static readonly DOUBLE = 88; - public static readonly INT32 = 89; - public static readonly INT64 = 90; - public static readonly STRING = 91; - public static readonly UINT32 = 92; - public static readonly UINT64 = 93; - public static readonly TRUE = 94; - public static readonly FALSE = 95; - public static readonly NULL = 96; - public static readonly ARROW = 97; - public static readonly COLON = 98; - public static readonly SEMI = 99; - public static readonly COMMA = 100; - public static readonly DOT = 101; - public static readonly LBRACE = 102; - public static readonly RBRACE = 103; - public static readonly LBRACK = 104; - public static readonly RBRACK = 105; - public static readonly LPAREN = 106; - public static readonly RPAREN = 107; - public static readonly LT = 108; - public static readonly GT = 109; - public static readonly AMP = 110; - public static readonly EQUAL = 111; - public static readonly INTEGER = 112; - public static readonly JSON_NUMBER = 113; - public static readonly IDENTIFIER = 114; - public static readonly STRING_LITERAL = 115; - public static readonly LINE_COMMENT = 116; - public static readonly BLOCK_COMMENT = 117; - public static readonly WS = 118; + public static readonly QUERY = 2; + public static readonly SPECIALIZE = 3; + public static readonly ROOT = 4; + public static readonly DOCUMENT = 5; + public static readonly FRAGMENTS = 6; + public static readonly VIEW = 7; + public static readonly MAX = 8; + public static readonly ALLOW = 9; + public static readonly POLL = 10; + public static readonly QUERYABLE = 11; + public static readonly RPC = 12; + public static readonly QUERY_REASON = 13; + public static readonly TYPE = 14; + public static readonly OBJECT = 15; + public static readonly STORABLE = 16; + public static readonly IMPLEMENTS = 17; + public static readonly REF = 18; + public static readonly FRAGMENT = 19; + public static readonly IMPORT = 20; + public static readonly EXTERNAL = 21; + public static readonly ATOM = 22; + public static readonly INTERFACE = 23; + public static readonly INTERFACES = 24; + public static readonly PACKAGE = 25; + public static readonly VALUE = 26; + public static readonly RELATION = 27; + public static readonly OPERATION = 28; + public static readonly FUNCTION = 29; + public static readonly CONSTRUCTOR = 30; + public static readonly CONSTRUCTS = 31; + public static readonly INPUT = 32; + public static readonly CONFORM = 33; + public static readonly AS = 34; + public static readonly BIND = 35; + public static readonly STATIC = 36; + public static readonly TO = 37; + public static readonly PRIVATE = 38; + public static readonly SHARED = 39; + public static readonly STATE = 40; + public static readonly EDGE = 41; + public static readonly PROJECTION = 42; + public static readonly WITH = 43; + public static readonly USING = 44; + public static readonly VIA = 45; + public static readonly MATERIALIZE = 46; + public static readonly IF = 47; + public static readonly ABSENT = 48; + public static readonly ON = 49; + public static readonly POLICY = 50; + public static readonly DEFAULT = 51; + public static readonly SOURCE = 52; + public static readonly REPOSITORY = 53; + public static readonly COMMIT = 54; + public static readonly REVISION = 55; + public static readonly SEMANTIC_MAJOR = 56; + public static readonly ON_DELETE = 57; + public static readonly RETAIN_OTHER = 58; + public static readonly KEYED = 59; + public static readonly PUBLIC_TRAVERSAL = 60; + public static readonly ID = 61; + public static readonly DOC = 62; + public static readonly MODE = 63; + public static readonly EMITS = 64; + public static readonly RECEIVER = 65; + public static readonly REQUIRES = 66; + public static readonly ANY = 67; + public static readonly GET = 68; + public static readonly SET = 69; + public static readonly WATCH = 70; + public static readonly START = 71; + public static readonly STOP = 72; + public static readonly READ = 73; + public static readonly WRITE = 74; + public static readonly RESOLVE = 75; + public static readonly CONNECT = 76; + public static readonly DISCONNECT = 77; + public static readonly CALL = 78; + public static readonly WATCH_START = 79; + public static readonly WATCH_STOP = 80; + public static readonly SUBSCRIBE = 81; + public static readonly UNSUBSCRIBE = 82; + public static readonly OPTIMISTIC_REGISTER = 83; + public static readonly CRDT = 84; + public static readonly OPTIONAL_ONE = 85; + public static readonly EXACTLY_ONE = 86; + public static readonly MANY_UNIQUE = 87; + public static readonly MANY = 88; + public static readonly ORDERED = 89; + public static readonly UNIT = 90; + public static readonly WATCH_HANDLE = 91; + public static readonly MESSAGE = 92; + public static readonly ATOM_REF = 93; + public static readonly INTERFACE_REF = 94; + public static readonly OPTIONAL = 95; + public static readonly LIST = 96; + public static readonly RECORD = 97; + public static readonly BOOL = 98; + public static readonly BYTES = 99; + public static readonly DOUBLE = 100; + public static readonly INT32 = 101; + public static readonly INT64 = 102; + public static readonly STRING = 103; + public static readonly UINT32 = 104; + public static readonly UINT64 = 105; + public static readonly TRUE = 106; + public static readonly FALSE = 107; + public static readonly NULL = 108; + public static readonly ARROW = 109; + public static readonly COLON = 110; + public static readonly SEMI = 111; + public static readonly COMMA = 112; + public static readonly DOT = 113; + public static readonly LBRACE = 114; + public static readonly RBRACE = 115; + public static readonly LBRACK = 116; + public static readonly RBRACK = 117; + public static readonly LPAREN = 118; + public static readonly RPAREN = 119; + public static readonly LT = 120; + public static readonly GT = 121; + public static readonly AMP = 122; + public static readonly EQUAL = 123; + public static readonly INTEGER = 124; + public static readonly JSON_NUMBER = 125; + public static readonly IDENTIFIER = 126; + public static readonly STRING_LITERAL = 127; + public static readonly LINE_COMMENT = 128; + public static readonly BLOCK_COMMENT = 129; + public static readonly WS = 130; public static readonly channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ]; public static readonly literalNames = [ - null, "'workspace'", "'type'", "'object'", "'storable'", "'implements'", + null, "'workspace'", "'query'", "'specialize'", "'root'", "'document'", + "'fragments'", "'view'", "'max'", "'allow'", "'poll'", "'queryable'", + "'rpc'", "'query-reason'", "'type'", "'object'", "'storable'", "'implements'", "'ref'", "'fragment'", "'import'", "'external'", "'atom'", "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", "'conform'", @@ -150,25 +164,27 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", - "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", - "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", - "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", - "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "RECORD", "BOOL", - "BYTES", "DOUBLE", "INT32", "INT64", "STRING", "UINT32", "UINT64", - "TRUE", "FALSE", "NULL", "ARROW", "COLON", "SEMI", "COMMA", "DOT", - "LBRACE", "RBRACE", "LBRACK", "RBRACK", "LPAREN", "RPAREN", "LT", - "GT", "AMP", "EQUAL", "INTEGER", "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", - "LINE_COMMENT", "BLOCK_COMMENT", "WS" + null, "WORKSPACE", "QUERY", "SPECIALIZE", "ROOT", "DOCUMENT", "FRAGMENTS", + "VIEW", "MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", + "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", + "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", + "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", + "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", + "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", + "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", + "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", + "KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER", + "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", + "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", + "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", + "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", + "OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32", + "INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", + "ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", + "RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER", + "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", + "WS" ]; public static readonly modeNames = [ @@ -176,25 +192,27 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly ruleNames = [ - "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", - "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", - "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", - "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", - "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "RECORD", "BOOL", - "BYTES", "DOUBLE", "INT32", "INT64", "STRING", "UINT32", "UINT64", - "TRUE", "FALSE", "NULL", "ARROW", "COLON", "SEMI", "COMMA", "DOT", - "LBRACE", "RBRACE", "LBRACK", "RBRACK", "LPAREN", "RPAREN", "LT", - "GT", "AMP", "EQUAL", "INTEGER", "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", - "ESC", "HEX", "LINE_COMMENT", "BLOCK_COMMENT", "WS", + "WORKSPACE", "QUERY", "SPECIALIZE", "ROOT", "DOCUMENT", "FRAGMENTS", + "VIEW", "MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", + "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", + "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", + "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", + "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", + "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", + "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", + "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", + "KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER", + "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", + "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", + "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", + "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", + "OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32", + "INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", + "ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", + "RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER", + "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "ESC", "HEX", "LINE_COMMENT", + "BLOCK_COMMENT", "WS", ]; @@ -216,7 +234,7 @@ export class QuixosCapabilityLexer extends antlr.Lexer { public get modeNames(): string[] { return QuixosCapabilityLexer.modeNames; } public static readonly _serializedATN: number[] = [ - 4,0,118,1119,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7, + 4,0,130,1231,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7, 5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12, 2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19, 7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25, @@ -235,391 +253,434 @@ export class QuixosCapabilityLexer extends antlr.Lexer { 7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108, 2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114, 7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119, - 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2, - 1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4, - 1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,6,1,6, - 1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8, - 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1, - 10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1, - 11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1, - 13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1, - 14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1, - 16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1, - 17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1, - 18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1, - 20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1, - 22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1, - 25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1, - 27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1, - 29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1, - 30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1, - 33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1, - 35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1, - 37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1, - 39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1, - 40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1, - 42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1, - 43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1, - 44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1, - 45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1, - 47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1, - 47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1, - 50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1, - 52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1, - 54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,57,1, - 57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1, - 59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1, - 61,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1, - 63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1, - 64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1, - 66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,1, - 67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1, - 68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1, - 70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1, - 70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,72,1, - 72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1, - 73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1, - 74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1, - 75,1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1, - 77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1, - 78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1, - 80,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1, - 81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1, - 82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1, - 84,1,84,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1, - 87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1, - 89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1, - 91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1, - 92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1, - 95,1,95,1,95,1,95,1,96,1,96,1,96,1,97,1,97,1,98,1,98,1,99,1,99,1, - 100,1,100,1,101,1,101,1,102,1,102,1,103,1,103,1,104,1,104,1,105, - 1,105,1,106,1,106,1,107,1,107,1,108,1,108,1,109,1,109,1,110,1,110, - 1,111,3,111,1020,8,111,1,111,4,111,1023,8,111,11,111,12,111,1024, - 1,112,3,112,1028,8,112,1,112,1,112,1,112,5,112,1033,8,112,10,112, - 12,112,1036,9,112,3,112,1038,8,112,1,112,1,112,4,112,1042,8,112, - 11,112,12,112,1043,3,112,1046,8,112,1,112,1,112,3,112,1050,8,112, - 1,112,4,112,1053,8,112,11,112,12,112,1054,3,112,1057,8,112,1,113, - 1,113,5,113,1061,8,113,10,113,12,113,1064,9,113,1,114,1,114,1,114, - 5,114,1069,8,114,10,114,12,114,1072,9,114,1,114,1,114,1,115,1,115, - 1,115,1,115,1,115,1,115,1,115,1,115,3,115,1084,8,115,1,116,1,116, - 1,117,1,117,1,117,1,117,5,117,1092,8,117,10,117,12,117,1095,9,117, - 1,117,1,117,1,118,1,118,1,118,1,118,5,118,1103,8,118,10,118,12,118, - 1106,9,118,1,118,1,118,1,118,1,118,1,118,1,119,4,119,1114,8,119, - 11,119,12,119,1115,1,119,1,119,1,1104,0,120,1,1,3,2,5,3,7,4,9,5, - 11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33, - 17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55, - 28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77, - 39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99, - 50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59, - 119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137, - 69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78, - 157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175, - 88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97, - 195,98,197,99,199,100,201,101,203,102,205,103,207,104,209,105,211, - 106,213,107,215,108,217,109,219,110,221,111,223,112,225,113,227, - 114,229,115,231,0,233,0,235,116,237,117,239,118,1,0,11,1,0,48,57, - 1,0,49,57,2,0,69,69,101,101,2,0,43,43,45,45,3,0,65,90,95,95,97,122, - 4,0,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,8,0,34, - 34,47,47,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57,65, - 70,97,102,2,0,10,10,13,13,3,0,9,10,13,13,32,32,1133,0,1,1,0,0,0, - 0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13, - 1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23, - 1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33, - 1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43, - 1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53, - 1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63, - 1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73, - 1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83, - 1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93, - 1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103, - 1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0, - 0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1, - 0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0, - 131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0, - 0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149, - 1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0, - 0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1, - 0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0, - 177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0, - 0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195, - 1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0, - 0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1, - 0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0, - 223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,235,1,0, - 0,0,0,237,1,0,0,0,0,239,1,0,0,0,1,241,1,0,0,0,3,251,1,0,0,0,5,256, - 1,0,0,0,7,263,1,0,0,0,9,272,1,0,0,0,11,283,1,0,0,0,13,287,1,0,0, - 0,15,296,1,0,0,0,17,303,1,0,0,0,19,312,1,0,0,0,21,317,1,0,0,0,23, - 327,1,0,0,0,25,338,1,0,0,0,27,346,1,0,0,0,29,352,1,0,0,0,31,361, - 1,0,0,0,33,371,1,0,0,0,35,380,1,0,0,0,37,392,1,0,0,0,39,403,1,0, - 0,0,41,409,1,0,0,0,43,417,1,0,0,0,45,420,1,0,0,0,47,425,1,0,0,0, - 49,432,1,0,0,0,51,435,1,0,0,0,53,443,1,0,0,0,55,450,1,0,0,0,57,456, - 1,0,0,0,59,461,1,0,0,0,61,472,1,0,0,0,63,477,1,0,0,0,65,483,1,0, - 0,0,67,487,1,0,0,0,69,499,1,0,0,0,71,502,1,0,0,0,73,509,1,0,0,0, - 75,512,1,0,0,0,77,519,1,0,0,0,79,527,1,0,0,0,81,534,1,0,0,0,83,545, - 1,0,0,0,85,552,1,0,0,0,87,561,1,0,0,0,89,576,1,0,0,0,91,586,1,0, - 0,0,93,599,1,0,0,0,95,605,1,0,0,0,97,622,1,0,0,0,99,625,1,0,0,0, - 101,629,1,0,0,0,103,634,1,0,0,0,105,640,1,0,0,0,107,649,1,0,0,0, - 109,658,1,0,0,0,111,662,1,0,0,0,113,666,1,0,0,0,115,670,1,0,0,0, - 117,676,1,0,0,0,119,682,1,0,0,0,121,687,1,0,0,0,123,692,1,0,0,0, - 125,698,1,0,0,0,127,706,1,0,0,0,129,714,1,0,0,0,131,725,1,0,0,0, - 133,730,1,0,0,0,135,742,1,0,0,0,137,753,1,0,0,0,139,763,1,0,0,0, - 141,775,1,0,0,0,143,795,1,0,0,0,145,800,1,0,0,0,147,813,1,0,0,0, - 149,825,1,0,0,0,151,837,1,0,0,0,153,842,1,0,0,0,155,850,1,0,0,0, - 157,855,1,0,0,0,159,868,1,0,0,0,161,876,1,0,0,0,163,885,1,0,0,0, - 165,899,1,0,0,0,167,908,1,0,0,0,169,913,1,0,0,0,171,920,1,0,0,0, - 173,925,1,0,0,0,175,931,1,0,0,0,177,938,1,0,0,0,179,944,1,0,0,0, - 181,950,1,0,0,0,183,957,1,0,0,0,185,964,1,0,0,0,187,971,1,0,0,0, - 189,976,1,0,0,0,191,982,1,0,0,0,193,987,1,0,0,0,195,990,1,0,0,0, - 197,992,1,0,0,0,199,994,1,0,0,0,201,996,1,0,0,0,203,998,1,0,0,0, - 205,1000,1,0,0,0,207,1002,1,0,0,0,209,1004,1,0,0,0,211,1006,1,0, - 0,0,213,1008,1,0,0,0,215,1010,1,0,0,0,217,1012,1,0,0,0,219,1014, - 1,0,0,0,221,1016,1,0,0,0,223,1019,1,0,0,0,225,1027,1,0,0,0,227,1058, - 1,0,0,0,229,1065,1,0,0,0,231,1075,1,0,0,0,233,1085,1,0,0,0,235,1087, - 1,0,0,0,237,1098,1,0,0,0,239,1113,1,0,0,0,241,242,5,119,0,0,242, - 243,5,111,0,0,243,244,5,114,0,0,244,245,5,107,0,0,245,246,5,115, - 0,0,246,247,5,112,0,0,247,248,5,97,0,0,248,249,5,99,0,0,249,250, - 5,101,0,0,250,2,1,0,0,0,251,252,5,116,0,0,252,253,5,121,0,0,253, - 254,5,112,0,0,254,255,5,101,0,0,255,4,1,0,0,0,256,257,5,111,0,0, - 257,258,5,98,0,0,258,259,5,106,0,0,259,260,5,101,0,0,260,261,5,99, - 0,0,261,262,5,116,0,0,262,6,1,0,0,0,263,264,5,115,0,0,264,265,5, - 116,0,0,265,266,5,111,0,0,266,267,5,114,0,0,267,268,5,97,0,0,268, - 269,5,98,0,0,269,270,5,108,0,0,270,271,5,101,0,0,271,8,1,0,0,0,272, - 273,5,105,0,0,273,274,5,109,0,0,274,275,5,112,0,0,275,276,5,108, - 0,0,276,277,5,101,0,0,277,278,5,109,0,0,278,279,5,101,0,0,279,280, - 5,110,0,0,280,281,5,116,0,0,281,282,5,115,0,0,282,10,1,0,0,0,283, - 284,5,114,0,0,284,285,5,101,0,0,285,286,5,102,0,0,286,12,1,0,0,0, - 287,288,5,102,0,0,288,289,5,114,0,0,289,290,5,97,0,0,290,291,5,103, - 0,0,291,292,5,109,0,0,292,293,5,101,0,0,293,294,5,110,0,0,294,295, - 5,116,0,0,295,14,1,0,0,0,296,297,5,105,0,0,297,298,5,109,0,0,298, - 299,5,112,0,0,299,300,5,111,0,0,300,301,5,114,0,0,301,302,5,116, - 0,0,302,16,1,0,0,0,303,304,5,101,0,0,304,305,5,120,0,0,305,306,5, - 116,0,0,306,307,5,101,0,0,307,308,5,114,0,0,308,309,5,110,0,0,309, - 310,5,97,0,0,310,311,5,108,0,0,311,18,1,0,0,0,312,313,5,97,0,0,313, - 314,5,116,0,0,314,315,5,111,0,0,315,316,5,109,0,0,316,20,1,0,0,0, - 317,318,5,105,0,0,318,319,5,110,0,0,319,320,5,116,0,0,320,321,5, - 101,0,0,321,322,5,114,0,0,322,323,5,102,0,0,323,324,5,97,0,0,324, - 325,5,99,0,0,325,326,5,101,0,0,326,22,1,0,0,0,327,328,5,105,0,0, - 328,329,5,110,0,0,329,330,5,116,0,0,330,331,5,101,0,0,331,332,5, - 114,0,0,332,333,5,102,0,0,333,334,5,97,0,0,334,335,5,99,0,0,335, - 336,5,101,0,0,336,337,5,115,0,0,337,24,1,0,0,0,338,339,5,112,0,0, - 339,340,5,97,0,0,340,341,5,99,0,0,341,342,5,107,0,0,342,343,5,97, - 0,0,343,344,5,103,0,0,344,345,5,101,0,0,345,26,1,0,0,0,346,347,5, - 118,0,0,347,348,5,97,0,0,348,349,5,108,0,0,349,350,5,117,0,0,350, - 351,5,101,0,0,351,28,1,0,0,0,352,353,5,114,0,0,353,354,5,101,0,0, - 354,355,5,108,0,0,355,356,5,97,0,0,356,357,5,116,0,0,357,358,5,105, - 0,0,358,359,5,111,0,0,359,360,5,110,0,0,360,30,1,0,0,0,361,362,5, - 111,0,0,362,363,5,112,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365, - 366,5,97,0,0,366,367,5,116,0,0,367,368,5,105,0,0,368,369,5,111,0, - 0,369,370,5,110,0,0,370,32,1,0,0,0,371,372,5,102,0,0,372,373,5,117, - 0,0,373,374,5,110,0,0,374,375,5,99,0,0,375,376,5,116,0,0,376,377, - 5,105,0,0,377,378,5,111,0,0,378,379,5,110,0,0,379,34,1,0,0,0,380, - 381,5,99,0,0,381,382,5,111,0,0,382,383,5,110,0,0,383,384,5,115,0, - 0,384,385,5,116,0,0,385,386,5,114,0,0,386,387,5,117,0,0,387,388, - 5,99,0,0,388,389,5,116,0,0,389,390,5,111,0,0,390,391,5,114,0,0,391, - 36,1,0,0,0,392,393,5,99,0,0,393,394,5,111,0,0,394,395,5,110,0,0, - 395,396,5,115,0,0,396,397,5,116,0,0,397,398,5,114,0,0,398,399,5, - 117,0,0,399,400,5,99,0,0,400,401,5,116,0,0,401,402,5,115,0,0,402, - 38,1,0,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,112,0,0, - 406,407,5,117,0,0,407,408,5,116,0,0,408,40,1,0,0,0,409,410,5,99, - 0,0,410,411,5,111,0,0,411,412,5,110,0,0,412,413,5,102,0,0,413,414, - 5,111,0,0,414,415,5,114,0,0,415,416,5,109,0,0,416,42,1,0,0,0,417, - 418,5,97,0,0,418,419,5,115,0,0,419,44,1,0,0,0,420,421,5,98,0,0,421, - 422,5,105,0,0,422,423,5,110,0,0,423,424,5,100,0,0,424,46,1,0,0,0, - 425,426,5,115,0,0,426,427,5,116,0,0,427,428,5,97,0,0,428,429,5,116, - 0,0,429,430,5,105,0,0,430,431,5,99,0,0,431,48,1,0,0,0,432,433,5, - 116,0,0,433,434,5,111,0,0,434,50,1,0,0,0,435,436,5,112,0,0,436,437, - 5,114,0,0,437,438,5,105,0,0,438,439,5,118,0,0,439,440,5,97,0,0,440, - 441,5,116,0,0,441,442,5,101,0,0,442,52,1,0,0,0,443,444,5,115,0,0, - 444,445,5,104,0,0,445,446,5,97,0,0,446,447,5,114,0,0,447,448,5,101, - 0,0,448,449,5,100,0,0,449,54,1,0,0,0,450,451,5,115,0,0,451,452,5, - 116,0,0,452,453,5,97,0,0,453,454,5,116,0,0,454,455,5,101,0,0,455, - 56,1,0,0,0,456,457,5,101,0,0,457,458,5,100,0,0,458,459,5,103,0,0, - 459,460,5,101,0,0,460,58,1,0,0,0,461,462,5,112,0,0,462,463,5,114, - 0,0,463,464,5,111,0,0,464,465,5,106,0,0,465,466,5,101,0,0,466,467, - 5,99,0,0,467,468,5,116,0,0,468,469,5,105,0,0,469,470,5,111,0,0,470, - 471,5,110,0,0,471,60,1,0,0,0,472,473,5,119,0,0,473,474,5,105,0,0, - 474,475,5,116,0,0,475,476,5,104,0,0,476,62,1,0,0,0,477,478,5,117, - 0,0,478,479,5,115,0,0,479,480,5,105,0,0,480,481,5,110,0,0,481,482, - 5,103,0,0,482,64,1,0,0,0,483,484,5,118,0,0,484,485,5,105,0,0,485, - 486,5,97,0,0,486,66,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489, - 490,5,116,0,0,490,491,5,101,0,0,491,492,5,114,0,0,492,493,5,105, - 0,0,493,494,5,97,0,0,494,495,5,108,0,0,495,496,5,105,0,0,496,497, - 5,122,0,0,497,498,5,101,0,0,498,68,1,0,0,0,499,500,5,105,0,0,500, - 501,5,102,0,0,501,70,1,0,0,0,502,503,5,97,0,0,503,504,5,98,0,0,504, - 505,5,115,0,0,505,506,5,101,0,0,506,507,5,110,0,0,507,508,5,116, - 0,0,508,72,1,0,0,0,509,510,5,111,0,0,510,511,5,110,0,0,511,74,1, - 0,0,0,512,513,5,112,0,0,513,514,5,111,0,0,514,515,5,108,0,0,515, - 516,5,105,0,0,516,517,5,99,0,0,517,518,5,121,0,0,518,76,1,0,0,0, - 519,520,5,100,0,0,520,521,5,101,0,0,521,522,5,102,0,0,522,523,5, - 97,0,0,523,524,5,117,0,0,524,525,5,108,0,0,525,526,5,116,0,0,526, - 78,1,0,0,0,527,528,5,115,0,0,528,529,5,111,0,0,529,530,5,117,0,0, - 530,531,5,114,0,0,531,532,5,99,0,0,532,533,5,101,0,0,533,80,1,0, - 0,0,534,535,5,114,0,0,535,536,5,101,0,0,536,537,5,112,0,0,537,538, - 5,111,0,0,538,539,5,115,0,0,539,540,5,105,0,0,540,541,5,116,0,0, - 541,542,5,111,0,0,542,543,5,114,0,0,543,544,5,121,0,0,544,82,1,0, - 0,0,545,546,5,99,0,0,546,547,5,111,0,0,547,548,5,109,0,0,548,549, - 5,109,0,0,549,550,5,105,0,0,550,551,5,116,0,0,551,84,1,0,0,0,552, - 553,5,114,0,0,553,554,5,101,0,0,554,555,5,118,0,0,555,556,5,105, - 0,0,556,557,5,115,0,0,557,558,5,105,0,0,558,559,5,111,0,0,559,560, - 5,110,0,0,560,86,1,0,0,0,561,562,5,115,0,0,562,563,5,101,0,0,563, - 564,5,109,0,0,564,565,5,97,0,0,565,566,5,110,0,0,566,567,5,116,0, - 0,567,568,5,105,0,0,568,569,5,99,0,0,569,570,5,45,0,0,570,571,5, - 109,0,0,571,572,5,97,0,0,572,573,5,106,0,0,573,574,5,111,0,0,574, - 575,5,114,0,0,575,88,1,0,0,0,576,577,5,111,0,0,577,578,5,110,0,0, - 578,579,5,45,0,0,579,580,5,100,0,0,580,581,5,101,0,0,581,582,5,108, - 0,0,582,583,5,101,0,0,583,584,5,116,0,0,584,585,5,101,0,0,585,90, - 1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,116,0,0,589, - 590,5,97,0,0,590,591,5,105,0,0,591,592,5,110,0,0,592,593,5,45,0, - 0,593,594,5,111,0,0,594,595,5,116,0,0,595,596,5,104,0,0,596,597, - 5,101,0,0,597,598,5,114,0,0,598,92,1,0,0,0,599,600,5,107,0,0,600, - 601,5,101,0,0,601,602,5,121,0,0,602,603,5,101,0,0,603,604,5,100, - 0,0,604,94,1,0,0,0,605,606,5,112,0,0,606,607,5,117,0,0,607,608,5, - 98,0,0,608,609,5,108,0,0,609,610,5,105,0,0,610,611,5,99,0,0,611, - 612,5,45,0,0,612,613,5,116,0,0,613,614,5,114,0,0,614,615,5,97,0, - 0,615,616,5,118,0,0,616,617,5,101,0,0,617,618,5,114,0,0,618,619, - 5,115,0,0,619,620,5,97,0,0,620,621,5,108,0,0,621,96,1,0,0,0,622, - 623,5,105,0,0,623,624,5,100,0,0,624,98,1,0,0,0,625,626,5,100,0,0, - 626,627,5,111,0,0,627,628,5,99,0,0,628,100,1,0,0,0,629,630,5,109, - 0,0,630,631,5,111,0,0,631,632,5,100,0,0,632,633,5,101,0,0,633,102, - 1,0,0,0,634,635,5,101,0,0,635,636,5,109,0,0,636,637,5,105,0,0,637, - 638,5,116,0,0,638,639,5,115,0,0,639,104,1,0,0,0,640,641,5,114,0, - 0,641,642,5,101,0,0,642,643,5,99,0,0,643,644,5,101,0,0,644,645,5, - 105,0,0,645,646,5,118,0,0,646,647,5,101,0,0,647,648,5,114,0,0,648, - 106,1,0,0,0,649,650,5,114,0,0,650,651,5,101,0,0,651,652,5,113,0, - 0,652,653,5,117,0,0,653,654,5,105,0,0,654,655,5,114,0,0,655,656, - 5,101,0,0,656,657,5,115,0,0,657,108,1,0,0,0,658,659,5,97,0,0,659, - 660,5,110,0,0,660,661,5,121,0,0,661,110,1,0,0,0,662,663,5,103,0, - 0,663,664,5,101,0,0,664,665,5,116,0,0,665,112,1,0,0,0,666,667,5, - 115,0,0,667,668,5,101,0,0,668,669,5,116,0,0,669,114,1,0,0,0,670, - 671,5,119,0,0,671,672,5,97,0,0,672,673,5,116,0,0,673,674,5,99,0, - 0,674,675,5,104,0,0,675,116,1,0,0,0,676,677,5,115,0,0,677,678,5, - 116,0,0,678,679,5,97,0,0,679,680,5,114,0,0,680,681,5,116,0,0,681, - 118,1,0,0,0,682,683,5,115,0,0,683,684,5,116,0,0,684,685,5,111,0, - 0,685,686,5,112,0,0,686,120,1,0,0,0,687,688,5,114,0,0,688,689,5, - 101,0,0,689,690,5,97,0,0,690,691,5,100,0,0,691,122,1,0,0,0,692,693, - 5,119,0,0,693,694,5,114,0,0,694,695,5,105,0,0,695,696,5,116,0,0, - 696,697,5,101,0,0,697,124,1,0,0,0,698,699,5,114,0,0,699,700,5,101, - 0,0,700,701,5,115,0,0,701,702,5,111,0,0,702,703,5,108,0,0,703,704, - 5,118,0,0,704,705,5,101,0,0,705,126,1,0,0,0,706,707,5,99,0,0,707, - 708,5,111,0,0,708,709,5,110,0,0,709,710,5,110,0,0,710,711,5,101, - 0,0,711,712,5,99,0,0,712,713,5,116,0,0,713,128,1,0,0,0,714,715,5, - 100,0,0,715,716,5,105,0,0,716,717,5,115,0,0,717,718,5,99,0,0,718, - 719,5,111,0,0,719,720,5,110,0,0,720,721,5,110,0,0,721,722,5,101, - 0,0,722,723,5,99,0,0,723,724,5,116,0,0,724,130,1,0,0,0,725,726,5, - 99,0,0,726,727,5,97,0,0,727,728,5,108,0,0,728,729,5,108,0,0,729, - 132,1,0,0,0,730,731,5,119,0,0,731,732,5,97,0,0,732,733,5,116,0,0, - 733,734,5,99,0,0,734,735,5,104,0,0,735,736,5,45,0,0,736,737,5,115, - 0,0,737,738,5,116,0,0,738,739,5,97,0,0,739,740,5,114,0,0,740,741, - 5,116,0,0,741,134,1,0,0,0,742,743,5,119,0,0,743,744,5,97,0,0,744, - 745,5,116,0,0,745,746,5,99,0,0,746,747,5,104,0,0,747,748,5,45,0, - 0,748,749,5,115,0,0,749,750,5,116,0,0,750,751,5,111,0,0,751,752, - 5,112,0,0,752,136,1,0,0,0,753,754,5,115,0,0,754,755,5,117,0,0,755, - 756,5,98,0,0,756,757,5,115,0,0,757,758,5,99,0,0,758,759,5,114,0, - 0,759,760,5,105,0,0,760,761,5,98,0,0,761,762,5,101,0,0,762,138,1, - 0,0,0,763,764,5,117,0,0,764,765,5,110,0,0,765,766,5,115,0,0,766, - 767,5,117,0,0,767,768,5,98,0,0,768,769,5,115,0,0,769,770,5,99,0, - 0,770,771,5,114,0,0,771,772,5,105,0,0,772,773,5,98,0,0,773,774,5, - 101,0,0,774,140,1,0,0,0,775,776,5,111,0,0,776,777,5,112,0,0,777, - 778,5,116,0,0,778,779,5,105,0,0,779,780,5,109,0,0,780,781,5,105, - 0,0,781,782,5,115,0,0,782,783,5,116,0,0,783,784,5,105,0,0,784,785, - 5,99,0,0,785,786,5,45,0,0,786,787,5,114,0,0,787,788,5,101,0,0,788, - 789,5,103,0,0,789,790,5,105,0,0,790,791,5,115,0,0,791,792,5,116, - 0,0,792,793,5,101,0,0,793,794,5,114,0,0,794,142,1,0,0,0,795,796, - 5,99,0,0,796,797,5,114,0,0,797,798,5,100,0,0,798,799,5,116,0,0,799, - 144,1,0,0,0,800,801,5,111,0,0,801,802,5,112,0,0,802,803,5,116,0, - 0,803,804,5,105,0,0,804,805,5,111,0,0,805,806,5,110,0,0,806,807, - 5,97,0,0,807,808,5,108,0,0,808,809,5,45,0,0,809,810,5,111,0,0,810, - 811,5,110,0,0,811,812,5,101,0,0,812,146,1,0,0,0,813,814,5,101,0, - 0,814,815,5,120,0,0,815,816,5,97,0,0,816,817,5,99,0,0,817,818,5, - 116,0,0,818,819,5,108,0,0,819,820,5,121,0,0,820,821,5,45,0,0,821, - 822,5,111,0,0,822,823,5,110,0,0,823,824,5,101,0,0,824,148,1,0,0, - 0,825,826,5,109,0,0,826,827,5,97,0,0,827,828,5,110,0,0,828,829,5, - 121,0,0,829,830,5,45,0,0,830,831,5,117,0,0,831,832,5,110,0,0,832, - 833,5,105,0,0,833,834,5,113,0,0,834,835,5,117,0,0,835,836,5,101, - 0,0,836,150,1,0,0,0,837,838,5,109,0,0,838,839,5,97,0,0,839,840,5, - 110,0,0,840,841,5,121,0,0,841,152,1,0,0,0,842,843,5,111,0,0,843, - 844,5,114,0,0,844,845,5,100,0,0,845,846,5,101,0,0,846,847,5,114, - 0,0,847,848,5,101,0,0,848,849,5,100,0,0,849,154,1,0,0,0,850,851, - 5,117,0,0,851,852,5,110,0,0,852,853,5,105,0,0,853,854,5,116,0,0, - 854,156,1,0,0,0,855,856,5,119,0,0,856,857,5,97,0,0,857,858,5,116, - 0,0,858,859,5,99,0,0,859,860,5,104,0,0,860,861,5,45,0,0,861,862, - 5,104,0,0,862,863,5,97,0,0,863,864,5,110,0,0,864,865,5,100,0,0,865, - 866,5,108,0,0,866,867,5,101,0,0,867,158,1,0,0,0,868,869,5,109,0, - 0,869,870,5,101,0,0,870,871,5,115,0,0,871,872,5,115,0,0,872,873, - 5,97,0,0,873,874,5,103,0,0,874,875,5,101,0,0,875,160,1,0,0,0,876, - 877,5,97,0,0,877,878,5,116,0,0,878,879,5,111,0,0,879,880,5,109,0, - 0,880,881,5,45,0,0,881,882,5,114,0,0,882,883,5,101,0,0,883,884,5, - 102,0,0,884,162,1,0,0,0,885,886,5,105,0,0,886,887,5,110,0,0,887, - 888,5,116,0,0,888,889,5,101,0,0,889,890,5,114,0,0,890,891,5,102, - 0,0,891,892,5,97,0,0,892,893,5,99,0,0,893,894,5,101,0,0,894,895, - 5,45,0,0,895,896,5,114,0,0,896,897,5,101,0,0,897,898,5,102,0,0,898, - 164,1,0,0,0,899,900,5,111,0,0,900,901,5,112,0,0,901,902,5,116,0, - 0,902,903,5,105,0,0,903,904,5,111,0,0,904,905,5,110,0,0,905,906, - 5,97,0,0,906,907,5,108,0,0,907,166,1,0,0,0,908,909,5,108,0,0,909, - 910,5,105,0,0,910,911,5,115,0,0,911,912,5,116,0,0,912,168,1,0,0, - 0,913,914,5,114,0,0,914,915,5,101,0,0,915,916,5,99,0,0,916,917,5, - 111,0,0,917,918,5,114,0,0,918,919,5,100,0,0,919,170,1,0,0,0,920, - 921,5,98,0,0,921,922,5,111,0,0,922,923,5,111,0,0,923,924,5,108,0, - 0,924,172,1,0,0,0,925,926,5,98,0,0,926,927,5,121,0,0,927,928,5,116, - 0,0,928,929,5,101,0,0,929,930,5,115,0,0,930,174,1,0,0,0,931,932, - 5,100,0,0,932,933,5,111,0,0,933,934,5,117,0,0,934,935,5,98,0,0,935, - 936,5,108,0,0,936,937,5,101,0,0,937,176,1,0,0,0,938,939,5,105,0, - 0,939,940,5,110,0,0,940,941,5,116,0,0,941,942,5,51,0,0,942,943,5, - 50,0,0,943,178,1,0,0,0,944,945,5,105,0,0,945,946,5,110,0,0,946,947, - 5,116,0,0,947,948,5,54,0,0,948,949,5,52,0,0,949,180,1,0,0,0,950, - 951,5,115,0,0,951,952,5,116,0,0,952,953,5,114,0,0,953,954,5,105, - 0,0,954,955,5,110,0,0,955,956,5,103,0,0,956,182,1,0,0,0,957,958, - 5,117,0,0,958,959,5,105,0,0,959,960,5,110,0,0,960,961,5,116,0,0, - 961,962,5,51,0,0,962,963,5,50,0,0,963,184,1,0,0,0,964,965,5,117, - 0,0,965,966,5,105,0,0,966,967,5,110,0,0,967,968,5,116,0,0,968,969, - 5,54,0,0,969,970,5,52,0,0,970,186,1,0,0,0,971,972,5,116,0,0,972, - 973,5,114,0,0,973,974,5,117,0,0,974,975,5,101,0,0,975,188,1,0,0, - 0,976,977,5,102,0,0,977,978,5,97,0,0,978,979,5,108,0,0,979,980,5, - 115,0,0,980,981,5,101,0,0,981,190,1,0,0,0,982,983,5,110,0,0,983, - 984,5,117,0,0,984,985,5,108,0,0,985,986,5,108,0,0,986,192,1,0,0, - 0,987,988,5,45,0,0,988,989,5,62,0,0,989,194,1,0,0,0,990,991,5,58, - 0,0,991,196,1,0,0,0,992,993,5,59,0,0,993,198,1,0,0,0,994,995,5,44, - 0,0,995,200,1,0,0,0,996,997,5,46,0,0,997,202,1,0,0,0,998,999,5,123, - 0,0,999,204,1,0,0,0,1000,1001,5,125,0,0,1001,206,1,0,0,0,1002,1003, - 5,91,0,0,1003,208,1,0,0,0,1004,1005,5,93,0,0,1005,210,1,0,0,0,1006, - 1007,5,40,0,0,1007,212,1,0,0,0,1008,1009,5,41,0,0,1009,214,1,0,0, - 0,1010,1011,5,60,0,0,1011,216,1,0,0,0,1012,1013,5,62,0,0,1013,218, - 1,0,0,0,1014,1015,5,38,0,0,1015,220,1,0,0,0,1016,1017,5,61,0,0,1017, - 222,1,0,0,0,1018,1020,5,45,0,0,1019,1018,1,0,0,0,1019,1020,1,0,0, - 0,1020,1022,1,0,0,0,1021,1023,7,0,0,0,1022,1021,1,0,0,0,1023,1024, - 1,0,0,0,1024,1022,1,0,0,0,1024,1025,1,0,0,0,1025,224,1,0,0,0,1026, - 1028,5,45,0,0,1027,1026,1,0,0,0,1027,1028,1,0,0,0,1028,1037,1,0, - 0,0,1029,1038,5,48,0,0,1030,1034,7,1,0,0,1031,1033,7,0,0,0,1032, - 1031,1,0,0,0,1033,1036,1,0,0,0,1034,1032,1,0,0,0,1034,1035,1,0,0, - 0,1035,1038,1,0,0,0,1036,1034,1,0,0,0,1037,1029,1,0,0,0,1037,1030, - 1,0,0,0,1038,1045,1,0,0,0,1039,1041,5,46,0,0,1040,1042,7,0,0,0,1041, - 1040,1,0,0,0,1042,1043,1,0,0,0,1043,1041,1,0,0,0,1043,1044,1,0,0, - 0,1044,1046,1,0,0,0,1045,1039,1,0,0,0,1045,1046,1,0,0,0,1046,1056, - 1,0,0,0,1047,1049,7,2,0,0,1048,1050,7,3,0,0,1049,1048,1,0,0,0,1049, - 1050,1,0,0,0,1050,1052,1,0,0,0,1051,1053,7,0,0,0,1052,1051,1,0,0, - 0,1053,1054,1,0,0,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1057, - 1,0,0,0,1056,1047,1,0,0,0,1056,1057,1,0,0,0,1057,226,1,0,0,0,1058, - 1062,7,4,0,0,1059,1061,7,5,0,0,1060,1059,1,0,0,0,1061,1064,1,0,0, - 0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063,228,1,0,0,0,1064,1062, - 1,0,0,0,1065,1070,5,34,0,0,1066,1069,3,231,115,0,1067,1069,8,6,0, - 0,1068,1066,1,0,0,0,1068,1067,1,0,0,0,1069,1072,1,0,0,0,1070,1068, - 1,0,0,0,1070,1071,1,0,0,0,1071,1073,1,0,0,0,1072,1070,1,0,0,0,1073, - 1074,5,34,0,0,1074,230,1,0,0,0,1075,1083,5,92,0,0,1076,1084,7,7, - 0,0,1077,1078,5,117,0,0,1078,1079,3,233,116,0,1079,1080,3,233,116, - 0,1080,1081,3,233,116,0,1081,1082,3,233,116,0,1082,1084,1,0,0,0, - 1083,1076,1,0,0,0,1083,1077,1,0,0,0,1084,232,1,0,0,0,1085,1086,7, - 8,0,0,1086,234,1,0,0,0,1087,1088,5,47,0,0,1088,1089,5,47,0,0,1089, - 1093,1,0,0,0,1090,1092,8,9,0,0,1091,1090,1,0,0,0,1092,1095,1,0,0, - 0,1093,1091,1,0,0,0,1093,1094,1,0,0,0,1094,1096,1,0,0,0,1095,1093, - 1,0,0,0,1096,1097,6,117,0,0,1097,236,1,0,0,0,1098,1099,5,47,0,0, - 1099,1100,5,42,0,0,1100,1104,1,0,0,0,1101,1103,9,0,0,0,1102,1101, - 1,0,0,0,1103,1106,1,0,0,0,1104,1105,1,0,0,0,1104,1102,1,0,0,0,1105, - 1107,1,0,0,0,1106,1104,1,0,0,0,1107,1108,5,42,0,0,1108,1109,5,47, - 0,0,1109,1110,1,0,0,0,1110,1111,6,118,0,0,1111,238,1,0,0,0,1112, - 1114,7,10,0,0,1113,1112,1,0,0,0,1114,1115,1,0,0,0,1115,1113,1,0, - 0,0,1115,1116,1,0,0,0,1116,1117,1,0,0,0,1117,1118,6,119,0,0,1118, - 240,1,0,0,0,18,0,1019,1024,1027,1034,1037,1043,1045,1049,1054,1056, - 1062,1068,1070,1083,1093,1104,1115,1,0,1,0 + 2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125, + 7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130, + 2,131,7,131,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1, + 1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3, + 1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5, + 1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,8, + 1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10, + 1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12, + 1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13, + 1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15, + 1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16, + 1,16,1,16,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18, + 1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20, + 1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22, + 1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23, + 1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24, + 1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26, + 1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,28, + 1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29, + 1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,30, + 1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32, + 1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,34, + 1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37, + 1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41, + 1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42, + 1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,45,1,45, + 1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46, + 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49, + 1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51, + 1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52, + 1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54, + 1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55, + 1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56, + 1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57, + 1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,59, + 1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59, + 1,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,62,1,62,1,62, + 1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64, + 1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65, + 1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,69, + 1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71, + 1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73, + 1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75, + 1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76, + 1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78, + 1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79, + 1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80, + 1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81, + 1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,82, + 1,82,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,84, + 1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,85, + 1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86, + 1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87, + 1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89, + 1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90, + 1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92, + 1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,93,1,93, + 1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94, + 1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96, + 1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98, + 1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100, + 1,100,1,101,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102, + 1,102,1,102,1,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104, + 1,104,1,104,1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105, + 1,106,1,106,1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107, + 1,108,1,108,1,108,1,109,1,109,1,110,1,110,1,111,1,111,1,112,1,112, + 1,113,1,113,1,114,1,114,1,115,1,115,1,116,1,116,1,117,1,117,1,118, + 1,118,1,119,1,119,1,120,1,120,1,121,1,121,1,122,1,122,1,123,3,123, + 1132,8,123,1,123,4,123,1135,8,123,11,123,12,123,1136,1,124,3,124, + 1140,8,124,1,124,1,124,1,124,5,124,1145,8,124,10,124,12,124,1148, + 9,124,3,124,1150,8,124,1,124,1,124,4,124,1154,8,124,11,124,12,124, + 1155,3,124,1158,8,124,1,124,1,124,3,124,1162,8,124,1,124,4,124,1165, + 8,124,11,124,12,124,1166,3,124,1169,8,124,1,125,1,125,5,125,1173, + 8,125,10,125,12,125,1176,9,125,1,126,1,126,1,126,5,126,1181,8,126, + 10,126,12,126,1184,9,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127, + 1,127,1,127,1,127,3,127,1196,8,127,1,128,1,128,1,129,1,129,1,129, + 1,129,5,129,1204,8,129,10,129,12,129,1207,9,129,1,129,1,129,1,130, + 1,130,1,130,1,130,5,130,1215,8,130,10,130,12,130,1218,9,130,1,130, + 1,130,1,130,1,130,1,130,1,131,4,131,1226,8,131,11,131,12,131,1227, + 1,131,1,131,1,1216,0,132,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9, + 19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20, + 41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31, + 63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42, + 85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105, + 53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62, + 125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143, + 72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81, + 163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181, + 91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100, + 201,101,203,102,205,103,207,104,209,105,211,106,213,107,215,108, + 217,109,219,110,221,111,223,112,225,113,227,114,229,115,231,116, + 233,117,235,118,237,119,239,120,241,121,243,122,245,123,247,124, + 249,125,251,126,253,127,255,0,257,0,259,128,261,129,263,130,1,0, + 11,1,0,48,57,1,0,49,57,2,0,69,69,101,101,2,0,43,43,45,45,3,0,65, + 90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34, + 34,92,92,8,0,34,34,47,47,92,92,98,98,102,102,110,110,114,114,116, + 116,3,0,48,57,65,70,97,102,2,0,10,10,13,13,3,0,9,10,13,13,32,32, + 1245,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0, + 0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0, + 0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0, + 0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0, + 0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0, + 0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0, + 0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0, + 0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0, + 0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0, + 0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0, + 0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1, + 0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0, + 119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0, + 0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137, + 1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0, + 0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1, + 0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0, + 165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0, + 0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183, + 1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0, + 0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1, + 0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0, + 211,1,0,0,0,0,213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0, + 0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229, + 1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0, + 0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1, + 0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,259,1,0,0,0,0, + 261,1,0,0,0,0,263,1,0,0,0,1,265,1,0,0,0,3,275,1,0,0,0,5,281,1,0, + 0,0,7,292,1,0,0,0,9,297,1,0,0,0,11,306,1,0,0,0,13,316,1,0,0,0,15, + 321,1,0,0,0,17,325,1,0,0,0,19,331,1,0,0,0,21,336,1,0,0,0,23,346, + 1,0,0,0,25,350,1,0,0,0,27,363,1,0,0,0,29,368,1,0,0,0,31,375,1,0, + 0,0,33,384,1,0,0,0,35,395,1,0,0,0,37,399,1,0,0,0,39,408,1,0,0,0, + 41,415,1,0,0,0,43,424,1,0,0,0,45,429,1,0,0,0,47,439,1,0,0,0,49,450, + 1,0,0,0,51,458,1,0,0,0,53,464,1,0,0,0,55,473,1,0,0,0,57,483,1,0, + 0,0,59,492,1,0,0,0,61,504,1,0,0,0,63,515,1,0,0,0,65,521,1,0,0,0, + 67,529,1,0,0,0,69,532,1,0,0,0,71,537,1,0,0,0,73,544,1,0,0,0,75,547, + 1,0,0,0,77,555,1,0,0,0,79,562,1,0,0,0,81,568,1,0,0,0,83,573,1,0, + 0,0,85,584,1,0,0,0,87,589,1,0,0,0,89,595,1,0,0,0,91,599,1,0,0,0, + 93,611,1,0,0,0,95,614,1,0,0,0,97,621,1,0,0,0,99,624,1,0,0,0,101, + 631,1,0,0,0,103,639,1,0,0,0,105,646,1,0,0,0,107,657,1,0,0,0,109, + 664,1,0,0,0,111,673,1,0,0,0,113,688,1,0,0,0,115,698,1,0,0,0,117, + 711,1,0,0,0,119,717,1,0,0,0,121,734,1,0,0,0,123,737,1,0,0,0,125, + 741,1,0,0,0,127,746,1,0,0,0,129,752,1,0,0,0,131,761,1,0,0,0,133, + 770,1,0,0,0,135,774,1,0,0,0,137,778,1,0,0,0,139,782,1,0,0,0,141, + 788,1,0,0,0,143,794,1,0,0,0,145,799,1,0,0,0,147,804,1,0,0,0,149, + 810,1,0,0,0,151,818,1,0,0,0,153,826,1,0,0,0,155,837,1,0,0,0,157, + 842,1,0,0,0,159,854,1,0,0,0,161,865,1,0,0,0,163,875,1,0,0,0,165, + 887,1,0,0,0,167,907,1,0,0,0,169,912,1,0,0,0,171,925,1,0,0,0,173, + 937,1,0,0,0,175,949,1,0,0,0,177,954,1,0,0,0,179,962,1,0,0,0,181, + 967,1,0,0,0,183,980,1,0,0,0,185,988,1,0,0,0,187,997,1,0,0,0,189, + 1011,1,0,0,0,191,1020,1,0,0,0,193,1025,1,0,0,0,195,1032,1,0,0,0, + 197,1037,1,0,0,0,199,1043,1,0,0,0,201,1050,1,0,0,0,203,1056,1,0, + 0,0,205,1062,1,0,0,0,207,1069,1,0,0,0,209,1076,1,0,0,0,211,1083, + 1,0,0,0,213,1088,1,0,0,0,215,1094,1,0,0,0,217,1099,1,0,0,0,219,1102, + 1,0,0,0,221,1104,1,0,0,0,223,1106,1,0,0,0,225,1108,1,0,0,0,227,1110, + 1,0,0,0,229,1112,1,0,0,0,231,1114,1,0,0,0,233,1116,1,0,0,0,235,1118, + 1,0,0,0,237,1120,1,0,0,0,239,1122,1,0,0,0,241,1124,1,0,0,0,243,1126, + 1,0,0,0,245,1128,1,0,0,0,247,1131,1,0,0,0,249,1139,1,0,0,0,251,1170, + 1,0,0,0,253,1177,1,0,0,0,255,1187,1,0,0,0,257,1197,1,0,0,0,259,1199, + 1,0,0,0,261,1210,1,0,0,0,263,1225,1,0,0,0,265,266,5,119,0,0,266, + 267,5,111,0,0,267,268,5,114,0,0,268,269,5,107,0,0,269,270,5,115, + 0,0,270,271,5,112,0,0,271,272,5,97,0,0,272,273,5,99,0,0,273,274, + 5,101,0,0,274,2,1,0,0,0,275,276,5,113,0,0,276,277,5,117,0,0,277, + 278,5,101,0,0,278,279,5,114,0,0,279,280,5,121,0,0,280,4,1,0,0,0, + 281,282,5,115,0,0,282,283,5,112,0,0,283,284,5,101,0,0,284,285,5, + 99,0,0,285,286,5,105,0,0,286,287,5,97,0,0,287,288,5,108,0,0,288, + 289,5,105,0,0,289,290,5,122,0,0,290,291,5,101,0,0,291,6,1,0,0,0, + 292,293,5,114,0,0,293,294,5,111,0,0,294,295,5,111,0,0,295,296,5, + 116,0,0,296,8,1,0,0,0,297,298,5,100,0,0,298,299,5,111,0,0,299,300, + 5,99,0,0,300,301,5,117,0,0,301,302,5,109,0,0,302,303,5,101,0,0,303, + 304,5,110,0,0,304,305,5,116,0,0,305,10,1,0,0,0,306,307,5,102,0,0, + 307,308,5,114,0,0,308,309,5,97,0,0,309,310,5,103,0,0,310,311,5,109, + 0,0,311,312,5,101,0,0,312,313,5,110,0,0,313,314,5,116,0,0,314,315, + 5,115,0,0,315,12,1,0,0,0,316,317,5,118,0,0,317,318,5,105,0,0,318, + 319,5,101,0,0,319,320,5,119,0,0,320,14,1,0,0,0,321,322,5,109,0,0, + 322,323,5,97,0,0,323,324,5,120,0,0,324,16,1,0,0,0,325,326,5,97,0, + 0,326,327,5,108,0,0,327,328,5,108,0,0,328,329,5,111,0,0,329,330, + 5,119,0,0,330,18,1,0,0,0,331,332,5,112,0,0,332,333,5,111,0,0,333, + 334,5,108,0,0,334,335,5,108,0,0,335,20,1,0,0,0,336,337,5,113,0,0, + 337,338,5,117,0,0,338,339,5,101,0,0,339,340,5,114,0,0,340,341,5, + 121,0,0,341,342,5,97,0,0,342,343,5,98,0,0,343,344,5,108,0,0,344, + 345,5,101,0,0,345,22,1,0,0,0,346,347,5,114,0,0,347,348,5,112,0,0, + 348,349,5,99,0,0,349,24,1,0,0,0,350,351,5,113,0,0,351,352,5,117, + 0,0,352,353,5,101,0,0,353,354,5,114,0,0,354,355,5,121,0,0,355,356, + 5,45,0,0,356,357,5,114,0,0,357,358,5,101,0,0,358,359,5,97,0,0,359, + 360,5,115,0,0,360,361,5,111,0,0,361,362,5,110,0,0,362,26,1,0,0,0, + 363,364,5,116,0,0,364,365,5,121,0,0,365,366,5,112,0,0,366,367,5, + 101,0,0,367,28,1,0,0,0,368,369,5,111,0,0,369,370,5,98,0,0,370,371, + 5,106,0,0,371,372,5,101,0,0,372,373,5,99,0,0,373,374,5,116,0,0,374, + 30,1,0,0,0,375,376,5,115,0,0,376,377,5,116,0,0,377,378,5,111,0,0, + 378,379,5,114,0,0,379,380,5,97,0,0,380,381,5,98,0,0,381,382,5,108, + 0,0,382,383,5,101,0,0,383,32,1,0,0,0,384,385,5,105,0,0,385,386,5, + 109,0,0,386,387,5,112,0,0,387,388,5,108,0,0,388,389,5,101,0,0,389, + 390,5,109,0,0,390,391,5,101,0,0,391,392,5,110,0,0,392,393,5,116, + 0,0,393,394,5,115,0,0,394,34,1,0,0,0,395,396,5,114,0,0,396,397,5, + 101,0,0,397,398,5,102,0,0,398,36,1,0,0,0,399,400,5,102,0,0,400,401, + 5,114,0,0,401,402,5,97,0,0,402,403,5,103,0,0,403,404,5,109,0,0,404, + 405,5,101,0,0,405,406,5,110,0,0,406,407,5,116,0,0,407,38,1,0,0,0, + 408,409,5,105,0,0,409,410,5,109,0,0,410,411,5,112,0,0,411,412,5, + 111,0,0,412,413,5,114,0,0,413,414,5,116,0,0,414,40,1,0,0,0,415,416, + 5,101,0,0,416,417,5,120,0,0,417,418,5,116,0,0,418,419,5,101,0,0, + 419,420,5,114,0,0,420,421,5,110,0,0,421,422,5,97,0,0,422,423,5,108, + 0,0,423,42,1,0,0,0,424,425,5,97,0,0,425,426,5,116,0,0,426,427,5, + 111,0,0,427,428,5,109,0,0,428,44,1,0,0,0,429,430,5,105,0,0,430,431, + 5,110,0,0,431,432,5,116,0,0,432,433,5,101,0,0,433,434,5,114,0,0, + 434,435,5,102,0,0,435,436,5,97,0,0,436,437,5,99,0,0,437,438,5,101, + 0,0,438,46,1,0,0,0,439,440,5,105,0,0,440,441,5,110,0,0,441,442,5, + 116,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,445,5,102,0,0,445, + 446,5,97,0,0,446,447,5,99,0,0,447,448,5,101,0,0,448,449,5,115,0, + 0,449,48,1,0,0,0,450,451,5,112,0,0,451,452,5,97,0,0,452,453,5,99, + 0,0,453,454,5,107,0,0,454,455,5,97,0,0,455,456,5,103,0,0,456,457, + 5,101,0,0,457,50,1,0,0,0,458,459,5,118,0,0,459,460,5,97,0,0,460, + 461,5,108,0,0,461,462,5,117,0,0,462,463,5,101,0,0,463,52,1,0,0,0, + 464,465,5,114,0,0,465,466,5,101,0,0,466,467,5,108,0,0,467,468,5, + 97,0,0,468,469,5,116,0,0,469,470,5,105,0,0,470,471,5,111,0,0,471, + 472,5,110,0,0,472,54,1,0,0,0,473,474,5,111,0,0,474,475,5,112,0,0, + 475,476,5,101,0,0,476,477,5,114,0,0,477,478,5,97,0,0,478,479,5,116, + 0,0,479,480,5,105,0,0,480,481,5,111,0,0,481,482,5,110,0,0,482,56, + 1,0,0,0,483,484,5,102,0,0,484,485,5,117,0,0,485,486,5,110,0,0,486, + 487,5,99,0,0,487,488,5,116,0,0,488,489,5,105,0,0,489,490,5,111,0, + 0,490,491,5,110,0,0,491,58,1,0,0,0,492,493,5,99,0,0,493,494,5,111, + 0,0,494,495,5,110,0,0,495,496,5,115,0,0,496,497,5,116,0,0,497,498, + 5,114,0,0,498,499,5,117,0,0,499,500,5,99,0,0,500,501,5,116,0,0,501, + 502,5,111,0,0,502,503,5,114,0,0,503,60,1,0,0,0,504,505,5,99,0,0, + 505,506,5,111,0,0,506,507,5,110,0,0,507,508,5,115,0,0,508,509,5, + 116,0,0,509,510,5,114,0,0,510,511,5,117,0,0,511,512,5,99,0,0,512, + 513,5,116,0,0,513,514,5,115,0,0,514,62,1,0,0,0,515,516,5,105,0,0, + 516,517,5,110,0,0,517,518,5,112,0,0,518,519,5,117,0,0,519,520,5, + 116,0,0,520,64,1,0,0,0,521,522,5,99,0,0,522,523,5,111,0,0,523,524, + 5,110,0,0,524,525,5,102,0,0,525,526,5,111,0,0,526,527,5,114,0,0, + 527,528,5,109,0,0,528,66,1,0,0,0,529,530,5,97,0,0,530,531,5,115, + 0,0,531,68,1,0,0,0,532,533,5,98,0,0,533,534,5,105,0,0,534,535,5, + 110,0,0,535,536,5,100,0,0,536,70,1,0,0,0,537,538,5,115,0,0,538,539, + 5,116,0,0,539,540,5,97,0,0,540,541,5,116,0,0,541,542,5,105,0,0,542, + 543,5,99,0,0,543,72,1,0,0,0,544,545,5,116,0,0,545,546,5,111,0,0, + 546,74,1,0,0,0,547,548,5,112,0,0,548,549,5,114,0,0,549,550,5,105, + 0,0,550,551,5,118,0,0,551,552,5,97,0,0,552,553,5,116,0,0,553,554, + 5,101,0,0,554,76,1,0,0,0,555,556,5,115,0,0,556,557,5,104,0,0,557, + 558,5,97,0,0,558,559,5,114,0,0,559,560,5,101,0,0,560,561,5,100,0, + 0,561,78,1,0,0,0,562,563,5,115,0,0,563,564,5,116,0,0,564,565,5,97, + 0,0,565,566,5,116,0,0,566,567,5,101,0,0,567,80,1,0,0,0,568,569,5, + 101,0,0,569,570,5,100,0,0,570,571,5,103,0,0,571,572,5,101,0,0,572, + 82,1,0,0,0,573,574,5,112,0,0,574,575,5,114,0,0,575,576,5,111,0,0, + 576,577,5,106,0,0,577,578,5,101,0,0,578,579,5,99,0,0,579,580,5,116, + 0,0,580,581,5,105,0,0,581,582,5,111,0,0,582,583,5,110,0,0,583,84, + 1,0,0,0,584,585,5,119,0,0,585,586,5,105,0,0,586,587,5,116,0,0,587, + 588,5,104,0,0,588,86,1,0,0,0,589,590,5,117,0,0,590,591,5,115,0,0, + 591,592,5,105,0,0,592,593,5,110,0,0,593,594,5,103,0,0,594,88,1,0, + 0,0,595,596,5,118,0,0,596,597,5,105,0,0,597,598,5,97,0,0,598,90, + 1,0,0,0,599,600,5,109,0,0,600,601,5,97,0,0,601,602,5,116,0,0,602, + 603,5,101,0,0,603,604,5,114,0,0,604,605,5,105,0,0,605,606,5,97,0, + 0,606,607,5,108,0,0,607,608,5,105,0,0,608,609,5,122,0,0,609,610, + 5,101,0,0,610,92,1,0,0,0,611,612,5,105,0,0,612,613,5,102,0,0,613, + 94,1,0,0,0,614,615,5,97,0,0,615,616,5,98,0,0,616,617,5,115,0,0,617, + 618,5,101,0,0,618,619,5,110,0,0,619,620,5,116,0,0,620,96,1,0,0,0, + 621,622,5,111,0,0,622,623,5,110,0,0,623,98,1,0,0,0,624,625,5,112, + 0,0,625,626,5,111,0,0,626,627,5,108,0,0,627,628,5,105,0,0,628,629, + 5,99,0,0,629,630,5,121,0,0,630,100,1,0,0,0,631,632,5,100,0,0,632, + 633,5,101,0,0,633,634,5,102,0,0,634,635,5,97,0,0,635,636,5,117,0, + 0,636,637,5,108,0,0,637,638,5,116,0,0,638,102,1,0,0,0,639,640,5, + 115,0,0,640,641,5,111,0,0,641,642,5,117,0,0,642,643,5,114,0,0,643, + 644,5,99,0,0,644,645,5,101,0,0,645,104,1,0,0,0,646,647,5,114,0,0, + 647,648,5,101,0,0,648,649,5,112,0,0,649,650,5,111,0,0,650,651,5, + 115,0,0,651,652,5,105,0,0,652,653,5,116,0,0,653,654,5,111,0,0,654, + 655,5,114,0,0,655,656,5,121,0,0,656,106,1,0,0,0,657,658,5,99,0,0, + 658,659,5,111,0,0,659,660,5,109,0,0,660,661,5,109,0,0,661,662,5, + 105,0,0,662,663,5,116,0,0,663,108,1,0,0,0,664,665,5,114,0,0,665, + 666,5,101,0,0,666,667,5,118,0,0,667,668,5,105,0,0,668,669,5,115, + 0,0,669,670,5,105,0,0,670,671,5,111,0,0,671,672,5,110,0,0,672,110, + 1,0,0,0,673,674,5,115,0,0,674,675,5,101,0,0,675,676,5,109,0,0,676, + 677,5,97,0,0,677,678,5,110,0,0,678,679,5,116,0,0,679,680,5,105,0, + 0,680,681,5,99,0,0,681,682,5,45,0,0,682,683,5,109,0,0,683,684,5, + 97,0,0,684,685,5,106,0,0,685,686,5,111,0,0,686,687,5,114,0,0,687, + 112,1,0,0,0,688,689,5,111,0,0,689,690,5,110,0,0,690,691,5,45,0,0, + 691,692,5,100,0,0,692,693,5,101,0,0,693,694,5,108,0,0,694,695,5, + 101,0,0,695,696,5,116,0,0,696,697,5,101,0,0,697,114,1,0,0,0,698, + 699,5,114,0,0,699,700,5,101,0,0,700,701,5,116,0,0,701,702,5,97,0, + 0,702,703,5,105,0,0,703,704,5,110,0,0,704,705,5,45,0,0,705,706,5, + 111,0,0,706,707,5,116,0,0,707,708,5,104,0,0,708,709,5,101,0,0,709, + 710,5,114,0,0,710,116,1,0,0,0,711,712,5,107,0,0,712,713,5,101,0, + 0,713,714,5,121,0,0,714,715,5,101,0,0,715,716,5,100,0,0,716,118, + 1,0,0,0,717,718,5,112,0,0,718,719,5,117,0,0,719,720,5,98,0,0,720, + 721,5,108,0,0,721,722,5,105,0,0,722,723,5,99,0,0,723,724,5,45,0, + 0,724,725,5,116,0,0,725,726,5,114,0,0,726,727,5,97,0,0,727,728,5, + 118,0,0,728,729,5,101,0,0,729,730,5,114,0,0,730,731,5,115,0,0,731, + 732,5,97,0,0,732,733,5,108,0,0,733,120,1,0,0,0,734,735,5,105,0,0, + 735,736,5,100,0,0,736,122,1,0,0,0,737,738,5,100,0,0,738,739,5,111, + 0,0,739,740,5,99,0,0,740,124,1,0,0,0,741,742,5,109,0,0,742,743,5, + 111,0,0,743,744,5,100,0,0,744,745,5,101,0,0,745,126,1,0,0,0,746, + 747,5,101,0,0,747,748,5,109,0,0,748,749,5,105,0,0,749,750,5,116, + 0,0,750,751,5,115,0,0,751,128,1,0,0,0,752,753,5,114,0,0,753,754, + 5,101,0,0,754,755,5,99,0,0,755,756,5,101,0,0,756,757,5,105,0,0,757, + 758,5,118,0,0,758,759,5,101,0,0,759,760,5,114,0,0,760,130,1,0,0, + 0,761,762,5,114,0,0,762,763,5,101,0,0,763,764,5,113,0,0,764,765, + 5,117,0,0,765,766,5,105,0,0,766,767,5,114,0,0,767,768,5,101,0,0, + 768,769,5,115,0,0,769,132,1,0,0,0,770,771,5,97,0,0,771,772,5,110, + 0,0,772,773,5,121,0,0,773,134,1,0,0,0,774,775,5,103,0,0,775,776, + 5,101,0,0,776,777,5,116,0,0,777,136,1,0,0,0,778,779,5,115,0,0,779, + 780,5,101,0,0,780,781,5,116,0,0,781,138,1,0,0,0,782,783,5,119,0, + 0,783,784,5,97,0,0,784,785,5,116,0,0,785,786,5,99,0,0,786,787,5, + 104,0,0,787,140,1,0,0,0,788,789,5,115,0,0,789,790,5,116,0,0,790, + 791,5,97,0,0,791,792,5,114,0,0,792,793,5,116,0,0,793,142,1,0,0,0, + 794,795,5,115,0,0,795,796,5,116,0,0,796,797,5,111,0,0,797,798,5, + 112,0,0,798,144,1,0,0,0,799,800,5,114,0,0,800,801,5,101,0,0,801, + 802,5,97,0,0,802,803,5,100,0,0,803,146,1,0,0,0,804,805,5,119,0,0, + 805,806,5,114,0,0,806,807,5,105,0,0,807,808,5,116,0,0,808,809,5, + 101,0,0,809,148,1,0,0,0,810,811,5,114,0,0,811,812,5,101,0,0,812, + 813,5,115,0,0,813,814,5,111,0,0,814,815,5,108,0,0,815,816,5,118, + 0,0,816,817,5,101,0,0,817,150,1,0,0,0,818,819,5,99,0,0,819,820,5, + 111,0,0,820,821,5,110,0,0,821,822,5,110,0,0,822,823,5,101,0,0,823, + 824,5,99,0,0,824,825,5,116,0,0,825,152,1,0,0,0,826,827,5,100,0,0, + 827,828,5,105,0,0,828,829,5,115,0,0,829,830,5,99,0,0,830,831,5,111, + 0,0,831,832,5,110,0,0,832,833,5,110,0,0,833,834,5,101,0,0,834,835, + 5,99,0,0,835,836,5,116,0,0,836,154,1,0,0,0,837,838,5,99,0,0,838, + 839,5,97,0,0,839,840,5,108,0,0,840,841,5,108,0,0,841,156,1,0,0,0, + 842,843,5,119,0,0,843,844,5,97,0,0,844,845,5,116,0,0,845,846,5,99, + 0,0,846,847,5,104,0,0,847,848,5,45,0,0,848,849,5,115,0,0,849,850, + 5,116,0,0,850,851,5,97,0,0,851,852,5,114,0,0,852,853,5,116,0,0,853, + 158,1,0,0,0,854,855,5,119,0,0,855,856,5,97,0,0,856,857,5,116,0,0, + 857,858,5,99,0,0,858,859,5,104,0,0,859,860,5,45,0,0,860,861,5,115, + 0,0,861,862,5,116,0,0,862,863,5,111,0,0,863,864,5,112,0,0,864,160, + 1,0,0,0,865,866,5,115,0,0,866,867,5,117,0,0,867,868,5,98,0,0,868, + 869,5,115,0,0,869,870,5,99,0,0,870,871,5,114,0,0,871,872,5,105,0, + 0,872,873,5,98,0,0,873,874,5,101,0,0,874,162,1,0,0,0,875,876,5,117, + 0,0,876,877,5,110,0,0,877,878,5,115,0,0,878,879,5,117,0,0,879,880, + 5,98,0,0,880,881,5,115,0,0,881,882,5,99,0,0,882,883,5,114,0,0,883, + 884,5,105,0,0,884,885,5,98,0,0,885,886,5,101,0,0,886,164,1,0,0,0, + 887,888,5,111,0,0,888,889,5,112,0,0,889,890,5,116,0,0,890,891,5, + 105,0,0,891,892,5,109,0,0,892,893,5,105,0,0,893,894,5,115,0,0,894, + 895,5,116,0,0,895,896,5,105,0,0,896,897,5,99,0,0,897,898,5,45,0, + 0,898,899,5,114,0,0,899,900,5,101,0,0,900,901,5,103,0,0,901,902, + 5,105,0,0,902,903,5,115,0,0,903,904,5,116,0,0,904,905,5,101,0,0, + 905,906,5,114,0,0,906,166,1,0,0,0,907,908,5,99,0,0,908,909,5,114, + 0,0,909,910,5,100,0,0,910,911,5,116,0,0,911,168,1,0,0,0,912,913, + 5,111,0,0,913,914,5,112,0,0,914,915,5,116,0,0,915,916,5,105,0,0, + 916,917,5,111,0,0,917,918,5,110,0,0,918,919,5,97,0,0,919,920,5,108, + 0,0,920,921,5,45,0,0,921,922,5,111,0,0,922,923,5,110,0,0,923,924, + 5,101,0,0,924,170,1,0,0,0,925,926,5,101,0,0,926,927,5,120,0,0,927, + 928,5,97,0,0,928,929,5,99,0,0,929,930,5,116,0,0,930,931,5,108,0, + 0,931,932,5,121,0,0,932,933,5,45,0,0,933,934,5,111,0,0,934,935,5, + 110,0,0,935,936,5,101,0,0,936,172,1,0,0,0,937,938,5,109,0,0,938, + 939,5,97,0,0,939,940,5,110,0,0,940,941,5,121,0,0,941,942,5,45,0, + 0,942,943,5,117,0,0,943,944,5,110,0,0,944,945,5,105,0,0,945,946, + 5,113,0,0,946,947,5,117,0,0,947,948,5,101,0,0,948,174,1,0,0,0,949, + 950,5,109,0,0,950,951,5,97,0,0,951,952,5,110,0,0,952,953,5,121,0, + 0,953,176,1,0,0,0,954,955,5,111,0,0,955,956,5,114,0,0,956,957,5, + 100,0,0,957,958,5,101,0,0,958,959,5,114,0,0,959,960,5,101,0,0,960, + 961,5,100,0,0,961,178,1,0,0,0,962,963,5,117,0,0,963,964,5,110,0, + 0,964,965,5,105,0,0,965,966,5,116,0,0,966,180,1,0,0,0,967,968,5, + 119,0,0,968,969,5,97,0,0,969,970,5,116,0,0,970,971,5,99,0,0,971, + 972,5,104,0,0,972,973,5,45,0,0,973,974,5,104,0,0,974,975,5,97,0, + 0,975,976,5,110,0,0,976,977,5,100,0,0,977,978,5,108,0,0,978,979, + 5,101,0,0,979,182,1,0,0,0,980,981,5,109,0,0,981,982,5,101,0,0,982, + 983,5,115,0,0,983,984,5,115,0,0,984,985,5,97,0,0,985,986,5,103,0, + 0,986,987,5,101,0,0,987,184,1,0,0,0,988,989,5,97,0,0,989,990,5,116, + 0,0,990,991,5,111,0,0,991,992,5,109,0,0,992,993,5,45,0,0,993,994, + 5,114,0,0,994,995,5,101,0,0,995,996,5,102,0,0,996,186,1,0,0,0,997, + 998,5,105,0,0,998,999,5,110,0,0,999,1000,5,116,0,0,1000,1001,5,101, + 0,0,1001,1002,5,114,0,0,1002,1003,5,102,0,0,1003,1004,5,97,0,0,1004, + 1005,5,99,0,0,1005,1006,5,101,0,0,1006,1007,5,45,0,0,1007,1008,5, + 114,0,0,1008,1009,5,101,0,0,1009,1010,5,102,0,0,1010,188,1,0,0,0, + 1011,1012,5,111,0,0,1012,1013,5,112,0,0,1013,1014,5,116,0,0,1014, + 1015,5,105,0,0,1015,1016,5,111,0,0,1016,1017,5,110,0,0,1017,1018, + 5,97,0,0,1018,1019,5,108,0,0,1019,190,1,0,0,0,1020,1021,5,108,0, + 0,1021,1022,5,105,0,0,1022,1023,5,115,0,0,1023,1024,5,116,0,0,1024, + 192,1,0,0,0,1025,1026,5,114,0,0,1026,1027,5,101,0,0,1027,1028,5, + 99,0,0,1028,1029,5,111,0,0,1029,1030,5,114,0,0,1030,1031,5,100,0, + 0,1031,194,1,0,0,0,1032,1033,5,98,0,0,1033,1034,5,111,0,0,1034,1035, + 5,111,0,0,1035,1036,5,108,0,0,1036,196,1,0,0,0,1037,1038,5,98,0, + 0,1038,1039,5,121,0,0,1039,1040,5,116,0,0,1040,1041,5,101,0,0,1041, + 1042,5,115,0,0,1042,198,1,0,0,0,1043,1044,5,100,0,0,1044,1045,5, + 111,0,0,1045,1046,5,117,0,0,1046,1047,5,98,0,0,1047,1048,5,108,0, + 0,1048,1049,5,101,0,0,1049,200,1,0,0,0,1050,1051,5,105,0,0,1051, + 1052,5,110,0,0,1052,1053,5,116,0,0,1053,1054,5,51,0,0,1054,1055, + 5,50,0,0,1055,202,1,0,0,0,1056,1057,5,105,0,0,1057,1058,5,110,0, + 0,1058,1059,5,116,0,0,1059,1060,5,54,0,0,1060,1061,5,52,0,0,1061, + 204,1,0,0,0,1062,1063,5,115,0,0,1063,1064,5,116,0,0,1064,1065,5, + 114,0,0,1065,1066,5,105,0,0,1066,1067,5,110,0,0,1067,1068,5,103, + 0,0,1068,206,1,0,0,0,1069,1070,5,117,0,0,1070,1071,5,105,0,0,1071, + 1072,5,110,0,0,1072,1073,5,116,0,0,1073,1074,5,51,0,0,1074,1075, + 5,50,0,0,1075,208,1,0,0,0,1076,1077,5,117,0,0,1077,1078,5,105,0, + 0,1078,1079,5,110,0,0,1079,1080,5,116,0,0,1080,1081,5,54,0,0,1081, + 1082,5,52,0,0,1082,210,1,0,0,0,1083,1084,5,116,0,0,1084,1085,5,114, + 0,0,1085,1086,5,117,0,0,1086,1087,5,101,0,0,1087,212,1,0,0,0,1088, + 1089,5,102,0,0,1089,1090,5,97,0,0,1090,1091,5,108,0,0,1091,1092, + 5,115,0,0,1092,1093,5,101,0,0,1093,214,1,0,0,0,1094,1095,5,110,0, + 0,1095,1096,5,117,0,0,1096,1097,5,108,0,0,1097,1098,5,108,0,0,1098, + 216,1,0,0,0,1099,1100,5,45,0,0,1100,1101,5,62,0,0,1101,218,1,0,0, + 0,1102,1103,5,58,0,0,1103,220,1,0,0,0,1104,1105,5,59,0,0,1105,222, + 1,0,0,0,1106,1107,5,44,0,0,1107,224,1,0,0,0,1108,1109,5,46,0,0,1109, + 226,1,0,0,0,1110,1111,5,123,0,0,1111,228,1,0,0,0,1112,1113,5,125, + 0,0,1113,230,1,0,0,0,1114,1115,5,91,0,0,1115,232,1,0,0,0,1116,1117, + 5,93,0,0,1117,234,1,0,0,0,1118,1119,5,40,0,0,1119,236,1,0,0,0,1120, + 1121,5,41,0,0,1121,238,1,0,0,0,1122,1123,5,60,0,0,1123,240,1,0,0, + 0,1124,1125,5,62,0,0,1125,242,1,0,0,0,1126,1127,5,38,0,0,1127,244, + 1,0,0,0,1128,1129,5,61,0,0,1129,246,1,0,0,0,1130,1132,5,45,0,0,1131, + 1130,1,0,0,0,1131,1132,1,0,0,0,1132,1134,1,0,0,0,1133,1135,7,0,0, + 0,1134,1133,1,0,0,0,1135,1136,1,0,0,0,1136,1134,1,0,0,0,1136,1137, + 1,0,0,0,1137,248,1,0,0,0,1138,1140,5,45,0,0,1139,1138,1,0,0,0,1139, + 1140,1,0,0,0,1140,1149,1,0,0,0,1141,1150,5,48,0,0,1142,1146,7,1, + 0,0,1143,1145,7,0,0,0,1144,1143,1,0,0,0,1145,1148,1,0,0,0,1146,1144, + 1,0,0,0,1146,1147,1,0,0,0,1147,1150,1,0,0,0,1148,1146,1,0,0,0,1149, + 1141,1,0,0,0,1149,1142,1,0,0,0,1150,1157,1,0,0,0,1151,1153,5,46, + 0,0,1152,1154,7,0,0,0,1153,1152,1,0,0,0,1154,1155,1,0,0,0,1155,1153, + 1,0,0,0,1155,1156,1,0,0,0,1156,1158,1,0,0,0,1157,1151,1,0,0,0,1157, + 1158,1,0,0,0,1158,1168,1,0,0,0,1159,1161,7,2,0,0,1160,1162,7,3,0, + 0,1161,1160,1,0,0,0,1161,1162,1,0,0,0,1162,1164,1,0,0,0,1163,1165, + 7,0,0,0,1164,1163,1,0,0,0,1165,1166,1,0,0,0,1166,1164,1,0,0,0,1166, + 1167,1,0,0,0,1167,1169,1,0,0,0,1168,1159,1,0,0,0,1168,1169,1,0,0, + 0,1169,250,1,0,0,0,1170,1174,7,4,0,0,1171,1173,7,5,0,0,1172,1171, + 1,0,0,0,1173,1176,1,0,0,0,1174,1172,1,0,0,0,1174,1175,1,0,0,0,1175, + 252,1,0,0,0,1176,1174,1,0,0,0,1177,1182,5,34,0,0,1178,1181,3,255, + 127,0,1179,1181,8,6,0,0,1180,1178,1,0,0,0,1180,1179,1,0,0,0,1181, + 1184,1,0,0,0,1182,1180,1,0,0,0,1182,1183,1,0,0,0,1183,1185,1,0,0, + 0,1184,1182,1,0,0,0,1185,1186,5,34,0,0,1186,254,1,0,0,0,1187,1195, + 5,92,0,0,1188,1196,7,7,0,0,1189,1190,5,117,0,0,1190,1191,3,257,128, + 0,1191,1192,3,257,128,0,1192,1193,3,257,128,0,1193,1194,3,257,128, + 0,1194,1196,1,0,0,0,1195,1188,1,0,0,0,1195,1189,1,0,0,0,1196,256, + 1,0,0,0,1197,1198,7,8,0,0,1198,258,1,0,0,0,1199,1200,5,47,0,0,1200, + 1201,5,47,0,0,1201,1205,1,0,0,0,1202,1204,8,9,0,0,1203,1202,1,0, + 0,0,1204,1207,1,0,0,0,1205,1203,1,0,0,0,1205,1206,1,0,0,0,1206,1208, + 1,0,0,0,1207,1205,1,0,0,0,1208,1209,6,129,0,0,1209,260,1,0,0,0,1210, + 1211,5,47,0,0,1211,1212,5,42,0,0,1212,1216,1,0,0,0,1213,1215,9,0, + 0,0,1214,1213,1,0,0,0,1215,1218,1,0,0,0,1216,1217,1,0,0,0,1216,1214, + 1,0,0,0,1217,1219,1,0,0,0,1218,1216,1,0,0,0,1219,1220,5,42,0,0,1220, + 1221,5,47,0,0,1221,1222,1,0,0,0,1222,1223,6,130,0,0,1223,262,1,0, + 0,0,1224,1226,7,10,0,0,1225,1224,1,0,0,0,1226,1227,1,0,0,0,1227, + 1225,1,0,0,0,1227,1228,1,0,0,0,1228,1229,1,0,0,0,1229,1230,6,131, + 0,0,1230,264,1,0,0,0,18,0,1131,1136,1139,1146,1149,1155,1157,1161, + 1166,1168,1174,1180,1182,1195,1205,1216,1227,1,0,1,0 ]; private static __ATN: antlr.ATN; diff --git a/src/capability-language/generated/QuixosCapabilityParser.ts b/src/capability-language/generated/QuixosCapabilityParser.ts index 5fcc69b..2ddf655 100644 --- a/src/capability-language/generated/QuixosCapabilityParser.ts +++ b/src/capability-language/generated/QuixosCapabilityParser.ts @@ -11,123 +11,135 @@ type int = number; export class QuixosCapabilityParser extends antlr.Parser { public static readonly WORKSPACE = 1; - public static readonly TYPE = 2; - public static readonly OBJECT = 3; - public static readonly STORABLE = 4; - public static readonly IMPLEMENTS = 5; - public static readonly REF = 6; - public static readonly FRAGMENT = 7; - public static readonly IMPORT = 8; - public static readonly EXTERNAL = 9; - public static readonly ATOM = 10; - public static readonly INTERFACE = 11; - public static readonly INTERFACES = 12; - public static readonly PACKAGE = 13; - public static readonly VALUE = 14; - public static readonly RELATION = 15; - public static readonly OPERATION = 16; - public static readonly FUNCTION = 17; - public static readonly CONSTRUCTOR = 18; - public static readonly CONSTRUCTS = 19; - public static readonly INPUT = 20; - public static readonly CONFORM = 21; - public static readonly AS = 22; - public static readonly BIND = 23; - public static readonly STATIC = 24; - public static readonly TO = 25; - public static readonly PRIVATE = 26; - public static readonly SHARED = 27; - public static readonly STATE = 28; - public static readonly EDGE = 29; - public static readonly PROJECTION = 30; - public static readonly WITH = 31; - public static readonly USING = 32; - public static readonly VIA = 33; - public static readonly MATERIALIZE = 34; - public static readonly IF = 35; - public static readonly ABSENT = 36; - public static readonly ON = 37; - public static readonly POLICY = 38; - public static readonly DEFAULT = 39; - public static readonly SOURCE = 40; - public static readonly REPOSITORY = 41; - public static readonly COMMIT = 42; - public static readonly REVISION = 43; - public static readonly SEMANTIC_MAJOR = 44; - public static readonly ON_DELETE = 45; - public static readonly RETAIN_OTHER = 46; - public static readonly KEYED = 47; - public static readonly PUBLIC_TRAVERSAL = 48; - public static readonly ID = 49; - public static readonly DOC = 50; - public static readonly MODE = 51; - public static readonly EMITS = 52; - public static readonly RECEIVER = 53; - public static readonly REQUIRES = 54; - public static readonly ANY = 55; - public static readonly GET = 56; - public static readonly SET = 57; - public static readonly WATCH = 58; - public static readonly START = 59; - public static readonly STOP = 60; - public static readonly READ = 61; - public static readonly WRITE = 62; - public static readonly RESOLVE = 63; - public static readonly CONNECT = 64; - public static readonly DISCONNECT = 65; - public static readonly CALL = 66; - public static readonly WATCH_START = 67; - public static readonly WATCH_STOP = 68; - public static readonly SUBSCRIBE = 69; - public static readonly UNSUBSCRIBE = 70; - public static readonly OPTIMISTIC_REGISTER = 71; - public static readonly CRDT = 72; - public static readonly OPTIONAL_ONE = 73; - public static readonly EXACTLY_ONE = 74; - public static readonly MANY_UNIQUE = 75; - public static readonly MANY = 76; - public static readonly ORDERED = 77; - public static readonly UNIT = 78; - public static readonly WATCH_HANDLE = 79; - public static readonly MESSAGE = 80; - public static readonly ATOM_REF = 81; - public static readonly INTERFACE_REF = 82; - public static readonly OPTIONAL = 83; - public static readonly LIST = 84; - public static readonly RECORD = 85; - public static readonly BOOL = 86; - public static readonly BYTES = 87; - public static readonly DOUBLE = 88; - public static readonly INT32 = 89; - public static readonly INT64 = 90; - public static readonly STRING = 91; - public static readonly UINT32 = 92; - public static readonly UINT64 = 93; - public static readonly TRUE = 94; - public static readonly FALSE = 95; - public static readonly NULL = 96; - public static readonly ARROW = 97; - public static readonly COLON = 98; - public static readonly SEMI = 99; - public static readonly COMMA = 100; - public static readonly DOT = 101; - public static readonly LBRACE = 102; - public static readonly RBRACE = 103; - public static readonly LBRACK = 104; - public static readonly RBRACK = 105; - public static readonly LPAREN = 106; - public static readonly RPAREN = 107; - public static readonly LT = 108; - public static readonly GT = 109; - public static readonly AMP = 110; - public static readonly EQUAL = 111; - public static readonly INTEGER = 112; - public static readonly JSON_NUMBER = 113; - public static readonly IDENTIFIER = 114; - public static readonly STRING_LITERAL = 115; - public static readonly LINE_COMMENT = 116; - public static readonly BLOCK_COMMENT = 117; - public static readonly WS = 118; + public static readonly QUERY = 2; + public static readonly SPECIALIZE = 3; + public static readonly ROOT = 4; + public static readonly DOCUMENT = 5; + public static readonly FRAGMENTS = 6; + public static readonly VIEW = 7; + public static readonly MAX = 8; + public static readonly ALLOW = 9; + public static readonly POLL = 10; + public static readonly QUERYABLE = 11; + public static readonly RPC = 12; + public static readonly QUERY_REASON = 13; + public static readonly TYPE = 14; + public static readonly OBJECT = 15; + public static readonly STORABLE = 16; + public static readonly IMPLEMENTS = 17; + public static readonly REF = 18; + public static readonly FRAGMENT = 19; + public static readonly IMPORT = 20; + public static readonly EXTERNAL = 21; + public static readonly ATOM = 22; + public static readonly INTERFACE = 23; + public static readonly INTERFACES = 24; + public static readonly PACKAGE = 25; + public static readonly VALUE = 26; + public static readonly RELATION = 27; + public static readonly OPERATION = 28; + public static readonly FUNCTION = 29; + public static readonly CONSTRUCTOR = 30; + public static readonly CONSTRUCTS = 31; + public static readonly INPUT = 32; + public static readonly CONFORM = 33; + public static readonly AS = 34; + public static readonly BIND = 35; + public static readonly STATIC = 36; + public static readonly TO = 37; + public static readonly PRIVATE = 38; + public static readonly SHARED = 39; + public static readonly STATE = 40; + public static readonly EDGE = 41; + public static readonly PROJECTION = 42; + public static readonly WITH = 43; + public static readonly USING = 44; + public static readonly VIA = 45; + public static readonly MATERIALIZE = 46; + public static readonly IF = 47; + public static readonly ABSENT = 48; + public static readonly ON = 49; + public static readonly POLICY = 50; + public static readonly DEFAULT = 51; + public static readonly SOURCE = 52; + public static readonly REPOSITORY = 53; + public static readonly COMMIT = 54; + public static readonly REVISION = 55; + public static readonly SEMANTIC_MAJOR = 56; + public static readonly ON_DELETE = 57; + public static readonly RETAIN_OTHER = 58; + public static readonly KEYED = 59; + public static readonly PUBLIC_TRAVERSAL = 60; + public static readonly ID = 61; + public static readonly DOC = 62; + public static readonly MODE = 63; + public static readonly EMITS = 64; + public static readonly RECEIVER = 65; + public static readonly REQUIRES = 66; + public static readonly ANY = 67; + public static readonly GET = 68; + public static readonly SET = 69; + public static readonly WATCH = 70; + public static readonly START = 71; + public static readonly STOP = 72; + public static readonly READ = 73; + public static readonly WRITE = 74; + public static readonly RESOLVE = 75; + public static readonly CONNECT = 76; + public static readonly DISCONNECT = 77; + public static readonly CALL = 78; + public static readonly WATCH_START = 79; + public static readonly WATCH_STOP = 80; + public static readonly SUBSCRIBE = 81; + public static readonly UNSUBSCRIBE = 82; + public static readonly OPTIMISTIC_REGISTER = 83; + public static readonly CRDT = 84; + public static readonly OPTIONAL_ONE = 85; + public static readonly EXACTLY_ONE = 86; + public static readonly MANY_UNIQUE = 87; + public static readonly MANY = 88; + public static readonly ORDERED = 89; + public static readonly UNIT = 90; + public static readonly WATCH_HANDLE = 91; + public static readonly MESSAGE = 92; + public static readonly ATOM_REF = 93; + public static readonly INTERFACE_REF = 94; + public static readonly OPTIONAL = 95; + public static readonly LIST = 96; + public static readonly RECORD = 97; + public static readonly BOOL = 98; + public static readonly BYTES = 99; + public static readonly DOUBLE = 100; + public static readonly INT32 = 101; + public static readonly INT64 = 102; + public static readonly STRING = 103; + public static readonly UINT32 = 104; + public static readonly UINT64 = 105; + public static readonly TRUE = 106; + public static readonly FALSE = 107; + public static readonly NULL = 108; + public static readonly ARROW = 109; + public static readonly COLON = 110; + public static readonly SEMI = 111; + public static readonly COMMA = 112; + public static readonly DOT = 113; + public static readonly LBRACE = 114; + public static readonly RBRACE = 115; + public static readonly LBRACK = 116; + public static readonly RBRACK = 117; + public static readonly LPAREN = 118; + public static readonly RPAREN = 119; + public static readonly LT = 120; + public static readonly GT = 121; + public static readonly AMP = 122; + public static readonly EQUAL = 123; + public static readonly INTEGER = 124; + public static readonly JSON_NUMBER = 125; + public static readonly IDENTIFIER = 126; + public static readonly STRING_LITERAL = 127; + public static readonly LINE_COMMENT = 128; + public static readonly BLOCK_COMMENT = 129; + public static readonly WS = 130; public static readonly RULE_document = 0; public static readonly RULE_fragmentDecl = 1; public static readonly RULE_sourceImportDecl = 2; @@ -150,53 +162,59 @@ export class QuixosCapabilityParser extends antlr.Parser { public static readonly RULE_valueMember = 19; public static readonly RULE_valueMemberOperation = 20; public static readonly RULE_relationshipMember = 21; - public static readonly RULE_relationshipOperation = 22; - public static readonly RULE_targetConstraint = 23; - public static readonly RULE_packageResourceDecl = 24; - public static readonly RULE_packageExport = 25; - public static readonly RULE_packageOperationExport = 26; - public static readonly RULE_packageFunctionExport = 27; - public static readonly RULE_packageConstructorExport = 28; - public static readonly RULE_eventClause = 29; - public static readonly RULE_operationMode = 30; - public static readonly RULE_receiverRequirement = 31; - public static readonly RULE_identifierList = 32; - public static readonly RULE_dependencyBlock = 33; - public static readonly RULE_dependencyPort = 34; - public static readonly RULE_primitiveList = 35; - public static readonly RULE_primitive = 36; - public static readonly RULE_sharedAttachmentDecl = 37; - public static readonly RULE_attachmentDecl = 38; - public static readonly RULE_stateDecl = 39; - public static readonly RULE_storagePolicy = 40; - public static readonly RULE_edgeDecl = 41; - public static readonly RULE_edgeEndpoint = 42; - public static readonly RULE_conformanceDecl = 43; - public static readonly RULE_conformanceItem = 44; - public static readonly RULE_stateFieldBindingDecl = 45; - public static readonly RULE_relationshipMaterializationDecl = 46; - public static readonly RULE_operationBindingDecl = 47; - public static readonly RULE_memberOperationRef = 48; - public static readonly RULE_operationName = 49; - public static readonly RULE_operationProvider = 50; - public static readonly RULE_statePrimitive = 51; - public static readonly RULE_edgePrimitive = 52; - public static readonly RULE_dependencyBindingBlock = 53; - public static readonly RULE_dependencyBinding = 54; - public static readonly RULE_constructorBindingDecl = 55; - public static readonly RULE_valueType = 56; - public static readonly RULE_recordField = 57; - public static readonly RULE_scalarType = 58; - public static readonly RULE_cardinality = 59; - public static readonly RULE_jsonLiteral = 60; - public static readonly RULE_jsonObject = 61; - public static readonly RULE_jsonMember = 62; - public static readonly RULE_jsonArray = 63; - public static readonly RULE_identifier = 64; - public static readonly RULE_stringLiteral = 65; + public static readonly RULE_queryReadContract = 22; + public static readonly RULE_relationshipOperation = 23; + public static readonly RULE_targetConstraint = 24; + public static readonly RULE_packageResourceDecl = 25; + public static readonly RULE_packageExport = 26; + public static readonly RULE_packageQuery = 27; + public static readonly RULE_packageQuerySpecialization = 28; + public static readonly RULE_queryClause = 29; + public static readonly RULE_packageOperationExport = 30; + public static readonly RULE_packageFunctionExport = 31; + public static readonly RULE_packageConstructorExport = 32; + public static readonly RULE_eventClause = 33; + public static readonly RULE_operationMode = 34; + public static readonly RULE_receiverRequirement = 35; + public static readonly RULE_identifierList = 36; + public static readonly RULE_dependencyBlock = 37; + public static readonly RULE_dependencyPort = 38; + public static readonly RULE_primitiveList = 39; + public static readonly RULE_primitive = 40; + public static readonly RULE_sharedAttachmentDecl = 41; + public static readonly RULE_attachmentDecl = 42; + public static readonly RULE_stateDecl = 43; + public static readonly RULE_storagePolicy = 44; + public static readonly RULE_edgeDecl = 45; + public static readonly RULE_edgeEndpoint = 46; + public static readonly RULE_conformanceDecl = 47; + public static readonly RULE_conformanceItem = 48; + public static readonly RULE_stateFieldBindingDecl = 49; + public static readonly RULE_relationshipMaterializationDecl = 50; + public static readonly RULE_operationBindingDecl = 51; + public static readonly RULE_memberOperationRef = 52; + public static readonly RULE_operationName = 53; + public static readonly RULE_operationProvider = 54; + public static readonly RULE_statePrimitive = 55; + public static readonly RULE_edgePrimitive = 56; + public static readonly RULE_dependencyBindingBlock = 57; + public static readonly RULE_dependencyBinding = 58; + public static readonly RULE_constructorBindingDecl = 59; + public static readonly RULE_valueType = 60; + public static readonly RULE_recordField = 61; + public static readonly RULE_scalarType = 62; + public static readonly RULE_cardinality = 63; + public static readonly RULE_jsonLiteral = 64; + public static readonly RULE_jsonObject = 65; + public static readonly RULE_jsonMember = 66; + public static readonly RULE_jsonArray = 67; + public static readonly RULE_identifier = 68; + public static readonly RULE_stringLiteral = 69; public static readonly literalNames = [ - null, "'workspace'", "'type'", "'object'", "'storable'", "'implements'", + null, "'workspace'", "'query'", "'specialize'", "'root'", "'document'", + "'fragments'", "'view'", "'max'", "'allow'", "'poll'", "'queryable'", + "'rpc'", "'query-reason'", "'type'", "'object'", "'storable'", "'implements'", "'ref'", "'fragment'", "'import'", "'external'", "'atom'", "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", "'conform'", @@ -218,25 +236,27 @@ export class QuixosCapabilityParser extends antlr.Parser { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", - "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", - "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", - "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", - "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "RECORD", "BOOL", - "BYTES", "DOUBLE", "INT32", "INT64", "STRING", "UINT32", "UINT64", - "TRUE", "FALSE", "NULL", "ARROW", "COLON", "SEMI", "COMMA", "DOT", - "LBRACE", "RBRACE", "LBRACK", "RBRACK", "LPAREN", "RPAREN", "LT", - "GT", "AMP", "EQUAL", "INTEGER", "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", - "LINE_COMMENT", "BLOCK_COMMENT", "WS" + null, "WORKSPACE", "QUERY", "SPECIALIZE", "ROOT", "DOCUMENT", "FRAGMENTS", + "VIEW", "MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", + "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", + "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", + "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", + "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", + "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", + "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", + "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", + "KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER", + "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", + "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", + "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", + "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", + "OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32", + "INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", + "ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", + "RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER", + "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", + "WS" ]; public static readonly ruleNames = [ "document", "fragmentDecl", "sourceImportDecl", "workspaceDecl", @@ -244,15 +264,17 @@ export class QuixosCapabilityParser extends antlr.Parser { "resourcePreamble", "atomDecl", "interfaceResourceDecl", "typeParameters", "typeParameter", "interfaceType", "typeArguments", "typeArgument", "typeAliasDecl", "interfaceMember", "operationMember", "valueMember", - "valueMemberOperation", "relationshipMember", "relationshipOperation", - "targetConstraint", "packageResourceDecl", "packageExport", "packageOperationExport", - "packageFunctionExport", "packageConstructorExport", "eventClause", - "operationMode", "receiverRequirement", "identifierList", "dependencyBlock", - "dependencyPort", "primitiveList", "primitive", "sharedAttachmentDecl", - "attachmentDecl", "stateDecl", "storagePolicy", "edgeDecl", "edgeEndpoint", - "conformanceDecl", "conformanceItem", "stateFieldBindingDecl", "relationshipMaterializationDecl", - "operationBindingDecl", "memberOperationRef", "operationName", "operationProvider", - "statePrimitive", "edgePrimitive", "dependencyBindingBlock", "dependencyBinding", + "valueMemberOperation", "relationshipMember", "queryReadContract", + "relationshipOperation", "targetConstraint", "packageResourceDecl", + "packageExport", "packageQuery", "packageQuerySpecialization", "queryClause", + "packageOperationExport", "packageFunctionExport", "packageConstructorExport", + "eventClause", "operationMode", "receiverRequirement", "identifierList", + "dependencyBlock", "dependencyPort", "primitiveList", "primitive", + "sharedAttachmentDecl", "attachmentDecl", "stateDecl", "storagePolicy", + "edgeDecl", "edgeEndpoint", "conformanceDecl", "conformanceItem", + "stateFieldBindingDecl", "relationshipMaterializationDecl", "operationBindingDecl", + "memberOperationRef", "operationName", "operationProvider", "statePrimitive", + "edgePrimitive", "dependencyBindingBlock", "dependencyBinding", "constructorBindingDecl", "valueType", "recordField", "scalarType", "cardinality", "jsonLiteral", "jsonObject", "jsonMember", "jsonArray", "identifier", "stringLiteral", @@ -276,42 +298,42 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new DocumentContext(this.context, this.state); this.enterRule(localContext, 0, QuixosCapabilityParser.RULE_document); try { - this.state = 144; + this.state = 152; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 132; + this.state = 140; this.workspaceDecl(); - this.state = 133; + this.state = 141; this.match(QuixosCapabilityParser.EOF); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 135; + this.state = 143; this.interfaceResourceDecl(); - this.state = 136; + this.state = 144; this.match(QuixosCapabilityParser.EOF); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 138; + this.state = 146; this.packageResourceDecl(); - this.state = 139; + this.state = 147; this.match(QuixosCapabilityParser.EOF); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 141; + this.state = 149; this.fragmentDecl(); - this.state = 142; + this.state = 150; this.match(QuixosCapabilityParser.EOF); } break; @@ -337,25 +359,25 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 146; + this.state = 154; this.match(QuixosCapabilityParser.FRAGMENT); - this.state = 147; + this.state = 155; this.match(QuixosCapabilityParser.LBRACE); - this.state = 151; + this.state = 159; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 136578308) !== 0)) { + while (((((_la - 14)) & ~0x1F) === 0 && ((1 << (_la - 14)) & 34144577) !== 0)) { { { - this.state = 148; + this.state = 156; this.workspaceItem(); } } - this.state = 153; + this.state = 161; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 154; + this.state = 162; this.match(QuixosCapabilityParser.RBRACE); } } @@ -378,11 +400,11 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 156; + this.state = 164; this.match(QuixosCapabilityParser.IMPORT); - this.state = 157; + this.state = 165; this.stringLiteral(); - this.state = 158; + this.state = 166; this.match(QuixosCapabilityParser.SEMI); } } @@ -406,39 +428,39 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 160; - this.match(QuixosCapabilityParser.WORKSPACE); - this.state = 161; - this.identifier(); - this.state = 162; - this.match(QuixosCapabilityParser.ID); - this.state = 163; - this.stringLiteral(); - this.state = 164; - this.match(QuixosCapabilityParser.REVISION); - this.state = 165; - this.stringLiteral(); - this.state = 166; - this.match(QuixosCapabilityParser.COMMIT); - this.state = 167; - this.stringLiteral(); this.state = 168; - this.match(QuixosCapabilityParser.LBRACE); + this.match(QuixosCapabilityParser.WORKSPACE); + this.state = 169; + this.identifier(); + this.state = 170; + this.match(QuixosCapabilityParser.ID); + this.state = 171; + this.stringLiteral(); this.state = 172; + this.match(QuixosCapabilityParser.REVISION); + this.state = 173; + this.stringLiteral(); + this.state = 174; + this.match(QuixosCapabilityParser.COMMIT); + this.state = 175; + this.stringLiteral(); + this.state = 176; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 180; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 136578308) !== 0)) { + while (((((_la - 14)) & ~0x1F) === 0 && ((1 << (_la - 14)) & 34144577) !== 0)) { { { - this.state = 169; + this.state = 177; this.workspaceItem(); } } - this.state = 174; + this.state = 182; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 175; + this.state = 183; this.match(QuixosCapabilityParser.RBRACE); } } @@ -459,55 +481,55 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new WorkspaceItemContext(this.context, this.state); this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_workspaceItem); try { - this.state = 184; + this.state = 192; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 177; + this.state = 185; this.sourceImportDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 178; + this.state = 186; this.atomDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 179; + this.state = 187; this.resourceImportDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 180; + this.state = 188; this.sharedAttachmentDecl(); } break; case 5: this.enterOuterAlt(localContext, 5); { - this.state = 181; + this.state = 189; this.conformanceDecl(); } break; case 6: this.enterOuterAlt(localContext, 6); { - this.state = 182; + this.state = 190; this.constructorBindingDecl(); } break; case 7: this.enterOuterAlt(localContext, 7); { - this.state = 183; + this.state = 191; this.typeAliasDecl(); } break; @@ -530,32 +552,32 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ResourceImportDeclContext(this.context, this.state); this.enterRule(localContext, 10, QuixosCapabilityParser.RULE_resourceImportDecl); try { - this.state = 196; + this.state = 204; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 186; + this.state = 194; this.match(QuixosCapabilityParser.IMPORT); - this.state = 187; + this.state = 195; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 188; + this.state = 196; this.identifier(); - this.state = 189; + this.state = 197; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 191; + this.state = 199; this.match(QuixosCapabilityParser.IMPORT); - this.state = 192; + this.state = 200; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 193; + this.state = 201; this.identifier(); - this.state = 194; + this.state = 202; this.match(QuixosCapabilityParser.SEMI); } break; @@ -580,17 +602,17 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 198; + this.state = 206; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 199; + this.state = 207; this.match(QuixosCapabilityParser.ATOM); - this.state = 200; + this.state = 208; this.identifier(); - this.state = 201; + this.state = 209; this.match(QuixosCapabilityParser.ID); - this.state = 202; + this.state = 210; this.stringLiteral(); - this.state = 203; + this.state = 211; this.match(QuixosCapabilityParser.SEMI); } } @@ -613,17 +635,17 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 205; + this.state = 213; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 206; + this.state = 214; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 207; + this.state = 215; this.identifier(); - this.state = 208; + this.state = 216; this.match(QuixosCapabilityParser.REVISION); - this.state = 209; + this.state = 217; this.stringLiteral(); - this.state = 210; + this.state = 218; this.match(QuixosCapabilityParser.SEMI); } } @@ -644,34 +666,34 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ResourcePreambleContext(this.context, this.state); this.enterRule(localContext, 16, QuixosCapabilityParser.RULE_resourcePreamble); try { - this.state = 216; + this.state = 224; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 212; + this.state = 220; this.resourceImportDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 213; + this.state = 221; this.externalAtomDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 214; + this.state = 222; this.externalInterfaceDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 215; + this.state = 223; this.typeAliasDecl(); } break; @@ -697,27 +719,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 218; + this.state = 226; this.match(QuixosCapabilityParser.ATOM); - this.state = 219; + this.state = 227; this.identifier(); - this.state = 220; + this.state = 228; this.match(QuixosCapabilityParser.ID); - this.state = 221; + this.state = 229; this.stringLiteral(); - this.state = 224; + this.state = 232; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 50) { + if (_la === 62) { { - this.state = 222; + this.state = 230; this.match(QuixosCapabilityParser.DOC); - this.state = 223; + this.state = 231; this.stringLiteral(); } } - this.state = 226; + this.state = 234; this.match(QuixosCapabilityParser.SEMI); } } @@ -741,87 +763,87 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 231; + this.state = 239; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 772) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3162112) !== 0)) { { { - this.state = 228; + this.state = 236; this.resourcePreamble(); } } - this.state = 233; + this.state = 241; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 234; + this.state = 242; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 235; + this.state = 243; this.identifier(); - this.state = 237; + this.state = 245; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 236; + this.state = 244; this.typeParameters(); } } - this.state = 239; + this.state = 247; this.match(QuixosCapabilityParser.ID); - this.state = 240; + this.state = 248; this.stringLiteral(); - this.state = 241; + this.state = 249; this.match(QuixosCapabilityParser.REVISION); - this.state = 242; + this.state = 250; this.stringLiteral(); - this.state = 252; + this.state = 260; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 66) { { - this.state = 243; + this.state = 251; this.match(QuixosCapabilityParser.REQUIRES); - this.state = 244; + this.state = 252; this.interfaceType(); - this.state = 249; + this.state = 257; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 245; + this.state = 253; this.match(QuixosCapabilityParser.COMMA); - this.state = 246; + this.state = 254; this.interfaceType(); } } - this.state = 251; + this.state = 259; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 254; + this.state = 262; this.match(QuixosCapabilityParser.LBRACE); - this.state = 258; + this.state = 266; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 16891904) !== 0)) { + while (((((_la - 11)) & ~0x1F) === 0 && ((1 << (_la - 11)) & 33783809) !== 0)) { { { - this.state = 255; + this.state = 263; this.interfaceMember(); } } - this.state = 260; + this.state = 268; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 261; + this.state = 269; this.match(QuixosCapabilityParser.RBRACE); } } @@ -845,27 +867,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 263; + this.state = 271; this.match(QuixosCapabilityParser.LT); - this.state = 264; + this.state = 272; this.typeParameter(); - this.state = 269; + this.state = 277; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 265; + this.state = 273; this.match(QuixosCapabilityParser.COMMA); - this.state = 266; + this.state = 274; this.typeParameter(); } } - this.state = 271; + this.state = 279; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 272; + this.state = 280; this.match(QuixosCapabilityParser.GT); } } @@ -887,24 +909,24 @@ export class QuixosCapabilityParser extends antlr.Parser { this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_typeParameter); let _la: number; try { - this.state = 293; + this.state = 301; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.VALUE: this.enterOuterAlt(localContext, 1); { - this.state = 274; + this.state = 282; this.match(QuixosCapabilityParser.VALUE); - this.state = 275; + this.state = 283; this.identifier(); - this.state = 278; + this.state = 286; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 98) { + if (_la === 110) { { - this.state = 276; + this.state = 284; this.match(QuixosCapabilityParser.COLON); - this.state = 277; + this.state = 285; this.match(QuixosCapabilityParser.STORABLE); } } @@ -914,32 +936,32 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 2); { - this.state = 280; + this.state = 288; this.match(QuixosCapabilityParser.OBJECT); - this.state = 281; + this.state = 289; this.identifier(); - this.state = 291; + this.state = 299; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 5) { + if (_la === 17) { { - this.state = 282; + this.state = 290; this.match(QuixosCapabilityParser.IMPLEMENTS); - this.state = 283; + this.state = 291; this.interfaceType(); - this.state = 288; + this.state = 296; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 110) { + while (_la === 122) { { { - this.state = 284; + this.state = 292; this.match(QuixosCapabilityParser.AMP); - this.state = 285; + this.state = 293; this.interfaceType(); } } - this.state = 290; + this.state = 298; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } @@ -972,14 +994,14 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 295; + this.state = 303; this.identifier(); - this.state = 297; + this.state = 305; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 296; + this.state = 304; this.typeArguments(); } } @@ -1006,27 +1028,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 299; + this.state = 307; this.match(QuixosCapabilityParser.LT); - this.state = 300; + this.state = 308; this.typeArgument(); - this.state = 305; + this.state = 313; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 301; + this.state = 309; this.match(QuixosCapabilityParser.COMMA); - this.state = 302; + this.state = 310; this.typeArgument(); } } - this.state = 307; + this.state = 315; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 308; + this.state = 316; this.match(QuixosCapabilityParser.GT); } } @@ -1047,36 +1069,47 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new TypeArgumentContext(this.context, this.state); this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_typeArgument); try { - this.state = 317; + this.state = 325; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 1); { - this.state = 310; + this.state = 318; this.match(QuixosCapabilityParser.ATOM); - this.state = 311; + this.state = 319; this.identifier(); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 2); { - this.state = 312; + this.state = 320; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 313; + this.state = 321; this.interfaceType(); } break; case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 314; + this.state = 322; this.match(QuixosCapabilityParser.OBJECT); - this.state = 315; + this.state = 323; this.identifier(); } break; + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.SPECIALIZE: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.REF: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.UNIT: @@ -1098,7 +1131,7 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 4); { - this.state = 316; + this.state = 324; this.valueType(); } break; @@ -1126,25 +1159,25 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 319; + this.state = 327; this.match(QuixosCapabilityParser.TYPE); - this.state = 320; + this.state = 328; this.identifier(); - this.state = 322; + this.state = 330; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 321; + this.state = 329; this.typeParameters(); } } - this.state = 324; + this.state = 332; this.match(QuixosCapabilityParser.EQUAL); - this.state = 325; + this.state = 333; this.valueType(); - this.state = 326; + this.state = 334; this.match(QuixosCapabilityParser.SEMI); } } @@ -1165,33 +1198,30 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new InterfaceMemberContext(this.context, this.state); this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_interfaceMember); try { - this.state = 331; + this.state = 339; this.errorHandler.sync(this); - switch (this.tokenStream.LA(1)) { - case QuixosCapabilityParser.VALUE: + switch (this.interpreter.adaptivePredict(this.tokenStream, 21, this.context) ) { + case 1: this.enterOuterAlt(localContext, 1); { - this.state = 328; + this.state = 336; this.valueMember(); } break; - case QuixosCapabilityParser.RELATION: + case 2: this.enterOuterAlt(localContext, 2); { - this.state = 329; + this.state = 337; this.relationshipMember(); } break; - case QuixosCapabilityParser.OPERATION: - case QuixosCapabilityParser.STATIC: + case 3: this.enterOuterAlt(localContext, 3); { - this.state = 330; + this.state = 338; this.operationMember(); } break; - default: - throw new antlr.NoViableAltException(this); } } catch (re) { @@ -1214,43 +1244,43 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 334; + this.state = 342; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 24) { + if (_la === 36) { { - this.state = 333; + this.state = 341; this.match(QuixosCapabilityParser.STATIC); } } - this.state = 336; - this.match(QuixosCapabilityParser.OPERATION); - this.state = 337; - this.identifier(); - this.state = 338; - this.match(QuixosCapabilityParser.ID); - this.state = 339; - this.stringLiteral(); - this.state = 340; - this.match(QuixosCapabilityParser.COLON); - this.state = 341; - this.valueType(); - this.state = 342; - this.match(QuixosCapabilityParser.ARROW); - this.state = 343; - this.valueType(); this.state = 344; - this.match(QuixosCapabilityParser.LBRACE); + this.match(QuixosCapabilityParser.OPERATION); this.state = 345; - this.match(QuixosCapabilityParser.CALL); + this.identifier(); this.state = 346; this.match(QuixosCapabilityParser.ID); this.state = 347; this.stringLiteral(); this.state = 348; - this.match(QuixosCapabilityParser.SEMI); + this.match(QuixosCapabilityParser.COLON); this.state = 349; + this.valueType(); + this.state = 350; + this.match(QuixosCapabilityParser.ARROW); + this.state = 351; + this.valueType(); + this.state = 352; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 353; + this.match(QuixosCapabilityParser.CALL); + this.state = 354; + this.match(QuixosCapabilityParser.ID); + this.state = 355; + this.stringLiteral(); + this.state = 356; + this.match(QuixosCapabilityParser.SEMI); + this.state = 357; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1274,35 +1304,45 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 351; - this.match(QuixosCapabilityParser.VALUE); - this.state = 352; - this.identifier(); - this.state = 353; - this.match(QuixosCapabilityParser.ID); - this.state = 354; - this.stringLiteral(); - this.state = 355; - this.match(QuixosCapabilityParser.COLON); - this.state = 356; - this.valueType(); - this.state = 357; - this.match(QuixosCapabilityParser.LBRACE); - this.state = 361; + this.state = 360; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 7) !== 0)) { + if (_la === 11) { + { + this.state = 359; + this.queryReadContract(); + } + } + + this.state = 362; + this.match(QuixosCapabilityParser.VALUE); + this.state = 363; + this.identifier(); + this.state = 364; + this.match(QuixosCapabilityParser.ID); + this.state = 365; + this.stringLiteral(); + this.state = 366; + this.match(QuixosCapabilityParser.COLON); + this.state = 367; + this.valueType(); + this.state = 368; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 372; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (((((_la - 68)) & ~0x1F) === 0 && ((1 << (_la - 68)) & 7) !== 0)) { { { - this.state = 358; + this.state = 369; this.valueMemberOperation(); } } - this.state = 363; + this.state = 374; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 364; + this.state = 375; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1323,53 +1363,53 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ValueMemberOperationContext(this.context, this.state); this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_valueMemberOperation); try { - this.state = 385; + this.state = 396; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 1); { - this.state = 366; + this.state = 377; this.match(QuixosCapabilityParser.GET); - this.state = 367; + this.state = 378; this.match(QuixosCapabilityParser.ID); - this.state = 368; + this.state = 379; this.stringLiteral(); - this.state = 369; + this.state = 380; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 2); { - this.state = 371; + this.state = 382; this.match(QuixosCapabilityParser.SET); - this.state = 372; + this.state = 383; this.match(QuixosCapabilityParser.ID); - this.state = 373; + this.state = 384; this.stringLiteral(); - this.state = 374; + this.state = 385; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 3); { - this.state = 376; + this.state = 387; this.match(QuixosCapabilityParser.WATCH); - this.state = 377; + this.state = 388; this.match(QuixosCapabilityParser.START); - this.state = 378; + this.state = 389; this.match(QuixosCapabilityParser.ID); - this.state = 379; + this.state = 390; this.stringLiteral(); - this.state = 380; + this.state = 391; this.match(QuixosCapabilityParser.STOP); - this.state = 381; + this.state = 392; this.match(QuixosCapabilityParser.ID); - this.state = 382; + this.state = 393; this.stringLiteral(); - this.state = 383; + this.state = 394; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1397,47 +1437,69 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 387; - this.match(QuixosCapabilityParser.RELATION); - this.state = 388; - this.identifier(); - this.state = 389; - this.match(QuixosCapabilityParser.ID); - this.state = 390; - this.stringLiteral(); - this.state = 391; - this.match(QuixosCapabilityParser.COLON); - this.state = 392; - this.cardinality(); - this.state = 393; - this.targetConstraint(); - this.state = 395; + this.state = 399; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 77) { + if (_la === 11) { { - this.state = 394; + this.state = 398; + this.queryReadContract(); + } + } + + this.state = 401; + this.match(QuixosCapabilityParser.RELATION); + this.state = 402; + this.identifier(); + this.state = 403; + this.match(QuixosCapabilityParser.ID); + this.state = 404; + this.stringLiteral(); + this.state = 405; + this.match(QuixosCapabilityParser.COLON); + this.state = 406; + this.cardinality(); + this.state = 407; + this.targetConstraint(); + this.state = 409; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 89) { + { + this.state = 408; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 397; - this.match(QuixosCapabilityParser.LBRACE); - this.state = 401; + this.state = 413; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 58)) & ~0x1F) === 0 && ((1 << (_la - 58)) & 225) !== 0)) { + if (_la === 59) { + { + this.state = 411; + this.match(QuixosCapabilityParser.KEYED); + this.state = 412; + this.stringLiteral(); + } + } + + this.state = 415; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 419; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (((((_la - 70)) & ~0x1F) === 0 && ((1 << (_la - 70)) & 225) !== 0)) { { { - this.state = 398; + this.state = 416; this.relationshipOperation(); } } - this.state = 403; + this.state = 421; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 404; + this.state = 422; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1454,70 +1516,104 @@ export class QuixosCapabilityParser extends antlr.Parser { } return localContext; } + public queryReadContract(): QueryReadContractContext { + let localContext = new QueryReadContractContext(this.context, this.state); + this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_queryReadContract); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 424; + this.match(QuixosCapabilityParser.QUERYABLE); + this.state = 426; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 12) { + { + this.state = 425; + this.match(QuixosCapabilityParser.RPC); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } public relationshipOperation(): RelationshipOperationContext { let localContext = new RelationshipOperationContext(this.context, this.state); - this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_relationshipOperation); + this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_relationshipOperation); try { - this.state = 430; + this.state = 452; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 1); { - this.state = 406; + this.state = 428; this.match(QuixosCapabilityParser.RESOLVE); - this.state = 407; + this.state = 429; this.match(QuixosCapabilityParser.ID); - this.state = 408; + this.state = 430; this.stringLiteral(); - this.state = 409; + this.state = 431; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 2); { - this.state = 411; + this.state = 433; this.match(QuixosCapabilityParser.CONNECT); - this.state = 412; + this.state = 434; this.match(QuixosCapabilityParser.ID); - this.state = 413; + this.state = 435; this.stringLiteral(); - this.state = 414; + this.state = 436; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 3); { - this.state = 416; + this.state = 438; this.match(QuixosCapabilityParser.DISCONNECT); - this.state = 417; + this.state = 439; this.match(QuixosCapabilityParser.ID); - this.state = 418; + this.state = 440; this.stringLiteral(); - this.state = 419; + this.state = 441; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 4); { - this.state = 421; + this.state = 443; this.match(QuixosCapabilityParser.WATCH); - this.state = 422; + this.state = 444; this.match(QuixosCapabilityParser.START); - this.state = 423; + this.state = 445; this.match(QuixosCapabilityParser.ID); - this.state = 424; + this.state = 446; this.stringLiteral(); - this.state = 425; + this.state = 447; this.match(QuixosCapabilityParser.STOP); - this.state = 426; + this.state = 448; this.match(QuixosCapabilityParser.ID); - this.state = 427; + this.state = 449; this.stringLiteral(); - this.state = 428; + this.state = 450; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1540,34 +1636,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public targetConstraint(): TargetConstraintContext { let localContext = new TargetConstraintContext(this.context, this.state); - this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_targetConstraint); + this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_targetConstraint); let _la: number; try { - this.state = 441; + this.state = 463; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 1); { - this.state = 432; + this.state = 454; this.match(QuixosCapabilityParser.ATOM); - this.state = 433; + this.state = 455; this.identifier(); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 2); { - this.state = 434; + this.state = 456; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 435; + this.state = 457; this.identifier(); - this.state = 437; + this.state = 459; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 436; + this.state = 458; this.typeArguments(); } } @@ -1577,9 +1673,9 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 439; + this.state = 461; this.match(QuixosCapabilityParser.OBJECT); - this.state = 440; + this.state = 462; this.identifier(); } break; @@ -1602,66 +1698,66 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageResourceDecl(): PackageResourceDeclContext { let localContext = new PackageResourceDeclContext(this.context, this.state); - this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_packageResourceDecl); + this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_packageResourceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 446; + this.state = 468; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 772) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3162112) !== 0)) { { { - this.state = 443; + this.state = 465; this.resourcePreamble(); } } - this.state = 448; + this.state = 470; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 449; + this.state = 471; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 450; + this.state = 472; this.identifier(); - this.state = 451; + this.state = 473; this.match(QuixosCapabilityParser.ID); - this.state = 452; + this.state = 474; this.stringLiteral(); - this.state = 453; + this.state = 475; this.match(QuixosCapabilityParser.REVISION); - this.state = 454; + this.state = 476; this.stringLiteral(); - this.state = 457; + this.state = 479; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 44) { + if (_la === 56) { { - this.state = 455; + this.state = 477; this.match(QuixosCapabilityParser.SEMANTIC_MAJOR); - this.state = 456; + this.state = 478; this.match(QuixosCapabilityParser.INTEGER); } } - this.state = 459; + this.state = 481; this.match(QuixosCapabilityParser.LBRACE); - this.state = 463; + this.state = 485; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 458752) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1879048196) !== 0)) { { { - this.state = 460; + this.state = 482; this.packageExport(); } } - this.state = 465; + this.state = 487; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 466; + this.state = 488; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1680,32 +1776,266 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageExport(): PackageExportContext { let localContext = new PackageExportContext(this.context, this.state); - this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_packageExport); + this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_packageExport); try { - this.state = 471; + this.state = 495; this.errorHandler.sync(this); - switch (this.tokenStream.LA(1)) { - case QuixosCapabilityParser.OPERATION: + switch (this.interpreter.adaptivePredict(this.tokenStream, 37, this.context) ) { + case 1: this.enterOuterAlt(localContext, 1); { - this.state = 468; + this.state = 490; this.packageOperationExport(); } break; - case QuixosCapabilityParser.FUNCTION: + case 2: this.enterOuterAlt(localContext, 2); { - this.state = 469; + this.state = 491; this.packageFunctionExport(); } break; - case QuixosCapabilityParser.CONSTRUCTOR: + case 3: this.enterOuterAlt(localContext, 3); { - this.state = 470; + this.state = 492; this.packageConstructorExport(); } break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 493; + this.packageQuery(); + } + break; + case 5: + this.enterOuterAlt(localContext, 5); + { + this.state = 494; + this.packageQuerySpecialization(); + } + break; + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public packageQuery(): PackageQueryContext { + let localContext = new PackageQueryContext(this.context, this.state); + this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_packageQuery); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 497; + this.match(QuixosCapabilityParser.QUERY); + this.state = 498; + this.identifier(); + this.state = 500; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 120) { + { + this.state = 499; + this.typeParameters(); + } + } + + this.state = 502; + this.match(QuixosCapabilityParser.ID); + this.state = 503; + this.stringLiteral(); + this.state = 504; + this.match(QuixosCapabilityParser.ROOT); + this.state = 505; + this.interfaceType(); + this.state = 506; + this.match(QuixosCapabilityParser.DOCUMENT); + this.state = 507; + this.stringLiteral(); + this.state = 508; + this.match(QuixosCapabilityParser.OPERATION); + this.state = 509; + this.stringLiteral(); + this.state = 510; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 514; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1984) !== 0) || _la === 70) { + { + { + this.state = 511; + this.queryClause(); + } + } + this.state = 516; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 517; + this.match(QuixosCapabilityParser.RBRACE); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public packageQuerySpecialization(): PackageQuerySpecializationContext { + let localContext = new PackageQuerySpecializationContext(this.context, this.state); + this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_packageQuerySpecialization); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 519; + this.match(QuixosCapabilityParser.QUERY); + this.state = 520; + this.identifier(); + this.state = 521; + this.match(QuixosCapabilityParser.ID); + this.state = 522; + this.stringLiteral(); + this.state = 523; + this.match(QuixosCapabilityParser.SPECIALIZE); + this.state = 524; + this.identifier(); + this.state = 525; + this.typeArguments(); + this.state = 526; + this.match(QuixosCapabilityParser.SEMI); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public queryClause(): QueryClauseContext { + let localContext = new QueryClauseContext(this.context, this.state); + this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_queryClause); + let _la: number; + try { + this.state = 561; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case QuixosCapabilityParser.FRAGMENTS: + this.enterOuterAlt(localContext, 1); + { + this.state = 528; + this.match(QuixosCapabilityParser.FRAGMENTS); + this.state = 529; + this.stringLiteral(); + this.state = 530; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.VIEW: + this.enterOuterAlt(localContext, 2); + { + this.state = 532; + this.match(QuixosCapabilityParser.VIEW); + this.state = 534; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 15) { + { + this.state = 533; + this.match(QuixosCapabilityParser.OBJECT); + } + } + + this.state = 536; + this.identifier(); + this.state = 537; + this.match(QuixosCapabilityParser.AS); + this.state = 538; + this.interfaceType(); + this.state = 539; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.MAX: + this.enterOuterAlt(localContext, 3); + { + this.state = 541; + this.match(QuixosCapabilityParser.MAX); + this.state = 542; + this.identifier(); + this.state = 543; + this.match(QuixosCapabilityParser.INTEGER); + this.state = 544; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.ALLOW: + this.enterOuterAlt(localContext, 4); + { + this.state = 546; + this.match(QuixosCapabilityParser.ALLOW); + this.state = 547; + this.interfaceType(); + this.state = 548; + this.match(QuixosCapabilityParser.DOT); + this.state = 549; + this.identifier(); + this.state = 550; + this.identifier(); + this.state = 551; + this.stringLiteral(); + this.state = 552; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.WATCH: + this.enterOuterAlt(localContext, 5); + { + this.state = 554; + this.match(QuixosCapabilityParser.WATCH); + this.state = 555; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.POLL: + this.enterOuterAlt(localContext, 6); + { + this.state = 556; + this.match(QuixosCapabilityParser.POLL); + this.state = 557; + this.match(QuixosCapabilityParser.INTEGER); + this.state = 558; + this.stringLiteral(); + this.state = 559; + this.match(QuixosCapabilityParser.SEMI); + } + break; default: throw new antlr.NoViableAltException(this); } @@ -1725,66 +2055,66 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageOperationExport(): PackageOperationExportContext { let localContext = new PackageOperationExportContext(this.context, this.state); - this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_packageOperationExport); + this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_packageOperationExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 473; + this.state = 563; this.match(QuixosCapabilityParser.OPERATION); - this.state = 474; + this.state = 564; this.identifier(); - this.state = 476; + this.state = 566; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 475; + this.state = 565; this.typeParameters(); } } - this.state = 478; + this.state = 568; this.match(QuixosCapabilityParser.ID); - this.state = 479; + this.state = 569; this.stringLiteral(); - this.state = 480; + this.state = 570; this.match(QuixosCapabilityParser.COLON); - this.state = 481; + this.state = 571; this.valueType(); - this.state = 482; + this.state = 572; this.match(QuixosCapabilityParser.ARROW); - this.state = 483; + this.state = 573; this.valueType(); - this.state = 484; + this.state = 574; this.match(QuixosCapabilityParser.MODE); - this.state = 485; + this.state = 575; this.operationMode(); - this.state = 487; + this.state = 577; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 52) { + if (_la === 64) { { - this.state = 486; + this.state = 576; this.eventClause(); } } - this.state = 489; + this.state = 579; this.match(QuixosCapabilityParser.RECEIVER); - this.state = 490; + this.state = 580; this.receiverRequirement(); - this.state = 492; + this.state = 582; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 66) { { - this.state = 491; + this.state = 581; this.dependencyBlock(); } } - this.state = 494; + this.state = 584; this.match(QuixosCapabilityParser.SEMI); } } @@ -1803,48 +2133,48 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageFunctionExport(): PackageFunctionExportContext { let localContext = new PackageFunctionExportContext(this.context, this.state); - this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_packageFunctionExport); + this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_packageFunctionExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 496; + this.state = 586; this.match(QuixosCapabilityParser.FUNCTION); - this.state = 497; + this.state = 587; this.identifier(); - this.state = 499; + this.state = 589; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 498; + this.state = 588; this.typeParameters(); } } - this.state = 501; + this.state = 591; this.match(QuixosCapabilityParser.ID); - this.state = 502; + this.state = 592; this.stringLiteral(); - this.state = 503; + this.state = 593; this.match(QuixosCapabilityParser.COLON); - this.state = 504; + this.state = 594; this.valueType(); - this.state = 505; + this.state = 595; this.match(QuixosCapabilityParser.ARROW); - this.state = 506; + this.state = 596; this.valueType(); - this.state = 508; + this.state = 598; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 66) { { - this.state = 507; + this.state = 597; this.dependencyBlock(); } } - this.state = 510; + this.state = 600; this.match(QuixosCapabilityParser.SEMI); } } @@ -1863,38 +2193,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageConstructorExport(): PackageConstructorExportContext { let localContext = new PackageConstructorExportContext(this.context, this.state); - this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_packageConstructorExport); + this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_packageConstructorExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 512; + this.state = 602; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 513; + this.state = 603; this.identifier(); - this.state = 514; + this.state = 604; this.match(QuixosCapabilityParser.ID); - this.state = 515; + this.state = 605; this.stringLiteral(); - this.state = 516; + this.state = 606; this.match(QuixosCapabilityParser.CONSTRUCTS); - this.state = 517; + this.state = 607; this.identifier(); - this.state = 518; + this.state = 608; this.match(QuixosCapabilityParser.COLON); - this.state = 519; + this.state = 609; this.valueType(); - this.state = 521; + this.state = 611; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 66) { { - this.state = 520; + this.state = 610; this.dependencyBlock(); } } - this.state = 523; + this.state = 613; this.match(QuixosCapabilityParser.SEMI); } } @@ -1913,13 +2243,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public eventClause(): EventClauseContext { let localContext = new EventClauseContext(this.context, this.state); - this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_eventClause); + this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_eventClause); try { this.enterOuterAlt(localContext, 1); { - this.state = 525; + this.state = 615; this.match(QuixosCapabilityParser.EMITS); - this.state = 526; + this.state = 616; this.valueType(); } } @@ -1938,14 +2268,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationMode(): OperationModeContext { let localContext = new OperationModeContext(this.context, this.state); - this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_operationMode); + this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_operationMode); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 528; + this.state = 618; _la = this.tokenStream.LA(1); - if(!(((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 31) !== 0))) { + if(!(((((_la - 78)) & ~0x1F) === 0 && ((1 << (_la - 78)) & 31) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -1969,71 +2299,71 @@ export class QuixosCapabilityParser extends antlr.Parser { } public receiverRequirement(): ReceiverRequirementContext { let localContext = new ReceiverRequirementContext(this.context, this.state); - this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_receiverRequirement); + this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_receiverRequirement); let _la: number; try { - this.state = 548; + this.state = 638; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ANY: this.enterOuterAlt(localContext, 1); { - this.state = 530; + this.state = 620; this.match(QuixosCapabilityParser.ANY); } break; case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 2); { - this.state = 531; + this.state = 621; this.match(QuixosCapabilityParser.ATOM); - this.state = 532; + this.state = 622; this.identifier(); } break; case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 533; + this.state = 623; this.match(QuixosCapabilityParser.OBJECT); - this.state = 534; + this.state = 624; this.identifier(); } break; case QuixosCapabilityParser.INTERFACES: this.enterOuterAlt(localContext, 4); { - this.state = 535; + this.state = 625; this.match(QuixosCapabilityParser.INTERFACES); - this.state = 536; + this.state = 626; this.match(QuixosCapabilityParser.LBRACK); - this.state = 545; + this.state = 635; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 40 || _la === 114) { + if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 8188) !== 0) || _la === 52 || _la === 126) { { - this.state = 537; + this.state = 627; this.interfaceType(); - this.state = 542; + this.state = 632; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 538; + this.state = 628; this.match(QuixosCapabilityParser.COMMA); - this.state = 539; + this.state = 629; this.interfaceType(); } } - this.state = 544; + this.state = 634; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 547; + this.state = 637; this.match(QuixosCapabilityParser.RBRACK); } break; @@ -2056,26 +2386,26 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifierList(): IdentifierListContext { let localContext = new IdentifierListContext(this.context, this.state); - this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_identifierList); + this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_identifierList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 550; + this.state = 640; this.identifier(); - this.state = 555; + this.state = 645; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 551; + this.state = 641; this.match(QuixosCapabilityParser.COMMA); - this.state = 552; + this.state = 642; this.identifier(); } } - this.state = 557; + this.state = 647; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } @@ -2096,30 +2426,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBlock(): DependencyBlockContext { let localContext = new DependencyBlockContext(this.context, this.state); - this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_dependencyBlock); + this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_dependencyBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 558; + this.state = 648; this.match(QuixosCapabilityParser.REQUIRES); - this.state = 559; + this.state = 649; this.match(QuixosCapabilityParser.LBRACE); - this.state = 563; + this.state = 653; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 805570560) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1082130436) !== 0) || _la === 40 || _la === 41) { { { - this.state = 560; + this.state = 650; this.dependencyPort(); } } - this.state = 565; + this.state = 655; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 566; + this.state = 656; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2138,113 +2468,136 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyPort(): DependencyPortContext { let localContext = new DependencyPortContext(this.context, this.state); - this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_dependencyPort); + this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_dependencyPort); let _la: number; try { - this.state = 610; + this.state = 710; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 568; + this.state = 658; this.match(QuixosCapabilityParser.STATE); - this.state = 569; + this.state = 659; this.identifier(); - this.state = 570; + this.state = 660; this.match(QuixosCapabilityParser.ID); - this.state = 571; + this.state = 661; this.stringLiteral(); - this.state = 572; + this.state = 662; this.match(QuixosCapabilityParser.COLON); - this.state = 573; + this.state = 663; this.valueType(); - this.state = 574; + this.state = 664; this.primitiveList(); - this.state = 575; + this.state = 665; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 577; + this.state = 667; this.match(QuixosCapabilityParser.EDGE); - this.state = 578; + this.state = 668; this.identifier(); - this.state = 579; + this.state = 669; this.match(QuixosCapabilityParser.ID); - this.state = 580; + this.state = 670; this.stringLiteral(); - this.state = 581; + this.state = 671; this.match(QuixosCapabilityParser.COLON); - this.state = 582; + this.state = 672; this.cardinality(); - this.state = 583; + this.state = 673; this.targetConstraint(); - this.state = 584; + this.state = 674; this.primitiveList(); - this.state = 585; + this.state = 675; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 3); { - this.state = 587; + this.state = 677; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 588; + this.state = 678; this.identifier(); - this.state = 589; + this.state = 679; this.match(QuixosCapabilityParser.ID); - this.state = 590; + this.state = 680; this.stringLiteral(); - this.state = 591; + this.state = 681; this.match(QuixosCapabilityParser.COLON); - this.state = 592; + this.state = 682; this.identifier(); - this.state = 594; + this.state = 684; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 593; + this.state = 683; this.typeArguments(); } } - this.state = 596; + this.state = 686; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONSTRUCTOR: this.enterOuterAlt(localContext, 4); { - this.state = 598; + this.state = 688; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 599; + this.state = 689; this.identifier(); - this.state = 600; + this.state = 690; this.match(QuixosCapabilityParser.ID); - this.state = 601; + this.state = 691; this.stringLiteral(); - this.state = 602; + this.state = 692; this.match(QuixosCapabilityParser.COLON); - this.state = 603; + this.state = 693; this.identifier(); - this.state = 606; + this.state = 696; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 20) { + if (_la === 32) { { - this.state = 604; + this.state = 694; this.match(QuixosCapabilityParser.INPUT); - this.state = 605; + this.state = 695; this.valueType(); } } - this.state = 608; + this.state = 698; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.QUERY: + this.enterOuterAlt(localContext, 5); + { + this.state = 700; + this.match(QuixosCapabilityParser.QUERY); + this.state = 701; + this.identifier(); + this.state = 702; + this.match(QuixosCapabilityParser.ID); + this.state = 703; + this.stringLiteral(); + this.state = 704; + this.match(QuixosCapabilityParser.COLON); + this.state = 705; + this.identifier(); + this.state = 706; + this.match(QuixosCapabilityParser.DOT); + this.state = 707; + this.identifier(); + this.state = 708; this.match(QuixosCapabilityParser.SEMI); } break; @@ -2267,32 +2620,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitiveList(): PrimitiveListContext { let localContext = new PrimitiveListContext(this.context, this.state); - this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_primitiveList); + this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_primitiveList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 612; + this.state = 712; this.match(QuixosCapabilityParser.LBRACK); - this.state = 613; + this.state = 713; this.primitive(); - this.state = 618; + this.state = 718; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 614; + this.state = 714; this.match(QuixosCapabilityParser.COMMA); - this.state = 615; + this.state = 715; this.primitive(); } } - this.state = 620; + this.state = 720; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 621; + this.state = 721; this.match(QuixosCapabilityParser.RBRACK); } } @@ -2311,14 +2664,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitive(): PrimitiveContext { let localContext = new PrimitiveContext(this.context, this.state); - this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_primitive); + this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_primitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 623; + this.state = 723; _la = this.tokenStream.LA(1); - if(!(((((_la - 61)) & ~0x1F) === 0 && ((1 << (_la - 61)) & 223) !== 0))) { + if(!(((((_la - 73)) & ~0x1F) === 0 && ((1 << (_la - 73)) & 223) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2342,13 +2695,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public sharedAttachmentDecl(): SharedAttachmentDeclContext { let localContext = new SharedAttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_sharedAttachmentDecl); + this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_sharedAttachmentDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 625; + this.state = 725; this.match(QuixosCapabilityParser.SHARED); - this.state = 626; + this.state = 726; this.attachmentDecl(); } } @@ -2367,22 +2720,22 @@ export class QuixosCapabilityParser extends antlr.Parser { } public attachmentDecl(): AttachmentDeclContext { let localContext = new AttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_attachmentDecl); + this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_attachmentDecl); try { - this.state = 630; + this.state = 730; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 628; + this.state = 728; this.stateDecl(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 629; + this.state = 729; this.edgeDecl(); } break; @@ -2405,44 +2758,44 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stateDecl(): StateDeclContext { let localContext = new StateDeclContext(this.context, this.state); - this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_stateDecl); + this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_stateDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 632; + this.state = 732; this.match(QuixosCapabilityParser.STATE); - this.state = 633; + this.state = 733; this.identifier(); - this.state = 634; + this.state = 734; this.match(QuixosCapabilityParser.ID); - this.state = 635; + this.state = 735; this.stringLiteral(); - this.state = 636; + this.state = 736; this.match(QuixosCapabilityParser.ON); - this.state = 637; + this.state = 737; this.identifier(); - this.state = 638; + this.state = 738; this.match(QuixosCapabilityParser.COLON); - this.state = 639; + this.state = 739; this.valueType(); - this.state = 640; + this.state = 740; this.match(QuixosCapabilityParser.POLICY); - this.state = 641; + this.state = 741; this.storagePolicy(); - this.state = 644; + this.state = 744; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 39) { + if (_la === 51) { { - this.state = 642; + this.state = 742; this.match(QuixosCapabilityParser.DEFAULT); - this.state = 643; + this.state = 743; this.jsonLiteral(); } } - this.state = 646; + this.state = 746; this.match(QuixosCapabilityParser.SEMI); } } @@ -2461,28 +2814,28 @@ export class QuixosCapabilityParser extends antlr.Parser { } public storagePolicy(): StoragePolicyContext { let localContext = new StoragePolicyContext(this.context, this.state); - this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_storagePolicy); + this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_storagePolicy); try { - this.state = 654; + this.state = 754; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.OPTIMISTIC_REGISTER: this.enterOuterAlt(localContext, 1); { - this.state = 648; + this.state = 748; this.match(QuixosCapabilityParser.OPTIMISTIC_REGISTER); } break; case QuixosCapabilityParser.CRDT: this.enterOuterAlt(localContext, 2); { - this.state = 649; + this.state = 749; this.match(QuixosCapabilityParser.CRDT); - this.state = 650; + this.state = 750; this.match(QuixosCapabilityParser.LPAREN); - this.state = 651; + this.state = 751; this.valueType(); - this.state = 652; + this.state = 752; this.match(QuixosCapabilityParser.RPAREN); } break; @@ -2505,25 +2858,25 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeDecl(): EdgeDeclContext { let localContext = new EdgeDeclContext(this.context, this.state); - this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_edgeDecl); + this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_edgeDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 656; + this.state = 756; this.match(QuixosCapabilityParser.EDGE); - this.state = 657; + this.state = 757; this.identifier(); - this.state = 658; + this.state = 758; this.match(QuixosCapabilityParser.ID); - this.state = 659; + this.state = 759; this.stringLiteral(); - this.state = 660; + this.state = 760; this.match(QuixosCapabilityParser.LBRACE); - this.state = 661; + this.state = 761; this.edgeEndpoint(); - this.state = 662; + this.state = 762; this.edgeEndpoint(); - this.state = 663; + this.state = 763; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2542,78 +2895,78 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeEndpoint(): EdgeEndpointContext { let localContext = new EdgeEndpointContext(this.context, this.state); - this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_edgeEndpoint); + this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_edgeEndpoint); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 665; + this.state = 765; this.targetConstraint(); - this.state = 666; + this.state = 766; this.match(QuixosCapabilityParser.PROJECTION); - this.state = 667; + this.state = 767; this.identifier(); - this.state = 668; + this.state = 768; this.match(QuixosCapabilityParser.ID); - this.state = 669; + this.state = 769; this.stringLiteral(); - this.state = 670; + this.state = 770; this.cardinality(); - this.state = 672; + this.state = 772; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 77) { + if (_la === 89) { { - this.state = 671; + this.state = 771; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 676; + this.state = 776; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 45) { + if (_la === 57) { { - this.state = 674; + this.state = 774; this.match(QuixosCapabilityParser.ON_DELETE); - this.state = 675; + this.state = 775; this.stringLiteral(); } } - this.state = 679; + this.state = 779; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 46) { + if (_la === 58) { { - this.state = 678; + this.state = 778; this.match(QuixosCapabilityParser.RETAIN_OTHER); } } - this.state = 683; + this.state = 783; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 47) { + if (_la === 59) { { - this.state = 681; + this.state = 781; this.match(QuixosCapabilityParser.KEYED); - this.state = 682; + this.state = 782; this.stringLiteral(); } } - this.state = 686; + this.state = 786; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 48) { + if (_la === 60) { { - this.state = 685; + this.state = 785; this.match(QuixosCapabilityParser.PUBLIC_TRAVERSAL); } } - this.state = 688; + this.state = 788; this.match(QuixosCapabilityParser.SEMI); } } @@ -2632,70 +2985,70 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceDecl(): ConformanceDeclContext { let localContext = new ConformanceDeclContext(this.context, this.state); - this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_conformanceDecl); + this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_conformanceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 690; + this.state = 790; this.match(QuixosCapabilityParser.CONFORM); - this.state = 691; + this.state = 791; this.identifier(); - this.state = 692; + this.state = 792; this.match(QuixosCapabilityParser.AS); - this.state = 693; + this.state = 793; this.identifier(); - this.state = 695; + this.state = 795; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 694; + this.state = 794; this.typeArguments(); } } - this.state = 699; + this.state = 799; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 49) { + if (_la === 61) { { - this.state = 697; + this.state = 797; this.match(QuixosCapabilityParser.ID); - this.state = 698; + this.state = 798; this.stringLiteral(); } } - this.state = 703; + this.state = 803; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 44) { + if (_la === 56) { { - this.state = 701; + this.state = 801; this.match(QuixosCapabilityParser.SEMANTIC_MAJOR); - this.state = 702; + this.state = 802; this.match(QuixosCapabilityParser.INTEGER); } } - this.state = 705; + this.state = 805; this.match(QuixosCapabilityParser.LBRACE); - this.state = 709; + this.state = 809; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 23)) & ~0x1F) === 0 && ((1 << (_la - 23)) & 2057) !== 0)) { + while (((((_la - 35)) & ~0x1F) === 0 && ((1 << (_la - 35)) & 2057) !== 0)) { { { - this.state = 706; + this.state = 806; this.conformanceItem(); } } - this.state = 711; + this.state = 811; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 712; + this.state = 812; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2714,38 +3067,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceItem(): ConformanceItemContext { let localContext = new ConformanceItemContext(this.context, this.state); - this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_conformanceItem); + this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_conformanceItem); try { - this.state = 719; + this.state = 819; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 61, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 69, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 714; + this.state = 814; this.match(QuixosCapabilityParser.PRIVATE); - this.state = 715; + this.state = 815; this.attachmentDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 716; + this.state = 816; this.operationBindingDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 717; + this.state = 817; this.stateFieldBindingDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 718; + this.state = 818; this.relationshipMaterializationDecl(); } break; @@ -2766,21 +3119,21 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stateFieldBindingDecl(): StateFieldBindingDeclContext { let localContext = new StateFieldBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_stateFieldBindingDecl); + this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_stateFieldBindingDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 721; + this.state = 821; this.match(QuixosCapabilityParser.BIND); - this.state = 722; + this.state = 822; this.identifier(); - this.state = 723; + this.state = 823; this.match(QuixosCapabilityParser.TO); - this.state = 724; + this.state = 824; this.match(QuixosCapabilityParser.STATE); - this.state = 725; + this.state = 825; this.identifier(); - this.state = 726; + this.state = 826; this.match(QuixosCapabilityParser.SEMI); } } @@ -2799,35 +3152,35 @@ export class QuixosCapabilityParser extends antlr.Parser { } public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext { let localContext = new RelationshipMaterializationDeclContext(this.context, this.state); - this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); + this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 728; + this.state = 828; this.match(QuixosCapabilityParser.MATERIALIZE); - this.state = 729; + this.state = 829; this.identifier(); - this.state = 730; + this.state = 830; this.match(QuixosCapabilityParser.IF); - this.state = 731; + this.state = 831; this.match(QuixosCapabilityParser.ABSENT); - this.state = 732; + this.state = 832; this.match(QuixosCapabilityParser.USING); - this.state = 733; + this.state = 833; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 734; + this.state = 834; this.identifier(); - this.state = 735; + this.state = 835; this.match(QuixosCapabilityParser.VIA); - this.state = 736; + this.state = 836; this.match(QuixosCapabilityParser.EDGE); - this.state = 737; + this.state = 837; this.identifier(); - this.state = 738; + this.state = 838; this.match(QuixosCapabilityParser.DOT); - this.state = 739; + this.state = 839; this.identifier(); - this.state = 740; + this.state = 840; this.match(QuixosCapabilityParser.SEMI); } } @@ -2846,19 +3199,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationBindingDecl(): OperationBindingDeclContext { let localContext = new OperationBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_operationBindingDecl); + this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_operationBindingDecl); + let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 742; + this.state = 842; this.match(QuixosCapabilityParser.BIND); - this.state = 743; + this.state = 843; this.memberOperationRef(); - this.state = 744; + this.state = 844; this.match(QuixosCapabilityParser.TO); - this.state = 745; + this.state = 845; this.operationProvider(); - this.state = 746; + this.state = 848; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 13) { + { + this.state = 846; + this.match(QuixosCapabilityParser.QUERY_REASON); + this.state = 847; + this.stringLiteral(); + } + } + + this.state = 850; this.match(QuixosCapabilityParser.SEMI); } } @@ -2877,15 +3243,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public memberOperationRef(): MemberOperationRefContext { let localContext = new MemberOperationRefContext(this.context, this.state); - this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_memberOperationRef); + this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_memberOperationRef); try { this.enterOuterAlt(localContext, 1); { - this.state = 748; + this.state = 852; this.identifier(); - this.state = 749; + this.state = 853; this.match(QuixosCapabilityParser.DOT); - this.state = 750; + this.state = 854; this.operationName(); } } @@ -2904,86 +3270,97 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationName(): OperationNameContext { let localContext = new OperationNameContext(this.context, this.state); - this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_operationName); + this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_operationName); try { - this.state = 763; + this.state = 867; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.SPECIALIZE: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 1); { - this.state = 752; + this.state = 856; this.identifier(); } break; case QuixosCapabilityParser.CALL: this.enterOuterAlt(localContext, 2); { - this.state = 753; + this.state = 857; this.match(QuixosCapabilityParser.CALL); } break; case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 3); { - this.state = 754; + this.state = 858; this.match(QuixosCapabilityParser.GET); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 4); { - this.state = 755; + this.state = 859; this.match(QuixosCapabilityParser.SET); } break; case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 5); { - this.state = 756; + this.state = 860; this.match(QuixosCapabilityParser.RESOLVE); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 6); { - this.state = 757; + this.state = 861; this.match(QuixosCapabilityParser.CONNECT); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 7); { - this.state = 758; + this.state = 862; this.match(QuixosCapabilityParser.DISCONNECT); } break; case QuixosCapabilityParser.WATCH_START: this.enterOuterAlt(localContext, 8); { - this.state = 759; + this.state = 863; this.match(QuixosCapabilityParser.WATCH_START); } break; case QuixosCapabilityParser.WATCH_STOP: this.enterOuterAlt(localContext, 9); { - this.state = 760; + this.state = 864; this.match(QuixosCapabilityParser.WATCH_STOP); } break; case QuixosCapabilityParser.SUBSCRIBE: this.enterOuterAlt(localContext, 10); { - this.state = 761; + this.state = 865; this.match(QuixosCapabilityParser.SUBSCRIBE); } break; case QuixosCapabilityParser.UNSUBSCRIBE: this.enterOuterAlt(localContext, 11); { - this.state = 762; + this.state = 866; this.match(QuixosCapabilityParser.UNSUBSCRIBE); } break; @@ -3006,69 +3383,69 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationProvider(): OperationProviderContext { let localContext = new OperationProviderContext(this.context, this.state); - this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_operationProvider); + this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_operationProvider); let _la: number; try { - this.state = 787; + this.state = 891; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 765; + this.state = 869; this.match(QuixosCapabilityParser.STATE); - this.state = 766; + this.state = 870; this.identifier(); - this.state = 767; + this.state = 871; this.match(QuixosCapabilityParser.DOT); - this.state = 768; + this.state = 872; this.statePrimitive(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 770; + this.state = 874; this.match(QuixosCapabilityParser.EDGE); - this.state = 771; + this.state = 875; this.identifier(); - this.state = 772; + this.state = 876; this.match(QuixosCapabilityParser.DOT); - this.state = 773; + this.state = 877; this.identifier(); - this.state = 774; + this.state = 878; this.match(QuixosCapabilityParser.DOT); - this.state = 775; + this.state = 879; this.edgePrimitive(); } break; case QuixosCapabilityParser.PACKAGE: this.enterOuterAlt(localContext, 3); { - this.state = 777; + this.state = 881; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 778; + this.state = 882; this.identifier(); - this.state = 779; + this.state = 883; this.match(QuixosCapabilityParser.DOT); - this.state = 780; + this.state = 884; this.identifier(); - this.state = 782; + this.state = 886; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 781; + this.state = 885; this.typeArguments(); } } - this.state = 785; + this.state = 889; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 31) { + if (_la === 43) { { - this.state = 784; + this.state = 888; this.dependencyBindingBlock(); } } @@ -3094,14 +3471,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public statePrimitive(): StatePrimitiveContext { let localContext = new StatePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_statePrimitive); + this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_statePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 789; + this.state = 893; _la = this.tokenStream.LA(1); - if(!(((((_la - 61)) & ~0x1F) === 0 && ((1 << (_la - 61)) & 195) !== 0))) { + if(!(((((_la - 73)) & ~0x1F) === 0 && ((1 << (_la - 73)) & 195) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3125,14 +3502,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgePrimitive(): EdgePrimitiveContext { let localContext = new EdgePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_edgePrimitive); + this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_edgePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 791; + this.state = 895; _la = this.tokenStream.LA(1); - if(!(((((_la - 63)) & ~0x1F) === 0 && ((1 << (_la - 63)) & 55) !== 0))) { + if(!(((((_la - 75)) & ~0x1F) === 0 && ((1 << (_la - 75)) & 55) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3156,30 +3533,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBindingBlock(): DependencyBindingBlockContext { let localContext = new DependencyBindingBlockContext(this.context, this.state); - this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_dependencyBindingBlock); + this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_dependencyBindingBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 793; + this.state = 897; this.match(QuixosCapabilityParser.WITH); - this.state = 794; + this.state = 898; this.match(QuixosCapabilityParser.LBRACE); - this.state = 798; + this.state = 902; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 40 || _la === 114) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 8188) !== 0) || _la === 52 || _la === 126) { { { - this.state = 795; + this.state = 899; this.dependencyBinding(); } } - this.state = 800; + this.state = 904; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 801; + this.state = 905; this.match(QuixosCapabilityParser.RBRACE); } } @@ -3198,137 +3575,174 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBinding(): DependencyBindingContext { let localContext = new DependencyBindingContext(this.context, this.state); - this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_dependencyBinding); + this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_dependencyBinding); let _la: number; try { - this.state = 856; + this.state = 976; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 71, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 81, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 803; + this.state = 907; this.identifier(); - this.state = 804; + this.state = 908; this.match(QuixosCapabilityParser.TO); - this.state = 805; + this.state = 909; this.match(QuixosCapabilityParser.STATE); - this.state = 806; + this.state = 910; this.identifier(); - this.state = 813; + this.state = 917; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 45) { { - this.state = 807; + this.state = 911; this.match(QuixosCapabilityParser.VIA); - this.state = 808; + this.state = 912; this.match(QuixosCapabilityParser.EDGE); - this.state = 809; + this.state = 913; this.identifier(); - this.state = 810; + this.state = 914; this.match(QuixosCapabilityParser.DOT); - this.state = 811; + this.state = 915; this.identifier(); } } - this.state = 815; + this.state = 919; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 817; + this.state = 921; this.identifier(); - this.state = 818; + this.state = 922; this.match(QuixosCapabilityParser.TO); - this.state = 819; + this.state = 923; this.match(QuixosCapabilityParser.EDGE); - this.state = 820; + this.state = 924; this.identifier(); - this.state = 821; + this.state = 925; this.match(QuixosCapabilityParser.DOT); - this.state = 822; + this.state = 926; this.identifier(); - this.state = 829; + this.state = 933; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 45) { { - this.state = 823; + this.state = 927; this.match(QuixosCapabilityParser.VIA); - this.state = 824; + this.state = 928; this.match(QuixosCapabilityParser.EDGE); - this.state = 825; + this.state = 929; this.identifier(); - this.state = 826; + this.state = 930; this.match(QuixosCapabilityParser.DOT); - this.state = 827; + this.state = 931; this.identifier(); } } - this.state = 831; + this.state = 935; this.match(QuixosCapabilityParser.SEMI); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 833; + this.state = 937; this.identifier(); - this.state = 834; + this.state = 938; this.match(QuixosCapabilityParser.TO); - this.state = 835; + this.state = 939; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 836; + this.state = 940; this.identifier(); - this.state = 838; + this.state = 942; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 837; + this.state = 941; this.typeArguments(); } } - this.state = 846; + this.state = 950; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 45) { { - this.state = 840; + this.state = 944; this.match(QuixosCapabilityParser.VIA); - this.state = 841; + this.state = 945; this.match(QuixosCapabilityParser.EDGE); - this.state = 842; + this.state = 946; this.identifier(); - this.state = 843; + this.state = 947; this.match(QuixosCapabilityParser.DOT); - this.state = 844; + this.state = 948; this.identifier(); } } - this.state = 848; + this.state = 952; this.match(QuixosCapabilityParser.SEMI); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 850; + this.state = 954; this.identifier(); - this.state = 851; + this.state = 955; this.match(QuixosCapabilityParser.TO); - this.state = 852; + this.state = 956; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 853; + this.state = 957; this.identifier(); - this.state = 854; + this.state = 958; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case 5: + this.enterOuterAlt(localContext, 5); + { + this.state = 960; + this.identifier(); + this.state = 961; + this.match(QuixosCapabilityParser.TO); + this.state = 962; + this.match(QuixosCapabilityParser.QUERY); + this.state = 963; + this.identifier(); + this.state = 964; + this.match(QuixosCapabilityParser.DOT); + this.state = 965; + this.identifier(); + this.state = 972; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 45) { + { + this.state = 966; + this.match(QuixosCapabilityParser.VIA); + this.state = 967; + this.match(QuixosCapabilityParser.EDGE); + this.state = 968; + this.identifier(); + this.state = 969; + this.match(QuixosCapabilityParser.DOT); + this.state = 970; + this.identifier(); + } + } + + this.state = 974; this.match(QuixosCapabilityParser.SEMI); } break; @@ -3349,34 +3763,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public constructorBindingDecl(): ConstructorBindingDeclContext { let localContext = new ConstructorBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_constructorBindingDecl); + this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_constructorBindingDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 858; + this.state = 978; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 859; + this.state = 979; this.identifier(); - this.state = 860; + this.state = 980; this.match(QuixosCapabilityParser.TO); - this.state = 861; + this.state = 981; this.identifier(); - this.state = 862; + this.state = 982; this.match(QuixosCapabilityParser.DOT); - this.state = 863; + this.state = 983; this.identifier(); - this.state = 865; + this.state = 985; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 31) { + if (_la === 43) { { - this.state = 864; + this.state = 984; this.dependencyBindingBlock(); } } - this.state = 867; + this.state = 987; this.match(QuixosCapabilityParser.SEMI); } } @@ -3395,10 +3809,10 @@ export class QuixosCapabilityParser extends antlr.Parser { } public valueType(): ValueTypeContext { let localContext = new ValueTypeContext(this.context, this.state); - this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_valueType); + this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_valueType); let _la: number; try { - this.state = 915; + this.state = 1035; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.BOOL: @@ -3411,145 +3825,156 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.UINT64: this.enterOuterAlt(localContext, 1); { - this.state = 869; + this.state = 989; this.scalarType(); } break; case QuixosCapabilityParser.UNIT: this.enterOuterAlt(localContext, 2); { - this.state = 870; + this.state = 990; this.match(QuixosCapabilityParser.UNIT); } break; case QuixosCapabilityParser.WATCH_HANDLE: this.enterOuterAlt(localContext, 3); { - this.state = 871; + this.state = 991; this.match(QuixosCapabilityParser.WATCH_HANDLE); } break; case QuixosCapabilityParser.MESSAGE: this.enterOuterAlt(localContext, 4); { - this.state = 872; + this.state = 992; this.match(QuixosCapabilityParser.MESSAGE); - this.state = 873; + this.state = 993; this.stringLiteral(); } break; case QuixosCapabilityParser.ATOM_REF: this.enterOuterAlt(localContext, 5); { - this.state = 874; + this.state = 994; this.match(QuixosCapabilityParser.ATOM_REF); - this.state = 875; + this.state = 995; this.match(QuixosCapabilityParser.LT); - this.state = 876; + this.state = 996; this.identifier(); - this.state = 877; + this.state = 997; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.INTERFACE_REF: this.enterOuterAlt(localContext, 6); { - this.state = 879; + this.state = 999; this.match(QuixosCapabilityParser.INTERFACE_REF); - this.state = 880; + this.state = 1000; this.match(QuixosCapabilityParser.LT); - this.state = 881; + this.state = 1001; this.identifier(); - this.state = 883; + this.state = 1003; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 882; + this.state = 1002; this.typeArguments(); } } - this.state = 885; + this.state = 1005; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.REF: this.enterOuterAlt(localContext, 7); { - this.state = 887; + this.state = 1007; this.match(QuixosCapabilityParser.REF); - this.state = 888; + this.state = 1008; this.match(QuixosCapabilityParser.LT); - this.state = 889; + this.state = 1009; this.identifier(); - this.state = 890; + this.state = 1010; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.OPTIONAL: this.enterOuterAlt(localContext, 8); { - this.state = 892; + this.state = 1012; this.match(QuixosCapabilityParser.OPTIONAL); - this.state = 893; + this.state = 1013; this.match(QuixosCapabilityParser.LT); - this.state = 894; + this.state = 1014; this.valueType(); - this.state = 895; + this.state = 1015; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.LIST: this.enterOuterAlt(localContext, 9); { - this.state = 897; + this.state = 1017; this.match(QuixosCapabilityParser.LIST); - this.state = 898; + this.state = 1018; this.match(QuixosCapabilityParser.LT); - this.state = 899; + this.state = 1019; this.valueType(); - this.state = 900; + this.state = 1020; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.RECORD: this.enterOuterAlt(localContext, 10); { - this.state = 902; + this.state = 1022; this.match(QuixosCapabilityParser.RECORD); - this.state = 903; + this.state = 1023; this.match(QuixosCapabilityParser.LBRACE); - this.state = 907; + this.state = 1027; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 40 || _la === 114) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 8188) !== 0) || _la === 52 || _la === 126) { { { - this.state = 904; + this.state = 1024; this.recordField(); } } - this.state = 909; + this.state = 1029; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 910; + this.state = 1030; this.match(QuixosCapabilityParser.RBRACE); } break; + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.SPECIALIZE: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 11); { - this.state = 911; + this.state = 1031; this.identifier(); - this.state = 913; + this.state = 1033; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 120) { { - this.state = 912; + this.state = 1032; this.typeArguments(); } } @@ -3575,17 +4000,17 @@ export class QuixosCapabilityParser extends antlr.Parser { } public recordField(): RecordFieldContext { let localContext = new RecordFieldContext(this.context, this.state); - this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_recordField); + this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_recordField); try { this.enterOuterAlt(localContext, 1); { - this.state = 917; + this.state = 1037; this.identifier(); - this.state = 918; + this.state = 1038; this.match(QuixosCapabilityParser.COLON); - this.state = 919; + this.state = 1039; this.valueType(); - this.state = 920; + this.state = 1040; this.match(QuixosCapabilityParser.SEMI); } } @@ -3604,14 +4029,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public scalarType(): ScalarTypeContext { let localContext = new ScalarTypeContext(this.context, this.state); - this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_scalarType); + this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_scalarType); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 922; + this.state = 1042; _la = this.tokenStream.LA(1); - if(!(((((_la - 86)) & ~0x1F) === 0 && ((1 << (_la - 86)) & 255) !== 0))) { + if(!(((((_la - 98)) & ~0x1F) === 0 && ((1 << (_la - 98)) & 255) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3635,14 +4060,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public cardinality(): CardinalityContext { let localContext = new CardinalityContext(this.context, this.state); - this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_cardinality); + this.enterRule(localContext, 126, QuixosCapabilityParser.RULE_cardinality); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 924; + this.state = 1044; _la = this.tokenStream.LA(1); - if(!(((((_la - 73)) & ~0x1F) === 0 && ((1 << (_la - 73)) & 15) !== 0))) { + if(!(((((_la - 85)) & ~0x1F) === 0 && ((1 << (_la - 85)) & 15) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3666,64 +4091,64 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonLiteral(): JsonLiteralContext { let localContext = new JsonLiteralContext(this.context, this.state); - this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_jsonLiteral); + this.enterRule(localContext, 128, QuixosCapabilityParser.RULE_jsonLiteral); try { - this.state = 934; + this.state = 1054; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STRING_LITERAL: this.enterOuterAlt(localContext, 1); { - this.state = 926; + this.state = 1046; this.stringLiteral(); } break; case QuixosCapabilityParser.INTEGER: this.enterOuterAlt(localContext, 2); { - this.state = 927; + this.state = 1047; this.match(QuixosCapabilityParser.INTEGER); } break; case QuixosCapabilityParser.JSON_NUMBER: this.enterOuterAlt(localContext, 3); { - this.state = 928; + this.state = 1048; this.match(QuixosCapabilityParser.JSON_NUMBER); } break; case QuixosCapabilityParser.TRUE: this.enterOuterAlt(localContext, 4); { - this.state = 929; + this.state = 1049; this.match(QuixosCapabilityParser.TRUE); } break; case QuixosCapabilityParser.FALSE: this.enterOuterAlt(localContext, 5); { - this.state = 930; + this.state = 1050; this.match(QuixosCapabilityParser.FALSE); } break; case QuixosCapabilityParser.NULL: this.enterOuterAlt(localContext, 6); { - this.state = 931; + this.state = 1051; this.match(QuixosCapabilityParser.NULL); } break; case QuixosCapabilityParser.LBRACE: this.enterOuterAlt(localContext, 7); { - this.state = 932; + this.state = 1052; this.jsonObject(); } break; case QuixosCapabilityParser.LBRACK: this.enterOuterAlt(localContext, 8); { - this.state = 933; + this.state = 1053; this.jsonArray(); } break; @@ -3746,40 +4171,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonObject(): JsonObjectContext { let localContext = new JsonObjectContext(this.context, this.state); - this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_jsonObject); + this.enterRule(localContext, 130, QuixosCapabilityParser.RULE_jsonObject); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 936; + this.state = 1056; this.match(QuixosCapabilityParser.LBRACE); - this.state = 945; + this.state = 1065; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 115) { + if (_la === 127) { { - this.state = 937; + this.state = 1057; this.jsonMember(); - this.state = 942; + this.state = 1062; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 938; + this.state = 1058; this.match(QuixosCapabilityParser.COMMA); - this.state = 939; + this.state = 1059; this.jsonMember(); } } - this.state = 944; + this.state = 1064; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 947; + this.state = 1067; this.match(QuixosCapabilityParser.RBRACE); } } @@ -3798,15 +4223,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonMember(): JsonMemberContext { let localContext = new JsonMemberContext(this.context, this.state); - this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_jsonMember); + this.enterRule(localContext, 132, QuixosCapabilityParser.RULE_jsonMember); try { this.enterOuterAlt(localContext, 1); { - this.state = 949; + this.state = 1069; this.stringLiteral(); - this.state = 950; + this.state = 1070; this.match(QuixosCapabilityParser.COLON); - this.state = 951; + this.state = 1071; this.jsonLiteral(); } } @@ -3825,40 +4250,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonArray(): JsonArrayContext { let localContext = new JsonArrayContext(this.context, this.state); - this.enterRule(localContext, 126, QuixosCapabilityParser.RULE_jsonArray); + this.enterRule(localContext, 134, QuixosCapabilityParser.RULE_jsonArray); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 953; + this.state = 1073; this.match(QuixosCapabilityParser.LBRACK); - this.state = 962; + this.state = 1082; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 2884871) !== 0)) { + if (((((_la - 106)) & ~0x1F) === 0 && ((1 << (_la - 106)) & 2884871) !== 0)) { { - this.state = 954; + this.state = 1074; this.jsonLiteral(); - this.state = 959; + this.state = 1079; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 112) { { { - this.state = 955; + this.state = 1075; this.match(QuixosCapabilityParser.COMMA); - this.state = 956; + this.state = 1076; this.jsonLiteral(); } } - this.state = 961; + this.state = 1081; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 964; + this.state = 1084; this.match(QuixosCapabilityParser.RBRACK); } } @@ -3877,14 +4302,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifier(): IdentifierContext { let localContext = new IdentifierContext(this.context, this.state); - this.enterRule(localContext, 128, QuixosCapabilityParser.RULE_identifier); + this.enterRule(localContext, 136, QuixosCapabilityParser.RULE_identifier); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 966; + this.state = 1086; _la = this.tokenStream.LA(1); - if(!(_la === 40 || _la === 114)) { + if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 8188) !== 0) || _la === 52 || _la === 126)) { this.errorHandler.recoverInline(this); } else { @@ -3908,11 +4333,11 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stringLiteral(): StringLiteralContext { let localContext = new StringLiteralContext(this.context, this.state); - this.enterRule(localContext, 130, QuixosCapabilityParser.RULE_stringLiteral); + this.enterRule(localContext, 138, QuixosCapabilityParser.RULE_stringLiteral); try { this.enterOuterAlt(localContext, 1); { - this.state = 968; + this.state = 1088; this.match(QuixosCapabilityParser.STRING_LITERAL); } } @@ -3931,7 +4356,7 @@ export class QuixosCapabilityParser extends antlr.Parser { } public static readonly _serializedATN: number[] = [ - 4,1,118,971,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6, + 4,1,130,1091,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6, 7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7, 13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2, 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7, @@ -3941,356 +4366,406 @@ export class QuixosCapabilityParser extends antlr.Parser { 46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7, 52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2, 59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7, - 65,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,3,0,145,8,0,1, - 1,1,1,1,1,5,1,150,8,1,10,1,12,1,153,9,1,1,1,1,1,1,2,1,2,1,2,1,2, - 1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,5,3,171,8,3,10,3,12,3,174, - 9,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,3,4,185,8,4,1,5,1,5,1,5, - 1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,197,8,5,1,6,1,6,1,6,1,6,1,6,1,6, - 1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,3,8,217,8,8,1,9, - 1,9,1,9,1,9,1,9,1,9,3,9,225,8,9,1,9,1,9,1,10,5,10,230,8,10,10,10, - 12,10,233,9,10,1,10,1,10,1,10,3,10,238,8,10,1,10,1,10,1,10,1,10, - 1,10,1,10,1,10,1,10,5,10,248,8,10,10,10,12,10,251,9,10,3,10,253, - 8,10,1,10,1,10,5,10,257,8,10,10,10,12,10,260,9,10,1,10,1,10,1,11, - 1,11,1,11,1,11,5,11,268,8,11,10,11,12,11,271,9,11,1,11,1,11,1,12, - 1,12,1,12,1,12,3,12,279,8,12,1,12,1,12,1,12,1,12,1,12,1,12,5,12, - 287,8,12,10,12,12,12,290,9,12,3,12,292,8,12,3,12,294,8,12,1,13,1, - 13,3,13,298,8,13,1,14,1,14,1,14,1,14,5,14,304,8,14,10,14,12,14,307, - 9,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,3,15,318,8,15, - 1,16,1,16,1,16,3,16,323,8,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17, - 3,17,332,8,17,1,18,3,18,335,8,18,1,18,1,18,1,18,1,18,1,18,1,18,1, - 18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1, - 19,1,19,1,19,1,19,5,19,360,8,19,10,19,12,19,363,9,19,1,19,1,19,1, - 20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1, - 20,1,20,1,20,1,20,1,20,1,20,3,20,386,8,20,1,21,1,21,1,21,1,21,1, - 21,1,21,1,21,1,21,3,21,396,8,21,1,21,1,21,5,21,400,8,21,10,21,12, - 21,403,9,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1, - 22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1, - 22,1,22,1,22,3,22,431,8,22,1,23,1,23,1,23,1,23,1,23,3,23,438,8,23, - 1,23,1,23,3,23,442,8,23,1,24,5,24,445,8,24,10,24,12,24,448,9,24, - 1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,3,24,458,8,24,1,24,1,24, - 5,24,462,8,24,10,24,12,24,465,9,24,1,24,1,24,1,25,1,25,1,25,3,25, - 472,8,25,1,26,1,26,1,26,3,26,477,8,26,1,26,1,26,1,26,1,26,1,26,1, - 26,1,26,1,26,1,26,3,26,488,8,26,1,26,1,26,1,26,3,26,493,8,26,1,26, - 1,26,1,27,1,27,1,27,3,27,500,8,27,1,27,1,27,1,27,1,27,1,27,1,27, - 1,27,3,27,509,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28, - 1,28,1,28,3,28,522,8,28,1,28,1,28,1,29,1,29,1,29,1,30,1,30,1,31, - 1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,5,31,541,8,31,10,31, - 12,31,544,9,31,3,31,546,8,31,1,31,3,31,549,8,31,1,32,1,32,1,32,5, - 32,554,8,32,10,32,12,32,557,9,32,1,33,1,33,1,33,5,33,562,8,33,10, - 33,12,33,565,9,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,3,34,595,8,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,3,34,607,8,34,1,34,1,34,3,34,611,8,34, - 1,35,1,35,1,35,1,35,5,35,617,8,35,10,35,12,35,620,9,35,1,35,1,35, - 1,36,1,36,1,37,1,37,1,37,1,38,1,38,3,38,631,8,38,1,39,1,39,1,39, - 1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,645,8,39,1,39, - 1,39,1,40,1,40,1,40,1,40,1,40,1,40,3,40,655,8,40,1,41,1,41,1,41, - 1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42, - 3,42,673,8,42,1,42,1,42,3,42,677,8,42,1,42,3,42,680,8,42,1,42,1, - 42,3,42,684,8,42,1,42,3,42,687,8,42,1,42,1,42,1,43,1,43,1,43,1,43, - 1,43,3,43,696,8,43,1,43,1,43,3,43,700,8,43,1,43,1,43,3,43,704,8, - 43,1,43,1,43,5,43,708,8,43,10,43,12,43,711,9,43,1,43,1,43,1,44,1, - 44,1,44,1,44,1,44,3,44,720,8,44,1,45,1,45,1,45,1,45,1,45,1,45,1, - 45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1, - 46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,49,1, - 49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,764,8,49,1, - 50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1, - 50,1,50,1,50,1,50,3,50,783,8,50,1,50,3,50,786,8,50,3,50,788,8,50, - 1,51,1,51,1,52,1,52,1,53,1,53,1,53,5,53,797,8,53,10,53,12,53,800, - 9,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54, - 3,54,814,8,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54, - 1,54,1,54,1,54,1,54,3,54,830,8,54,1,54,1,54,1,54,1,54,1,54,1,54, - 1,54,3,54,839,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,847,8,54,1, - 54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,857,8,54,1,55,1,55,1, - 55,1,55,1,55,1,55,1,55,3,55,866,8,55,1,55,1,55,1,56,1,56,1,56,1, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,884,8, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,5,56,906,8,56,10,56,12,56, - 909,9,56,1,56,1,56,1,56,3,56,914,8,56,3,56,916,8,56,1,57,1,57,1, - 57,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1, - 60,1,60,3,60,935,8,60,1,61,1,61,1,61,1,61,5,61,941,8,61,10,61,12, - 61,944,9,61,3,61,946,8,61,1,61,1,61,1,62,1,62,1,62,1,62,1,63,1,63, - 1,63,1,63,5,63,958,8,63,10,63,12,63,961,9,63,3,63,963,8,63,1,63, - 1,63,1,64,1,64,1,65,1,65,1,65,0,0,66,0,2,4,6,8,10,12,14,16,18,20, - 22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64, - 66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106, - 108,110,112,114,116,118,120,122,124,126,128,130,0,7,1,0,66,70,2, - 0,61,65,67,68,2,0,61,62,67,68,2,0,63,65,67,68,1,0,86,93,1,0,73,76, - 2,0,40,40,114,114,1036,0,144,1,0,0,0,2,146,1,0,0,0,4,156,1,0,0,0, - 6,160,1,0,0,0,8,184,1,0,0,0,10,196,1,0,0,0,12,198,1,0,0,0,14,205, - 1,0,0,0,16,216,1,0,0,0,18,218,1,0,0,0,20,231,1,0,0,0,22,263,1,0, - 0,0,24,293,1,0,0,0,26,295,1,0,0,0,28,299,1,0,0,0,30,317,1,0,0,0, - 32,319,1,0,0,0,34,331,1,0,0,0,36,334,1,0,0,0,38,351,1,0,0,0,40,385, - 1,0,0,0,42,387,1,0,0,0,44,430,1,0,0,0,46,441,1,0,0,0,48,446,1,0, - 0,0,50,471,1,0,0,0,52,473,1,0,0,0,54,496,1,0,0,0,56,512,1,0,0,0, - 58,525,1,0,0,0,60,528,1,0,0,0,62,548,1,0,0,0,64,550,1,0,0,0,66,558, - 1,0,0,0,68,610,1,0,0,0,70,612,1,0,0,0,72,623,1,0,0,0,74,625,1,0, - 0,0,76,630,1,0,0,0,78,632,1,0,0,0,80,654,1,0,0,0,82,656,1,0,0,0, - 84,665,1,0,0,0,86,690,1,0,0,0,88,719,1,0,0,0,90,721,1,0,0,0,92,728, - 1,0,0,0,94,742,1,0,0,0,96,748,1,0,0,0,98,763,1,0,0,0,100,787,1,0, - 0,0,102,789,1,0,0,0,104,791,1,0,0,0,106,793,1,0,0,0,108,856,1,0, - 0,0,110,858,1,0,0,0,112,915,1,0,0,0,114,917,1,0,0,0,116,922,1,0, - 0,0,118,924,1,0,0,0,120,934,1,0,0,0,122,936,1,0,0,0,124,949,1,0, - 0,0,126,953,1,0,0,0,128,966,1,0,0,0,130,968,1,0,0,0,132,133,3,6, - 3,0,133,134,5,0,0,1,134,145,1,0,0,0,135,136,3,20,10,0,136,137,5, - 0,0,1,137,145,1,0,0,0,138,139,3,48,24,0,139,140,5,0,0,1,140,145, - 1,0,0,0,141,142,3,2,1,0,142,143,5,0,0,1,143,145,1,0,0,0,144,132, - 1,0,0,0,144,135,1,0,0,0,144,138,1,0,0,0,144,141,1,0,0,0,145,1,1, - 0,0,0,146,147,5,7,0,0,147,151,5,102,0,0,148,150,3,8,4,0,149,148, - 1,0,0,0,150,153,1,0,0,0,151,149,1,0,0,0,151,152,1,0,0,0,152,154, - 1,0,0,0,153,151,1,0,0,0,154,155,5,103,0,0,155,3,1,0,0,0,156,157, - 5,8,0,0,157,158,3,130,65,0,158,159,5,99,0,0,159,5,1,0,0,0,160,161, - 5,1,0,0,161,162,3,128,64,0,162,163,5,49,0,0,163,164,3,130,65,0,164, - 165,5,43,0,0,165,166,3,130,65,0,166,167,5,42,0,0,167,168,3,130,65, - 0,168,172,5,102,0,0,169,171,3,8,4,0,170,169,1,0,0,0,171,174,1,0, - 0,0,172,170,1,0,0,0,172,173,1,0,0,0,173,175,1,0,0,0,174,172,1,0, - 0,0,175,176,5,103,0,0,176,7,1,0,0,0,177,185,3,4,2,0,178,185,3,18, - 9,0,179,185,3,10,5,0,180,185,3,74,37,0,181,185,3,86,43,0,182,185, - 3,110,55,0,183,185,3,32,16,0,184,177,1,0,0,0,184,178,1,0,0,0,184, - 179,1,0,0,0,184,180,1,0,0,0,184,181,1,0,0,0,184,182,1,0,0,0,184, - 183,1,0,0,0,185,9,1,0,0,0,186,187,5,8,0,0,187,188,5,11,0,0,188,189, - 3,128,64,0,189,190,5,99,0,0,190,197,1,0,0,0,191,192,5,8,0,0,192, - 193,5,13,0,0,193,194,3,128,64,0,194,195,5,99,0,0,195,197,1,0,0,0, - 196,186,1,0,0,0,196,191,1,0,0,0,197,11,1,0,0,0,198,199,5,9,0,0,199, - 200,5,10,0,0,200,201,3,128,64,0,201,202,5,49,0,0,202,203,3,130,65, - 0,203,204,5,99,0,0,204,13,1,0,0,0,205,206,5,9,0,0,206,207,5,11,0, - 0,207,208,3,128,64,0,208,209,5,43,0,0,209,210,3,130,65,0,210,211, - 5,99,0,0,211,15,1,0,0,0,212,217,3,10,5,0,213,217,3,12,6,0,214,217, - 3,14,7,0,215,217,3,32,16,0,216,212,1,0,0,0,216,213,1,0,0,0,216,214, - 1,0,0,0,216,215,1,0,0,0,217,17,1,0,0,0,218,219,5,10,0,0,219,220, - 3,128,64,0,220,221,5,49,0,0,221,224,3,130,65,0,222,223,5,50,0,0, - 223,225,3,130,65,0,224,222,1,0,0,0,224,225,1,0,0,0,225,226,1,0,0, - 0,226,227,5,99,0,0,227,19,1,0,0,0,228,230,3,16,8,0,229,228,1,0,0, - 0,230,233,1,0,0,0,231,229,1,0,0,0,231,232,1,0,0,0,232,234,1,0,0, - 0,233,231,1,0,0,0,234,235,5,11,0,0,235,237,3,128,64,0,236,238,3, - 22,11,0,237,236,1,0,0,0,237,238,1,0,0,0,238,239,1,0,0,0,239,240, - 5,49,0,0,240,241,3,130,65,0,241,242,5,43,0,0,242,252,3,130,65,0, - 243,244,5,54,0,0,244,249,3,26,13,0,245,246,5,100,0,0,246,248,3,26, - 13,0,247,245,1,0,0,0,248,251,1,0,0,0,249,247,1,0,0,0,249,250,1,0, - 0,0,250,253,1,0,0,0,251,249,1,0,0,0,252,243,1,0,0,0,252,253,1,0, - 0,0,253,254,1,0,0,0,254,258,5,102,0,0,255,257,3,34,17,0,256,255, - 1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,261, - 1,0,0,0,260,258,1,0,0,0,261,262,5,103,0,0,262,21,1,0,0,0,263,264, - 5,108,0,0,264,269,3,24,12,0,265,266,5,100,0,0,266,268,3,24,12,0, - 267,265,1,0,0,0,268,271,1,0,0,0,269,267,1,0,0,0,269,270,1,0,0,0, - 270,272,1,0,0,0,271,269,1,0,0,0,272,273,5,109,0,0,273,23,1,0,0,0, - 274,275,5,14,0,0,275,278,3,128,64,0,276,277,5,98,0,0,277,279,5,4, - 0,0,278,276,1,0,0,0,278,279,1,0,0,0,279,294,1,0,0,0,280,281,5,3, - 0,0,281,291,3,128,64,0,282,283,5,5,0,0,283,288,3,26,13,0,284,285, - 5,110,0,0,285,287,3,26,13,0,286,284,1,0,0,0,287,290,1,0,0,0,288, - 286,1,0,0,0,288,289,1,0,0,0,289,292,1,0,0,0,290,288,1,0,0,0,291, - 282,1,0,0,0,291,292,1,0,0,0,292,294,1,0,0,0,293,274,1,0,0,0,293, - 280,1,0,0,0,294,25,1,0,0,0,295,297,3,128,64,0,296,298,3,28,14,0, - 297,296,1,0,0,0,297,298,1,0,0,0,298,27,1,0,0,0,299,300,5,108,0,0, - 300,305,3,30,15,0,301,302,5,100,0,0,302,304,3,30,15,0,303,301,1, - 0,0,0,304,307,1,0,0,0,305,303,1,0,0,0,305,306,1,0,0,0,306,308,1, - 0,0,0,307,305,1,0,0,0,308,309,5,109,0,0,309,29,1,0,0,0,310,311,5, - 10,0,0,311,318,3,128,64,0,312,313,5,11,0,0,313,318,3,26,13,0,314, - 315,5,3,0,0,315,318,3,128,64,0,316,318,3,112,56,0,317,310,1,0,0, - 0,317,312,1,0,0,0,317,314,1,0,0,0,317,316,1,0,0,0,318,31,1,0,0,0, - 319,320,5,2,0,0,320,322,3,128,64,0,321,323,3,22,11,0,322,321,1,0, - 0,0,322,323,1,0,0,0,323,324,1,0,0,0,324,325,5,111,0,0,325,326,3, - 112,56,0,326,327,5,99,0,0,327,33,1,0,0,0,328,332,3,38,19,0,329,332, - 3,42,21,0,330,332,3,36,18,0,331,328,1,0,0,0,331,329,1,0,0,0,331, - 330,1,0,0,0,332,35,1,0,0,0,333,335,5,24,0,0,334,333,1,0,0,0,334, - 335,1,0,0,0,335,336,1,0,0,0,336,337,5,16,0,0,337,338,3,128,64,0, - 338,339,5,49,0,0,339,340,3,130,65,0,340,341,5,98,0,0,341,342,3,112, - 56,0,342,343,5,97,0,0,343,344,3,112,56,0,344,345,5,102,0,0,345,346, - 5,66,0,0,346,347,5,49,0,0,347,348,3,130,65,0,348,349,5,99,0,0,349, - 350,5,103,0,0,350,37,1,0,0,0,351,352,5,14,0,0,352,353,3,128,64,0, - 353,354,5,49,0,0,354,355,3,130,65,0,355,356,5,98,0,0,356,357,3,112, - 56,0,357,361,5,102,0,0,358,360,3,40,20,0,359,358,1,0,0,0,360,363, - 1,0,0,0,361,359,1,0,0,0,361,362,1,0,0,0,362,364,1,0,0,0,363,361, - 1,0,0,0,364,365,5,103,0,0,365,39,1,0,0,0,366,367,5,56,0,0,367,368, - 5,49,0,0,368,369,3,130,65,0,369,370,5,99,0,0,370,386,1,0,0,0,371, - 372,5,57,0,0,372,373,5,49,0,0,373,374,3,130,65,0,374,375,5,99,0, - 0,375,386,1,0,0,0,376,377,5,58,0,0,377,378,5,59,0,0,378,379,5,49, - 0,0,379,380,3,130,65,0,380,381,5,60,0,0,381,382,5,49,0,0,382,383, - 3,130,65,0,383,384,5,99,0,0,384,386,1,0,0,0,385,366,1,0,0,0,385, - 371,1,0,0,0,385,376,1,0,0,0,386,41,1,0,0,0,387,388,5,15,0,0,388, - 389,3,128,64,0,389,390,5,49,0,0,390,391,3,130,65,0,391,392,5,98, - 0,0,392,393,3,118,59,0,393,395,3,46,23,0,394,396,5,77,0,0,395,394, - 1,0,0,0,395,396,1,0,0,0,396,397,1,0,0,0,397,401,5,102,0,0,398,400, - 3,44,22,0,399,398,1,0,0,0,400,403,1,0,0,0,401,399,1,0,0,0,401,402, - 1,0,0,0,402,404,1,0,0,0,403,401,1,0,0,0,404,405,5,103,0,0,405,43, - 1,0,0,0,406,407,5,63,0,0,407,408,5,49,0,0,408,409,3,130,65,0,409, - 410,5,99,0,0,410,431,1,0,0,0,411,412,5,64,0,0,412,413,5,49,0,0,413, - 414,3,130,65,0,414,415,5,99,0,0,415,431,1,0,0,0,416,417,5,65,0,0, - 417,418,5,49,0,0,418,419,3,130,65,0,419,420,5,99,0,0,420,431,1,0, - 0,0,421,422,5,58,0,0,422,423,5,59,0,0,423,424,5,49,0,0,424,425,3, - 130,65,0,425,426,5,60,0,0,426,427,5,49,0,0,427,428,3,130,65,0,428, - 429,5,99,0,0,429,431,1,0,0,0,430,406,1,0,0,0,430,411,1,0,0,0,430, - 416,1,0,0,0,430,421,1,0,0,0,431,45,1,0,0,0,432,433,5,10,0,0,433, - 442,3,128,64,0,434,435,5,11,0,0,435,437,3,128,64,0,436,438,3,28, - 14,0,437,436,1,0,0,0,437,438,1,0,0,0,438,442,1,0,0,0,439,440,5,3, - 0,0,440,442,3,128,64,0,441,432,1,0,0,0,441,434,1,0,0,0,441,439,1, - 0,0,0,442,47,1,0,0,0,443,445,3,16,8,0,444,443,1,0,0,0,445,448,1, - 0,0,0,446,444,1,0,0,0,446,447,1,0,0,0,447,449,1,0,0,0,448,446,1, - 0,0,0,449,450,5,13,0,0,450,451,3,128,64,0,451,452,5,49,0,0,452,453, - 3,130,65,0,453,454,5,43,0,0,454,457,3,130,65,0,455,456,5,44,0,0, - 456,458,5,112,0,0,457,455,1,0,0,0,457,458,1,0,0,0,458,459,1,0,0, - 0,459,463,5,102,0,0,460,462,3,50,25,0,461,460,1,0,0,0,462,465,1, - 0,0,0,463,461,1,0,0,0,463,464,1,0,0,0,464,466,1,0,0,0,465,463,1, - 0,0,0,466,467,5,103,0,0,467,49,1,0,0,0,468,472,3,52,26,0,469,472, - 3,54,27,0,470,472,3,56,28,0,471,468,1,0,0,0,471,469,1,0,0,0,471, - 470,1,0,0,0,472,51,1,0,0,0,473,474,5,16,0,0,474,476,3,128,64,0,475, - 477,3,22,11,0,476,475,1,0,0,0,476,477,1,0,0,0,477,478,1,0,0,0,478, - 479,5,49,0,0,479,480,3,130,65,0,480,481,5,98,0,0,481,482,3,112,56, - 0,482,483,5,97,0,0,483,484,3,112,56,0,484,485,5,51,0,0,485,487,3, - 60,30,0,486,488,3,58,29,0,487,486,1,0,0,0,487,488,1,0,0,0,488,489, - 1,0,0,0,489,490,5,53,0,0,490,492,3,62,31,0,491,493,3,66,33,0,492, - 491,1,0,0,0,492,493,1,0,0,0,493,494,1,0,0,0,494,495,5,99,0,0,495, - 53,1,0,0,0,496,497,5,17,0,0,497,499,3,128,64,0,498,500,3,22,11,0, - 499,498,1,0,0,0,499,500,1,0,0,0,500,501,1,0,0,0,501,502,5,49,0,0, - 502,503,3,130,65,0,503,504,5,98,0,0,504,505,3,112,56,0,505,506,5, - 97,0,0,506,508,3,112,56,0,507,509,3,66,33,0,508,507,1,0,0,0,508, - 509,1,0,0,0,509,510,1,0,0,0,510,511,5,99,0,0,511,55,1,0,0,0,512, - 513,5,18,0,0,513,514,3,128,64,0,514,515,5,49,0,0,515,516,3,130,65, - 0,516,517,5,19,0,0,517,518,3,128,64,0,518,519,5,98,0,0,519,521,3, - 112,56,0,520,522,3,66,33,0,521,520,1,0,0,0,521,522,1,0,0,0,522,523, - 1,0,0,0,523,524,5,99,0,0,524,57,1,0,0,0,525,526,5,52,0,0,526,527, - 3,112,56,0,527,59,1,0,0,0,528,529,7,0,0,0,529,61,1,0,0,0,530,549, - 5,55,0,0,531,532,5,10,0,0,532,549,3,128,64,0,533,534,5,3,0,0,534, - 549,3,128,64,0,535,536,5,12,0,0,536,545,5,104,0,0,537,542,3,26,13, - 0,538,539,5,100,0,0,539,541,3,26,13,0,540,538,1,0,0,0,541,544,1, - 0,0,0,542,540,1,0,0,0,542,543,1,0,0,0,543,546,1,0,0,0,544,542,1, - 0,0,0,545,537,1,0,0,0,545,546,1,0,0,0,546,547,1,0,0,0,547,549,5, - 105,0,0,548,530,1,0,0,0,548,531,1,0,0,0,548,533,1,0,0,0,548,535, - 1,0,0,0,549,63,1,0,0,0,550,555,3,128,64,0,551,552,5,100,0,0,552, - 554,3,128,64,0,553,551,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,555, - 556,1,0,0,0,556,65,1,0,0,0,557,555,1,0,0,0,558,559,5,54,0,0,559, - 563,5,102,0,0,560,562,3,68,34,0,561,560,1,0,0,0,562,565,1,0,0,0, - 563,561,1,0,0,0,563,564,1,0,0,0,564,566,1,0,0,0,565,563,1,0,0,0, - 566,567,5,103,0,0,567,67,1,0,0,0,568,569,5,28,0,0,569,570,3,128, - 64,0,570,571,5,49,0,0,571,572,3,130,65,0,572,573,5,98,0,0,573,574, - 3,112,56,0,574,575,3,70,35,0,575,576,5,99,0,0,576,611,1,0,0,0,577, - 578,5,29,0,0,578,579,3,128,64,0,579,580,5,49,0,0,580,581,3,130,65, - 0,581,582,5,98,0,0,582,583,3,118,59,0,583,584,3,46,23,0,584,585, - 3,70,35,0,585,586,5,99,0,0,586,611,1,0,0,0,587,588,5,11,0,0,588, - 589,3,128,64,0,589,590,5,49,0,0,590,591,3,130,65,0,591,592,5,98, - 0,0,592,594,3,128,64,0,593,595,3,28,14,0,594,593,1,0,0,0,594,595, - 1,0,0,0,595,596,1,0,0,0,596,597,5,99,0,0,597,611,1,0,0,0,598,599, - 5,18,0,0,599,600,3,128,64,0,600,601,5,49,0,0,601,602,3,130,65,0, - 602,603,5,98,0,0,603,606,3,128,64,0,604,605,5,20,0,0,605,607,3,112, - 56,0,606,604,1,0,0,0,606,607,1,0,0,0,607,608,1,0,0,0,608,609,5,99, - 0,0,609,611,1,0,0,0,610,568,1,0,0,0,610,577,1,0,0,0,610,587,1,0, - 0,0,610,598,1,0,0,0,611,69,1,0,0,0,612,613,5,104,0,0,613,618,3,72, - 36,0,614,615,5,100,0,0,615,617,3,72,36,0,616,614,1,0,0,0,617,620, - 1,0,0,0,618,616,1,0,0,0,618,619,1,0,0,0,619,621,1,0,0,0,620,618, - 1,0,0,0,621,622,5,105,0,0,622,71,1,0,0,0,623,624,7,1,0,0,624,73, - 1,0,0,0,625,626,5,27,0,0,626,627,3,76,38,0,627,75,1,0,0,0,628,631, - 3,78,39,0,629,631,3,82,41,0,630,628,1,0,0,0,630,629,1,0,0,0,631, - 77,1,0,0,0,632,633,5,28,0,0,633,634,3,128,64,0,634,635,5,49,0,0, - 635,636,3,130,65,0,636,637,5,37,0,0,637,638,3,128,64,0,638,639,5, - 98,0,0,639,640,3,112,56,0,640,641,5,38,0,0,641,644,3,80,40,0,642, - 643,5,39,0,0,643,645,3,120,60,0,644,642,1,0,0,0,644,645,1,0,0,0, - 645,646,1,0,0,0,646,647,5,99,0,0,647,79,1,0,0,0,648,655,5,71,0,0, - 649,650,5,72,0,0,650,651,5,106,0,0,651,652,3,112,56,0,652,653,5, - 107,0,0,653,655,1,0,0,0,654,648,1,0,0,0,654,649,1,0,0,0,655,81,1, - 0,0,0,656,657,5,29,0,0,657,658,3,128,64,0,658,659,5,49,0,0,659,660, - 3,130,65,0,660,661,5,102,0,0,661,662,3,84,42,0,662,663,3,84,42,0, - 663,664,5,103,0,0,664,83,1,0,0,0,665,666,3,46,23,0,666,667,5,30, - 0,0,667,668,3,128,64,0,668,669,5,49,0,0,669,670,3,130,65,0,670,672, - 3,118,59,0,671,673,5,77,0,0,672,671,1,0,0,0,672,673,1,0,0,0,673, - 676,1,0,0,0,674,675,5,45,0,0,675,677,3,130,65,0,676,674,1,0,0,0, - 676,677,1,0,0,0,677,679,1,0,0,0,678,680,5,46,0,0,679,678,1,0,0,0, - 679,680,1,0,0,0,680,683,1,0,0,0,681,682,5,47,0,0,682,684,3,130,65, - 0,683,681,1,0,0,0,683,684,1,0,0,0,684,686,1,0,0,0,685,687,5,48,0, - 0,686,685,1,0,0,0,686,687,1,0,0,0,687,688,1,0,0,0,688,689,5,99,0, - 0,689,85,1,0,0,0,690,691,5,21,0,0,691,692,3,128,64,0,692,693,5,22, - 0,0,693,695,3,128,64,0,694,696,3,28,14,0,695,694,1,0,0,0,695,696, - 1,0,0,0,696,699,1,0,0,0,697,698,5,49,0,0,698,700,3,130,65,0,699, - 697,1,0,0,0,699,700,1,0,0,0,700,703,1,0,0,0,701,702,5,44,0,0,702, - 704,5,112,0,0,703,701,1,0,0,0,703,704,1,0,0,0,704,705,1,0,0,0,705, - 709,5,102,0,0,706,708,3,88,44,0,707,706,1,0,0,0,708,711,1,0,0,0, - 709,707,1,0,0,0,709,710,1,0,0,0,710,712,1,0,0,0,711,709,1,0,0,0, - 712,713,5,103,0,0,713,87,1,0,0,0,714,715,5,26,0,0,715,720,3,76,38, - 0,716,720,3,94,47,0,717,720,3,90,45,0,718,720,3,92,46,0,719,714, - 1,0,0,0,719,716,1,0,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,89,1, - 0,0,0,721,722,5,23,0,0,722,723,3,128,64,0,723,724,5,25,0,0,724,725, - 5,28,0,0,725,726,3,128,64,0,726,727,5,99,0,0,727,91,1,0,0,0,728, - 729,5,34,0,0,729,730,3,128,64,0,730,731,5,35,0,0,731,732,5,36,0, - 0,732,733,5,32,0,0,733,734,5,18,0,0,734,735,3,128,64,0,735,736,5, - 33,0,0,736,737,5,29,0,0,737,738,3,128,64,0,738,739,5,101,0,0,739, - 740,3,128,64,0,740,741,5,99,0,0,741,93,1,0,0,0,742,743,5,23,0,0, - 743,744,3,96,48,0,744,745,5,25,0,0,745,746,3,100,50,0,746,747,5, - 99,0,0,747,95,1,0,0,0,748,749,3,128,64,0,749,750,5,101,0,0,750,751, - 3,98,49,0,751,97,1,0,0,0,752,764,3,128,64,0,753,764,5,66,0,0,754, - 764,5,56,0,0,755,764,5,57,0,0,756,764,5,63,0,0,757,764,5,64,0,0, - 758,764,5,65,0,0,759,764,5,67,0,0,760,764,5,68,0,0,761,764,5,69, - 0,0,762,764,5,70,0,0,763,752,1,0,0,0,763,753,1,0,0,0,763,754,1,0, - 0,0,763,755,1,0,0,0,763,756,1,0,0,0,763,757,1,0,0,0,763,758,1,0, - 0,0,763,759,1,0,0,0,763,760,1,0,0,0,763,761,1,0,0,0,763,762,1,0, - 0,0,764,99,1,0,0,0,765,766,5,28,0,0,766,767,3,128,64,0,767,768,5, - 101,0,0,768,769,3,102,51,0,769,788,1,0,0,0,770,771,5,29,0,0,771, - 772,3,128,64,0,772,773,5,101,0,0,773,774,3,128,64,0,774,775,5,101, - 0,0,775,776,3,104,52,0,776,788,1,0,0,0,777,778,5,13,0,0,778,779, - 3,128,64,0,779,780,5,101,0,0,780,782,3,128,64,0,781,783,3,28,14, - 0,782,781,1,0,0,0,782,783,1,0,0,0,783,785,1,0,0,0,784,786,3,106, - 53,0,785,784,1,0,0,0,785,786,1,0,0,0,786,788,1,0,0,0,787,765,1,0, - 0,0,787,770,1,0,0,0,787,777,1,0,0,0,788,101,1,0,0,0,789,790,7,2, - 0,0,790,103,1,0,0,0,791,792,7,3,0,0,792,105,1,0,0,0,793,794,5,31, - 0,0,794,798,5,102,0,0,795,797,3,108,54,0,796,795,1,0,0,0,797,800, - 1,0,0,0,798,796,1,0,0,0,798,799,1,0,0,0,799,801,1,0,0,0,800,798, - 1,0,0,0,801,802,5,103,0,0,802,107,1,0,0,0,803,804,3,128,64,0,804, - 805,5,25,0,0,805,806,5,28,0,0,806,813,3,128,64,0,807,808,5,33,0, - 0,808,809,5,29,0,0,809,810,3,128,64,0,810,811,5,101,0,0,811,812, - 3,128,64,0,812,814,1,0,0,0,813,807,1,0,0,0,813,814,1,0,0,0,814,815, - 1,0,0,0,815,816,5,99,0,0,816,857,1,0,0,0,817,818,3,128,64,0,818, - 819,5,25,0,0,819,820,5,29,0,0,820,821,3,128,64,0,821,822,5,101,0, - 0,822,829,3,128,64,0,823,824,5,33,0,0,824,825,5,29,0,0,825,826,3, - 128,64,0,826,827,5,101,0,0,827,828,3,128,64,0,828,830,1,0,0,0,829, - 823,1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,99,0,0,832, - 857,1,0,0,0,833,834,3,128,64,0,834,835,5,25,0,0,835,836,5,11,0,0, - 836,838,3,128,64,0,837,839,3,28,14,0,838,837,1,0,0,0,838,839,1,0, - 0,0,839,846,1,0,0,0,840,841,5,33,0,0,841,842,5,29,0,0,842,843,3, - 128,64,0,843,844,5,101,0,0,844,845,3,128,64,0,845,847,1,0,0,0,846, - 840,1,0,0,0,846,847,1,0,0,0,847,848,1,0,0,0,848,849,5,99,0,0,849, - 857,1,0,0,0,850,851,3,128,64,0,851,852,5,25,0,0,852,853,5,18,0,0, - 853,854,3,128,64,0,854,855,5,99,0,0,855,857,1,0,0,0,856,803,1,0, - 0,0,856,817,1,0,0,0,856,833,1,0,0,0,856,850,1,0,0,0,857,109,1,0, - 0,0,858,859,5,18,0,0,859,860,3,128,64,0,860,861,5,25,0,0,861,862, - 3,128,64,0,862,863,5,101,0,0,863,865,3,128,64,0,864,866,3,106,53, - 0,865,864,1,0,0,0,865,866,1,0,0,0,866,867,1,0,0,0,867,868,5,99,0, - 0,868,111,1,0,0,0,869,916,3,116,58,0,870,916,5,78,0,0,871,916,5, - 79,0,0,872,873,5,80,0,0,873,916,3,130,65,0,874,875,5,81,0,0,875, - 876,5,108,0,0,876,877,3,128,64,0,877,878,5,109,0,0,878,916,1,0,0, - 0,879,880,5,82,0,0,880,881,5,108,0,0,881,883,3,128,64,0,882,884, - 3,28,14,0,883,882,1,0,0,0,883,884,1,0,0,0,884,885,1,0,0,0,885,886, - 5,109,0,0,886,916,1,0,0,0,887,888,5,6,0,0,888,889,5,108,0,0,889, - 890,3,128,64,0,890,891,5,109,0,0,891,916,1,0,0,0,892,893,5,83,0, - 0,893,894,5,108,0,0,894,895,3,112,56,0,895,896,5,109,0,0,896,916, - 1,0,0,0,897,898,5,84,0,0,898,899,5,108,0,0,899,900,3,112,56,0,900, - 901,5,109,0,0,901,916,1,0,0,0,902,903,5,85,0,0,903,907,5,102,0,0, - 904,906,3,114,57,0,905,904,1,0,0,0,906,909,1,0,0,0,907,905,1,0,0, - 0,907,908,1,0,0,0,908,910,1,0,0,0,909,907,1,0,0,0,910,916,5,103, - 0,0,911,913,3,128,64,0,912,914,3,28,14,0,913,912,1,0,0,0,913,914, - 1,0,0,0,914,916,1,0,0,0,915,869,1,0,0,0,915,870,1,0,0,0,915,871, - 1,0,0,0,915,872,1,0,0,0,915,874,1,0,0,0,915,879,1,0,0,0,915,887, - 1,0,0,0,915,892,1,0,0,0,915,897,1,0,0,0,915,902,1,0,0,0,915,911, - 1,0,0,0,916,113,1,0,0,0,917,918,3,128,64,0,918,919,5,98,0,0,919, - 920,3,112,56,0,920,921,5,99,0,0,921,115,1,0,0,0,922,923,7,4,0,0, - 923,117,1,0,0,0,924,925,7,5,0,0,925,119,1,0,0,0,926,935,3,130,65, - 0,927,935,5,112,0,0,928,935,5,113,0,0,929,935,5,94,0,0,930,935,5, - 95,0,0,931,935,5,96,0,0,932,935,3,122,61,0,933,935,3,126,63,0,934, - 926,1,0,0,0,934,927,1,0,0,0,934,928,1,0,0,0,934,929,1,0,0,0,934, - 930,1,0,0,0,934,931,1,0,0,0,934,932,1,0,0,0,934,933,1,0,0,0,935, - 121,1,0,0,0,936,945,5,102,0,0,937,942,3,124,62,0,938,939,5,100,0, - 0,939,941,3,124,62,0,940,938,1,0,0,0,941,944,1,0,0,0,942,940,1,0, - 0,0,942,943,1,0,0,0,943,946,1,0,0,0,944,942,1,0,0,0,945,937,1,0, - 0,0,945,946,1,0,0,0,946,947,1,0,0,0,947,948,5,103,0,0,948,123,1, - 0,0,0,949,950,3,130,65,0,950,951,5,98,0,0,951,952,3,120,60,0,952, - 125,1,0,0,0,953,962,5,104,0,0,954,959,3,120,60,0,955,956,5,100,0, - 0,956,958,3,120,60,0,957,955,1,0,0,0,958,961,1,0,0,0,959,957,1,0, - 0,0,959,960,1,0,0,0,960,963,1,0,0,0,961,959,1,0,0,0,962,954,1,0, - 0,0,962,963,1,0,0,0,963,964,1,0,0,0,964,965,5,105,0,0,965,127,1, - 0,0,0,966,967,7,6,0,0,967,129,1,0,0,0,968,969,5,115,0,0,969,131, - 1,0,0,0,82,144,151,172,184,196,216,224,231,237,249,252,258,269,278, - 288,291,293,297,305,317,322,331,334,361,385,395,401,430,437,441, - 446,457,463,471,476,487,492,499,508,521,542,545,548,555,563,594, - 606,610,618,630,644,654,672,676,679,683,686,695,699,703,709,719, - 763,782,785,787,798,813,829,838,846,856,865,883,907,913,915,934, - 942,945,959,962 + 65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,1,0,1,0,1,0,1,0,1,0,1, + 0,1,0,1,0,1,0,1,0,1,0,1,0,3,0,153,8,0,1,1,1,1,1,1,5,1,158,8,1,10, + 1,12,1,161,9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1, + 3,1,3,1,3,1,3,5,3,179,8,3,10,3,12,3,182,9,3,1,3,1,3,1,4,1,4,1,4, + 1,4,1,4,1,4,1,4,3,4,193,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5, + 1,5,3,5,205,8,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7, + 1,7,1,7,1,8,1,8,1,8,1,8,3,8,225,8,8,1,9,1,9,1,9,1,9,1,9,1,9,3,9, + 233,8,9,1,9,1,9,1,10,5,10,238,8,10,10,10,12,10,241,9,10,1,10,1,10, + 1,10,3,10,246,8,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10, + 256,8,10,10,10,12,10,259,9,10,3,10,261,8,10,1,10,1,10,5,10,265,8, + 10,10,10,12,10,268,9,10,1,10,1,10,1,11,1,11,1,11,1,11,5,11,276,8, + 11,10,11,12,11,279,9,11,1,11,1,11,1,12,1,12,1,12,1,12,3,12,287,8, + 12,1,12,1,12,1,12,1,12,1,12,1,12,5,12,295,8,12,10,12,12,12,298,9, + 12,3,12,300,8,12,3,12,302,8,12,1,13,1,13,3,13,306,8,13,1,14,1,14, + 1,14,1,14,5,14,312,8,14,10,14,12,14,315,9,14,1,14,1,14,1,15,1,15, + 1,15,1,15,1,15,1,15,1,15,3,15,326,8,15,1,16,1,16,1,16,3,16,331,8, + 16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,3,17,340,8,17,1,18,3,18,343, + 8,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18, + 1,18,1,18,1,18,1,19,3,19,361,8,19,1,19,1,19,1,19,1,19,1,19,1,19, + 1,19,1,19,5,19,371,8,19,10,19,12,19,374,9,19,1,19,1,19,1,20,1,20, + 1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20, + 1,20,1,20,1,20,1,20,3,20,397,8,20,1,21,3,21,400,8,21,1,21,1,21,1, + 21,1,21,1,21,1,21,1,21,1,21,3,21,410,8,21,1,21,1,21,3,21,414,8,21, + 1,21,1,21,5,21,418,8,21,10,21,12,21,421,9,21,1,21,1,21,1,22,1,22, + 3,22,427,8,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23, + 1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23, + 1,23,3,23,453,8,23,1,24,1,24,1,24,1,24,1,24,3,24,460,8,24,1,24,1, + 24,3,24,464,8,24,1,25,5,25,467,8,25,10,25,12,25,470,9,25,1,25,1, + 25,1,25,1,25,1,25,1,25,1,25,1,25,3,25,480,8,25,1,25,1,25,5,25,484, + 8,25,10,25,12,25,487,9,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,3,26, + 496,8,26,1,27,1,27,1,27,3,27,501,8,27,1,27,1,27,1,27,1,27,1,27,1, + 27,1,27,1,27,1,27,1,27,5,27,513,8,27,10,27,12,27,516,9,27,1,27,1, + 27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1, + 29,1,29,1,29,3,29,535,8,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1, + 29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1, + 29,1,29,1,29,1,29,1,29,3,29,562,8,29,1,30,1,30,1,30,3,30,567,8,30, + 1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,578,8,30,1,30, + 1,30,1,30,3,30,583,8,30,1,30,1,30,1,31,1,31,1,31,3,31,590,8,31,1, + 31,1,31,1,31,1,31,1,31,1,31,1,31,3,31,599,8,31,1,31,1,31,1,32,1, + 32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,3,32,612,8,32,1,32,1,32,1, + 33,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1, + 35,1,35,5,35,631,8,35,10,35,12,35,634,9,35,3,35,636,8,35,1,35,3, + 35,639,8,35,1,36,1,36,1,36,5,36,644,8,36,10,36,12,36,647,9,36,1, + 37,1,37,1,37,5,37,652,8,37,10,37,12,37,655,9,37,1,37,1,37,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,685, + 8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,697, + 8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 3,38,711,8,38,1,39,1,39,1,39,1,39,5,39,717,8,39,10,39,12,39,720, + 9,39,1,39,1,39,1,40,1,40,1,41,1,41,1,41,1,42,1,42,3,42,731,8,42, + 1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,3,43, + 745,8,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,3,44,755,8,44,1, + 45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1, + 46,1,46,1,46,3,46,773,8,46,1,46,1,46,3,46,777,8,46,1,46,3,46,780, + 8,46,1,46,1,46,3,46,784,8,46,1,46,3,46,787,8,46,1,46,1,46,1,47,1, + 47,1,47,1,47,1,47,3,47,796,8,47,1,47,1,47,3,47,800,8,47,1,47,1,47, + 3,47,804,8,47,1,47,1,47,5,47,808,8,47,10,47,12,47,811,9,47,1,47, + 1,47,1,48,1,48,1,48,1,48,1,48,3,48,820,8,48,1,49,1,49,1,49,1,49, + 1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50, + 1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,3,51,849,8,51, + 1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53, + 1,53,1,53,1,53,1,53,3,53,868,8,53,1,54,1,54,1,54,1,54,1,54,1,54, + 1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,887, + 8,54,1,54,3,54,890,8,54,3,54,892,8,54,1,55,1,55,1,56,1,56,1,57,1, + 57,1,57,5,57,901,8,57,10,57,12,57,904,9,57,1,57,1,57,1,58,1,58,1, + 58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,3,58,918,8,58,1,58,1,58,1, + 58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,3,58,934, + 8,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,3,58,943,8,58,1,58,1,58, + 1,58,1,58,1,58,1,58,3,58,951,8,58,1,58,1,58,1,58,1,58,1,58,1,58, + 1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58, + 1,58,3,58,973,8,58,1,58,1,58,3,58,977,8,58,1,59,1,59,1,59,1,59,1, + 59,1,59,1,59,3,59,986,8,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1, + 60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,3,60,1004,8,60,1,60,1, + 60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1, + 60,1,60,1,60,1,60,1,60,1,60,5,60,1026,8,60,10,60,12,60,1029,9,60, + 1,60,1,60,1,60,3,60,1034,8,60,3,60,1036,8,60,1,61,1,61,1,61,1,61, + 1,61,1,62,1,62,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64, + 3,64,1055,8,64,1,65,1,65,1,65,1,65,5,65,1061,8,65,10,65,12,65,1064, + 9,65,3,65,1066,8,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67, + 1,67,5,67,1078,8,67,10,67,12,67,1081,9,67,3,67,1083,8,67,1,67,1, + 67,1,68,1,68,1,69,1,69,1,69,0,0,70,0,2,4,6,8,10,12,14,16,18,20,22, + 24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66, + 68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106, + 108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138, + 0,7,1,0,78,82,2,0,73,77,79,80,2,0,73,74,79,80,2,0,75,77,79,80,1, + 0,98,105,1,0,85,88,3,0,2,12,52,52,126,126,1170,0,152,1,0,0,0,2,154, + 1,0,0,0,4,164,1,0,0,0,6,168,1,0,0,0,8,192,1,0,0,0,10,204,1,0,0,0, + 12,206,1,0,0,0,14,213,1,0,0,0,16,224,1,0,0,0,18,226,1,0,0,0,20,239, + 1,0,0,0,22,271,1,0,0,0,24,301,1,0,0,0,26,303,1,0,0,0,28,307,1,0, + 0,0,30,325,1,0,0,0,32,327,1,0,0,0,34,339,1,0,0,0,36,342,1,0,0,0, + 38,360,1,0,0,0,40,396,1,0,0,0,42,399,1,0,0,0,44,424,1,0,0,0,46,452, + 1,0,0,0,48,463,1,0,0,0,50,468,1,0,0,0,52,495,1,0,0,0,54,497,1,0, + 0,0,56,519,1,0,0,0,58,561,1,0,0,0,60,563,1,0,0,0,62,586,1,0,0,0, + 64,602,1,0,0,0,66,615,1,0,0,0,68,618,1,0,0,0,70,638,1,0,0,0,72,640, + 1,0,0,0,74,648,1,0,0,0,76,710,1,0,0,0,78,712,1,0,0,0,80,723,1,0, + 0,0,82,725,1,0,0,0,84,730,1,0,0,0,86,732,1,0,0,0,88,754,1,0,0,0, + 90,756,1,0,0,0,92,765,1,0,0,0,94,790,1,0,0,0,96,819,1,0,0,0,98,821, + 1,0,0,0,100,828,1,0,0,0,102,842,1,0,0,0,104,852,1,0,0,0,106,867, + 1,0,0,0,108,891,1,0,0,0,110,893,1,0,0,0,112,895,1,0,0,0,114,897, + 1,0,0,0,116,976,1,0,0,0,118,978,1,0,0,0,120,1035,1,0,0,0,122,1037, + 1,0,0,0,124,1042,1,0,0,0,126,1044,1,0,0,0,128,1054,1,0,0,0,130,1056, + 1,0,0,0,132,1069,1,0,0,0,134,1073,1,0,0,0,136,1086,1,0,0,0,138,1088, + 1,0,0,0,140,141,3,6,3,0,141,142,5,0,0,1,142,153,1,0,0,0,143,144, + 3,20,10,0,144,145,5,0,0,1,145,153,1,0,0,0,146,147,3,50,25,0,147, + 148,5,0,0,1,148,153,1,0,0,0,149,150,3,2,1,0,150,151,5,0,0,1,151, + 153,1,0,0,0,152,140,1,0,0,0,152,143,1,0,0,0,152,146,1,0,0,0,152, + 149,1,0,0,0,153,1,1,0,0,0,154,155,5,19,0,0,155,159,5,114,0,0,156, + 158,3,8,4,0,157,156,1,0,0,0,158,161,1,0,0,0,159,157,1,0,0,0,159, + 160,1,0,0,0,160,162,1,0,0,0,161,159,1,0,0,0,162,163,5,115,0,0,163, + 3,1,0,0,0,164,165,5,20,0,0,165,166,3,138,69,0,166,167,5,111,0,0, + 167,5,1,0,0,0,168,169,5,1,0,0,169,170,3,136,68,0,170,171,5,61,0, + 0,171,172,3,138,69,0,172,173,5,55,0,0,173,174,3,138,69,0,174,175, + 5,54,0,0,175,176,3,138,69,0,176,180,5,114,0,0,177,179,3,8,4,0,178, + 177,1,0,0,0,179,182,1,0,0,0,180,178,1,0,0,0,180,181,1,0,0,0,181, + 183,1,0,0,0,182,180,1,0,0,0,183,184,5,115,0,0,184,7,1,0,0,0,185, + 193,3,4,2,0,186,193,3,18,9,0,187,193,3,10,5,0,188,193,3,82,41,0, + 189,193,3,94,47,0,190,193,3,118,59,0,191,193,3,32,16,0,192,185,1, + 0,0,0,192,186,1,0,0,0,192,187,1,0,0,0,192,188,1,0,0,0,192,189,1, + 0,0,0,192,190,1,0,0,0,192,191,1,0,0,0,193,9,1,0,0,0,194,195,5,20, + 0,0,195,196,5,23,0,0,196,197,3,136,68,0,197,198,5,111,0,0,198,205, + 1,0,0,0,199,200,5,20,0,0,200,201,5,25,0,0,201,202,3,136,68,0,202, + 203,5,111,0,0,203,205,1,0,0,0,204,194,1,0,0,0,204,199,1,0,0,0,205, + 11,1,0,0,0,206,207,5,21,0,0,207,208,5,22,0,0,208,209,3,136,68,0, + 209,210,5,61,0,0,210,211,3,138,69,0,211,212,5,111,0,0,212,13,1,0, + 0,0,213,214,5,21,0,0,214,215,5,23,0,0,215,216,3,136,68,0,216,217, + 5,55,0,0,217,218,3,138,69,0,218,219,5,111,0,0,219,15,1,0,0,0,220, + 225,3,10,5,0,221,225,3,12,6,0,222,225,3,14,7,0,223,225,3,32,16,0, + 224,220,1,0,0,0,224,221,1,0,0,0,224,222,1,0,0,0,224,223,1,0,0,0, + 225,17,1,0,0,0,226,227,5,22,0,0,227,228,3,136,68,0,228,229,5,61, + 0,0,229,232,3,138,69,0,230,231,5,62,0,0,231,233,3,138,69,0,232,230, + 1,0,0,0,232,233,1,0,0,0,233,234,1,0,0,0,234,235,5,111,0,0,235,19, + 1,0,0,0,236,238,3,16,8,0,237,236,1,0,0,0,238,241,1,0,0,0,239,237, + 1,0,0,0,239,240,1,0,0,0,240,242,1,0,0,0,241,239,1,0,0,0,242,243, + 5,23,0,0,243,245,3,136,68,0,244,246,3,22,11,0,245,244,1,0,0,0,245, + 246,1,0,0,0,246,247,1,0,0,0,247,248,5,61,0,0,248,249,3,138,69,0, + 249,250,5,55,0,0,250,260,3,138,69,0,251,252,5,66,0,0,252,257,3,26, + 13,0,253,254,5,112,0,0,254,256,3,26,13,0,255,253,1,0,0,0,256,259, + 1,0,0,0,257,255,1,0,0,0,257,258,1,0,0,0,258,261,1,0,0,0,259,257, + 1,0,0,0,260,251,1,0,0,0,260,261,1,0,0,0,261,262,1,0,0,0,262,266, + 5,114,0,0,263,265,3,34,17,0,264,263,1,0,0,0,265,268,1,0,0,0,266, + 264,1,0,0,0,266,267,1,0,0,0,267,269,1,0,0,0,268,266,1,0,0,0,269, + 270,5,115,0,0,270,21,1,0,0,0,271,272,5,120,0,0,272,277,3,24,12,0, + 273,274,5,112,0,0,274,276,3,24,12,0,275,273,1,0,0,0,276,279,1,0, + 0,0,277,275,1,0,0,0,277,278,1,0,0,0,278,280,1,0,0,0,279,277,1,0, + 0,0,280,281,5,121,0,0,281,23,1,0,0,0,282,283,5,26,0,0,283,286,3, + 136,68,0,284,285,5,110,0,0,285,287,5,16,0,0,286,284,1,0,0,0,286, + 287,1,0,0,0,287,302,1,0,0,0,288,289,5,15,0,0,289,299,3,136,68,0, + 290,291,5,17,0,0,291,296,3,26,13,0,292,293,5,122,0,0,293,295,3,26, + 13,0,294,292,1,0,0,0,295,298,1,0,0,0,296,294,1,0,0,0,296,297,1,0, + 0,0,297,300,1,0,0,0,298,296,1,0,0,0,299,290,1,0,0,0,299,300,1,0, + 0,0,300,302,1,0,0,0,301,282,1,0,0,0,301,288,1,0,0,0,302,25,1,0,0, + 0,303,305,3,136,68,0,304,306,3,28,14,0,305,304,1,0,0,0,305,306,1, + 0,0,0,306,27,1,0,0,0,307,308,5,120,0,0,308,313,3,30,15,0,309,310, + 5,112,0,0,310,312,3,30,15,0,311,309,1,0,0,0,312,315,1,0,0,0,313, + 311,1,0,0,0,313,314,1,0,0,0,314,316,1,0,0,0,315,313,1,0,0,0,316, + 317,5,121,0,0,317,29,1,0,0,0,318,319,5,22,0,0,319,326,3,136,68,0, + 320,321,5,23,0,0,321,326,3,26,13,0,322,323,5,15,0,0,323,326,3,136, + 68,0,324,326,3,120,60,0,325,318,1,0,0,0,325,320,1,0,0,0,325,322, + 1,0,0,0,325,324,1,0,0,0,326,31,1,0,0,0,327,328,5,14,0,0,328,330, + 3,136,68,0,329,331,3,22,11,0,330,329,1,0,0,0,330,331,1,0,0,0,331, + 332,1,0,0,0,332,333,5,123,0,0,333,334,3,120,60,0,334,335,5,111,0, + 0,335,33,1,0,0,0,336,340,3,38,19,0,337,340,3,42,21,0,338,340,3,36, + 18,0,339,336,1,0,0,0,339,337,1,0,0,0,339,338,1,0,0,0,340,35,1,0, + 0,0,341,343,5,36,0,0,342,341,1,0,0,0,342,343,1,0,0,0,343,344,1,0, + 0,0,344,345,5,28,0,0,345,346,3,136,68,0,346,347,5,61,0,0,347,348, + 3,138,69,0,348,349,5,110,0,0,349,350,3,120,60,0,350,351,5,109,0, + 0,351,352,3,120,60,0,352,353,5,114,0,0,353,354,5,78,0,0,354,355, + 5,61,0,0,355,356,3,138,69,0,356,357,5,111,0,0,357,358,5,115,0,0, + 358,37,1,0,0,0,359,361,3,44,22,0,360,359,1,0,0,0,360,361,1,0,0,0, + 361,362,1,0,0,0,362,363,5,26,0,0,363,364,3,136,68,0,364,365,5,61, + 0,0,365,366,3,138,69,0,366,367,5,110,0,0,367,368,3,120,60,0,368, + 372,5,114,0,0,369,371,3,40,20,0,370,369,1,0,0,0,371,374,1,0,0,0, + 372,370,1,0,0,0,372,373,1,0,0,0,373,375,1,0,0,0,374,372,1,0,0,0, + 375,376,5,115,0,0,376,39,1,0,0,0,377,378,5,68,0,0,378,379,5,61,0, + 0,379,380,3,138,69,0,380,381,5,111,0,0,381,397,1,0,0,0,382,383,5, + 69,0,0,383,384,5,61,0,0,384,385,3,138,69,0,385,386,5,111,0,0,386, + 397,1,0,0,0,387,388,5,70,0,0,388,389,5,71,0,0,389,390,5,61,0,0,390, + 391,3,138,69,0,391,392,5,72,0,0,392,393,5,61,0,0,393,394,3,138,69, + 0,394,395,5,111,0,0,395,397,1,0,0,0,396,377,1,0,0,0,396,382,1,0, + 0,0,396,387,1,0,0,0,397,41,1,0,0,0,398,400,3,44,22,0,399,398,1,0, + 0,0,399,400,1,0,0,0,400,401,1,0,0,0,401,402,5,27,0,0,402,403,3,136, + 68,0,403,404,5,61,0,0,404,405,3,138,69,0,405,406,5,110,0,0,406,407, + 3,126,63,0,407,409,3,48,24,0,408,410,5,89,0,0,409,408,1,0,0,0,409, + 410,1,0,0,0,410,413,1,0,0,0,411,412,5,59,0,0,412,414,3,138,69,0, + 413,411,1,0,0,0,413,414,1,0,0,0,414,415,1,0,0,0,415,419,5,114,0, + 0,416,418,3,46,23,0,417,416,1,0,0,0,418,421,1,0,0,0,419,417,1,0, + 0,0,419,420,1,0,0,0,420,422,1,0,0,0,421,419,1,0,0,0,422,423,5,115, + 0,0,423,43,1,0,0,0,424,426,5,11,0,0,425,427,5,12,0,0,426,425,1,0, + 0,0,426,427,1,0,0,0,427,45,1,0,0,0,428,429,5,75,0,0,429,430,5,61, + 0,0,430,431,3,138,69,0,431,432,5,111,0,0,432,453,1,0,0,0,433,434, + 5,76,0,0,434,435,5,61,0,0,435,436,3,138,69,0,436,437,5,111,0,0,437, + 453,1,0,0,0,438,439,5,77,0,0,439,440,5,61,0,0,440,441,3,138,69,0, + 441,442,5,111,0,0,442,453,1,0,0,0,443,444,5,70,0,0,444,445,5,71, + 0,0,445,446,5,61,0,0,446,447,3,138,69,0,447,448,5,72,0,0,448,449, + 5,61,0,0,449,450,3,138,69,0,450,451,5,111,0,0,451,453,1,0,0,0,452, + 428,1,0,0,0,452,433,1,0,0,0,452,438,1,0,0,0,452,443,1,0,0,0,453, + 47,1,0,0,0,454,455,5,22,0,0,455,464,3,136,68,0,456,457,5,23,0,0, + 457,459,3,136,68,0,458,460,3,28,14,0,459,458,1,0,0,0,459,460,1,0, + 0,0,460,464,1,0,0,0,461,462,5,15,0,0,462,464,3,136,68,0,463,454, + 1,0,0,0,463,456,1,0,0,0,463,461,1,0,0,0,464,49,1,0,0,0,465,467,3, + 16,8,0,466,465,1,0,0,0,467,470,1,0,0,0,468,466,1,0,0,0,468,469,1, + 0,0,0,469,471,1,0,0,0,470,468,1,0,0,0,471,472,5,25,0,0,472,473,3, + 136,68,0,473,474,5,61,0,0,474,475,3,138,69,0,475,476,5,55,0,0,476, + 479,3,138,69,0,477,478,5,56,0,0,478,480,5,124,0,0,479,477,1,0,0, + 0,479,480,1,0,0,0,480,481,1,0,0,0,481,485,5,114,0,0,482,484,3,52, + 26,0,483,482,1,0,0,0,484,487,1,0,0,0,485,483,1,0,0,0,485,486,1,0, + 0,0,486,488,1,0,0,0,487,485,1,0,0,0,488,489,5,115,0,0,489,51,1,0, + 0,0,490,496,3,60,30,0,491,496,3,62,31,0,492,496,3,64,32,0,493,496, + 3,54,27,0,494,496,3,56,28,0,495,490,1,0,0,0,495,491,1,0,0,0,495, + 492,1,0,0,0,495,493,1,0,0,0,495,494,1,0,0,0,496,53,1,0,0,0,497,498, + 5,2,0,0,498,500,3,136,68,0,499,501,3,22,11,0,500,499,1,0,0,0,500, + 501,1,0,0,0,501,502,1,0,0,0,502,503,5,61,0,0,503,504,3,138,69,0, + 504,505,5,4,0,0,505,506,3,26,13,0,506,507,5,5,0,0,507,508,3,138, + 69,0,508,509,5,28,0,0,509,510,3,138,69,0,510,514,5,114,0,0,511,513, + 3,58,29,0,512,511,1,0,0,0,513,516,1,0,0,0,514,512,1,0,0,0,514,515, + 1,0,0,0,515,517,1,0,0,0,516,514,1,0,0,0,517,518,5,115,0,0,518,55, + 1,0,0,0,519,520,5,2,0,0,520,521,3,136,68,0,521,522,5,61,0,0,522, + 523,3,138,69,0,523,524,5,3,0,0,524,525,3,136,68,0,525,526,3,28,14, + 0,526,527,5,111,0,0,527,57,1,0,0,0,528,529,5,6,0,0,529,530,3,138, + 69,0,530,531,5,111,0,0,531,562,1,0,0,0,532,534,5,7,0,0,533,535,5, + 15,0,0,534,533,1,0,0,0,534,535,1,0,0,0,535,536,1,0,0,0,536,537,3, + 136,68,0,537,538,5,34,0,0,538,539,3,26,13,0,539,540,5,111,0,0,540, + 562,1,0,0,0,541,542,5,8,0,0,542,543,3,136,68,0,543,544,5,124,0,0, + 544,545,5,111,0,0,545,562,1,0,0,0,546,547,5,9,0,0,547,548,3,26,13, + 0,548,549,5,113,0,0,549,550,3,136,68,0,550,551,3,136,68,0,551,552, + 3,138,69,0,552,553,5,111,0,0,553,562,1,0,0,0,554,555,5,70,0,0,555, + 562,5,111,0,0,556,557,5,10,0,0,557,558,5,124,0,0,558,559,3,138,69, + 0,559,560,5,111,0,0,560,562,1,0,0,0,561,528,1,0,0,0,561,532,1,0, + 0,0,561,541,1,0,0,0,561,546,1,0,0,0,561,554,1,0,0,0,561,556,1,0, + 0,0,562,59,1,0,0,0,563,564,5,28,0,0,564,566,3,136,68,0,565,567,3, + 22,11,0,566,565,1,0,0,0,566,567,1,0,0,0,567,568,1,0,0,0,568,569, + 5,61,0,0,569,570,3,138,69,0,570,571,5,110,0,0,571,572,3,120,60,0, + 572,573,5,109,0,0,573,574,3,120,60,0,574,575,5,63,0,0,575,577,3, + 68,34,0,576,578,3,66,33,0,577,576,1,0,0,0,577,578,1,0,0,0,578,579, + 1,0,0,0,579,580,5,65,0,0,580,582,3,70,35,0,581,583,3,74,37,0,582, + 581,1,0,0,0,582,583,1,0,0,0,583,584,1,0,0,0,584,585,5,111,0,0,585, + 61,1,0,0,0,586,587,5,29,0,0,587,589,3,136,68,0,588,590,3,22,11,0, + 589,588,1,0,0,0,589,590,1,0,0,0,590,591,1,0,0,0,591,592,5,61,0,0, + 592,593,3,138,69,0,593,594,5,110,0,0,594,595,3,120,60,0,595,596, + 5,109,0,0,596,598,3,120,60,0,597,599,3,74,37,0,598,597,1,0,0,0,598, + 599,1,0,0,0,599,600,1,0,0,0,600,601,5,111,0,0,601,63,1,0,0,0,602, + 603,5,30,0,0,603,604,3,136,68,0,604,605,5,61,0,0,605,606,3,138,69, + 0,606,607,5,31,0,0,607,608,3,136,68,0,608,609,5,110,0,0,609,611, + 3,120,60,0,610,612,3,74,37,0,611,610,1,0,0,0,611,612,1,0,0,0,612, + 613,1,0,0,0,613,614,5,111,0,0,614,65,1,0,0,0,615,616,5,64,0,0,616, + 617,3,120,60,0,617,67,1,0,0,0,618,619,7,0,0,0,619,69,1,0,0,0,620, + 639,5,67,0,0,621,622,5,22,0,0,622,639,3,136,68,0,623,624,5,15,0, + 0,624,639,3,136,68,0,625,626,5,24,0,0,626,635,5,116,0,0,627,632, + 3,26,13,0,628,629,5,112,0,0,629,631,3,26,13,0,630,628,1,0,0,0,631, + 634,1,0,0,0,632,630,1,0,0,0,632,633,1,0,0,0,633,636,1,0,0,0,634, + 632,1,0,0,0,635,627,1,0,0,0,635,636,1,0,0,0,636,637,1,0,0,0,637, + 639,5,117,0,0,638,620,1,0,0,0,638,621,1,0,0,0,638,623,1,0,0,0,638, + 625,1,0,0,0,639,71,1,0,0,0,640,645,3,136,68,0,641,642,5,112,0,0, + 642,644,3,136,68,0,643,641,1,0,0,0,644,647,1,0,0,0,645,643,1,0,0, + 0,645,646,1,0,0,0,646,73,1,0,0,0,647,645,1,0,0,0,648,649,5,66,0, + 0,649,653,5,114,0,0,650,652,3,76,38,0,651,650,1,0,0,0,652,655,1, + 0,0,0,653,651,1,0,0,0,653,654,1,0,0,0,654,656,1,0,0,0,655,653,1, + 0,0,0,656,657,5,115,0,0,657,75,1,0,0,0,658,659,5,40,0,0,659,660, + 3,136,68,0,660,661,5,61,0,0,661,662,3,138,69,0,662,663,5,110,0,0, + 663,664,3,120,60,0,664,665,3,78,39,0,665,666,5,111,0,0,666,711,1, + 0,0,0,667,668,5,41,0,0,668,669,3,136,68,0,669,670,5,61,0,0,670,671, + 3,138,69,0,671,672,5,110,0,0,672,673,3,126,63,0,673,674,3,48,24, + 0,674,675,3,78,39,0,675,676,5,111,0,0,676,711,1,0,0,0,677,678,5, + 23,0,0,678,679,3,136,68,0,679,680,5,61,0,0,680,681,3,138,69,0,681, + 682,5,110,0,0,682,684,3,136,68,0,683,685,3,28,14,0,684,683,1,0,0, + 0,684,685,1,0,0,0,685,686,1,0,0,0,686,687,5,111,0,0,687,711,1,0, + 0,0,688,689,5,30,0,0,689,690,3,136,68,0,690,691,5,61,0,0,691,692, + 3,138,69,0,692,693,5,110,0,0,693,696,3,136,68,0,694,695,5,32,0,0, + 695,697,3,120,60,0,696,694,1,0,0,0,696,697,1,0,0,0,697,698,1,0,0, + 0,698,699,5,111,0,0,699,711,1,0,0,0,700,701,5,2,0,0,701,702,3,136, + 68,0,702,703,5,61,0,0,703,704,3,138,69,0,704,705,5,110,0,0,705,706, + 3,136,68,0,706,707,5,113,0,0,707,708,3,136,68,0,708,709,5,111,0, + 0,709,711,1,0,0,0,710,658,1,0,0,0,710,667,1,0,0,0,710,677,1,0,0, + 0,710,688,1,0,0,0,710,700,1,0,0,0,711,77,1,0,0,0,712,713,5,116,0, + 0,713,718,3,80,40,0,714,715,5,112,0,0,715,717,3,80,40,0,716,714, + 1,0,0,0,717,720,1,0,0,0,718,716,1,0,0,0,718,719,1,0,0,0,719,721, + 1,0,0,0,720,718,1,0,0,0,721,722,5,117,0,0,722,79,1,0,0,0,723,724, + 7,1,0,0,724,81,1,0,0,0,725,726,5,39,0,0,726,727,3,84,42,0,727,83, + 1,0,0,0,728,731,3,86,43,0,729,731,3,90,45,0,730,728,1,0,0,0,730, + 729,1,0,0,0,731,85,1,0,0,0,732,733,5,40,0,0,733,734,3,136,68,0,734, + 735,5,61,0,0,735,736,3,138,69,0,736,737,5,49,0,0,737,738,3,136,68, + 0,738,739,5,110,0,0,739,740,3,120,60,0,740,741,5,50,0,0,741,744, + 3,88,44,0,742,743,5,51,0,0,743,745,3,128,64,0,744,742,1,0,0,0,744, + 745,1,0,0,0,745,746,1,0,0,0,746,747,5,111,0,0,747,87,1,0,0,0,748, + 755,5,83,0,0,749,750,5,84,0,0,750,751,5,118,0,0,751,752,3,120,60, + 0,752,753,5,119,0,0,753,755,1,0,0,0,754,748,1,0,0,0,754,749,1,0, + 0,0,755,89,1,0,0,0,756,757,5,41,0,0,757,758,3,136,68,0,758,759,5, + 61,0,0,759,760,3,138,69,0,760,761,5,114,0,0,761,762,3,92,46,0,762, + 763,3,92,46,0,763,764,5,115,0,0,764,91,1,0,0,0,765,766,3,48,24,0, + 766,767,5,42,0,0,767,768,3,136,68,0,768,769,5,61,0,0,769,770,3,138, + 69,0,770,772,3,126,63,0,771,773,5,89,0,0,772,771,1,0,0,0,772,773, + 1,0,0,0,773,776,1,0,0,0,774,775,5,57,0,0,775,777,3,138,69,0,776, + 774,1,0,0,0,776,777,1,0,0,0,777,779,1,0,0,0,778,780,5,58,0,0,779, + 778,1,0,0,0,779,780,1,0,0,0,780,783,1,0,0,0,781,782,5,59,0,0,782, + 784,3,138,69,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785, + 787,5,60,0,0,786,785,1,0,0,0,786,787,1,0,0,0,787,788,1,0,0,0,788, + 789,5,111,0,0,789,93,1,0,0,0,790,791,5,33,0,0,791,792,3,136,68,0, + 792,793,5,34,0,0,793,795,3,136,68,0,794,796,3,28,14,0,795,794,1, + 0,0,0,795,796,1,0,0,0,796,799,1,0,0,0,797,798,5,61,0,0,798,800,3, + 138,69,0,799,797,1,0,0,0,799,800,1,0,0,0,800,803,1,0,0,0,801,802, + 5,56,0,0,802,804,5,124,0,0,803,801,1,0,0,0,803,804,1,0,0,0,804,805, + 1,0,0,0,805,809,5,114,0,0,806,808,3,96,48,0,807,806,1,0,0,0,808, + 811,1,0,0,0,809,807,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811, + 809,1,0,0,0,812,813,5,115,0,0,813,95,1,0,0,0,814,815,5,38,0,0,815, + 820,3,84,42,0,816,820,3,102,51,0,817,820,3,98,49,0,818,820,3,100, + 50,0,819,814,1,0,0,0,819,816,1,0,0,0,819,817,1,0,0,0,819,818,1,0, + 0,0,820,97,1,0,0,0,821,822,5,35,0,0,822,823,3,136,68,0,823,824,5, + 37,0,0,824,825,5,40,0,0,825,826,3,136,68,0,826,827,5,111,0,0,827, + 99,1,0,0,0,828,829,5,46,0,0,829,830,3,136,68,0,830,831,5,47,0,0, + 831,832,5,48,0,0,832,833,5,44,0,0,833,834,5,30,0,0,834,835,3,136, + 68,0,835,836,5,45,0,0,836,837,5,41,0,0,837,838,3,136,68,0,838,839, + 5,113,0,0,839,840,3,136,68,0,840,841,5,111,0,0,841,101,1,0,0,0,842, + 843,5,35,0,0,843,844,3,104,52,0,844,845,5,37,0,0,845,848,3,108,54, + 0,846,847,5,13,0,0,847,849,3,138,69,0,848,846,1,0,0,0,848,849,1, + 0,0,0,849,850,1,0,0,0,850,851,5,111,0,0,851,103,1,0,0,0,852,853, + 3,136,68,0,853,854,5,113,0,0,854,855,3,106,53,0,855,105,1,0,0,0, + 856,868,3,136,68,0,857,868,5,78,0,0,858,868,5,68,0,0,859,868,5,69, + 0,0,860,868,5,75,0,0,861,868,5,76,0,0,862,868,5,77,0,0,863,868,5, + 79,0,0,864,868,5,80,0,0,865,868,5,81,0,0,866,868,5,82,0,0,867,856, + 1,0,0,0,867,857,1,0,0,0,867,858,1,0,0,0,867,859,1,0,0,0,867,860, + 1,0,0,0,867,861,1,0,0,0,867,862,1,0,0,0,867,863,1,0,0,0,867,864, + 1,0,0,0,867,865,1,0,0,0,867,866,1,0,0,0,868,107,1,0,0,0,869,870, + 5,40,0,0,870,871,3,136,68,0,871,872,5,113,0,0,872,873,3,110,55,0, + 873,892,1,0,0,0,874,875,5,41,0,0,875,876,3,136,68,0,876,877,5,113, + 0,0,877,878,3,136,68,0,878,879,5,113,0,0,879,880,3,112,56,0,880, + 892,1,0,0,0,881,882,5,25,0,0,882,883,3,136,68,0,883,884,5,113,0, + 0,884,886,3,136,68,0,885,887,3,28,14,0,886,885,1,0,0,0,886,887,1, + 0,0,0,887,889,1,0,0,0,888,890,3,114,57,0,889,888,1,0,0,0,889,890, + 1,0,0,0,890,892,1,0,0,0,891,869,1,0,0,0,891,874,1,0,0,0,891,881, + 1,0,0,0,892,109,1,0,0,0,893,894,7,2,0,0,894,111,1,0,0,0,895,896, + 7,3,0,0,896,113,1,0,0,0,897,898,5,43,0,0,898,902,5,114,0,0,899,901, + 3,116,58,0,900,899,1,0,0,0,901,904,1,0,0,0,902,900,1,0,0,0,902,903, + 1,0,0,0,903,905,1,0,0,0,904,902,1,0,0,0,905,906,5,115,0,0,906,115, + 1,0,0,0,907,908,3,136,68,0,908,909,5,37,0,0,909,910,5,40,0,0,910, + 917,3,136,68,0,911,912,5,45,0,0,912,913,5,41,0,0,913,914,3,136,68, + 0,914,915,5,113,0,0,915,916,3,136,68,0,916,918,1,0,0,0,917,911,1, + 0,0,0,917,918,1,0,0,0,918,919,1,0,0,0,919,920,5,111,0,0,920,977, + 1,0,0,0,921,922,3,136,68,0,922,923,5,37,0,0,923,924,5,41,0,0,924, + 925,3,136,68,0,925,926,5,113,0,0,926,933,3,136,68,0,927,928,5,45, + 0,0,928,929,5,41,0,0,929,930,3,136,68,0,930,931,5,113,0,0,931,932, + 3,136,68,0,932,934,1,0,0,0,933,927,1,0,0,0,933,934,1,0,0,0,934,935, + 1,0,0,0,935,936,5,111,0,0,936,977,1,0,0,0,937,938,3,136,68,0,938, + 939,5,37,0,0,939,940,5,23,0,0,940,942,3,136,68,0,941,943,3,28,14, + 0,942,941,1,0,0,0,942,943,1,0,0,0,943,950,1,0,0,0,944,945,5,45,0, + 0,945,946,5,41,0,0,946,947,3,136,68,0,947,948,5,113,0,0,948,949, + 3,136,68,0,949,951,1,0,0,0,950,944,1,0,0,0,950,951,1,0,0,0,951,952, + 1,0,0,0,952,953,5,111,0,0,953,977,1,0,0,0,954,955,3,136,68,0,955, + 956,5,37,0,0,956,957,5,30,0,0,957,958,3,136,68,0,958,959,5,111,0, + 0,959,977,1,0,0,0,960,961,3,136,68,0,961,962,5,37,0,0,962,963,5, + 2,0,0,963,964,3,136,68,0,964,965,5,113,0,0,965,972,3,136,68,0,966, + 967,5,45,0,0,967,968,5,41,0,0,968,969,3,136,68,0,969,970,5,113,0, + 0,970,971,3,136,68,0,971,973,1,0,0,0,972,966,1,0,0,0,972,973,1,0, + 0,0,973,974,1,0,0,0,974,975,5,111,0,0,975,977,1,0,0,0,976,907,1, + 0,0,0,976,921,1,0,0,0,976,937,1,0,0,0,976,954,1,0,0,0,976,960,1, + 0,0,0,977,117,1,0,0,0,978,979,5,30,0,0,979,980,3,136,68,0,980,981, + 5,37,0,0,981,982,3,136,68,0,982,983,5,113,0,0,983,985,3,136,68,0, + 984,986,3,114,57,0,985,984,1,0,0,0,985,986,1,0,0,0,986,987,1,0,0, + 0,987,988,5,111,0,0,988,119,1,0,0,0,989,1036,3,124,62,0,990,1036, + 5,90,0,0,991,1036,5,91,0,0,992,993,5,92,0,0,993,1036,3,138,69,0, + 994,995,5,93,0,0,995,996,5,120,0,0,996,997,3,136,68,0,997,998,5, + 121,0,0,998,1036,1,0,0,0,999,1000,5,94,0,0,1000,1001,5,120,0,0,1001, + 1003,3,136,68,0,1002,1004,3,28,14,0,1003,1002,1,0,0,0,1003,1004, + 1,0,0,0,1004,1005,1,0,0,0,1005,1006,5,121,0,0,1006,1036,1,0,0,0, + 1007,1008,5,18,0,0,1008,1009,5,120,0,0,1009,1010,3,136,68,0,1010, + 1011,5,121,0,0,1011,1036,1,0,0,0,1012,1013,5,95,0,0,1013,1014,5, + 120,0,0,1014,1015,3,120,60,0,1015,1016,5,121,0,0,1016,1036,1,0,0, + 0,1017,1018,5,96,0,0,1018,1019,5,120,0,0,1019,1020,3,120,60,0,1020, + 1021,5,121,0,0,1021,1036,1,0,0,0,1022,1023,5,97,0,0,1023,1027,5, + 114,0,0,1024,1026,3,122,61,0,1025,1024,1,0,0,0,1026,1029,1,0,0,0, + 1027,1025,1,0,0,0,1027,1028,1,0,0,0,1028,1030,1,0,0,0,1029,1027, + 1,0,0,0,1030,1036,5,115,0,0,1031,1033,3,136,68,0,1032,1034,3,28, + 14,0,1033,1032,1,0,0,0,1033,1034,1,0,0,0,1034,1036,1,0,0,0,1035, + 989,1,0,0,0,1035,990,1,0,0,0,1035,991,1,0,0,0,1035,992,1,0,0,0,1035, + 994,1,0,0,0,1035,999,1,0,0,0,1035,1007,1,0,0,0,1035,1012,1,0,0,0, + 1035,1017,1,0,0,0,1035,1022,1,0,0,0,1035,1031,1,0,0,0,1036,121,1, + 0,0,0,1037,1038,3,136,68,0,1038,1039,5,110,0,0,1039,1040,3,120,60, + 0,1040,1041,5,111,0,0,1041,123,1,0,0,0,1042,1043,7,4,0,0,1043,125, + 1,0,0,0,1044,1045,7,5,0,0,1045,127,1,0,0,0,1046,1055,3,138,69,0, + 1047,1055,5,124,0,0,1048,1055,5,125,0,0,1049,1055,5,106,0,0,1050, + 1055,5,107,0,0,1051,1055,5,108,0,0,1052,1055,3,130,65,0,1053,1055, + 3,134,67,0,1054,1046,1,0,0,0,1054,1047,1,0,0,0,1054,1048,1,0,0,0, + 1054,1049,1,0,0,0,1054,1050,1,0,0,0,1054,1051,1,0,0,0,1054,1052, + 1,0,0,0,1054,1053,1,0,0,0,1055,129,1,0,0,0,1056,1065,5,114,0,0,1057, + 1062,3,132,66,0,1058,1059,5,112,0,0,1059,1061,3,132,66,0,1060,1058, + 1,0,0,0,1061,1064,1,0,0,0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063, + 1066,1,0,0,0,1064,1062,1,0,0,0,1065,1057,1,0,0,0,1065,1066,1,0,0, + 0,1066,1067,1,0,0,0,1067,1068,5,115,0,0,1068,131,1,0,0,0,1069,1070, + 3,138,69,0,1070,1071,5,110,0,0,1071,1072,3,128,64,0,1072,133,1,0, + 0,0,1073,1082,5,116,0,0,1074,1079,3,128,64,0,1075,1076,5,112,0,0, + 1076,1078,3,128,64,0,1077,1075,1,0,0,0,1078,1081,1,0,0,0,1079,1077, + 1,0,0,0,1079,1080,1,0,0,0,1080,1083,1,0,0,0,1081,1079,1,0,0,0,1082, + 1074,1,0,0,0,1082,1083,1,0,0,0,1083,1084,1,0,0,0,1084,1085,5,117, + 0,0,1085,135,1,0,0,0,1086,1087,7,6,0,0,1087,137,1,0,0,0,1088,1089, + 5,127,0,0,1089,139,1,0,0,0,92,152,159,180,192,204,224,232,239,245, + 257,260,266,277,286,296,299,301,305,313,325,330,339,342,360,372, + 396,399,409,413,419,426,452,459,463,468,479,485,495,500,514,534, + 561,566,577,582,589,598,611,632,635,638,645,653,684,696,710,718, + 730,744,754,772,776,779,783,786,795,799,803,809,819,848,867,886, + 889,891,902,917,933,942,950,972,976,985,1003,1027,1033,1035,1054, + 1062,1065,1079,1082 ]; private static __ATN: antlr.ATN; @@ -5110,6 +5585,9 @@ export class ValueMemberContext extends antlr.ParserRuleContext { public RBRACE(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; } + public queryReadContract(): QueryReadContractContext | null { + return this.getRuleContext(0, QueryReadContractContext); + } public valueMemberOperation(): ValueMemberOperationContext[]; public valueMemberOperation(i: number): ValueMemberOperationContext | null; public valueMemberOperation(i?: number): ValueMemberOperationContext[] | ValueMemberOperationContext | null { @@ -5198,8 +5676,14 @@ export class RelationshipMemberContext extends antlr.ParserRuleContext { public ID(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.ID, 0)!; } - public stringLiteral(): StringLiteralContext { - return this.getRuleContext(0, StringLiteralContext)!; + public stringLiteral(): StringLiteralContext[]; + public stringLiteral(i: number): StringLiteralContext | null; + public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(StringLiteralContext); + } + + return this.getRuleContext(i, StringLiteralContext); } public COLON(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.COLON, 0)!; @@ -5216,9 +5700,15 @@ export class RelationshipMemberContext extends antlr.ParserRuleContext { public RBRACE(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; } + public queryReadContract(): QueryReadContractContext | null { + return this.getRuleContext(0, QueryReadContractContext); + } public ORDERED(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.ORDERED, 0); } + public KEYED(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.KEYED, 0); + } public relationshipOperation(): RelationshipOperationContext[]; public relationshipOperation(i: number): RelationshipOperationContext | null; public relationshipOperation(i?: number): RelationshipOperationContext[] | RelationshipOperationContext | null { @@ -5241,6 +5731,29 @@ export class RelationshipMemberContext extends antlr.ParserRuleContext { } +export class QueryReadContractContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public QUERYABLE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.QUERYABLE, 0)!; + } + public RPC(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.RPC, 0); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_queryReadContract; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitQueryReadContract) { + return visitor.visitQueryReadContract(this); + } else { + return visitor.visitChildren(this); + } + } +} + + export class RelationshipOperationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); @@ -5410,6 +5923,12 @@ export class PackageExportContext extends antlr.ParserRuleContext { public packageConstructorExport(): PackageConstructorExportContext | null { return this.getRuleContext(0, PackageConstructorExportContext); } + public packageQuery(): PackageQueryContext | null { + return this.getRuleContext(0, PackageQueryContext); + } + public packageQuerySpecialization(): PackageQuerySpecializationContext | null { + return this.getRuleContext(0, PackageQuerySpecializationContext); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_packageExport; } @@ -5423,6 +5942,180 @@ export class PackageExportContext extends antlr.ParserRuleContext { } +export class PackageQueryContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public QUERY(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.QUERY, 0)!; + } + public identifier(): IdentifierContext { + return this.getRuleContext(0, IdentifierContext)!; + } + public ID(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.ID, 0)!; + } + public stringLiteral(): StringLiteralContext[]; + public stringLiteral(i: number): StringLiteralContext | null; + public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(StringLiteralContext); + } + + return this.getRuleContext(i, StringLiteralContext); + } + public ROOT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.ROOT, 0)!; + } + public interfaceType(): InterfaceTypeContext { + return this.getRuleContext(0, InterfaceTypeContext)!; + } + public DOCUMENT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.DOCUMENT, 0)!; + } + public OPERATION(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.OPERATION, 0)!; + } + public LBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.LBRACE, 0)!; + } + public RBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; + } + public typeParameters(): TypeParametersContext | null { + return this.getRuleContext(0, TypeParametersContext); + } + public queryClause(): QueryClauseContext[]; + public queryClause(i: number): QueryClauseContext | null; + public queryClause(i?: number): QueryClauseContext[] | QueryClauseContext | null { + if (i === undefined) { + return this.getRuleContexts(QueryClauseContext); + } + + return this.getRuleContext(i, QueryClauseContext); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_packageQuery; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitPackageQuery) { + return visitor.visitPackageQuery(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class PackageQuerySpecializationContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public QUERY(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.QUERY, 0)!; + } + public identifier(): IdentifierContext[]; + public identifier(i: number): IdentifierContext | null; + public identifier(i?: number): IdentifierContext[] | IdentifierContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentifierContext); + } + + return this.getRuleContext(i, IdentifierContext); + } + public ID(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.ID, 0)!; + } + public stringLiteral(): StringLiteralContext { + return this.getRuleContext(0, StringLiteralContext)!; + } + public SPECIALIZE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.SPECIALIZE, 0)!; + } + public typeArguments(): TypeArgumentsContext { + return this.getRuleContext(0, TypeArgumentsContext)!; + } + public SEMI(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.SEMI, 0)!; + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_packageQuerySpecialization; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitPackageQuerySpecialization) { + return visitor.visitPackageQuerySpecialization(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class QueryClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public FRAGMENTS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public SEMI(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.SEMI, 0)!; + } + public VIEW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.VIEW, 0); + } + public identifier(): IdentifierContext[]; + public identifier(i: number): IdentifierContext | null; + public identifier(i?: number): IdentifierContext[] | IdentifierContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentifierContext); + } + + return this.getRuleContext(i, IdentifierContext); + } + public AS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.AS, 0); + } + public interfaceType(): InterfaceTypeContext | null { + return this.getRuleContext(0, InterfaceTypeContext); + } + public OBJECT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.OBJECT, 0); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.MAX, 0); + } + public INTEGER(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.INTEGER, 0); + } + public ALLOW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ALLOW, 0); + } + public DOT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.DOT, 0); + } + public WATCH(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.WATCH, 0); + } + public POLL(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.POLL, 0); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_queryClause; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitQueryClause) { + return visitor.visitQueryClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + export class PackageOperationExportContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); @@ -5830,6 +6523,12 @@ export class DependencyPortContext extends antlr.ParserRuleContext { public INPUT(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.INPUT, 0); } + public QUERY(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY, 0); + } + public DOT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.DOT, 0); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_dependencyPort; } @@ -6366,6 +7065,12 @@ export class OperationBindingDeclContext extends antlr.ParserRuleContext { public SEMI(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.SEMI, 0)!; } + public QUERY_REASON(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY_REASON, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_operationBindingDecl; } @@ -6659,6 +7364,9 @@ export class DependencyBindingContext extends antlr.ParserRuleContext { public CONSTRUCTOR(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0); } + public QUERY(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY, 0); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_dependencyBinding; } @@ -7051,6 +7759,39 @@ export class IdentifierContext extends antlr.ParserRuleContext { public SOURCE(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.SOURCE, 0); } + public QUERY(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY, 0); + } + public SPECIALIZE(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.SPECIALIZE, 0); + } + public ROOT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ROOT, 0); + } + public DOCUMENT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.DOCUMENT, 0); + } + public FRAGMENTS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0); + } + public VIEW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.VIEW, 0); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.MAX, 0); + } + public ALLOW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ALLOW, 0); + } + public POLL(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.POLL, 0); + } + public RPC(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.RPC, 0); + } + public QUERYABLE(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERYABLE, 0); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_identifier; } diff --git a/src/capability-language/generated/QuixosCapabilityVisitor.ts b/src/capability-language/generated/QuixosCapabilityVisitor.ts index d0a54ca..c852287 100644 --- a/src/capability-language/generated/QuixosCapabilityVisitor.ts +++ b/src/capability-language/generated/QuixosCapabilityVisitor.ts @@ -24,10 +24,14 @@ import { OperationMemberContext } from "./QuixosCapabilityParser.js"; import { ValueMemberContext } from "./QuixosCapabilityParser.js"; import { ValueMemberOperationContext } from "./QuixosCapabilityParser.js"; import { RelationshipMemberContext } from "./QuixosCapabilityParser.js"; +import { QueryReadContractContext } from "./QuixosCapabilityParser.js"; import { RelationshipOperationContext } from "./QuixosCapabilityParser.js"; import { TargetConstraintContext } from "./QuixosCapabilityParser.js"; import { PackageResourceDeclContext } from "./QuixosCapabilityParser.js"; import { PackageExportContext } from "./QuixosCapabilityParser.js"; +import { PackageQueryContext } from "./QuixosCapabilityParser.js"; +import { PackageQuerySpecializationContext } from "./QuixosCapabilityParser.js"; +import { QueryClauseContext } from "./QuixosCapabilityParser.js"; import { PackageOperationExportContext } from "./QuixosCapabilityParser.js"; import { PackageFunctionExportContext } from "./QuixosCapabilityParser.js"; import { PackageConstructorExportContext } from "./QuixosCapabilityParser.js"; @@ -210,6 +214,12 @@ export class QuixosCapabilityVisitor extends AbstractParseTreeVisitor Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.queryReadContract`. + * @param ctx the parse tree + * @return the visitor result + */ + visitQueryReadContract?: (ctx: QueryReadContractContext) => Result; /** * Visit a parse tree produced by `QuixosCapabilityParser.relationshipOperation`. * @param ctx the parse tree @@ -234,6 +244,24 @@ export class QuixosCapabilityVisitor extends AbstractParseTreeVisitor Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.packageQuery`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPackageQuery?: (ctx: PackageQueryContext) => Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.packageQuerySpecialization`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPackageQuerySpecialization?: (ctx: PackageQuerySpecializationContext) => Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.queryClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitQueryClause?: (ctx: QueryClauseContext) => Result; /** * Visit a parse tree produced by `QuixosCapabilityParser.packageOperationExport`. * @param ctx the parse tree diff --git a/src/capability-language/parser.ts b/src/capability-language/parser.ts index 4a83b3a..98f7d25 100644 --- a/src/capability-language/parser.ts +++ b/src/capability-language/parser.ts @@ -46,6 +46,14 @@ import { specializePackageExport, } from "../capability-model/index.js"; import { GenericSourceTypes } from "./generic-types.js"; +import { + defaultQueryBudgets, + type QueryDeclaration, + type QueryBudgets, + type QueryUse, + type QueryTemplate, +} from "../query/types.js"; +import { specializeQueryTemplate } from "../query/templates.js"; import { QuixosCapabilityLexer } from "./generated/QuixosCapabilityLexer.js"; import { QuixosCapabilityParser, @@ -176,6 +184,7 @@ interface PackageExportSymbol { } interface PackageSymbol { + queries?: Map; definition?: PackageRevision; revisionId: PackageRevision["revisionId"]; exports: Map; @@ -463,6 +472,13 @@ const lowerValueMember = (state: LoweringState, context: ValueMemberContext): In } return { kind: "value", + ...(context.queryReadContract() + ? { + queryRead: { + execution: context.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(context.stringLiteral())), displayName: memberName, valueType: memberValueType, @@ -527,7 +543,15 @@ const lowerRelationshipMember = ( } return { kind: "relationship", - id: capabilityId.member(stringValue(context.stringLiteral())), + ...(context.KEYED() ? { keyType: stringValue(context.stringLiteral(1)) as "string" | "boolean" | "int64" } : {}), + ...(context.queryReadContract() + ? { + queryRead: { + execution: context.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), + id: capabilityId.member(stringValue(context.stringLiteral(0))), displayName: identifier(context.identifier()), target, cardinality, @@ -672,6 +696,13 @@ const lowerInterfaceTemplate = ( const type = types.expression(value.valueType()); return { kind: "value", + ...(value.queryReadContract() + ? { + queryRead: { + execution: value.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(value.stringLiteral())), displayName: identifier(value.identifier()), valueType: type, @@ -725,7 +756,17 @@ const lowerInterfaceTemplate = ( : { kind: cardinality === "optional-one" ? "optional" : "list", value: targetType }; return { kind: "relationship", - id: capabilityId.member(stringValue(relationship.stringLiteral())), + ...(relationship.KEYED() + ? { keyType: stringValue(relationship.stringLiteral(1)) as "string" | "boolean" | "int64" } + : {}), + ...(relationship.queryReadContract() + ? { + queryRead: { + execution: relationship.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), + id: capabilityId.member(stringValue(relationship.stringLiteral(0))), displayName: identifier(relationship.identifier()), target, cardinality, @@ -789,9 +830,34 @@ const lowerInterfaceTemplate = ( }; }; +const lowerQueryReference = ( + state: LoweringState, + packageName: string, + queryName: string, + context: ParserRuleContext, +) => { + const pkg = requireSymbol(state, state.packages, packageName, context, "package"); + const queryId = + pkg?.queries?.get(queryName) ?? pkg?.definition?.queries?.find((query) => query.displayName === queryName)?.id; + if (!pkg || !queryId) { + loweringIssue(state, context, "unknown-query", `Unknown query export ${packageName}.${queryName}`); + return undefined; + } + return { packageRevisionId: pkg.revisionId, queryId }; +}; + const lowerDependencyPort = (state: LoweringState, context: DependencyPortContext): DependencyPort | undefined => { const name = identifier(context.identifier(0)); const id = capabilityId.dependencyPort(stringValue(context.stringLiteral())); + if (context.QUERY()) { + const query = lowerQueryReference( + state, + identifier(context.identifier(1)), + identifier(context.identifier(2)), + context, + ); + return query ? { id, displayName: name, requirement: { kind: "query", ...query } } : undefined; + } if (context.STATE()) { const primitives = context .primitiveList()! @@ -1031,6 +1097,16 @@ const lowerGenericPackageExport = ( .primitiveList() ?.primitive() .map((item) => text(item)) ?? []; + if (port.QUERY()) { + const query = lowerQueryReference(state, identifier(port.identifier(1)), identifier(port.identifier(2)), port); + if (!query) + throw new GenericTypeError( + "unknown-query", + base.displayName, + "Query port requires an existing closed query export", + ); + return { ...base, requirement: { kind: "query", ...query } }; + } if (port.STATE()) return { ...base, @@ -1129,8 +1205,179 @@ const lowerPackage = ( source: SourceRevision, ): PackageRevision => { const alias = identifier(context.identifier()); + state.packages.get(alias)!.queries = new Map( + context.packageExport().flatMap((entry) => { + const query = entry.packageQuery(); + const specialization = entry.packageQuerySpecialization(); + return query && !query.typeParameters() + ? [[identifier(query.identifier()), stringValue(query.stringLiteral(0))] as const] + : specialization + ? [[identifier(specialization.identifier(0)), stringValue(specialization.stringLiteral())] as const] + : []; + }), + ); const genericExports: GenericPackageExport[] = []; + const queries: QueryDeclaration[] = []; + const queryTemplates: QueryTemplate[] = []; const exports = context.packageExport().flatMap((exportContext): PackageExport[] => { + if (exportContext.packageQuerySpecialization()) return []; + const query = exportContext.packageQuery(); + if (query) { + const previousParameters = state.types.parameters; + state.types.parameters = new Map(); + try { + const parameters = state.types.declareParameters( + query.typeParameters(), + `query:${stringValue(query.stringLiteral(0))}`, + ); + const expressions = new Map>(); + const templateViews: QueryTemplate["views"] = []; + const templateAllowances: QueryTemplate["allowances"] = []; + const close = (ctx: import("./generated/QuixosCapabilityParser.js").InterfaceTypeContext) => + parameters.length + ? (() => { + const id = capabilityId.interfaceRevision(`query-expression:${expressions.size}`); + expressions.set(id, state.types.interface(ctx)); + return id; + })() + : new TypeSubstitution(state.types.environment()).application(state.types.interface(ctx)); + const declaration: QueryDeclaration = { + id: stringValue(query.stringLiteral(0)), + displayName: identifier(query.identifier()), + root: close(query.interfaceType()), + document: stringValue(query.stringLiteral(1)), + operation: stringValue(query.stringLiteral(2)), + fragments: [], + views: [], + allowances: [], + budgets: { ...defaultQueryBudgets }, + watch: false, + }; + const budgetNames: Record = { + rows: "rows", + depth: "depth", + "result-bytes": "resultBytes", + candidates: "candidates", + "rpc-calls": "rpcCalls", + concurrency: "concurrency", + "deadline-ms": "deadlineMs", + }; + const assigned = new Set(); + for (const clause of query.queryClause()) { + if (clause.FRAGMENTS()) declaration.fragments.push(stringValue(clause.stringLiteral()!)); + else if (clause.VIEW()) { + const name = identifier(clause.identifier(0)); + if (parameters.length) { + const parameter = state.types.parameters.get(name); + const atomId = state.atoms.get(name); + if (clause.OBJECT() && parameter?.kind === "object") + templateViews.push({ + target: { kind: "parameter", parameterId: parameter.id }, + interface: state.types.interface(clause.interfaceType()!), + }); + else if (!clause.OBJECT() && atomId) + templateViews.push({ + target: { kind: "atom", atomId }, + interface: state.types.interface(clause.interfaceType()!), + }); + else + loweringIssue(state, clause, "invalid-query-view", "Expected declared object parameter or atom view"); + continue; + } + if (clause.OBJECT()) + loweringIssue(state, clause, "invalid-query-view", "Object parameter views require a query template"); + const atomId = requireSymbol(state, state.atoms, name, clause, "atom"); + if (atomId) declaration.views.push({ atomId, interfaceRevisionId: close(clause.interfaceType()!) }); + } else if (clause.MAX()) { + const name = identifier(clause.identifier(0)); + const key = budgetNames[name], + n = Number(clause.INTEGER()!.getText()); + if (!key || assigned.has(name) || !Number.isSafeInteger(n) || n < 1 || n > defaultQueryBudgets[key]) + loweringIssue( + state, + clause, + "invalid-query-budget", + `Invalid, duplicate, or excessive query budget ${name}`, + ); + else { + declaration.budgets[key] = n; + assigned.add(name); + } + } else if (clause.ALLOW()) { + if (parameters.length) { + const use = identifier(clause.identifier(1)); + const reason = stringValue(clause.stringLiteral()!); + if (!["select", "predicate", "order"].includes(use) || !reason.trim()) + loweringIssue( + state, + clause, + "invalid-query-allowance", + "Expected select/predicate/order and a nonempty reason", + ); + templateAllowances.push({ + interface: state.types.interface(clause.interfaceType()!), + memberName: identifier(clause.identifier(0)), + uses: [use as QueryUse], + reason, + }); + continue; + } + const interfaceRevisionId = close(clause.interfaceType()!); + const contract = [...state.types.interfaces.values(), ...state.types.applications.values()].find( + (entry) => entry.revisionId === interfaceRevisionId, + ); + const member = contract?.members.find((entry) => entry.displayName === identifier(clause.identifier(0))); + const use = identifier(clause.identifier(1)); + const reason = stringValue(clause.stringLiteral()!); + if (!member || !["select", "predicate", "order"].includes(use) || !reason.trim()) + loweringIssue( + state, + clause, + "invalid-query-allowance", + "Query allowances name an exact member, use (select/predicate/order), and nonempty reason", + ); + else + declaration.allowances.push({ + interfaceRevisionId, + memberId: member.id, + uses: [use as QueryUse], + reason, + }); + } else if (clause.WATCH()) declaration.watch = true; + else if (clause.POLL()) { + const intervalMs = Number(clause.INTEGER()!.getText()), + reason = stringValue(clause.stringLiteral()!); + if (declaration.polling || !Number.isSafeInteger(intervalMs) || intervalMs < 1000 || !reason.trim()) + loweringIssue( + state, + clause, + "invalid-query-polling", + "Polling needs one interval of at least 1000ms and a reason", + ); + else declaration.polling = { intervalMs, reason }; + } + } + if ( + [...queries, ...queryTemplates.map((entry) => entry.declaration)].some( + (entry) => entry.id === declaration.id || entry.displayName === declaration.displayName, + ) + ) + loweringIssue(state, query, "duplicate-query", "Duplicate query name or ID"); + if (parameters.length) { + const { root, views: _views, allowances: _allowances, ...common } = declaration; + queryTemplates.push({ + declaration: common, + parameters, + root: expressions.get(root)!, + views: templateViews, + allowances: templateAllowances, + }); + } else queries.push(declaration); + return []; + } finally { + state.types.parameters = previousParameters; + } + } const operation = exportContext.packageOperationExport(); const generic = operation ?? exportContext.packageFunctionExport(); if (generic?.typeParameters()) { @@ -1155,6 +1402,34 @@ const lowerPackage = ( state.types.self = previousSelf; } }); + for (const entry of context.packageExport()) { + const specialized = entry.packageQuerySpecialization(); + if (!specialized) continue; + const templateName = identifier(specialized.identifier(1)); + const template = queryTemplates.find((entry) => entry.declaration.displayName === templateName); + if (!template) { + loweringIssue(state, specialized, "unknown-query-template", `Unknown local query template ${templateName}`); + continue; + } + const substitution = new TypeSubstitution(state.types.environment()); + const arguments_ = state.types + .arguments(specialized.typeArguments()) + .map((argument) => substitution.argument(argument)); + const declaration = specializeQueryTemplate( + template, + arguments_, + state.types.environment(), + () => [...state.types.definitions.values()], + { id: stringValue(specialized.stringLiteral()), displayName: identifier(specialized.identifier(0)) }, + ); + if ( + [...queries, ...queryTemplates.map((entry) => entry.declaration)].some( + (entry) => entry.id === declaration.id || entry.displayName === declaration.displayName, + ) + ) + loweringIssue(state, specialized, "duplicate-query", "Duplicate query name or ID"); + queries.push(declaration); + } return { packageId: capabilityId.package(stringValue(context.stringLiteral(0))), revisionId: state.packages.get(alias)!.revisionId, @@ -1162,6 +1437,11 @@ const lowerPackage = ( displayName: alias, source, exports, + ...(queries.length ? { queries } : {}), + ...(queryTemplates.length ? { queryTemplates } : {}), + ...(queries.some((query) => query.argumentRequirements?.length) + ? { argumentRequirements: queries.flatMap((query) => query.argumentRequirements ?? []) } + : {}), ...(genericExports.length ? { genericExports } : {}), }; }; @@ -1291,6 +1571,13 @@ const lowerBoundDependencies = ( ); return projectionId ? { edgeTypeId: attachment.attachment.id, projectionId } : undefined; }; + if (entry.QUERY()) { + const query = lowerQueryReference(state, identifier(entry.identifier(1)), identifier(entry.identifier(2)), entry); + const via = entry.VIA() ? traversal(identifier(entry.identifier(3)), identifier(entry.identifier(4))) : undefined; + return query && (!entry.VIA() || via) + ? [{ portId, binding: { kind: "query", ...query, ...(via ? { via } : {}) } }] + : []; + } if (entry.STATE()) { const attachmentName = identifier(entry.identifier(1)); const attachment = requireSymbol(state, state.attachments, attachmentName, entry, "attachment"); @@ -1568,6 +1855,7 @@ const lowerConformance = ( ? [ { operationId, + ...(bindingContext.stringLiteral() ? { queryReason: stringValue(bindingContext.stringLiteral()!) } : {}), binding: { kind: "package" as const, packageRevisionId: packageSymbol.revisionId, diff --git a/src/capability-language/source-loader.ts b/src/capability-language/source-loader.ts index 7ca00b1..89d63e5 100644 --- a/src/capability-language/source-loader.ts +++ b/src/capability-language/source-loader.ts @@ -4,13 +4,20 @@ import { parseQx, validateQxImportPath, walkSyntax } from "./source.js"; export const readQxSource = async (root: string, name: string) => { validateQxImportPath(name); + return readRepositorySource(root, name); +}; + +/** Refuse symlinks at every component, including the final source file. */ +export const readRepositorySource = async (root: string, name: string) => { + if (!/^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*$/.test(name)) + throw new Error(`Invalid repository-relative source path: ${name}`); let current = path.resolve(root); const segments = name.split("/"); for (const [index, segment] of segments.entries()) { current = path.join(current, segment); const stat = await lstat(current); if (stat.isSymbolicLink() || (index === segments.length - 1 ? !stat.isFile() : !stat.isDirectory())) - throw new Error(`QX imports must be ordinary files beneath ordinary directories: ${name}`); + throw new Error(`Sources must be ordinary files beneath ordinary directories: ${name}`); } return readFile(current, "utf8"); }; diff --git a/src/capability-language/structural-plan.ts b/src/capability-language/structural-plan.ts index e389fcb..f831f1c 100644 --- a/src/capability-language/structural-plan.ts +++ b/src/capability-language/structural-plan.ts @@ -28,7 +28,7 @@ type Change = { file: string; before: string | null; after: string; mode: number type Journal = { schemaVersion: 1; id: string; root: string; phase: "prepared" | "complete"; changes: Change[] }; const safeFile = (file: string) => { if ( - !/^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*(?:\.gitignore|\.yarnrc.yml|[A-Za-z0-9_-][A-Za-z0-9_.-]*\.(?:qx|lock|ts|tsx|css|mjs|json|nix|txtpb|md))$/.test( + !/^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*(?:\.gitignore|\.yarnrc.yml|[A-Za-z0-9_-][A-Za-z0-9_.-]*\.(?:qx|graphql|lock|ts|tsx|css|mjs|json|nix|txtpb|md))$/.test( file, ) || file.split("/").some((part) => [".git", ".jj", ".quixos", "node_modules"].includes(part)) diff --git a/src/capability-model/evolution.ts b/src/capability-model/evolution.ts index e9b1747..f276208 100644 --- a/src/capability-model/evolution.ts +++ b/src/capability-model/evolution.ts @@ -132,6 +132,21 @@ export const runtimeContracts = (workspace: WorkspaceRevision): RuntimeContract[ })), }); const dependency = (parent: GraphNode, binding: DependencyBinding, atomId: string, reviews?: Set) => { + if (binding.kind === "query") { + const pkg = workspace.packageImports.find((pkg) => pkg.revisionId === binding.packageRevisionId); + const query = pkg?.checkedQueries?.find((query) => query.declaration.id === binding.queryId); + if (!query) throw new Error(`Missing checked query contract ${binding.packageRevisionId}:${binding.queryId}`); + const key = `query:${binding.packageRevisionId}:${binding.queryId}`; + const queryNode = nodes.get(key) ?? node(key, query); + parent.dependencies.add(key); + for (const effect of query.effects) { + queryNode.dependencies.add(`interface:${effect.interfaceRevisionId}`); + for (const conformance of workspace.conformances.filter( + (entry) => entry.interfaceRevisionId === effect.interfaceRevisionId, + )) + queryNode.dependencies.add(conformanceKey(conformance.atomId, conformance.interfaceRevisionId)); + } + } if (binding.kind === "state") parent.dependencies.add(`attachment:${binding.slotId}`); if (binding.kind === "edge") parent.dependencies.add(`attachment:${binding.edgeTypeId}`); if (binding.kind === "constructor") { diff --git a/src/capability-model/generic-packages.ts b/src/capability-model/generic-packages.ts index 5bcb0fc..19faca4 100644 --- a/src/capability-model/generic-packages.ts +++ b/src/capability-model/generic-packages.ts @@ -22,6 +22,7 @@ import { export type GenericDependencyPort = Omit & { requirement: + | Extract | { kind: "state"; valueType: ValueTypeExpression; @@ -79,6 +80,8 @@ export const specializePackageExport = ( const ports: DependencyPort[] = definition.dependencyPorts.map((port) => { const requirement = port.requirement; switch (requirement.kind) { + case "query": + return { ...port, requirement }; case "state": return { ...port, requirement: { ...requirement, valueType: substitution.value(requirement.valueType) } }; case "edge": diff --git a/src/capability-model/generics.ts b/src/capability-model/generics.ts index 3b592aa..9955463 100644 --- a/src/capability-model/generics.ts +++ b/src/capability-model/generics.ts @@ -87,14 +87,21 @@ export const instantiateInterface = ( const common = { id: member.id, displayName: member.displayName, operations: member.operations.map(operation) }; switch (member.kind) { case "value": - return { ...common, kind: "value", valueType: substitution.value(member.valueType, member.displayName) }; + return { + ...common, + kind: "value", + ...(member.queryRead ? { queryRead: { ...member.queryRead } } : {}), + valueType: substitution.value(member.valueType, member.displayName), + }; case "relationship": return { ...common, kind: "relationship", + ...(member.queryRead ? { queryRead: { ...member.queryRead } } : {}), target: substitution.object(member.target, member.displayName), cardinality: member.cardinality, ordered: member.ordered, + ...(member.keyType ? { keyType: member.keyType } : {}), }; case "operation": return { diff --git a/src/capability-model/types.ts b/src/capability-model/types.ts index 00602f6..be7c336 100644 --- a/src/capability-model/types.ts +++ b/src/capability-model/types.ts @@ -116,6 +116,8 @@ export interface InterfaceOperation { eventType?: Type; } +export type QueryReadContract = { execution: "native" | "rpc-permitted" }; + interface InterfaceMemberBase { id: MemberId; displayName: string; @@ -124,6 +126,7 @@ interface InterfaceMemberBase { export interface ValueInterfaceMember extends InterfaceMemberBase { kind: "value"; + queryRead?: QueryReadContract; valueType: Type; } @@ -141,9 +144,11 @@ export interface RelationshipInterfaceMember< Target = EdgeEndpointConstraint, > extends InterfaceMemberBase { kind: "relationship"; + queryRead?: QueryReadContract; target: Target; cardinality: EdgeCardinality; ordered: boolean; + keyType?: "string" | "boolean" | "int64"; } /** A named callable capability that is not value or relationship sugar. */ @@ -218,6 +223,7 @@ export type PackageReceiverRequirement = }; export type DependencyPortRequirement = + | { kind: "query"; packageRevisionId: PackageRevisionId; queryId: string } | { kind: "state"; valueType: ValueType; @@ -270,6 +276,9 @@ export interface PackageConstructorExport extends PackageExportBase { export type PackageExport = PackageOperationExport | PackageFunctionExport | PackageConstructorExport; export interface PackageRevision { + queries?: import("../query/types.js").QueryDeclaration[]; + checkedQueries?: import("../query/types.js").CheckedQuery[]; + queryTemplates?: import("../query/types.js").QueryTemplate[]; genericExports?: import("./generic-packages.js").GenericPackageExport[]; argumentRequirements?: { target: ObjectExpectation; required: InterfaceRevisionId }[]; migrationCatalog?: import("./migrations.js").MigrationCatalog; @@ -283,6 +292,7 @@ export interface PackageRevision { } export type DependencyBinding = + | { kind: "query"; packageRevisionId: PackageRevisionId; queryId: string; via?: EdgeTraversal } | { kind: "state"; slotId: SlotId; via?: EdgeTraversal } | { kind: "edge"; @@ -342,6 +352,8 @@ export type Binding = export interface OperationBinding { operationId: OperationId; binding: Binding; + /** Required for package-backed reads of an RPC-permitted queryable field. */ + queryReason?: string; } export interface Conformance { @@ -363,6 +375,7 @@ export interface AtomConstructorBinding { } export interface WorkspaceRevision { + linkedQueries?: import("../query/link.js").LinkedQuery[]; id: WorkspaceRevisionId; workspaceId: WorkspaceId; parentRevisionIds: WorkspaceRevisionId[]; diff --git a/src/capability-model/validation.ts b/src/capability-model/validation.ts index bcd3e73..979311e 100644 --- a/src/capability-model/validation.ts +++ b/src/capability-model/validation.ts @@ -40,6 +40,8 @@ import { specializePackageExport } from "./generic-packages.js"; import { isDeepStrictEqual } from "node:util"; export type CapabilityValidationIssueCode = + | "invalid-query-contract" + | "query-provider-reason-required" | "invalid-semantic-major" | "duplicate-conformance-id" | "required-value" @@ -502,6 +504,33 @@ const collectIdentityIndexes = ( const operations = new Map(); for (const [memberIndex, member] of revision.members.entries()) { const memberPath = `${path}.members[${memberIndex}]`; + if ( + member.kind === "relationship" && + member.keyType !== undefined && + (!["string", "boolean", "int64"].includes(member.keyType) || + !["many", "many-unique"].includes(member.cardinality)) + ) + issue( + issues, + "invalid-query-contract", + memberPath, + "Keyed relationships require many cardinality and string, boolean or int64 keys", + ); + if (member.kind !== "operation" && member.queryRead) { + const contract = member.queryRead.execution; + const getter = member.kind === "value" ? "get" : "resolve"; + if (contract !== "native" && contract !== "rpc-permitted") + issue(issues, "invalid-query-contract", memberPath, "Unknown query execution contract"); + if (member.operations.filter((operation) => operation.displayName === getter).length !== 1) + issue(issues, "invalid-query-contract", memberPath, `Queryable members require exactly one ${getter}`); + if (member.kind === "relationship" && contract === "rpc-permitted") + issue(issues, "invalid-query-contract", memberPath, "RPC query relationships are not supported"); + if (member.kind === "value") { + const type = member.valueType.kind === "optional" ? member.valueType.value : member.valueType; + if (type.kind !== "scalar") + issue(issues, "invalid-query-contract", memberPath, "Queryable values must be scalar or optional scalar"); + } + } requireText(issues, member.id, `${memberPath}.id`, "Member ID"); requireText(issues, member.displayName, `${memberPath}.displayName`, "Member name"); if (memberIds.has(member.id)) { @@ -967,6 +996,21 @@ const validatePackages = ( for (const [portIndex, port] of entry.dependencyPorts.entries()) { const portPath = `${exportPath}.dependencyPorts[${portIndex}]`; switch (port.requirement.kind) { + case "query": + if ( + !indexes.packages + .get(port.requirement.packageRevisionId) + ?.revision.queries?.some( + (query) => port.requirement.kind === "query" && query.id === port.requirement.queryId, + ) + ) + issue( + issues, + "unresolved-reference", + portPath, + `Unknown query ${port.requirement.packageRevisionId}:${port.requirement.queryId}`, + ); + break; case "state": validateValueType(issues, port.requirement.valueType, `${portPath}.requirement.valueType`, indexes); uniquePrimitiveList(issues, port.requirement.primitives, `${portPath}.requirement.primitives`); @@ -1116,6 +1160,41 @@ const validateBoundDependencies = ( continue; } switch (requirement.kind) { + case "query": { + const selected = binding as Extract; + const query = params.indexes.packages + .get(requirement.packageRevisionId) + ?.revision.queries?.find((query) => query.id === requirement.queryId); + if ( + !query || + selected.queryId !== requirement.queryId || + selected.packageRevisionId !== requirement.packageRevisionId + ) { + issue(issues, "invalid-dependency-binding", path, "Query port must bind its exact checked query export"); + break; + } + const traversal = selected.via + ? validateTraversal( + issues, + params.indexes, + params.atomId, + selected.via, + `${path}.binding.via`, + params.conformance, + ) + : undefined; + const targets = selected.via + ? traversal + ? [...params.indexes.atoms.keys()].filter((atom) => + atomSatisfiesConstraint(atom as AtomId, traversal.target.constraint, params.indexes.conformances), + ) + : [] + : [params.atomId]; + for (const atom of targets) + if (!params.indexes.conformances.has(conformanceKey(atom as AtomId, query.root))) + issue(issues, "unsatisfied-interface", path, `Query root ${atom} does not conform to ${query.root}`); + break; + } case "state": { const stateBinding = binding as Extract; const attachment = findAttachment(params.indexes, "state", stateBinding.slotId); @@ -1424,6 +1503,31 @@ const validateConformances = ( } const operation = operationEntry.operation; const binding = entry.binding; + const member = operationEntry.member; + if ( + member.kind !== "operation" && + member.queryRead && + operation.displayName === (member.kind === "value" ? "get" : "resolve") + ) { + const native = + member.kind === "value" + ? binding.kind === "state" && binding.primitive === "read" + : binding.kind === "edge" && binding.primitive === "resolve"; + if (!native && (member.queryRead.execution === "native" || binding.kind !== "package")) + issue( + issues, + "invalid-query-contract", + bindingPath, + "This queryable contract requires a native read binding; a justification cannot weaken it", + ); + else if (!native && !entry.queryReason?.trim()) + issue( + issues, + "query-provider-reason-required", + bindingPath, + "Package-backed query reads require a concrete query-reason justification", + ); + } if (operation.scope === "class" && (!conformance.id || operation.mode !== "call")) { issue( issues, @@ -1541,7 +1645,8 @@ const validateConformances = ( operationEntry.member.target, indexes.conformances, ) || - operationEntry.member.cardinality !== projection.endpoint.cardinality + operationEntry.member.cardinality !== projection.endpoint.cardinality || + (operationEntry.member.keyType !== undefined && operationEntry.member.keyType !== projection.endpoint.keyType) ) { issue( issues, @@ -2049,6 +2154,21 @@ export const computeCapabilityClosure = ( const includeDependencies = (atomId: AtomId, dependencies: readonly BoundDependency[]) => { for (const dependency of dependencies) { switch (dependency.binding.kind) { + case "query": { + packages.add(dependency.binding.packageRevisionId); + const query = plan.packages + .get(dependency.binding.packageRevisionId) + ?.checkedQueries?.find( + (query) => dependency.binding.kind === "query" && query.declaration.id === dependency.binding.queryId, + ); + if (dependency.binding.via) attachments.add(dependency.binding.via.edgeTypeId); + for (const effect of query?.effects ?? []) { + for (const conformance of sourceConformances.values()) + if (conformance.interfaceRevisionId === effect.interfaceRevisionId) + queued.push({ atomId: conformance.atomId, interfaceRevisionId: conformance.interfaceRevisionId }); + } + break; + } case "state": attachments.add(dependency.binding.slotId); if (dependency.binding.via) { diff --git a/src/gen/camino/api_pb.ts b/src/gen/camino/api_pb.ts index a8fe5e1..7511178 100644 --- a/src/gen/camino/api_pb.ts +++ b/src/gen/camino/api_pb.ts @@ -4,7 +4,7 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; -import type { PersistencePlan } from "./schema_pb.js"; +import type { PersistencePlan, QuerySelection } from "./schema_pb.js"; import { file_camino_schema } from "./schema_pb.js"; import type { Message } from "@bufbuild/protobuf"; @@ -12,7 +12,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file camino/api.proto. */ export const file_camino_api: GenFile = /*@__PURE__*/ - fileDesc("ChBjYW1pbm8vYXBpLnByb3RvEgZjYW1pbm8iCwoJTnVsbFZhbHVlInwKC09iamVjdFZhbHVlEi8KBmZpZWxkcxgBIAMoCzIfLmNhbWluby5PYmplY3RWYWx1ZS5GaWVsZHNFbnRyeRo8CgtGaWVsZHNFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBIioKCUxpc3RWYWx1ZRIdCgZ2YWx1ZXMYASADKAsyDS5jYW1pbm8uVmFsdWUiHQoIUmVmVmFsdWUSEQoJb2JqZWN0X2lkGAEgASgJIjwKCUNyZHRWYWx1ZRIMCgR0eXBlGAEgASgJEhAKCGVuY29kaW5nGAIgASgJEg8KB3BheWxvYWQYAyABKAwiqAEKEFN0YXRlVmFsdWVTb3VyY2USEQoJb2JqZWN0X2lkGAEgASgJEg8KB3Nsb3RfaWQYAiABKAkSFwoPdmFsdWVfdHlwZV9qc29uGAMgASgJEhsKE3N0b3JhZ2VfcG9saWN5X2pzb24YBCABKAkSEAoIcmV2aXNpb24YBSABKAQSKAoNY3JkdF9zbmFwc2hvdBgGIAEoCzIRLmNhbWluby5DcmR0VmFsdWUiNgoLVmFsdWVTb3VyY2USJwoFc3RhdGUYASABKAsyGC5jYW1pbm8uU3RhdGVWYWx1ZVNvdXJjZSL5AgoFVmFsdWUSJwoKbnVsbF92YWx1ZRgBIAEoCzIRLmNhbWluby5OdWxsVmFsdWVIABIUCgpib29sX3ZhbHVlGAIgASgISAASFgoMbnVtYmVyX3ZhbHVlGAMgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAQgASgJSAASFwoNaW50ZWdlcl92YWx1ZRgFIAEoCUgAEhUKC2J5dGVzX3ZhbHVlGAYgASgMSAASKwoMb2JqZWN0X3ZhbHVlGAcgASgLMhMuY2FtaW5vLk9iamVjdFZhbHVlSAASJwoKbGlzdF92YWx1ZRgIIAEoCzIRLmNhbWluby5MaXN0VmFsdWVIABIlCglyZWZfdmFsdWUYCSABKAsyEC5jYW1pbm8uUmVmVmFsdWVIABInCgpjcmR0X3ZhbHVlGAogASgLMhEuY2FtaW5vLkNyZHRWYWx1ZUgAEiMKBnNvdXJjZRgLIAEoCzITLmNhbWluby5WYWx1ZVNvdXJjZUIGCgRraW5kIkYKHUluc3RhbGxQZXJzaXN0ZW5jZVBsYW5SZXF1ZXN0EiUKBHBsYW4YASABKAsyFy5jYW1pbm8uUGVyc2lzdGVuY2VQbGFuIkcKHkluc3RhbGxQZXJzaXN0ZW5jZVBsYW5SZXNwb25zZRIlCgRwbGFuGAEgASgLMhcuY2FtaW5vLlBlcnNpc3RlbmNlUGxhbiIbChlHZXRQZXJzaXN0ZW5jZVBsYW5SZXF1ZXN0IkMKGkdldFBlcnNpc3RlbmNlUGxhblJlc3BvbnNlEiUKBHBsYW4YASABKAsyFy5jYW1pbm8uUGVyc2lzdGVuY2VQbGFuIrABChNDcmVhdGVPYmplY3RSZXF1ZXN0Eg8KB2F0b21faWQYASABKAkSRAoNaW5pdGlhbF9zdGF0ZRgCIAMoCzItLmNhbWluby5DcmVhdGVPYmplY3RSZXF1ZXN0LkluaXRpYWxTdGF0ZUVudHJ5GkIKEUluaXRpYWxTdGF0ZUVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEiPAoUQ3JlYXRlT2JqZWN0UmVzcG9uc2USJAoGb2JqZWN0GAEgASgLMhQuY2FtaW5vLkNhbWlub09iamVjdCIlChBHZXRPYmplY3RSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCSI5ChFHZXRPYmplY3RSZXNwb25zZRIkCgZvYmplY3QYASABKAsyFC5jYW1pbm8uQ2FtaW5vT2JqZWN0IiUKEkxpc3RPYmplY3RzUmVxdWVzdBIPCgdhdG9tX2lkGAEgASgJIjwKE0xpc3RPYmplY3RzUmVzcG9uc2USJQoHb2JqZWN0cxgBIAMoCzIULmNhbWluby5DYW1pbm9PYmplY3QiNgoQUmVhZFN0YXRlUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSDwoHc2xvdF9pZBgCIAEoCSIxChFSZWFkU3RhdGVSZXNwb25zZRIcCgV2YWx1ZRgBIAEoCzINLmNhbWluby5WYWx1ZSJxChFXcml0ZVN0YXRlUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSDwoHc2xvdF9pZBgCIAEoCRIcCgV2YWx1ZRgDIAEoCzINLmNhbWluby5WYWx1ZRIaChJjbGllbnRfbXV0YXRpb25faWQYBCABKAkiWAoSV3JpdGVTdGF0ZVJlc3BvbnNlEhwKBXZhbHVlGAEgASgLMg0uY2FtaW5vLlZhbHVlEiQKBm9iamVjdBgCIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QiwAEKEkNvbm5lY3RFZGdlUmVxdWVzdBIUCgxlZGdlX3R5cGVfaWQYASABKAkSFQoNcHJvamVjdGlvbl9pZBgCIAEoCRIRCglvYmplY3RfaWQYAyABKAkSGAoQdGFyZ2V0X29iamVjdF9pZBgEIAEoCRIUCgdvcmRpbmFsGAUgASgFSACIAQESGwoOdGFyZ2V0X29yZGluYWwYBiABKAVIAYgBAUIKCghfb3JkaW5hbEIRCg9fdGFyZ2V0X29yZGluYWwiNwoTQ29ubmVjdEVkZ2VSZXNwb25zZRIgCgRlZGdlGAEgASgLMhIuY2FtaW5vLkNhbWlub0VkZ2UiVAoSUmVzb2x2ZUVkZ2VSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCRIUCgxlZGdlX3R5cGVfaWQYAiABKAkSFQoNcHJvamVjdGlvbl9pZBgDIAEoCSI4ChNSZXNvbHZlRWRnZVJlc3BvbnNlEiEKBWVkZ2VzGAEgAygLMhIuY2FtaW5vLkNhbWlub0VkZ2UiKAoVRGlzY29ubmVjdEVkZ2VSZXF1ZXN0Eg8KB2VkZ2VfaWQYASABKAkiKQoWRGlzY29ubmVjdEVkZ2VSZXNwb25zZRIPCgdlZGdlX2lkGAEgASgJIlgKD0NvbGxlY3Rpb25FbnRyeRIPCgdlZGdlX2lkGAEgASgJEhgKEHRhcmdldF9vYmplY3RfaWQYAiABKAkSGgoDa2V5GAMgASgLMg0uY2FtaW5vLlZhbHVlIlQKFlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USEAoIcmV2aXNpb24YASABKAQSKAoHZW50cmllcxgCIAMoCzIXLmNhbWluby5Db2xsZWN0aW9uRW50cnkinwEKGFJlcGxhY2VDb2xsZWN0aW9uUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSFAoMZWRnZV90eXBlX2lkGAIgASgJEhUKDXByb2plY3Rpb25faWQYAyABKAkSGQoRZXhwZWN0ZWRfcmV2aXNpb24YBCABKAQSKAoHZW50cmllcxgFIAMoCzIXLmNhbWluby5Db2xsZWN0aW9uRW50cnkiIwoOTGlzdE9wc1JlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJIjAKD0xpc3RPcHNSZXNwb25zZRIdCgNvcHMYASADKAsyEC5jYW1pbm8uQ2FtaW5vT3AibgoSV2F0Y2hPYmplY3RSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCRITCgthZnRlcl9vcF9pZBgCIAEoCRIYChBpbmNsdWRlX3NuYXBzaG90GAMgASgIEhYKDmF0dGFjaG1lbnRfaWRzGAQgAygJImsKEFdhdGNoT2JqZWN0RXZlbnQSEQoJb2JqZWN0X2lkGAEgASgJEiYKCHNuYXBzaG90GAIgASgLMhQuY2FtaW5vLkNhbWlub09iamVjdBIcCgJvcBgDIAEoCzIQLmNhbWluby5DYW1pbm9PcCLZAgoMQ2FtaW5vT2JqZWN0EgoKAmlkGAEgASgJEg8KB2F0b21faWQYAiABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAMgASgJEhIKCmNyZWF0ZWRfYXQYBCABKAkSEgoKdXBkYXRlZF9hdBgFIAEoCRIuCgVzdGF0ZRgGIAMoCzIfLmNhbWluby5DYW1pbm9PYmplY3QuU3RhdGVFbnRyeRJBCg9zdGF0ZV9yZXZpc2lvbnMYByADKAsyKC5jYW1pbm8uQ2FtaW5vT2JqZWN0LlN0YXRlUmV2aXNpb25zRW50cnkaOwoKU3RhdGVFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBGjUKE1N0YXRlUmV2aXNpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgEOgI4ASK/AgoKQ2FtaW5vRWRnZRIKCgJpZBgBIAEoCRIUCgxlZGdlX3R5cGVfaWQYAiABKAkSFwoPZmlyc3Rfb2JqZWN0X2lkGAMgASgJEhgKEHNlY29uZF9vYmplY3RfaWQYBCABKAkSGwoTZmlyc3RfcHJvamVjdGlvbl9pZBgFIAEoCRIcChRzZWNvbmRfcHJvamVjdGlvbl9pZBgGIAEoCRIaCg1maXJzdF9vcmRpbmFsGAcgASgFSACIAQESGwoOc2Vjb25kX29yZGluYWwYCCABKAVIAYgBARISCgpjcmVhdGVkX2F0GAkgASgJEhYKDmZpcnN0X2tleV9qc29uGAogASgJEhcKD3NlY29uZF9rZXlfanNvbhgLIAEoCUIQCg5fZmlyc3Rfb3JkaW5hbEIRCg9fc2Vjb25kX29yZGluYWwimQEKCENhbWlub09wEgoKAmlkGAEgASgJEhEKCW9iamVjdF9pZBgCIAEoCRIPCgdvcF9raW5kGAMgASgJEh4KB3BheWxvYWQYBCABKAsyDS5jYW1pbm8uVmFsdWUSDQoFYWN0b3IYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRIaChJjbGllbnRfbXV0YXRpb25faWQYByABKAkyuggKDUNhbWlub1NlcnZpY2USZwoWSW5zdGFsbFBlcnNpc3RlbmNlUGxhbhIlLmNhbWluby5JbnN0YWxsUGVyc2lzdGVuY2VQbGFuUmVxdWVzdBomLmNhbWluby5JbnN0YWxsUGVyc2lzdGVuY2VQbGFuUmVzcG9uc2USWwoSR2V0UGVyc2lzdGVuY2VQbGFuEiEuY2FtaW5vLkdldFBlcnNpc3RlbmNlUGxhblJlcXVlc3QaIi5jYW1pbm8uR2V0UGVyc2lzdGVuY2VQbGFuUmVzcG9uc2USSQoMQ3JlYXRlT2JqZWN0EhsuY2FtaW5vLkNyZWF0ZU9iamVjdFJlcXVlc3QaHC5jYW1pbm8uQ3JlYXRlT2JqZWN0UmVzcG9uc2USQAoJR2V0T2JqZWN0EhguY2FtaW5vLkdldE9iamVjdFJlcXVlc3QaGS5jYW1pbm8uR2V0T2JqZWN0UmVzcG9uc2USRgoLTGlzdE9iamVjdHMSGi5jYW1pbm8uTGlzdE9iamVjdHNSZXF1ZXN0GhsuY2FtaW5vLkxpc3RPYmplY3RzUmVzcG9uc2USQAoJUmVhZFN0YXRlEhguY2FtaW5vLlJlYWRTdGF0ZVJlcXVlc3QaGS5jYW1pbm8uUmVhZFN0YXRlUmVzcG9uc2USQwoKV3JpdGVTdGF0ZRIZLmNhbWluby5Xcml0ZVN0YXRlUmVxdWVzdBoaLmNhbWluby5Xcml0ZVN0YXRlUmVzcG9uc2USRgoLQ29ubmVjdEVkZ2USGi5jYW1pbm8uQ29ubmVjdEVkZ2VSZXF1ZXN0GhsuY2FtaW5vLkNvbm5lY3RFZGdlUmVzcG9uc2USRgoLUmVzb2x2ZUVkZ2USGi5jYW1pbm8uUmVzb2x2ZUVkZ2VSZXF1ZXN0GhsuY2FtaW5vLlJlc29sdmVFZGdlUmVzcG9uc2USTwoORGlzY29ubmVjdEVkZ2USHS5jYW1pbm8uRGlzY29ubmVjdEVkZ2VSZXF1ZXN0Gh4uY2FtaW5vLkRpc2Nvbm5lY3RFZGdlUmVzcG9uc2USTAoOUmVhZENvbGxlY3Rpb24SGi5jYW1pbm8uUmVzb2x2ZUVkZ2VSZXF1ZXN0Gh4uY2FtaW5vLlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USVQoRUmVwbGFjZUNvbGxlY3Rpb24SIC5jYW1pbm8uUmVwbGFjZUNvbGxlY3Rpb25SZXF1ZXN0Gh4uY2FtaW5vLlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USOgoHTGlzdE9wcxIWLmNhbWluby5MaXN0T3BzUmVxdWVzdBoXLmNhbWluby5MaXN0T3BzUmVzcG9uc2USRQoLV2F0Y2hPYmplY3QSGi5jYW1pbm8uV2F0Y2hPYmplY3RSZXF1ZXN0GhguY2FtaW5vLldhdGNoT2JqZWN0RXZlbnQwAWIGcHJvdG8z", [file_camino_schema]); + fileDesc("ChBjYW1pbm8vYXBpLnByb3RvEgZjYW1pbm8iCwoJTnVsbFZhbHVlInwKC09iamVjdFZhbHVlEi8KBmZpZWxkcxgBIAMoCzIfLmNhbWluby5PYmplY3RWYWx1ZS5GaWVsZHNFbnRyeRo8CgtGaWVsZHNFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBIioKCUxpc3RWYWx1ZRIdCgZ2YWx1ZXMYASADKAsyDS5jYW1pbm8uVmFsdWUiHQoIUmVmVmFsdWUSEQoJb2JqZWN0X2lkGAEgASgJIjwKCUNyZHRWYWx1ZRIMCgR0eXBlGAEgASgJEhAKCGVuY29kaW5nGAIgASgJEg8KB3BheWxvYWQYAyABKAwiqAEKEFN0YXRlVmFsdWVTb3VyY2USEQoJb2JqZWN0X2lkGAEgASgJEg8KB3Nsb3RfaWQYAiABKAkSFwoPdmFsdWVfdHlwZV9qc29uGAMgASgJEhsKE3N0b3JhZ2VfcG9saWN5X2pzb24YBCABKAkSEAoIcmV2aXNpb24YBSABKAQSKAoNY3JkdF9zbmFwc2hvdBgGIAEoCzIRLmNhbWluby5DcmR0VmFsdWUiNgoLVmFsdWVTb3VyY2USJwoFc3RhdGUYASABKAsyGC5jYW1pbm8uU3RhdGVWYWx1ZVNvdXJjZSL5AgoFVmFsdWUSJwoKbnVsbF92YWx1ZRgBIAEoCzIRLmNhbWluby5OdWxsVmFsdWVIABIUCgpib29sX3ZhbHVlGAIgASgISAASFgoMbnVtYmVyX3ZhbHVlGAMgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAQgASgJSAASFwoNaW50ZWdlcl92YWx1ZRgFIAEoCUgAEhUKC2J5dGVzX3ZhbHVlGAYgASgMSAASKwoMb2JqZWN0X3ZhbHVlGAcgASgLMhMuY2FtaW5vLk9iamVjdFZhbHVlSAASJwoKbGlzdF92YWx1ZRgIIAEoCzIRLmNhbWluby5MaXN0VmFsdWVIABIlCglyZWZfdmFsdWUYCSABKAsyEC5jYW1pbm8uUmVmVmFsdWVIABInCgpjcmR0X3ZhbHVlGAogASgLMhEuY2FtaW5vLkNyZHRWYWx1ZUgAEiMKBnNvdXJjZRgLIAEoCzITLmNhbWluby5WYWx1ZVNvdXJjZUIGCgRraW5kIkYKHUluc3RhbGxQZXJzaXN0ZW5jZVBsYW5SZXF1ZXN0EiUKBHBsYW4YASABKAsyFy5jYW1pbm8uUGVyc2lzdGVuY2VQbGFuIkcKHkluc3RhbGxQZXJzaXN0ZW5jZVBsYW5SZXNwb25zZRIlCgRwbGFuGAEgASgLMhcuY2FtaW5vLlBlcnNpc3RlbmNlUGxhbiIbChlHZXRQZXJzaXN0ZW5jZVBsYW5SZXF1ZXN0IkMKGkdldFBlcnNpc3RlbmNlUGxhblJlc3BvbnNlEiUKBHBsYW4YASABKAsyFy5jYW1pbm8uUGVyc2lzdGVuY2VQbGFuIrABChNDcmVhdGVPYmplY3RSZXF1ZXN0Eg8KB2F0b21faWQYASABKAkSRAoNaW5pdGlhbF9zdGF0ZRgCIAMoCzItLmNhbWluby5DcmVhdGVPYmplY3RSZXF1ZXN0LkluaXRpYWxTdGF0ZUVudHJ5GkIKEUluaXRpYWxTdGF0ZUVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEiPAoUQ3JlYXRlT2JqZWN0UmVzcG9uc2USJAoGb2JqZWN0GAEgASgLMhQuY2FtaW5vLkNhbWlub09iamVjdCIlChBHZXRPYmplY3RSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCSI5ChFHZXRPYmplY3RSZXNwb25zZRIkCgZvYmplY3QYASABKAsyFC5jYW1pbm8uQ2FtaW5vT2JqZWN0IiUKEkxpc3RPYmplY3RzUmVxdWVzdBIPCgdhdG9tX2lkGAEgASgJIjwKE0xpc3RPYmplY3RzUmVzcG9uc2USJQoHb2JqZWN0cxgBIAMoCzIULmNhbWluby5DYW1pbm9PYmplY3QiNgoQUmVhZFN0YXRlUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSDwoHc2xvdF9pZBgCIAEoCSIxChFSZWFkU3RhdGVSZXNwb25zZRIcCgV2YWx1ZRgBIAEoCzINLmNhbWluby5WYWx1ZSJxChFXcml0ZVN0YXRlUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSDwoHc2xvdF9pZBgCIAEoCRIcCgV2YWx1ZRgDIAEoCzINLmNhbWluby5WYWx1ZRIaChJjbGllbnRfbXV0YXRpb25faWQYBCABKAkiWAoSV3JpdGVTdGF0ZVJlc3BvbnNlEhwKBXZhbHVlGAEgASgLMg0uY2FtaW5vLlZhbHVlEiQKBm9iamVjdBgCIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QiwAEKEkNvbm5lY3RFZGdlUmVxdWVzdBIUCgxlZGdlX3R5cGVfaWQYASABKAkSFQoNcHJvamVjdGlvbl9pZBgCIAEoCRIRCglvYmplY3RfaWQYAyABKAkSGAoQdGFyZ2V0X29iamVjdF9pZBgEIAEoCRIUCgdvcmRpbmFsGAUgASgFSACIAQESGwoOdGFyZ2V0X29yZGluYWwYBiABKAVIAYgBAUIKCghfb3JkaW5hbEIRCg9fdGFyZ2V0X29yZGluYWwiNwoTQ29ubmVjdEVkZ2VSZXNwb25zZRIgCgRlZGdlGAEgASgLMhIuY2FtaW5vLkNhbWlub0VkZ2UiVAoSUmVzb2x2ZUVkZ2VSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCRIUCgxlZGdlX3R5cGVfaWQYAiABKAkSFQoNcHJvamVjdGlvbl9pZBgDIAEoCSI4ChNSZXNvbHZlRWRnZVJlc3BvbnNlEiEKBWVkZ2VzGAEgAygLMhIuY2FtaW5vLkNhbWlub0VkZ2UiKAoVRGlzY29ubmVjdEVkZ2VSZXF1ZXN0Eg8KB2VkZ2VfaWQYASABKAkiKQoWRGlzY29ubmVjdEVkZ2VSZXNwb25zZRIPCgdlZGdlX2lkGAEgASgJIlgKD0NvbGxlY3Rpb25FbnRyeRIPCgdlZGdlX2lkGAEgASgJEhgKEHRhcmdldF9vYmplY3RfaWQYAiABKAkSGgoDa2V5GAMgASgLMg0uY2FtaW5vLlZhbHVlIlQKFlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USEAoIcmV2aXNpb24YASABKAQSKAoHZW50cmllcxgCIAMoCzIXLmNhbWluby5Db2xsZWN0aW9uRW50cnkinwEKGFJlcGxhY2VDb2xsZWN0aW9uUmVxdWVzdBIRCglvYmplY3RfaWQYASABKAkSFAoMZWRnZV90eXBlX2lkGAIgASgJEhUKDXByb2plY3Rpb25faWQYAyABKAkSGQoRZXhwZWN0ZWRfcmV2aXNpb24YBCABKAQSKAoHZW50cmllcxgFIAMoCzIXLmNhbWluby5Db2xsZWN0aW9uRW50cnkiIwoOTGlzdE9wc1JlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJIjAKD0xpc3RPcHNSZXNwb25zZRIdCgNvcHMYASADKAsyEC5jYW1pbm8uQ2FtaW5vT3AibgoSV2F0Y2hPYmplY3RSZXF1ZXN0EhEKCW9iamVjdF9pZBgBIAEoCRITCgthZnRlcl9vcF9pZBgCIAEoCRIYChBpbmNsdWRlX3NuYXBzaG90GAMgASgIEhYKDmF0dGFjaG1lbnRfaWRzGAQgAygJImsKEFdhdGNoT2JqZWN0RXZlbnQSEQoJb2JqZWN0X2lkGAEgASgJEiYKCHNuYXBzaG90GAIgASgLMhQuY2FtaW5vLkNhbWlub09iamVjdBIcCgJvcBgDIAEoCzIQLmNhbWluby5DYW1pbm9PcCLZAgoMQ2FtaW5vT2JqZWN0EgoKAmlkGAEgASgJEg8KB2F0b21faWQYAiABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAMgASgJEhIKCmNyZWF0ZWRfYXQYBCABKAkSEgoKdXBkYXRlZF9hdBgFIAEoCRIuCgVzdGF0ZRgGIAMoCzIfLmNhbWluby5DYW1pbm9PYmplY3QuU3RhdGVFbnRyeRJBCg9zdGF0ZV9yZXZpc2lvbnMYByADKAsyKC5jYW1pbm8uQ2FtaW5vT2JqZWN0LlN0YXRlUmV2aXNpb25zRW50cnkaOwoKU3RhdGVFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBGjUKE1N0YXRlUmV2aXNpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgEOgI4ASK/AgoKQ2FtaW5vRWRnZRIKCgJpZBgBIAEoCRIUCgxlZGdlX3R5cGVfaWQYAiABKAkSFwoPZmlyc3Rfb2JqZWN0X2lkGAMgASgJEhgKEHNlY29uZF9vYmplY3RfaWQYBCABKAkSGwoTZmlyc3RfcHJvamVjdGlvbl9pZBgFIAEoCRIcChRzZWNvbmRfcHJvamVjdGlvbl9pZBgGIAEoCRIaCg1maXJzdF9vcmRpbmFsGAcgASgFSACIAQESGwoOc2Vjb25kX29yZGluYWwYCCABKAVIAYgBARISCgpjcmVhdGVkX2F0GAkgASgJEhYKDmZpcnN0X2tleV9qc29uGAogASgJEhcKD3NlY29uZF9rZXlfanNvbhgLIAEoCUIQCg5fZmlyc3Rfb3JkaW5hbEIRCg9fc2Vjb25kX29yZGluYWwimQEKCENhbWlub09wEgoKAmlkGAEgASgJEhEKCW9iamVjdF9pZBgCIAEoCRIPCgdvcF9raW5kGAMgASgJEh4KB3BheWxvYWQYBCABKAsyDS5jYW1pbm8uVmFsdWUSDQoFYWN0b3IYBSABKAkSEgoKY3JlYXRlZF9hdBgGIAEoCRIaChJjbGllbnRfbXV0YXRpb25faWQYByABKAki0AEKDFF1ZXJ5UmVxdWVzdBIQCghxdWVyeV9pZBgBIAEoCRIRCglvYmplY3RfaWQYAiABKAkSNgoJdmFyaWFibGVzGAMgAygLMiMuY2FtaW5vLlF1ZXJ5UmVxdWVzdC5WYXJpYWJsZXNFbnRyeRIiChpleHBlY3RlZF9kZWZpbml0aW9uX2RpZ2VzdBgEIAEoCRo/Cg5WYXJpYWJsZXNFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBIjkKDVF1ZXJ5UGF0aFBhcnQSDwoFZmllbGQYASABKAlIABIPCgVpbmRleBgCIAEoDUgAQgYKBHBhcnQijAIKEVF1ZXJ5UGVuZGluZ0ZpZWxkEiMKBHBhdGgYASADKAsyFS5jYW1pbm8uUXVlcnlQYXRoUGFydBIRCglvYmplY3RfaWQYAiABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAMgASgJEhEKCW1lbWJlcl9pZBgEIAEoCRIUCgxvcGVyYXRpb25faWQYBSABKAkSFwoPdmFsdWVfdHlwZV9qc29uGAYgASgJEhwKD3Jlc2lkdWFsX3dpbmRvdxgHIAEoDUgAiAEBEhQKDHJlc2lkdWFsX3JvdxgIIAEoDRIWCg5yZXNpZHVhbF9maWVsZBgJIAEoCUISChBfcmVzaWR1YWxfd2luZG93IpIBCgpRdWVyeVN0YXRzEhEKCXNxbF9jb3VudBgBIAEoDRIOCgZzcWxfbXMYAiABKAESEQoJcnBjX2NvdW50GAMgASgNEg4KBnJwY19tcxgEIAEoARIUCgxyZXN1bHRfYnl0ZXMYBSABKA0SFgoOcHJlcGFyYXRpb25fbXMYBiABKAESEAoIdG90YWxfbXMYByABKAEivAIKDVF1ZXJ5UmVzcG9uc2USHAoFdmFsdWUYASABKAsyDS5jYW1pbm8uVmFsdWUSFAoMZGF0YV92ZXJzaW9uGAIgASgJEhYKDmJpbmRpbmdfZGlnZXN0GAMgASgJEioKB3BlbmRpbmcYBCADKAsyGS5jYW1pbm8uUXVlcnlQZW5kaW5nRmllbGQSIQoFc3RhdHMYBSABKAsyEi5jYW1pbm8uUXVlcnlTdGF0cxIZChFwcmVwYXJhdGlvbl90b2tlbhgGIAEoCRIpCgZlcnJvcnMYByADKAsyGS5jYW1pbm8uUXVlcnlGaWVsZEZhaWx1cmUSNQoQcmVzaWR1YWxfd2luZG93cxgIIAMoCzIbLmNhbWluby5RdWVyeVJlc2lkdWFsV2luZG93EhMKC2NvbnNpc3RlbmN5GAkgASgJIpgBChBRdWVyeVJlc2lkdWFsUm93EhAKCGVudHJ5X2lkGAEgASgJEjQKBmZpZWxkcxgCIAMoCzIkLmNhbWluby5RdWVyeVJlc2lkdWFsUm93LkZpZWxkc0VudHJ5GjwKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEiNwoSUXVlcnlSZXNpZHVhbE9yZGVyEg0KBWZpZWxkGAEgASgJEhIKCmRlc2NlbmRpbmcYAiABKAgi6QIKE1F1ZXJ5UmVzaWR1YWxXaW5kb3cSIwoEcGF0aBgBIAMoCzIVLmNhbWluby5RdWVyeVBhdGhQYXJ0EiYKBHJvd3MYAiADKAsyGC5jYW1pbm8uUXVlcnlSZXNpZHVhbFJvdxIWCg5wcmVkaWNhdGVfanNvbhgDIAEoCRIpCgVvcmRlchgEIAMoCzIaLmNhbWluby5RdWVyeVJlc2lkdWFsT3JkZXISDQoFbGltaXQYBSABKA0SEwoLYm91bmRlZF9hbGwYBiABKAgSKQoJc2VsZWN0aW9uGAcgAygLMhYuY2FtaW5vLlF1ZXJ5U2VsZWN0aW9uEkAKC2ZpZWxkX3R5cGVzGAggAygLMisuY2FtaW5vLlF1ZXJ5UmVzaWR1YWxXaW5kb3cuRmllbGRUeXBlc0VudHJ5GjEKD0ZpZWxkVHlwZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIkcKEVF1ZXJ5RmllbGRGYWlsdXJlEiMKBHBhdGgYASADKAsyFS5jYW1pbm8uUXVlcnlQYXRoUGFydBINCgVlcnJvchgCIAEoCSJQChNRdWVyeUNoYW5nZXNSZXF1ZXN0EhAKCHF1ZXJ5X2lkGAEgASgJEhEKCW9iamVjdF9pZBgCIAEoCRIUCgxkYXRhX3ZlcnNpb24YAyABKAkiJwoUUXVlcnlDaGFuZ2VzUmVzcG9uc2USDwoHY2hhbmdlZBgBIAEoCDLCCQoNQ2FtaW5vU2VydmljZRI7CgxFeGVjdXRlUXVlcnkSFC5jYW1pbm8uUXVlcnlSZXF1ZXN0GhUuY2FtaW5vLlF1ZXJ5UmVzcG9uc2USSQoMUXVlcnlDaGFuZ2VzEhsuY2FtaW5vLlF1ZXJ5Q2hhbmdlc1JlcXVlc3QaHC5jYW1pbm8uUXVlcnlDaGFuZ2VzUmVzcG9uc2USZwoWSW5zdGFsbFBlcnNpc3RlbmNlUGxhbhIlLmNhbWluby5JbnN0YWxsUGVyc2lzdGVuY2VQbGFuUmVxdWVzdBomLmNhbWluby5JbnN0YWxsUGVyc2lzdGVuY2VQbGFuUmVzcG9uc2USWwoSR2V0UGVyc2lzdGVuY2VQbGFuEiEuY2FtaW5vLkdldFBlcnNpc3RlbmNlUGxhblJlcXVlc3QaIi5jYW1pbm8uR2V0UGVyc2lzdGVuY2VQbGFuUmVzcG9uc2USSQoMQ3JlYXRlT2JqZWN0EhsuY2FtaW5vLkNyZWF0ZU9iamVjdFJlcXVlc3QaHC5jYW1pbm8uQ3JlYXRlT2JqZWN0UmVzcG9uc2USQAoJR2V0T2JqZWN0EhguY2FtaW5vLkdldE9iamVjdFJlcXVlc3QaGS5jYW1pbm8uR2V0T2JqZWN0UmVzcG9uc2USRgoLTGlzdE9iamVjdHMSGi5jYW1pbm8uTGlzdE9iamVjdHNSZXF1ZXN0GhsuY2FtaW5vLkxpc3RPYmplY3RzUmVzcG9uc2USQAoJUmVhZFN0YXRlEhguY2FtaW5vLlJlYWRTdGF0ZVJlcXVlc3QaGS5jYW1pbm8uUmVhZFN0YXRlUmVzcG9uc2USQwoKV3JpdGVTdGF0ZRIZLmNhbWluby5Xcml0ZVN0YXRlUmVxdWVzdBoaLmNhbWluby5Xcml0ZVN0YXRlUmVzcG9uc2USRgoLQ29ubmVjdEVkZ2USGi5jYW1pbm8uQ29ubmVjdEVkZ2VSZXF1ZXN0GhsuY2FtaW5vLkNvbm5lY3RFZGdlUmVzcG9uc2USRgoLUmVzb2x2ZUVkZ2USGi5jYW1pbm8uUmVzb2x2ZUVkZ2VSZXF1ZXN0GhsuY2FtaW5vLlJlc29sdmVFZGdlUmVzcG9uc2USTwoORGlzY29ubmVjdEVkZ2USHS5jYW1pbm8uRGlzY29ubmVjdEVkZ2VSZXF1ZXN0Gh4uY2FtaW5vLkRpc2Nvbm5lY3RFZGdlUmVzcG9uc2USTAoOUmVhZENvbGxlY3Rpb24SGi5jYW1pbm8uUmVzb2x2ZUVkZ2VSZXF1ZXN0Gh4uY2FtaW5vLlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USVQoRUmVwbGFjZUNvbGxlY3Rpb24SIC5jYW1pbm8uUmVwbGFjZUNvbGxlY3Rpb25SZXF1ZXN0Gh4uY2FtaW5vLlJlYWRDb2xsZWN0aW9uUmVzcG9uc2USOgoHTGlzdE9wcxIWLmNhbWluby5MaXN0T3BzUmVxdWVzdBoXLmNhbWluby5MaXN0T3BzUmVzcG9uc2USRQoLV2F0Y2hPYmplY3QSGi5jYW1pbm8uV2F0Y2hPYmplY3RSZXF1ZXN0GhguY2FtaW5vLldhdGNoT2JqZWN0RXZlbnQwAWIGcHJvdG8z", [file_camino_schema]); /** * @generated from message camino.NullValue @@ -995,10 +995,421 @@ export type CaminoOp = Message<"camino.CaminoOp"> & { export const CaminoOpSchema: GenMessage = /*@__PURE__*/ messageDesc(file_camino_api, 37); +/** + * @generated from message camino.QueryRequest + */ +export type QueryRequest = Message<"camino.QueryRequest"> & { + /** + * @generated from field: string query_id = 1; + */ + queryId: string; + + /** + * @generated from field: string object_id = 2; + */ + objectId: string; + + /** + * @generated from field: map variables = 3; + */ + variables: { [key: string]: Value }; + + /** + * Typed callers require this exact checked definition. Administrative/raw + * callers may omit it to explicitly select the currently installed definition. + * + * @generated from field: string expected_definition_digest = 4; + */ + expectedDefinitionDigest: string; +}; + +/** + * Describes the message camino.QueryRequest. + * Use `create(QueryRequestSchema)` to create a new message. + */ +export const QueryRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 38); + +/** + * @generated from message camino.QueryPathPart + */ +export type QueryPathPart = Message<"camino.QueryPathPart"> & { + /** + * @generated from oneof camino.QueryPathPart.part + */ + part: { + /** + * @generated from field: string field = 1; + */ + value: string; + case: "field"; + } | { + /** + * @generated from field: uint32 index = 2; + */ + value: number; + case: "index"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message camino.QueryPathPart. + * Use `create(QueryPathPartSchema)` to create a new message. + */ +export const QueryPathPartSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 39); + +/** + * @generated from message camino.QueryPendingField + */ +export type QueryPendingField = Message<"camino.QueryPendingField"> & { + /** + * @generated from field: repeated camino.QueryPathPart path = 1; + */ + path: QueryPathPart[]; + + /** + * @generated from field: string object_id = 2; + */ + objectId: string; + + /** + * @generated from field: string interface_revision_id = 3; + */ + interfaceRevisionId: string; + + /** + * @generated from field: string member_id = 4; + */ + memberId: string; + + /** + * @generated from field: string operation_id = 5; + */ + operationId: string; + + /** + * @generated from field: string value_type_json = 6; + */ + valueTypeJson: string; + + /** + * Internal residual facts are separate from the authored result projection. + * + * @generated from field: optional uint32 residual_window = 7; + */ + residualWindow?: number | undefined; + + /** + * @generated from field: uint32 residual_row = 8; + */ + residualRow: number; + + /** + * @generated from field: string residual_field = 9; + */ + residualField: string; +}; + +/** + * Describes the message camino.QueryPendingField. + * Use `create(QueryPendingFieldSchema)` to create a new message. + */ +export const QueryPendingFieldSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 40); + +/** + * @generated from message camino.QueryStats + */ +export type QueryStats = Message<"camino.QueryStats"> & { + /** + * @generated from field: uint32 sql_count = 1; + */ + sqlCount: number; + + /** + * @generated from field: double sql_ms = 2; + */ + sqlMs: number; + + /** + * @generated from field: uint32 rpc_count = 3; + */ + rpcCount: number; + + /** + * @generated from field: double rpc_ms = 4; + */ + rpcMs: number; + + /** + * @generated from field: uint32 result_bytes = 5; + */ + resultBytes: number; + + /** + * @generated from field: double preparation_ms = 6; + */ + preparationMs: number; + + /** + * @generated from field: double total_ms = 7; + */ + totalMs: number; +}; + +/** + * Describes the message camino.QueryStats. + * Use `create(QueryStatsSchema)` to create a new message. + */ +export const QueryStatsSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 41); + +/** + * @generated from message camino.QueryResponse + */ +export type QueryResponse = Message<"camino.QueryResponse"> & { + /** + * @generated from field: camino.Value value = 1; + */ + value?: Value | undefined; + + /** + * @generated from field: string data_version = 2; + */ + dataVersion: string; + + /** + * @generated from field: string binding_digest = 3; + */ + bindingDigest: string; + + /** + * @generated from field: repeated camino.QueryPendingField pending = 4; + */ + pending: QueryPendingField[]; + + /** + * @generated from field: camino.QueryStats stats = 5; + */ + stats?: QueryStats | undefined; + + /** + * Redeemable only through the host's private control socket, not an RPC grant. + * + * @generated from field: string preparation_token = 6; + */ + preparationToken: string; + + /** + * @generated from field: repeated camino.QueryFieldFailure errors = 7; + */ + errors: QueryFieldFailure[]; + + /** + * @generated from field: repeated camino.QueryResidualWindow residual_windows = 8; + */ + residualWindows: QueryResidualWindow[]; + + /** + * Native reads share one database snapshot; package enrichment does not. + * + * native-snapshot | mixed + * + * @generated from field: string consistency = 9; + */ + consistency: string; +}; + +/** + * Describes the message camino.QueryResponse. + * Use `create(QueryResponseSchema)` to create a new message. + */ +export const QueryResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 42); + +/** + * @generated from message camino.QueryResidualRow + */ +export type QueryResidualRow = Message<"camino.QueryResidualRow"> & { + /** + * @generated from field: string entry_id = 1; + */ + entryId: string; + + /** + * @generated from field: map fields = 2; + */ + fields: { [key: string]: Value }; +}; + +/** + * Describes the message camino.QueryResidualRow. + * Use `create(QueryResidualRowSchema)` to create a new message. + */ +export const QueryResidualRowSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 43); + +/** + * @generated from message camino.QueryResidualOrder + */ +export type QueryResidualOrder = Message<"camino.QueryResidualOrder"> & { + /** + * @generated from field: string field = 1; + */ + field: string; + + /** + * @generated from field: bool descending = 2; + */ + descending: boolean; +}; + +/** + * Describes the message camino.QueryResidualOrder. + * Use `create(QueryResidualOrderSchema)` to create a new message. + */ +export const QueryResidualOrderSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 44); + +/** + * @generated from message camino.QueryResidualWindow + */ +export type QueryResidualWindow = Message<"camino.QueryResidualWindow"> & { + /** + * @generated from field: repeated camino.QueryPathPart path = 1; + */ + path: QueryPathPart[]; + + /** + * @generated from field: repeated camino.QueryResidualRow rows = 2; + */ + rows: QueryResidualRow[]; + + /** + * @generated from field: string predicate_json = 3; + */ + predicateJson: string; + + /** + * @generated from field: repeated camino.QueryResidualOrder order = 4; + */ + order: QueryResidualOrder[]; + + /** + * @generated from field: uint32 limit = 5; + */ + limit: number; + + /** + * @generated from field: bool bounded_all = 6; + */ + boundedAll: boolean; + + /** + * @generated from field: repeated camino.QuerySelection selection = 7; + */ + selection: QuerySelection[]; + + /** + * @generated from field: map field_types = 8; + */ + fieldTypes: { [key: string]: string }; +}; + +/** + * Describes the message camino.QueryResidualWindow. + * Use `create(QueryResidualWindowSchema)` to create a new message. + */ +export const QueryResidualWindowSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 45); + +/** + * @generated from message camino.QueryFieldFailure + */ +export type QueryFieldFailure = Message<"camino.QueryFieldFailure"> & { + /** + * @generated from field: repeated camino.QueryPathPart path = 1; + */ + path: QueryPathPart[]; + + /** + * @generated from field: string error = 2; + */ + error: string; +}; + +/** + * Describes the message camino.QueryFieldFailure. + * Use `create(QueryFieldFailureSchema)` to create a new message. + */ +export const QueryFieldFailureSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 46); + +/** + * @generated from message camino.QueryChangesRequest + */ +export type QueryChangesRequest = Message<"camino.QueryChangesRequest"> & { + /** + * @generated from field: string query_id = 1; + */ + queryId: string; + + /** + * @generated from field: string object_id = 2; + */ + objectId: string; + + /** + * @generated from field: string data_version = 3; + */ + dataVersion: string; +}; + +/** + * Describes the message camino.QueryChangesRequest. + * Use `create(QueryChangesRequestSchema)` to create a new message. + */ +export const QueryChangesRequestSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 47); + +/** + * @generated from message camino.QueryChangesResponse + */ +export type QueryChangesResponse = Message<"camino.QueryChangesResponse"> & { + /** + * @generated from field: bool changed = 1; + */ + changed: boolean; +}; + +/** + * Describes the message camino.QueryChangesResponse. + * Use `create(QueryChangesResponseSchema)` to create a new message. + */ +export const QueryChangesResponseSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_api, 48); + /** * @generated from service camino.CaminoService */ export const CaminoService: GenService<{ + /** + * @generated from rpc camino.CaminoService.ExecuteQuery + */ + executeQuery: { + methodKind: "unary"; + input: typeof QueryRequestSchema; + output: typeof QueryResponseSchema; + }, + /** + * @generated from rpc camino.CaminoService.QueryChanges + */ + queryChanges: { + methodKind: "unary"; + input: typeof QueryChangesRequestSchema; + output: typeof QueryChangesResponseSchema; + }, /** * @generated from rpc camino.CaminoService.InstallPersistencePlan */ diff --git a/src/gen/camino/schema_pb.ts b/src/gen/camino/schema_pb.ts index 3cbbaef..fe7cdf3 100644 --- a/src/gen/camino/schema_pb.ts +++ b/src/gen/camino/schema_pb.ts @@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file camino/schema.proto. */ export const file_camino_schema: GenFile = /*@__PURE__*/ - fileDesc("ChNjYW1pbm8vc2NoZW1hLnByb3RvEgZjYW1pbm8iNwoOQXRvbURlZmluaXRpb24SDwoHYXRvbV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkiWQoPQXRvbUNvbmZvcm1hbmNlEg8KB2F0b21faWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJIsIBCg9TdGF0ZUF0dGFjaG1lbnQSDwoHc2xvdF9pZBgBIAEoCRIYChBhdHRhY2hlZF9hdG9tX2lkGAIgASgJEhQKDGRpc3BsYXlfbmFtZRgDIAEoCRIXCg92YWx1ZV90eXBlX2pzb24YBCABKAkSGwoTc3RvcmFnZV9wb2xpY3lfanNvbhgFIAEoCRIaChJkZWZhdWx0X3ZhbHVlX2pzb24YBiABKAkSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYByABKAkiUAoSRW5kcG9pbnRDb25zdHJhaW50EhEKB2F0b21faWQYASABKAlIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAlIAEIGCgRraW5kIvsBCgxFZGdlRW5kcG9pbnQSFQoNcHJvamVjdGlvbl9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSLgoKY29uc3RyYWludBgDIAEoCzIaLmNhbWluby5FbmRwb2ludENvbnN0cmFpbnQSKAoLY2FyZGluYWxpdHkYBCABKA4yEy5jYW1pbm8uQ2FyZGluYWxpdHkSDwoHb3JkZXJlZBgFIAEoCBIRCglvbl9kZWxldGUYBiABKAkSFAoMcmV0YWluX290aGVyGAcgASgIEhAKCGtleV90eXBlGAggASgJEhgKEHB1YmxpY190cmF2ZXJzYWwYCSABKAgipQEKDkVkZ2VBdHRhY2htZW50EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSIwoFZmlyc3QYAyABKAsyFC5jYW1pbm8uRWRnZUVuZHBvaW50EiQKBnNlY29uZBgEIAEoCzIULmNhbWluby5FZGdlRW5kcG9pbnQSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYBSABKAki7AEKD1BlcnNpc3RlbmNlUGxhbhIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEiUKBWF0b21zGAMgAygLMhYuY2FtaW5vLkF0b21EZWZpbml0aW9uEi0KDGNvbmZvcm1hbmNlcxgEIAMoCzIXLmNhbWluby5BdG9tQ29uZm9ybWFuY2USJwoGc3RhdGVzGAUgAygLMhcuY2FtaW5vLlN0YXRlQXR0YWNobWVudBIlCgVlZGdlcxgGIAMoCzIWLmNhbWluby5FZGdlQXR0YWNobWVudCpoCgtDYXJkaW5hbGl0eRIbChdDQVJESU5BTElUWV9VTlNQRUNJRklFRBAAEhAKDE9QVElPTkFMX09ORRABEg8KC0VYQUNUTFlfT05FEAISCAoETUFOWRADEg8KC01BTllfVU5JUVVFEARiBnByb3RvMw"); + fileDesc("ChNjYW1pbm8vc2NoZW1hLnByb3RvEgZjYW1pbm8iNwoOQXRvbURlZmluaXRpb24SDwoHYXRvbV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkiWQoPQXRvbUNvbmZvcm1hbmNlEg8KB2F0b21faWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJIsIBCg9TdGF0ZUF0dGFjaG1lbnQSDwoHc2xvdF9pZBgBIAEoCRIYChBhdHRhY2hlZF9hdG9tX2lkGAIgASgJEhQKDGRpc3BsYXlfbmFtZRgDIAEoCRIXCg92YWx1ZV90eXBlX2pzb24YBCABKAkSGwoTc3RvcmFnZV9wb2xpY3lfanNvbhgFIAEoCRIaChJkZWZhdWx0X3ZhbHVlX2pzb24YBiABKAkSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYByABKAkiUAoSRW5kcG9pbnRDb25zdHJhaW50EhEKB2F0b21faWQYASABKAlIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAlIAEIGCgRraW5kIvsBCgxFZGdlRW5kcG9pbnQSFQoNcHJvamVjdGlvbl9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSLgoKY29uc3RyYWludBgDIAEoCzIaLmNhbWluby5FbmRwb2ludENvbnN0cmFpbnQSKAoLY2FyZGluYWxpdHkYBCABKA4yEy5jYW1pbm8uQ2FyZGluYWxpdHkSDwoHb3JkZXJlZBgFIAEoCBIRCglvbl9kZWxldGUYBiABKAkSFAoMcmV0YWluX290aGVyGAcgASgIEhAKCGtleV90eXBlGAggASgJEhgKEHB1YmxpY190cmF2ZXJzYWwYCSABKAgipQEKDkVkZ2VBdHRhY2htZW50EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSIwoFZmlyc3QYAyABKAsyFC5jYW1pbm8uRWRnZUVuZHBvaW50EiQKBnNlY29uZBgEIAEoCzIULmNhbWluby5FZGdlRW5kcG9pbnQSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYBSABKAkilQIKD1BlcnNpc3RlbmNlUGxhbhIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEiUKBWF0b21zGAMgAygLMhYuY2FtaW5vLkF0b21EZWZpbml0aW9uEi0KDGNvbmZvcm1hbmNlcxgEIAMoCzIXLmNhbWluby5BdG9tQ29uZm9ybWFuY2USJwoGc3RhdGVzGAUgAygLMhcuY2FtaW5vLlN0YXRlQXR0YWNobWVudBIlCgVlZGdlcxgGIAMoCzIWLmNhbWluby5FZGdlQXR0YWNobWVudBInCgdxdWVyaWVzGAcgAygLMhYuY2FtaW5vLkluc3RhbGxlZFF1ZXJ5Ip4BCg1RdWVyeUFyZ3VtZW50EhIKCHZhcmlhYmxlGAEgASgJSAASFgoMbGl0ZXJhbF9qc29uGAIgASgJSAASKQoEbGlzdBgDIAEoCzIZLmNhbWluby5RdWVyeUFyZ3VtZW50TGlzdEgAEi0KBm9iamVjdBgEIAEoCzIbLmNhbWluby5RdWVyeUFyZ3VtZW50T2JqZWN0SABCBwoFdmFsdWUiOgoRUXVlcnlBcmd1bWVudExpc3QSJQoGdmFsdWVzGAEgAygLMhUuY2FtaW5vLlF1ZXJ5QXJndW1lbnQilAEKE1F1ZXJ5QXJndW1lbnRPYmplY3QSNwoGZmllbGRzGAEgAygLMicuY2FtaW5vLlF1ZXJ5QXJndW1lbnRPYmplY3QuRmllbGRzRW50cnkaRAoLRmllbGRzRW50cnkSCwoDa2V5GAEgASgJEiQKBXZhbHVlGAIgASgLMhUuY2FtaW5vLlF1ZXJ5QXJndW1lbnQ6AjgBIkcKDlF1ZXJ5Q29uZGl0aW9uEg8KB2luY2x1ZGUYASABKAgSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudCLdAgoOUXVlcnlTZWxlY3Rpb24SDAoEbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAMgASgJEhEKCW1lbWJlcl9pZBgEIAEoCRIkChx0YXJnZXRfaW50ZXJmYWNlX3JldmlzaW9uX2lkGAUgASgJEioKCmNvbmRpdGlvbnMYBiADKAsyFi5jYW1pbm8uUXVlcnlDb25kaXRpb24SOAoJYXJndW1lbnRzGAcgAygLMiUuY2FtaW5vLlF1ZXJ5U2VsZWN0aW9uLkFyZ3VtZW50c0VudHJ5EikKCXNlbGVjdGlvbhgIIAMoCzIWLmNhbWluby5RdWVyeVNlbGVjdGlvbhpHCg5Bcmd1bWVudHNFbnRyeRILCgNrZXkYASABKAkSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudDoCOAEi6QIKEFF1ZXJ5UmVhZEJpbmRpbmcSDwoHYXRvbV9pZBgBIAEoCRIdChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAkSEQoJbWVtYmVyX2lkGAMgASgJEhsKE2dldHRlcl9vcGVyYXRpb25faWQYBCABKAkSDwoHc2xvdF9pZBgFIAEoCRIUCgxlZGdlX3R5cGVfaWQYBiABKAkSFQoNcHJvamVjdGlvbl9pZBgHIAEoCRILCgNycGMYCCABKAgSIAoYd2F0Y2hfc3RhcnRfb3BlcmF0aW9uX2lkGAkgASgJEh8KF3dhdGNoX3N0b3Bfb3BlcmF0aW9uX2lkGAogASgJEhIKCmZpZWxkX25hbWUYCyABKAkSFwoPdmFsdWVfdHlwZV9qc29uGAwgASgJEigKC2NhcmRpbmFsaXR5GA0gASgOMhMuY2FtaW5vLkNhcmRpbmFsaXR5EhAKCGtleV90eXBlGA4gASgJIpIBCgxRdWVyeUJ1ZGdldHMSDAoEcm93cxgBIAEoDRINCgVkZXB0aBgCIAEoDRIUCgxyZXN1bHRfYnl0ZXMYAyABKA0SEgoKY2FuZGlkYXRlcxgEIAEoDRIRCglycGNfY2FsbHMYBSABKA0SEwoLY29uY3VycmVuY3kYBiABKA0SEwoLZGVhZGxpbmVfbXMYByABKA0ijQQKDkluc3RhbGxlZFF1ZXJ5EgoKAmlkGAEgASgJEhkKEWRlZmluaXRpb25fZGlnZXN0GAIgASgJEhYKDmJpbmRpbmdfZGlnZXN0GAMgASgJEiIKGnJvb3RfaW50ZXJmYWNlX3JldmlzaW9uX2lkGAQgASgJEikKCXNlbGVjdGlvbhgFIAMoCzIWLmNhbWluby5RdWVyeVNlbGVjdGlvbhIqCghiaW5kaW5ncxgGIAMoCzIYLmNhbWluby5RdWVyeVJlYWRCaW5kaW5nEiUKB2J1ZGdldHMYByABKAsyFC5jYW1pbm8uUXVlcnlCdWRnZXRzEhsKE3ZhcmlhYmxlc190eXBlX2pzb24YCCABKAkSGAoQb3V0cHV0X3R5cGVfanNvbhgJIAEoCRJHChF2YXJpYWJsZV9kZWZhdWx0cxgKIAMoCzIsLmNhbWluby5JbnN0YWxsZWRRdWVyeS5WYXJpYWJsZURlZmF1bHRzRW50cnkSDQoFd2F0Y2gYCyABKAgSGwoTcG9sbGluZ19pbnRlcnZhbF9tcxgMIAEoDRIeChZycGNfcHJlZGljYXRlX29yX29yZGVyGA0gASgIGk4KFVZhcmlhYmxlRGVmYXVsdHNFbnRyeRILCgNrZXkYASABKAkSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudDoCOAEqaAoLQ2FyZGluYWxpdHkSGwoXQ0FSRElOQUxJVFlfVU5TUEVDSUZJRUQQABIQCgxPUFRJT05BTF9PTkUQARIPCgtFWEFDVExZX09ORRACEggKBE1BTlkQAxIPCgtNQU5ZX1VOSVFVRRAEYgZwcm90bzM"); /** * @generated from message camino.AtomDefinition @@ -273,6 +273,11 @@ export type PersistencePlan = Message<"camino.PersistencePlan"> & { * @generated from field: repeated camino.EdgeAttachment edges = 6; */ edges: EdgeAttachment[]; + + /** + * @generated from field: repeated camino.InstalledQuery queries = 7; + */ + queries: InstalledQuery[]; }; /** @@ -282,6 +287,364 @@ export type PersistencePlan = Message<"camino.PersistencePlan"> & { export const PersistencePlanSchema: GenMessage = /*@__PURE__*/ messageDesc(file_camino_schema, 6); +/** + * Immutable checked query IR. Installed only with the checked persistence plan; + * query callers select its ID, never send or modify these definitions. + * + * @generated from message camino.QueryArgument + */ +export type QueryArgument = Message<"camino.QueryArgument"> & { + /** + * @generated from oneof camino.QueryArgument.value + */ + value: { + /** + * @generated from field: string variable = 1; + */ + value: string; + case: "variable"; + } | { + /** + * @generated from field: string literal_json = 2; + */ + value: string; + case: "literalJson"; + } | { + /** + * @generated from field: camino.QueryArgumentList list = 3; + */ + value: QueryArgumentList; + case: "list"; + } | { + /** + * @generated from field: camino.QueryArgumentObject object = 4; + */ + value: QueryArgumentObject; + case: "object"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message camino.QueryArgument. + * Use `create(QueryArgumentSchema)` to create a new message. + */ +export const QueryArgumentSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 7); + +/** + * @generated from message camino.QueryArgumentList + */ +export type QueryArgumentList = Message<"camino.QueryArgumentList"> & { + /** + * @generated from field: repeated camino.QueryArgument values = 1; + */ + values: QueryArgument[]; +}; + +/** + * Describes the message camino.QueryArgumentList. + * Use `create(QueryArgumentListSchema)` to create a new message. + */ +export const QueryArgumentListSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 8); + +/** + * @generated from message camino.QueryArgumentObject + */ +export type QueryArgumentObject = Message<"camino.QueryArgumentObject"> & { + /** + * @generated from field: map fields = 1; + */ + fields: { [key: string]: QueryArgument }; +}; + +/** + * Describes the message camino.QueryArgumentObject. + * Use `create(QueryArgumentObjectSchema)` to create a new message. + */ +export const QueryArgumentObjectSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 9); + +/** + * @generated from message camino.QueryCondition + */ +export type QueryCondition = Message<"camino.QueryCondition"> & { + /** + * @generated from field: bool include = 1; + */ + include: boolean; + + /** + * @generated from field: camino.QueryArgument value = 2; + */ + value?: QueryArgument | undefined; +}; + +/** + * Describes the message camino.QueryCondition. + * Use `create(QueryConditionSchema)` to create a new message. + */ +export const QueryConditionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 10); + +/** + * @generated from message camino.QuerySelection + */ +export type QuerySelection = Message<"camino.QuerySelection"> & { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from field: string key = 2; + */ + key: string; + + /** + * @generated from field: string interface_revision_id = 3; + */ + interfaceRevisionId: string; + + /** + * @generated from field: string member_id = 4; + */ + memberId: string; + + /** + * @generated from field: string target_interface_revision_id = 5; + */ + targetInterfaceRevisionId: string; + + /** + * @generated from field: repeated camino.QueryCondition conditions = 6; + */ + conditions: QueryCondition[]; + + /** + * @generated from field: map arguments = 7; + */ + arguments: { [key: string]: QueryArgument }; + + /** + * @generated from field: repeated camino.QuerySelection selection = 8; + */ + selection: QuerySelection[]; +}; + +/** + * Describes the message camino.QuerySelection. + * Use `create(QuerySelectionSchema)` to create a new message. + */ +export const QuerySelectionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 11); + +/** + * @generated from message camino.QueryReadBinding + */ +export type QueryReadBinding = Message<"camino.QueryReadBinding"> & { + /** + * @generated from field: string atom_id = 1; + */ + atomId: string; + + /** + * @generated from field: string interface_revision_id = 2; + */ + interfaceRevisionId: string; + + /** + * @generated from field: string member_id = 3; + */ + memberId: string; + + /** + * @generated from field: string getter_operation_id = 4; + */ + getterOperationId: string; + + /** + * @generated from field: string slot_id = 5; + */ + slotId: string; + + /** + * @generated from field: string edge_type_id = 6; + */ + edgeTypeId: string; + + /** + * @generated from field: string projection_id = 7; + */ + projectionId: string; + + /** + * @generated from field: bool rpc = 8; + */ + rpc: boolean; + + /** + * @generated from field: string watch_start_operation_id = 9; + */ + watchStartOperationId: string; + + /** + * @generated from field: string watch_stop_operation_id = 10; + */ + watchStopOperationId: string; + + /** + * @generated from field: string field_name = 11; + */ + fieldName: string; + + /** + * @generated from field: string value_type_json = 12; + */ + valueTypeJson: string; + + /** + * @generated from field: camino.Cardinality cardinality = 13; + */ + cardinality: Cardinality; + + /** + * @generated from field: string key_type = 14; + */ + keyType: string; +}; + +/** + * Describes the message camino.QueryReadBinding. + * Use `create(QueryReadBindingSchema)` to create a new message. + */ +export const QueryReadBindingSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 12); + +/** + * @generated from message camino.QueryBudgets + */ +export type QueryBudgets = Message<"camino.QueryBudgets"> & { + /** + * @generated from field: uint32 rows = 1; + */ + rows: number; + + /** + * @generated from field: uint32 depth = 2; + */ + depth: number; + + /** + * @generated from field: uint32 result_bytes = 3; + */ + resultBytes: number; + + /** + * @generated from field: uint32 candidates = 4; + */ + candidates: number; + + /** + * @generated from field: uint32 rpc_calls = 5; + */ + rpcCalls: number; + + /** + * @generated from field: uint32 concurrency = 6; + */ + concurrency: number; + + /** + * @generated from field: uint32 deadline_ms = 7; + */ + deadlineMs: number; +}; + +/** + * Describes the message camino.QueryBudgets. + * Use `create(QueryBudgetsSchema)` to create a new message. + */ +export const QueryBudgetsSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 13); + +/** + * @generated from message camino.InstalledQuery + */ +export type InstalledQuery = Message<"camino.InstalledQuery"> & { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string definition_digest = 2; + */ + definitionDigest: string; + + /** + * @generated from field: string binding_digest = 3; + */ + bindingDigest: string; + + /** + * @generated from field: string root_interface_revision_id = 4; + */ + rootInterfaceRevisionId: string; + + /** + * @generated from field: repeated camino.QuerySelection selection = 5; + */ + selection: QuerySelection[]; + + /** + * @generated from field: repeated camino.QueryReadBinding bindings = 6; + */ + bindings: QueryReadBinding[]; + + /** + * @generated from field: camino.QueryBudgets budgets = 7; + */ + budgets?: QueryBudgets | undefined; + + /** + * @generated from field: string variables_type_json = 8; + */ + variablesTypeJson: string; + + /** + * @generated from field: string output_type_json = 9; + */ + outputTypeJson: string; + + /** + * @generated from field: map variable_defaults = 10; + */ + variableDefaults: { [key: string]: QueryArgument }; + + /** + * @generated from field: bool watch = 11; + */ + watch: boolean; + + /** + * @generated from field: uint32 polling_interval_ms = 12; + */ + pollingIntervalMs: number; + + /** + * @generated from field: bool rpc_predicate_or_order = 13; + */ + rpcPredicateOrOrder: boolean; +}; + +/** + * Describes the message camino.InstalledQuery. + * Use `create(InstalledQuerySchema)` to create a new message. + */ +export const InstalledQuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 14); + /** * @generated from enum camino.Cardinality */ diff --git a/src/gen/quixos/orch_pb.ts b/src/gen/quixos/orch_pb.ts index f699575..714d782 100644 --- a/src/gen/quixos/orch_pb.ts +++ b/src/gen/quixos/orch_pb.ts @@ -4,8 +4,10 @@ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; -import type { CaminoObject, CrdtValue, Value } from "../camino/api_pb.js"; +import type { CaminoObject, CrdtValue, QueryPathPart, QueryRequestSchema, QueryResponse, QueryResponseSchema, Value } from "../camino/api_pb.js"; import { file_camino_api } from "../camino/api_pb.js"; +import type { InstalledQuery } from "../camino/schema_pb.js"; +import { file_camino_schema } from "../camino/schema_pb.js"; import type { PackageDescriptor } from "./package_pb.js"; import { file_quixos_package } from "./package_pb.js"; import type { CapabilityRef, ConformanceWitness, PackageExportRef } from "./refs_pb.js"; @@ -18,7 +20,54 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file quixos/orch.proto. */ export const file_quixos_orch: GenFile = /*@__PURE__*/ - fileDesc("ChFxdWl4b3Mvb3JjaC5wcm90bxILcXVpeG9zLm9yY2giRQoRVHJ5Q29uZm9ybVJlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgCIAEoCSJFChJUcnlDb25mb3JtUmVzcG9uc2USLwoLY29uZm9ybWFuY2UYASABKAsyGi5xdWl4b3MuQ29uZm9ybWFuY2VXaXRuZXNzIqUBChZDb25zdHJ1Y3RPYmplY3RSZXF1ZXN0Eg8KB2F0b21faWQYASABKAkSPQoFaW5wdXQYAiADKAsyLi5xdWl4b3Mub3JjaC5Db25zdHJ1Y3RPYmplY3RSZXF1ZXN0LklucHV0RW50cnkaOwoKSW5wdXRFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBIj8KF0NvbnN0cnVjdE9iamVjdFJlc3BvbnNlEiQKBm9iamVjdBgBIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QibQomUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdFJlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgCIAEoCRIRCgltZW1iZXJfaWQYAyABKAkiZAonUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdFJlc3BvbnNlEiQKBm9iamVjdBgBIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QSEwoLY29uc3RydWN0ZWQYAiABKAgi8AEKF0ludm9rZUNhcGFiaWxpdHlSZXF1ZXN0EikKCmNhcGFiaWxpdHkYASABKAsyFS5xdWl4b3MuQ2FwYWJpbGl0eVJlZhIRCglvYmplY3RfaWQYAiABKAkSPgoFaW5wdXQYAyADKAsyLy5xdWl4b3Mub3JjaC5JbnZva2VDYXBhYmlsaXR5UmVxdWVzdC5JbnB1dEVudHJ5EhoKEmNsaWVudF9tdXRhdGlvbl9pZBgEIAEoCRo7CgpJbnB1dEVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEizgEKHEludm9rZUNsYXNzQ2FwYWJpbGl0eVJlcXVlc3QSFgoOY29uZm9ybWFuY2VfaWQYASABKAkSFAoMb3BlcmF0aW9uX2lkGAIgASgJEkMKBWlucHV0GAMgAygLMjQucXVpeG9zLm9yY2guSW52b2tlQ2xhc3NDYXBhYmlsaXR5UmVxdWVzdC5JbnB1dEVudHJ5GjsKCklucHV0RW50cnkSCwoDa2V5GAEgASgJEhwKBXZhbHVlGAIgASgLMg0uY2FtaW5vLlZhbHVlOgI4ASKDAgoYSW52b2tlQ2FwYWJpbGl0eVJlc3BvbnNlEhUKDWludm9jYXRpb25faWQYASABKAkSKwoKYWN0aXZhdGlvbhgCIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24SCgoCb2sYAyABKAgSHQoGcmVzdWx0GAQgASgLMg0uY2FtaW5vLlZhbHVlEg0KBWVycm9yGAUgASgJEjcKDGRlcGVuZGVuY2llcxgGIAMoCzIhLnF1aXhvcy5ydW50aW1lLkRlcml2ZWREZXBlbmRlbmN5EjAKDWZpZWxkX2VkaXRpbmcYByABKAsyGS5xdWl4b3Mub3JjaC5GaWVsZEVkaXRpbmcidwoMRmllbGRFZGl0aW5nEhsKE2dldHRlcl9vcGVyYXRpb25faWQYASABKAkSGwoTc2V0dGVyX29wZXJhdGlvbl9pZBgCIAEoCRIVCg1kb2N1bWVudF90eXBlGAMgASgJEhYKDmJpbmRpbmdfZGlnZXN0GAQgASgJIs4BChpFZGl0Q2FwYWJpbGl0eUZpZWxkUmVxdWVzdBIpCgpjYXBhYmlsaXR5GAEgASgLMhUucXVpeG9zLkNhcGFiaWxpdHlSZWYSEQoJb2JqZWN0X2lkGAIgASgJEhsKE3NldHRlcl9vcGVyYXRpb25faWQYAyABKAkSFgoOYmluZGluZ19kaWdlc3QYBCABKAkSIQoGdXBkYXRlGAUgASgLMhEuY2FtaW5vLkNyZHRWYWx1ZRIaChJjbGllbnRfbXV0YXRpb25faWQYBiABKAki0gEKFldhdGNoQ2FwYWJpbGl0eVJlcXVlc3QSKQoKY2FwYWJpbGl0eRgBIAEoCzIVLnF1aXhvcy5DYXBhYmlsaXR5UmVmEhEKCW9iamVjdF9pZBgCIAEoCRI9CgVpbnB1dBgDIAMoCzIuLnF1aXhvcy5vcmNoLldhdGNoQ2FwYWJpbGl0eVJlcXVlc3QuSW5wdXRFbnRyeRo7CgpJbnB1dEVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEilQIKFFdhdGNoQ2FwYWJpbGl0eUV2ZW50EhUKDWludm9jYXRpb25faWQYASABKAkSKwoKYWN0aXZhdGlvbhgCIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24SEAoId2F0Y2hfaWQYAyABKAkSHAoFdmFsdWUYBCABKAsyDS5jYW1pbm8uVmFsdWUSNwoMZGVwZW5kZW5jaWVzGAUgAygLMiEucXVpeG9zLnJ1bnRpbWUuRGVyaXZlZERlcGVuZGVuY3kSDQoFZXJyb3IYBiABKAkSDwoHaW5pdGlhbBgHIAEoCBIwCg1maWVsZF9lZGl0aW5nGAggASgLMhkucXVpeG9zLm9yY2guRmllbGRFZGl0aW5nIjoKE0dldFdvcmtzcGFjZVJlcXVlc3QSIwobaW5jbHVkZV9pbnRlcmZhY2VfY29udHJhY3RzGAEgASgIIuoCChRHZXRXb3Jrc3BhY2VSZXNwb25zZRIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEhoKEnNvdXJjZV9yb290X2NvbW1pdBgDIAEoCRIqCiJlbXB0eV9pbnB1dF9jb25zdHJ1Y3RpYmxlX2F0b21faWRzGAQgAygJEj8KEWNhcGFiaWxpdHlfaW5wdXRzGAUgAygLMiQucXVpeG9zLm9yY2guQ2FwYWJpbGl0eUlucHV0Q29udHJhY3QSQQoSY29uc3RydWN0b3JfaW5wdXRzGAYgAygLMiUucXVpeG9zLm9yY2guQ29uc3RydWN0b3JJbnB1dENvbnRyYWN0EhcKD2ludGVyZmFjZXNfanNvbhgHIAEoCRI4ChJjbGFzc19jYXBhYmlsaXRpZXMYCCADKAsyHC5xdWl4b3Mub3JjaC5DbGFzc0NhcGFiaWxpdHkiuQEKD0NsYXNzQ2FwYWJpbGl0eRIWCg5jb25mb3JtYW5jZV9pZBgBIAEoCRIPCgdhdG9tX2lkGAIgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgDIAEoCRIVCg1kZWZpbml0aW9uX2lkGAQgASgJEhQKDG9wZXJhdGlvbl9pZBgFIAEoCRIXCg9pbnB1dF90eXBlX2pzb24YBiABKAkSGAoQb3V0cHV0X3R5cGVfanNvbhgHIAEoCSJhChdDYXBhYmlsaXR5SW5wdXRDb250cmFjdBIdChVpbnRlcmZhY2VfcmV2aXNpb25faWQYASABKAkSFAoMb3BlcmF0aW9uX2lkGAIgASgJEhEKCXR5cGVfanNvbhgDIAEoCSI+ChhDb25zdHJ1Y3RvcklucHV0Q29udHJhY3QSDwoHYXRvbV9pZBgBIAEoCRIRCgl0eXBlX2pzb24YAiABKAkiGAoWTGlzdEFjdGl2YXRpb25zUmVxdWVzdCIfCh1MaXN0UGFja2FnZURlc2NyaXB0b3JzUmVxdWVzdCJQCh5MaXN0UGFja2FnZURlc2NyaXB0b3JzUmVzcG9uc2USLgoLZGVzY3JpcHRvcnMYASADKAsyGS5xdWl4b3MuUGFja2FnZURlc2NyaXB0b3IiHAoaTGlzdFBhY2thZ2VSdW50aW1lc1JlcXVlc3QiUgobTGlzdFBhY2thZ2VSdW50aW1lc1Jlc3BvbnNlEjMKCHJ1bnRpbWVzGAEgAygLMiEucXVpeG9zLm9yY2guUGFja2FnZVJ1bnRpbWVTdGF0dXMiRwoXTGlzdEFjdGl2YXRpb25zUmVzcG9uc2USLAoLYWN0aXZhdGlvbnMYASADKAsyFy5xdWl4b3Mub3JjaC5BY3RpdmF0aW9uIj8KFkNsb3NlQWN0aXZhdGlvblJlcXVlc3QSFQoNYWN0aXZhdGlvbl9pZBgBIAEoCRIOCgZyZWFzb24YAiABKAkiRgoXQ2xvc2VBY3RpdmF0aW9uUmVzcG9uc2USKwoKYWN0aXZhdGlvbhgBIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24i6wEKCkFjdGl2YXRpb24SFQoNYWN0aXZhdGlvbl9pZBgBIAEoCRIoCgZleHBvcnQYAiABKAsyGC5xdWl4b3MuUGFja2FnZUV4cG9ydFJlZhIRCglvYmplY3RfaWQYAyABKAkSDQoFc3RhdGUYBCABKAkSDgoGZGVtYW5kGAUgASgNEhEKCW9wZW5lZF9hdBgGIAEoCRIUCgxsYXN0X3VzZWRfYXQYByABKAkSGAoQaWRsZV9kZWFkbGluZV9hdBgIIAEoCRIRCgljbG9zZWRfYXQYCSABKAkSFAoMY2xvc2VfcmVhc29uGAogASgJIrMCChRQYWNrYWdlUnVudGltZVN0YXR1cxITCgtydW50aW1lX2tleRgBIAEoCRIbChNwYWNrYWdlX3JldmlzaW9uX2lkGAIgASgJEhkKEXNvdXJjZV9yZXBvc2l0b3J5GAMgASgJEhUKDXNvdXJjZV9jb21taXQYBCABKAkSFAoMYnVpbGRfdGFyZ2V0GAUgASgJEhMKC3NlcnZlcl9wYXRoGAYgASgJEgsKA3BpZBgHIAEoDRINCgVzdGF0ZRgIIAEoCRISCgpzdGFydGVkX2F0GAkgASgJEhkKEWxhc3RfaGFuZHNoYWtlX2F0GAogASgJEiAKGHJ1bnRpbWVfcHJvdG9jb2xfdmVyc2lvbhgLIAEoCRIfChdhZHZlcnRpc2VkX2V4cG9ydF9jb3VudBgMIAEoDTLPCQoTT3JjaGVzdHJhdG9yUnVudGltZRJNCgpUcnlDb25mb3JtEh4ucXVpeG9zLm9yY2guVHJ5Q29uZm9ybVJlcXVlc3QaHy5xdWl4b3Mub3JjaC5UcnlDb25mb3JtUmVzcG9uc2USXwoQSW52b2tlQ2FwYWJpbGl0eRIkLnF1aXhvcy5vcmNoLkludm9rZUNhcGFiaWxpdHlSZXF1ZXN0GiUucXVpeG9zLm9yY2guSW52b2tlQ2FwYWJpbGl0eVJlc3BvbnNlEmUKE0VkaXRDYXBhYmlsaXR5RmllbGQSJy5xdWl4b3Mub3JjaC5FZGl0Q2FwYWJpbGl0eUZpZWxkUmVxdWVzdBolLnF1aXhvcy5vcmNoLkludm9rZUNhcGFiaWxpdHlSZXNwb25zZRJpChVJbnZva2VDbGFzc0NhcGFiaWxpdHkSKS5xdWl4b3Mub3JjaC5JbnZva2VDbGFzc0NhcGFiaWxpdHlSZXF1ZXN0GiUucXVpeG9zLm9yY2guSW52b2tlQ2FwYWJpbGl0eVJlc3BvbnNlElsKD1dhdGNoQ2FwYWJpbGl0eRIjLnF1aXhvcy5vcmNoLldhdGNoQ2FwYWJpbGl0eVJlcXVlc3QaIS5xdWl4b3Mub3JjaC5XYXRjaENhcGFiaWxpdHlFdmVudDABElwKD0NvbnN0cnVjdE9iamVjdBIjLnF1aXhvcy5vcmNoLkNvbnN0cnVjdE9iamVjdFJlcXVlc3QaJC5xdWl4b3Mub3JjaC5Db25zdHJ1Y3RPYmplY3RSZXNwb25zZRKMAQofUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdBIzLnF1aXhvcy5vcmNoLlJlc29sdmVPckNvbnN0cnVjdFJlbGF0ZWRPYmplY3RSZXF1ZXN0GjQucXVpeG9zLm9yY2guUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdFJlc3BvbnNlElMKDEdldFdvcmtzcGFjZRIgLnF1aXhvcy5vcmNoLkdldFdvcmtzcGFjZVJlcXVlc3QaIS5xdWl4b3Mub3JjaC5HZXRXb3Jrc3BhY2VSZXNwb25zZRJxChZMaXN0UGFja2FnZURlc2NyaXB0b3JzEioucXVpeG9zLm9yY2guTGlzdFBhY2thZ2VEZXNjcmlwdG9yc1JlcXVlc3QaKy5xdWl4b3Mub3JjaC5MaXN0UGFja2FnZURlc2NyaXB0b3JzUmVzcG9uc2USaAoTTGlzdFBhY2thZ2VSdW50aW1lcxInLnF1aXhvcy5vcmNoLkxpc3RQYWNrYWdlUnVudGltZXNSZXF1ZXN0GigucXVpeG9zLm9yY2guTGlzdFBhY2thZ2VSdW50aW1lc1Jlc3BvbnNlElwKD0xpc3RBY3RpdmF0aW9ucxIjLnF1aXhvcy5vcmNoLkxpc3RBY3RpdmF0aW9uc1JlcXVlc3QaJC5xdWl4b3Mub3JjaC5MaXN0QWN0aXZhdGlvbnNSZXNwb25zZRJcCg9DbG9zZUFjdGl2YXRpb24SIy5xdWl4b3Mub3JjaC5DbG9zZUFjdGl2YXRpb25SZXF1ZXN0GiQucXVpeG9zLm9yY2guQ2xvc2VBY3RpdmF0aW9uUmVzcG9uc2ViBnByb3RvMw", [file_camino_api, file_quixos_package, file_quixos_refs, file_quixos_runtime]); + fileDesc("ChFxdWl4b3Mvb3JjaC5wcm90bxILcXVpeG9zLm9yY2gitwEKClF1ZXJ5RXZlbnQSDgoGcnVuX2lkGAEgASgJEhAKCHNlcXVlbmNlGAIgASgEEgwKBGtpbmQYAyABKAkSJwoIc25hcHNob3QYBCABKAsyFS5jYW1pbm8uUXVlcnlSZXNwb25zZRIjCgRwYXRoGAUgAygLMhUuY2FtaW5vLlF1ZXJ5UGF0aFBhcnQSHAoFdmFsdWUYBiABKAsyDS5jYW1pbm8uVmFsdWUSDQoFZXJyb3IYByABKAkiRQoRVHJ5Q29uZm9ybVJlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgCIAEoCSJFChJUcnlDb25mb3JtUmVzcG9uc2USLwoLY29uZm9ybWFuY2UYASABKAsyGi5xdWl4b3MuQ29uZm9ybWFuY2VXaXRuZXNzIqUBChZDb25zdHJ1Y3RPYmplY3RSZXF1ZXN0Eg8KB2F0b21faWQYASABKAkSPQoFaW5wdXQYAiADKAsyLi5xdWl4b3Mub3JjaC5Db25zdHJ1Y3RPYmplY3RSZXF1ZXN0LklucHV0RW50cnkaOwoKSW5wdXRFbnRyeRILCgNrZXkYASABKAkSHAoFdmFsdWUYAiABKAsyDS5jYW1pbm8uVmFsdWU6AjgBIj8KF0NvbnN0cnVjdE9iamVjdFJlc3BvbnNlEiQKBm9iamVjdBgBIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QibQomUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdFJlcXVlc3QSEQoJb2JqZWN0X2lkGAEgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgCIAEoCRIRCgltZW1iZXJfaWQYAyABKAkiZAonUmVzb2x2ZU9yQ29uc3RydWN0UmVsYXRlZE9iamVjdFJlc3BvbnNlEiQKBm9iamVjdBgBIAEoCzIULmNhbWluby5DYW1pbm9PYmplY3QSEwoLY29uc3RydWN0ZWQYAiABKAgi8AEKF0ludm9rZUNhcGFiaWxpdHlSZXF1ZXN0EikKCmNhcGFiaWxpdHkYASABKAsyFS5xdWl4b3MuQ2FwYWJpbGl0eVJlZhIRCglvYmplY3RfaWQYAiABKAkSPgoFaW5wdXQYAyADKAsyLy5xdWl4b3Mub3JjaC5JbnZva2VDYXBhYmlsaXR5UmVxdWVzdC5JbnB1dEVudHJ5EhoKEmNsaWVudF9tdXRhdGlvbl9pZBgEIAEoCRo7CgpJbnB1dEVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEizgEKHEludm9rZUNsYXNzQ2FwYWJpbGl0eVJlcXVlc3QSFgoOY29uZm9ybWFuY2VfaWQYASABKAkSFAoMb3BlcmF0aW9uX2lkGAIgASgJEkMKBWlucHV0GAMgAygLMjQucXVpeG9zLm9yY2guSW52b2tlQ2xhc3NDYXBhYmlsaXR5UmVxdWVzdC5JbnB1dEVudHJ5GjsKCklucHV0RW50cnkSCwoDa2V5GAEgASgJEhwKBXZhbHVlGAIgASgLMg0uY2FtaW5vLlZhbHVlOgI4ASKDAgoYSW52b2tlQ2FwYWJpbGl0eVJlc3BvbnNlEhUKDWludm9jYXRpb25faWQYASABKAkSKwoKYWN0aXZhdGlvbhgCIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24SCgoCb2sYAyABKAgSHQoGcmVzdWx0GAQgASgLMg0uY2FtaW5vLlZhbHVlEg0KBWVycm9yGAUgASgJEjcKDGRlcGVuZGVuY2llcxgGIAMoCzIhLnF1aXhvcy5ydW50aW1lLkRlcml2ZWREZXBlbmRlbmN5EjAKDWZpZWxkX2VkaXRpbmcYByABKAsyGS5xdWl4b3Mub3JjaC5GaWVsZEVkaXRpbmcidwoMRmllbGRFZGl0aW5nEhsKE2dldHRlcl9vcGVyYXRpb25faWQYASABKAkSGwoTc2V0dGVyX29wZXJhdGlvbl9pZBgCIAEoCRIVCg1kb2N1bWVudF90eXBlGAMgASgJEhYKDmJpbmRpbmdfZGlnZXN0GAQgASgJIs4BChpFZGl0Q2FwYWJpbGl0eUZpZWxkUmVxdWVzdBIpCgpjYXBhYmlsaXR5GAEgASgLMhUucXVpeG9zLkNhcGFiaWxpdHlSZWYSEQoJb2JqZWN0X2lkGAIgASgJEhsKE3NldHRlcl9vcGVyYXRpb25faWQYAyABKAkSFgoOYmluZGluZ19kaWdlc3QYBCABKAkSIQoGdXBkYXRlGAUgASgLMhEuY2FtaW5vLkNyZHRWYWx1ZRIaChJjbGllbnRfbXV0YXRpb25faWQYBiABKAki0gEKFldhdGNoQ2FwYWJpbGl0eVJlcXVlc3QSKQoKY2FwYWJpbGl0eRgBIAEoCzIVLnF1aXhvcy5DYXBhYmlsaXR5UmVmEhEKCW9iamVjdF9pZBgCIAEoCRI9CgVpbnB1dBgDIAMoCzIuLnF1aXhvcy5vcmNoLldhdGNoQ2FwYWJpbGl0eVJlcXVlc3QuSW5wdXRFbnRyeRo7CgpJbnB1dEVudHJ5EgsKA2tleRgBIAEoCRIcCgV2YWx1ZRgCIAEoCzINLmNhbWluby5WYWx1ZToCOAEilQIKFFdhdGNoQ2FwYWJpbGl0eUV2ZW50EhUKDWludm9jYXRpb25faWQYASABKAkSKwoKYWN0aXZhdGlvbhgCIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24SEAoId2F0Y2hfaWQYAyABKAkSHAoFdmFsdWUYBCABKAsyDS5jYW1pbm8uVmFsdWUSNwoMZGVwZW5kZW5jaWVzGAUgAygLMiEucXVpeG9zLnJ1bnRpbWUuRGVyaXZlZERlcGVuZGVuY3kSDQoFZXJyb3IYBiABKAkSDwoHaW5pdGlhbBgHIAEoCBIwCg1maWVsZF9lZGl0aW5nGAggASgLMhkucXVpeG9zLm9yY2guRmllbGRFZGl0aW5nIlsKE0dldFdvcmtzcGFjZVJlcXVlc3QSIwobaW5jbHVkZV9pbnRlcmZhY2VfY29udHJhY3RzGAEgASgIEh8KF2luY2x1ZGVfcXVlcnlfY29udHJhY3RzGAIgASgIIrsDChRHZXRXb3Jrc3BhY2VSZXNwb25zZRIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEhoKEnNvdXJjZV9yb290X2NvbW1pdBgDIAEoCRIqCiJlbXB0eV9pbnB1dF9jb25zdHJ1Y3RpYmxlX2F0b21faWRzGAQgAygJEj8KEWNhcGFiaWxpdHlfaW5wdXRzGAUgAygLMiQucXVpeG9zLm9yY2guQ2FwYWJpbGl0eUlucHV0Q29udHJhY3QSQQoSY29uc3RydWN0b3JfaW5wdXRzGAYgAygLMiUucXVpeG9zLm9yY2guQ29uc3RydWN0b3JJbnB1dENvbnRyYWN0EhcKD2ludGVyZmFjZXNfanNvbhgHIAEoCRI4ChJjbGFzc19jYXBhYmlsaXRpZXMYCCADKAsyHC5xdWl4b3Mub3JjaC5DbGFzc0NhcGFiaWxpdHkSLgoHcXVlcmllcxgJIAMoCzIdLnF1aXhvcy5vcmNoLlF1ZXJ5RGVzY3JpcHRpb24SHwoXYWN0aXZlX3F1ZXJ5X2V4ZWN1dGlvbnMYCiABKA0ivQEKEFF1ZXJ5RGVzY3JpcHRpb24SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIbChNwYWNrYWdlX3JldmlzaW9uX2lkGAMgASgJEhAKCGRvY3VtZW50GAQgASgJEg4KBnNjaGVtYRgFIAEoCRIUCgxzb3VyY2VfZmlsZXMYBiADKAkSFAoMZWZmZWN0c19qc29uGAcgASgJEiQKBHBsYW4YCCABKAsyFi5jYW1pbm8uSW5zdGFsbGVkUXVlcnkiuQEKD0NsYXNzQ2FwYWJpbGl0eRIWCg5jb25mb3JtYW5jZV9pZBgBIAEoCRIPCgdhdG9tX2lkGAIgASgJEh0KFWludGVyZmFjZV9yZXZpc2lvbl9pZBgDIAEoCRIVCg1kZWZpbml0aW9uX2lkGAQgASgJEhQKDG9wZXJhdGlvbl9pZBgFIAEoCRIXCg9pbnB1dF90eXBlX2pzb24YBiABKAkSGAoQb3V0cHV0X3R5cGVfanNvbhgHIAEoCSJhChdDYXBhYmlsaXR5SW5wdXRDb250cmFjdBIdChVpbnRlcmZhY2VfcmV2aXNpb25faWQYASABKAkSFAoMb3BlcmF0aW9uX2lkGAIgASgJEhEKCXR5cGVfanNvbhgDIAEoCSI+ChhDb25zdHJ1Y3RvcklucHV0Q29udHJhY3QSDwoHYXRvbV9pZBgBIAEoCRIRCgl0eXBlX2pzb24YAiABKAkiGAoWTGlzdEFjdGl2YXRpb25zUmVxdWVzdCIfCh1MaXN0UGFja2FnZURlc2NyaXB0b3JzUmVxdWVzdCJQCh5MaXN0UGFja2FnZURlc2NyaXB0b3JzUmVzcG9uc2USLgoLZGVzY3JpcHRvcnMYASADKAsyGS5xdWl4b3MuUGFja2FnZURlc2NyaXB0b3IiHAoaTGlzdFBhY2thZ2VSdW50aW1lc1JlcXVlc3QiUgobTGlzdFBhY2thZ2VSdW50aW1lc1Jlc3BvbnNlEjMKCHJ1bnRpbWVzGAEgAygLMiEucXVpeG9zLm9yY2guUGFja2FnZVJ1bnRpbWVTdGF0dXMiRwoXTGlzdEFjdGl2YXRpb25zUmVzcG9uc2USLAoLYWN0aXZhdGlvbnMYASADKAsyFy5xdWl4b3Mub3JjaC5BY3RpdmF0aW9uIj8KFkNsb3NlQWN0aXZhdGlvblJlcXVlc3QSFQoNYWN0aXZhdGlvbl9pZBgBIAEoCRIOCgZyZWFzb24YAiABKAkiRgoXQ2xvc2VBY3RpdmF0aW9uUmVzcG9uc2USKwoKYWN0aXZhdGlvbhgBIAEoCzIXLnF1aXhvcy5vcmNoLkFjdGl2YXRpb24i6wEKCkFjdGl2YXRpb24SFQoNYWN0aXZhdGlvbl9pZBgBIAEoCRIoCgZleHBvcnQYAiABKAsyGC5xdWl4b3MuUGFja2FnZUV4cG9ydFJlZhIRCglvYmplY3RfaWQYAyABKAkSDQoFc3RhdGUYBCABKAkSDgoGZGVtYW5kGAUgASgNEhEKCW9wZW5lZF9hdBgGIAEoCRIUCgxsYXN0X3VzZWRfYXQYByABKAkSGAoQaWRsZV9kZWFkbGluZV9hdBgIIAEoCRIRCgljbG9zZWRfYXQYCSABKAkSFAoMY2xvc2VfcmVhc29uGAogASgJIrMCChRQYWNrYWdlUnVudGltZVN0YXR1cxITCgtydW50aW1lX2tleRgBIAEoCRIbChNwYWNrYWdlX3JldmlzaW9uX2lkGAIgASgJEhkKEXNvdXJjZV9yZXBvc2l0b3J5GAMgASgJEhUKDXNvdXJjZV9jb21taXQYBCABKAkSFAoMYnVpbGRfdGFyZ2V0GAUgASgJEhMKC3NlcnZlcl9wYXRoGAYgASgJEgsKA3BpZBgHIAEoDRINCgVzdGF0ZRgIIAEoCRISCgpzdGFydGVkX2F0GAkgASgJEhkKEWxhc3RfaGFuZHNoYWtlX2F0GAogASgJEiAKGHJ1bnRpbWVfcHJvdG9jb2xfdmVyc2lvbhgLIAEoCRIfChdhZHZlcnRpc2VkX2V4cG9ydF9jb3VudBgMIAEoDTLLCgoTT3JjaGVzdHJhdG9yUnVudGltZRI7CgxFeGVjdXRlUXVlcnkSFC5jYW1pbm8uUXVlcnlSZXF1ZXN0GhUuY2FtaW5vLlF1ZXJ5UmVzcG9uc2USPQoKV2F0Y2hRdWVyeRIULmNhbWluby5RdWVyeVJlcXVlc3QaFy5xdWl4b3Mub3JjaC5RdWVyeUV2ZW50MAESTQoKVHJ5Q29uZm9ybRIeLnF1aXhvcy5vcmNoLlRyeUNvbmZvcm1SZXF1ZXN0Gh8ucXVpeG9zLm9yY2guVHJ5Q29uZm9ybVJlc3BvbnNlEl8KEEludm9rZUNhcGFiaWxpdHkSJC5xdWl4b3Mub3JjaC5JbnZva2VDYXBhYmlsaXR5UmVxdWVzdBolLnF1aXhvcy5vcmNoLkludm9rZUNhcGFiaWxpdHlSZXNwb25zZRJlChNFZGl0Q2FwYWJpbGl0eUZpZWxkEicucXVpeG9zLm9yY2guRWRpdENhcGFiaWxpdHlGaWVsZFJlcXVlc3QaJS5xdWl4b3Mub3JjaC5JbnZva2VDYXBhYmlsaXR5UmVzcG9uc2USaQoVSW52b2tlQ2xhc3NDYXBhYmlsaXR5EikucXVpeG9zLm9yY2guSW52b2tlQ2xhc3NDYXBhYmlsaXR5UmVxdWVzdBolLnF1aXhvcy5vcmNoLkludm9rZUNhcGFiaWxpdHlSZXNwb25zZRJbCg9XYXRjaENhcGFiaWxpdHkSIy5xdWl4b3Mub3JjaC5XYXRjaENhcGFiaWxpdHlSZXF1ZXN0GiEucXVpeG9zLm9yY2guV2F0Y2hDYXBhYmlsaXR5RXZlbnQwARJcCg9Db25zdHJ1Y3RPYmplY3QSIy5xdWl4b3Mub3JjaC5Db25zdHJ1Y3RPYmplY3RSZXF1ZXN0GiQucXVpeG9zLm9yY2guQ29uc3RydWN0T2JqZWN0UmVzcG9uc2USjAEKH1Jlc29sdmVPckNvbnN0cnVjdFJlbGF0ZWRPYmplY3QSMy5xdWl4b3Mub3JjaC5SZXNvbHZlT3JDb25zdHJ1Y3RSZWxhdGVkT2JqZWN0UmVxdWVzdBo0LnF1aXhvcy5vcmNoLlJlc29sdmVPckNvbnN0cnVjdFJlbGF0ZWRPYmplY3RSZXNwb25zZRJTCgxHZXRXb3Jrc3BhY2USIC5xdWl4b3Mub3JjaC5HZXRXb3Jrc3BhY2VSZXF1ZXN0GiEucXVpeG9zLm9yY2guR2V0V29ya3NwYWNlUmVzcG9uc2UScQoWTGlzdFBhY2thZ2VEZXNjcmlwdG9ycxIqLnF1aXhvcy5vcmNoLkxpc3RQYWNrYWdlRGVzY3JpcHRvcnNSZXF1ZXN0GisucXVpeG9zLm9yY2guTGlzdFBhY2thZ2VEZXNjcmlwdG9yc1Jlc3BvbnNlEmgKE0xpc3RQYWNrYWdlUnVudGltZXMSJy5xdWl4b3Mub3JjaC5MaXN0UGFja2FnZVJ1bnRpbWVzUmVxdWVzdBooLnF1aXhvcy5vcmNoLkxpc3RQYWNrYWdlUnVudGltZXNSZXNwb25zZRJcCg9MaXN0QWN0aXZhdGlvbnMSIy5xdWl4b3Mub3JjaC5MaXN0QWN0aXZhdGlvbnNSZXF1ZXN0GiQucXVpeG9zLm9yY2guTGlzdEFjdGl2YXRpb25zUmVzcG9uc2USXAoPQ2xvc2VBY3RpdmF0aW9uEiMucXVpeG9zLm9yY2guQ2xvc2VBY3RpdmF0aW9uUmVxdWVzdBokLnF1aXhvcy5vcmNoLkNsb3NlQWN0aXZhdGlvblJlc3BvbnNlYgZwcm90bzM", [file_camino_api, file_camino_schema, file_quixos_package, file_quixos_refs, file_quixos_runtime]); + +/** + * @generated from message quixos.orch.QueryEvent + */ +export type QueryEvent = Message<"quixos.orch.QueryEvent"> & { + /** + * @generated from field: string run_id = 1; + */ + runId: string; + + /** + * @generated from field: uint64 sequence = 2; + */ + sequence: bigint; + + /** + * @generated from field: string kind = 3; + */ + kind: string; + + /** + * @generated from field: camino.QueryResponse snapshot = 4; + */ + snapshot?: QueryResponse | undefined; + + /** + * @generated from field: repeated camino.QueryPathPart path = 5; + */ + path: QueryPathPart[]; + + /** + * @generated from field: camino.Value value = 6; + */ + value?: Value | undefined; + + /** + * @generated from field: string error = 7; + */ + error: string; +}; + +/** + * Describes the message quixos.orch.QueryEvent. + * Use `create(QueryEventSchema)` to create a new message. + */ +export const QueryEventSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_quixos_orch, 0); /** * Exact closed interface lookup; no policy selection or competing conformances. @@ -42,7 +91,7 @@ export type TryConformRequest = Message<"quixos.orch.TryConformRequest"> & { * Use `create(TryConformRequestSchema)` to create a new message. */ export const TryConformRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 0); + messageDesc(file_quixos_orch, 1); /** * @generated from message quixos.orch.TryConformResponse @@ -61,7 +110,7 @@ export type TryConformResponse = Message<"quixos.orch.TryConformResponse"> & { * Use `create(TryConformResponseSchema)` to create a new message. */ export const TryConformResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 1); + messageDesc(file_quixos_orch, 2); /** * @generated from message quixos.orch.ConstructObjectRequest @@ -83,7 +132,7 @@ export type ConstructObjectRequest = Message<"quixos.orch.ConstructObjectRequest * Use `create(ConstructObjectRequestSchema)` to create a new message. */ export const ConstructObjectRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 2); + messageDesc(file_quixos_orch, 3); /** * @generated from message quixos.orch.ConstructObjectResponse @@ -100,7 +149,7 @@ export type ConstructObjectResponse = Message<"quixos.orch.ConstructObjectRespon * Use `create(ConstructObjectResponseSchema)` to create a new message. */ export const ConstructObjectResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 3); + messageDesc(file_quixos_orch, 4); /** * @generated from message quixos.orch.ResolveOrConstructRelatedObjectRequest @@ -127,7 +176,7 @@ export type ResolveOrConstructRelatedObjectRequest = Message<"quixos.orch.Resolv * Use `create(ResolveOrConstructRelatedObjectRequestSchema)` to create a new message. */ export const ResolveOrConstructRelatedObjectRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 4); + messageDesc(file_quixos_orch, 5); /** * @generated from message quixos.orch.ResolveOrConstructRelatedObjectResponse @@ -149,7 +198,7 @@ export type ResolveOrConstructRelatedObjectResponse = Message<"quixos.orch.Resol * Use `create(ResolveOrConstructRelatedObjectResponseSchema)` to create a new message. */ export const ResolveOrConstructRelatedObjectResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 5); + messageDesc(file_quixos_orch, 6); /** * @generated from message quixos.orch.InvokeCapabilityRequest @@ -184,7 +233,7 @@ export type InvokeCapabilityRequest = Message<"quixos.orch.InvokeCapabilityReque * Use `create(InvokeCapabilityRequestSchema)` to create a new message. */ export const InvokeCapabilityRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 6); + messageDesc(file_quixos_orch, 7); /** * @generated from message quixos.orch.InvokeClassCapabilityRequest @@ -211,7 +260,7 @@ export type InvokeClassCapabilityRequest = Message<"quixos.orch.InvokeClassCapab * Use `create(InvokeClassCapabilityRequestSchema)` to create a new message. */ export const InvokeClassCapabilityRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 7); + messageDesc(file_quixos_orch, 8); /** * @generated from message quixos.orch.InvokeCapabilityResponse @@ -258,7 +307,7 @@ export type InvokeCapabilityResponse = Message<"quixos.orch.InvokeCapabilityResp * Use `create(InvokeCapabilityResponseSchema)` to create a new message. */ export const InvokeCapabilityResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 8); + messageDesc(file_quixos_orch, 9); /** * Resolved from the checked native getter/setter binding, not Value.source. @@ -292,7 +341,7 @@ export type FieldEditing = Message<"quixos.orch.FieldEditing"> & { * Use `create(FieldEditingSchema)` to create a new message. */ export const FieldEditingSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 9); + messageDesc(file_quixos_orch, 10); /** * @generated from message quixos.orch.EditCapabilityFieldRequest @@ -336,7 +385,7 @@ export type EditCapabilityFieldRequest = Message<"quixos.orch.EditCapabilityFiel * Use `create(EditCapabilityFieldRequestSchema)` to create a new message. */ export const EditCapabilityFieldRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 10); + messageDesc(file_quixos_orch, 11); /** * @generated from message quixos.orch.WatchCapabilityRequest @@ -363,7 +412,7 @@ export type WatchCapabilityRequest = Message<"quixos.orch.WatchCapabilityRequest * Use `create(WatchCapabilityRequestSchema)` to create a new message. */ export const WatchCapabilityRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 11); + messageDesc(file_quixos_orch, 12); /** * @generated from message quixos.orch.WatchCapabilityEvent @@ -415,7 +464,7 @@ export type WatchCapabilityEvent = Message<"quixos.orch.WatchCapabilityEvent"> & * Use `create(WatchCapabilityEventSchema)` to create a new message. */ export const WatchCapabilityEventSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 12); + messageDesc(file_quixos_orch, 13); /** * @generated from message quixos.orch.GetWorkspaceRequest @@ -427,6 +476,11 @@ export type GetWorkspaceRequest = Message<"quixos.orch.GetWorkspaceRequest"> & { * @generated from field: bool include_interface_contracts = 1; */ includeInterfaceContracts: boolean; + + /** + * @generated from field: bool include_query_contracts = 2; + */ + includeQueryContracts: boolean; }; /** @@ -434,7 +488,7 @@ export type GetWorkspaceRequest = Message<"quixos.orch.GetWorkspaceRequest"> & { * Use `create(GetWorkspaceRequestSchema)` to create a new message. */ export const GetWorkspaceRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 13); + messageDesc(file_quixos_orch, 14); /** * @generated from message quixos.orch.GetWorkspaceResponse @@ -484,6 +538,16 @@ export type GetWorkspaceResponse = Message<"quixos.orch.GetWorkspaceResponse"> & * @generated from field: repeated quixos.orch.ClassCapability class_capabilities = 8; */ classCapabilities: ClassCapability[]; + + /** + * @generated from field: repeated quixos.orch.QueryDescription queries = 9; + */ + queries: QueryDescription[]; + + /** + * @generated from field: uint32 active_query_executions = 10; + */ + activeQueryExecutions: number; }; /** @@ -491,7 +555,59 @@ export type GetWorkspaceResponse = Message<"quixos.orch.GetWorkspaceResponse"> & * Use `create(GetWorkspaceResponseSchema)` to create a new message. */ export const GetWorkspaceResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 14); + messageDesc(file_quixos_orch, 15); + +/** + * @generated from message quixos.orch.QueryDescription + */ +export type QueryDescription = Message<"quixos.orch.QueryDescription"> & { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string name = 2; + */ + name: string; + + /** + * @generated from field: string package_revision_id = 3; + */ + packageRevisionId: string; + + /** + * @generated from field: string document = 4; + */ + document: string; + + /** + * @generated from field: string schema = 5; + */ + schema: string; + + /** + * @generated from field: repeated string source_files = 6; + */ + sourceFiles: string[]; + + /** + * @generated from field: string effects_json = 7; + */ + effectsJson: string; + + /** + * @generated from field: camino.InstalledQuery plan = 8; + */ + plan?: InstalledQuery | undefined; +}; + +/** + * Describes the message quixos.orch.QueryDescription. + * Use `create(QueryDescriptionSchema)` to create a new message. + */ +export const QueryDescriptionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_quixos_orch, 16); /** * @generated from message quixos.orch.ClassCapability @@ -538,7 +654,7 @@ export type ClassCapability = Message<"quixos.orch.ClassCapability"> & { * Use `create(ClassCapabilitySchema)` to create a new message. */ export const ClassCapabilitySchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 15); + messageDesc(file_quixos_orch, 17); /** * @generated from message quixos.orch.CapabilityInputContract @@ -565,7 +681,7 @@ export type CapabilityInputContract = Message<"quixos.orch.CapabilityInputContra * Use `create(CapabilityInputContractSchema)` to create a new message. */ export const CapabilityInputContractSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 16); + messageDesc(file_quixos_orch, 18); /** * @generated from message quixos.orch.ConstructorInputContract @@ -587,7 +703,7 @@ export type ConstructorInputContract = Message<"quixos.orch.ConstructorInputCont * Use `create(ConstructorInputContractSchema)` to create a new message. */ export const ConstructorInputContractSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 17); + messageDesc(file_quixos_orch, 19); /** * @generated from message quixos.orch.ListActivationsRequest @@ -600,7 +716,7 @@ export type ListActivationsRequest = Message<"quixos.orch.ListActivationsRequest * Use `create(ListActivationsRequestSchema)` to create a new message. */ export const ListActivationsRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 18); + messageDesc(file_quixos_orch, 20); /** * @generated from message quixos.orch.ListPackageDescriptorsRequest @@ -613,7 +729,7 @@ export type ListPackageDescriptorsRequest = Message<"quixos.orch.ListPackageDesc * Use `create(ListPackageDescriptorsRequestSchema)` to create a new message. */ export const ListPackageDescriptorsRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 19); + messageDesc(file_quixos_orch, 21); /** * @generated from message quixos.orch.ListPackageDescriptorsResponse @@ -630,7 +746,7 @@ export type ListPackageDescriptorsResponse = Message<"quixos.orch.ListPackageDes * Use `create(ListPackageDescriptorsResponseSchema)` to create a new message. */ export const ListPackageDescriptorsResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 20); + messageDesc(file_quixos_orch, 22); /** * @generated from message quixos.orch.ListPackageRuntimesRequest @@ -643,7 +759,7 @@ export type ListPackageRuntimesRequest = Message<"quixos.orch.ListPackageRuntime * Use `create(ListPackageRuntimesRequestSchema)` to create a new message. */ export const ListPackageRuntimesRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 21); + messageDesc(file_quixos_orch, 23); /** * @generated from message quixos.orch.ListPackageRuntimesResponse @@ -660,7 +776,7 @@ export type ListPackageRuntimesResponse = Message<"quixos.orch.ListPackageRuntim * Use `create(ListPackageRuntimesResponseSchema)` to create a new message. */ export const ListPackageRuntimesResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 22); + messageDesc(file_quixos_orch, 24); /** * @generated from message quixos.orch.ListActivationsResponse @@ -677,7 +793,7 @@ export type ListActivationsResponse = Message<"quixos.orch.ListActivationsRespon * Use `create(ListActivationsResponseSchema)` to create a new message. */ export const ListActivationsResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 23); + messageDesc(file_quixos_orch, 25); /** * @generated from message quixos.orch.CloseActivationRequest @@ -699,7 +815,7 @@ export type CloseActivationRequest = Message<"quixos.orch.CloseActivationRequest * Use `create(CloseActivationRequestSchema)` to create a new message. */ export const CloseActivationRequestSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 24); + messageDesc(file_quixos_orch, 26); /** * @generated from message quixos.orch.CloseActivationResponse @@ -716,7 +832,7 @@ export type CloseActivationResponse = Message<"quixos.orch.CloseActivationRespon * Use `create(CloseActivationResponseSchema)` to create a new message. */ export const CloseActivationResponseSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 25); + messageDesc(file_quixos_orch, 27); /** * @generated from message quixos.orch.Activation @@ -778,7 +894,7 @@ export type Activation = Message<"quixos.orch.Activation"> & { * Use `create(ActivationSchema)` to create a new message. */ export const ActivationSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 26); + messageDesc(file_quixos_orch, 28); /** * @generated from message quixos.orch.PackageRuntimeStatus @@ -850,12 +966,28 @@ export type PackageRuntimeStatus = Message<"quixos.orch.PackageRuntimeStatus"> & * Use `create(PackageRuntimeStatusSchema)` to create a new message. */ export const PackageRuntimeStatusSchema: GenMessage = /*@__PURE__*/ - messageDesc(file_quixos_orch, 27); + messageDesc(file_quixos_orch, 29); /** * @generated from service quixos.orch.OrchestratorRuntime */ export const OrchestratorRuntime: GenService<{ + /** + * @generated from rpc quixos.orch.OrchestratorRuntime.ExecuteQuery + */ + executeQuery: { + methodKind: "unary"; + input: typeof QueryRequestSchema; + output: typeof QueryResponseSchema; + }, + /** + * @generated from rpc quixos.orch.OrchestratorRuntime.WatchQuery + */ + watchQuery: { + methodKind: "server_streaming"; + input: typeof QueryRequestSchema; + output: typeof QueryEventSchema; + }, /** * @generated from rpc quixos.orch.OrchestratorRuntime.TryConform */ diff --git a/src/gen/quixos/refs_pb.ts b/src/gen/quixos/refs_pb.ts index 28dea6c..f6e0675 100644 --- a/src/gen/quixos/refs_pb.ts +++ b/src/gen/quixos/refs_pb.ts @@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file quixos/refs.proto. */ export const file_quixos_refs: GenFile = /*@__PURE__*/ - fileDesc("ChFxdWl4b3MvcmVmcy5wcm90bxIGcXVpeG9zInUKDUNhcGFiaWxpdHlSZWYSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAEgASgJEhQKDG9wZXJhdGlvbl9pZBgCIAEoCRIvCgtjb25mb3JtYW5jZRgDIAEoCzIaLnF1aXhvcy5Db25mb3JtYW5jZVdpdG5lc3MilgEKEkNvbmZvcm1hbmNlV2l0bmVzcxIRCglvYmplY3RfaWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJEh0KFXdvcmtzcGFjZV9yZXZpc2lvbl9pZBgEIAEoCRIXCg93b3Jrc3BhY2VfZXBvY2gYBSABKAkiQgoQUGFja2FnZUV4cG9ydFJlZhIbChNwYWNrYWdlX3JldmlzaW9uX2lkGAEgASgJEhEKCWV4cG9ydF9pZBgCIAEoCSLEAQoSSW5qZWN0ZWREZXBlbmRlbmN5Eg8KB3BvcnRfaWQYASABKAkSFwoNc3RhdGVfc2xvdF9pZBgCIAEoCUgAEiYKBGVkZ2UYAyABKAsyFi5xdWl4b3MuRWRnZURlcGVuZGVuY3lIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYBCABKAlIABIdChNjb25zdHJ1Y3Rvcl9hdG9tX2lkGAUgASgJSAASEQoJb2JqZWN0X2lkGAYgASgJQgkKB2JpbmRpbmciPQoORWRnZURlcGVuZGVuY3kSFAoMZWRnZV90eXBlX2lkGAEgASgJEhUKDXByb2plY3Rpb25faWQYAiABKAliBnByb3RvMw"); + fileDesc("ChFxdWl4b3MvcmVmcy5wcm90bxIGcXVpeG9zInUKDUNhcGFiaWxpdHlSZWYSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAEgASgJEhQKDG9wZXJhdGlvbl9pZBgCIAEoCRIvCgtjb25mb3JtYW5jZRgDIAEoCzIaLnF1aXhvcy5Db25mb3JtYW5jZVdpdG5lc3MilgEKEkNvbmZvcm1hbmNlV2l0bmVzcxIRCglvYmplY3RfaWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJEh0KFXdvcmtzcGFjZV9yZXZpc2lvbl9pZBgEIAEoCRIXCg93b3Jrc3BhY2VfZXBvY2gYBSABKAkiQgoQUGFja2FnZUV4cG9ydFJlZhIbChNwYWNrYWdlX3JldmlzaW9uX2lkGAEgASgJEhEKCWV4cG9ydF9pZBgCIAEoCSLYAQoSSW5qZWN0ZWREZXBlbmRlbmN5Eg8KB3BvcnRfaWQYASABKAkSFwoNc3RhdGVfc2xvdF9pZBgCIAEoCUgAEiYKBGVkZ2UYAyABKAsyFi5xdWl4b3MuRWRnZURlcGVuZGVuY3lIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYBCABKAlIABIdChNjb25zdHJ1Y3Rvcl9hdG9tX2lkGAUgASgJSAASEgoIcXVlcnlfaWQYByABKAlIABIRCglvYmplY3RfaWQYBiABKAlCCQoHYmluZGluZyI9Cg5FZGdlRGVwZW5kZW5jeRIUCgxlZGdlX3R5cGVfaWQYASABKAkSFQoNcHJvamVjdGlvbl9pZBgCIAEoCWIGcHJvdG8z"); /** * @generated from message quixos.CapabilityRef @@ -136,6 +136,12 @@ export type InjectedDependency = Message<"quixos.InjectedDependency"> & { */ value: string; case: "constructorAtomId"; + } | { + /** + * @generated from field: string query_id = 7; + */ + value: string; + case: "queryId"; } | { case: undefined; value?: undefined }; /** diff --git a/src/query/compile.ts b/src/query/compile.ts new file mode 100644 index 0000000..752c130 --- /dev/null +++ b/src/query/compile.ts @@ -0,0 +1,433 @@ +import { + parse, + Source, + validate, + specifiedRules, + print, + printSchema, + visit, + TypeInfo, + visitWithTypeInfo, + getNamedType, + isNonNullType, + isListType, + isObjectType, + isInputObjectType, + isScalarType, + isEnumType, + typeFromAST, + type GraphQLType, + type SelectionSetNode, + type FragmentDefinitionNode, + type ValueNode, + type ASTNode, + type DocumentNode, + type DirectiveNode, +} from "graphql"; +import { createHash } from "node:crypto"; +import { canonicalJson } from "../capability-model/evolution.js"; +import { readRepositorySource } from "../capability-language/source-loader.js"; +import { + valueType, + type InterfaceRevision, + type ValueType, + type InterfaceRevisionId, +} from "../capability-model/types.js"; +import { querySchema } from "./schema.js"; +import { + QueryCompileError, + type QueryDeclaration, + type CheckedQuery, + type QueryFieldEffect, + type QueryUse, + type QueryArgument, + type QuerySelection, +} from "./types.js"; + +const fail = (code: string, message: string, node?: ASTNode): never => { + const token = node?.loc?.startToken; + throw new QueryCompileError( + code, + message, + token + ? { + file: node!.loc!.source.name, + line: token.line, + column: token.column, + } + : undefined, + ); +}; +const shapeScalar = (name: string): ValueType => { + switch (name) { + case "Boolean": + return valueType.bool; + case "Int": + return valueType.int32; + case "Int64": + return valueType.int64; + case "UInt32": + return valueType.uint32; + case "UInt64": + return valueType.uint64; + case "Float": + return valueType.double; + case "Bytes": + return valueType.bytes; + default: + return valueType.string; + } +}; + +/** Only immutable repository sources call this. Runtime requests never compile documents. */ +export async function compileQuery( + declaration: QueryDeclaration, + interfaces: readonly InterfaceRevision[], + read: (name: string) => Promise, +): Promise { + const paths = [declaration.document, ...declaration.fragments]; + if (paths.length > 128 || new Set(paths).size !== paths.length) + fail("QUERY_SOURCE_LIMIT", "Query files must be distinct and bounded to 128"); + const definitions: DocumentNode["definitions"][number][] = []; + let totalBytes = 0; + for (const path of paths) { + if ( + !path.endsWith(".graphql") || + path.startsWith("/") || + path.split(/[\\/]/).some((part) => !part || part === "." || part === "..") + ) + fail("QUERY_SOURCE_PATH", `Invalid query source path ${path}`); + const text = await read(path); + totalBytes += Buffer.byteLength(text); + if (totalBytes > 262144) fail("QUERY_SOURCE_LIMIT", "Query sources exceed 256 KiB"); + const document = parse(new Source(text, path), { maxTokens: 10000 }); + definitions.push(...document.definitions); + } + const document: DocumentNode = { kind: "Document" as DocumentNode["kind"], definitions }; + const generated = querySchema(declaration, interfaces); + const operations = definitions.filter((entry) => entry.kind === "OperationDefinition"); + if ( + operations.length !== 1 || + operations[0]!.operation !== "query" || + operations[0]!.name?.value !== declaration.operation + ) + fail("QUERY_UNSUPPORTED_FEATURE", "Exactly one named query matching the declaration is required"); + visit(document, { + Field(node) { + if (node.name.value.startsWith("__")) fail("QUERY_UNSUPPORTED_FEATURE", "Introspection is not supported", node); + }, + Directive(node) { + if (!["include", "skip"].includes(node.name.value)) + fail("QUERY_UNSUPPORTED_FEATURE", `Unsupported directive ${node.name.value}`, node); + }, + InlineFragment(node) { + fail("QUERY_UNSUPPORTED_FEATURE", "Use named fragments on the exact selected type", node); + }, + }); + const errors = validate(generated.schema, document, specifiedRules, { maxErrors: 20 }); + if (errors.length) { + const error = errors[0]!; + fail("QUERY_VALIDATION", error.message, error.nodes?.[0]); + } + const effects = new Map(); + const mark = (id: InterfaceRevisionId, name: string, use: QueryUse, node: ASTNode) => { + const contract = generated.contracts.get(id)!; + const member = contract.members.find((entry) => entry.displayName === name); + if (!member || member.kind === "operation" || !member.queryRead) + return fail("QUERY_FIELD_NOT_QUERYABLE", `${contract.displayName}.${name} is not queryable`, node); + const key = `${id}\0${member.id}`; + const effect = effects.get(key) ?? { + interfaceRevisionId: id, + memberId: member.id, + uses: [], + execution: member.queryRead.execution, + }; + if (!effect.uses.includes(use)) effect.uses.push(use); + effects.set(key, effect); + if ( + effect.execution === "rpc-permitted" && + !declaration.allowances.some( + (allow) => + allow.interfaceRevisionId === id && + allow.memberId === member.id && + allow.uses.includes(use) && + allow.reason.trim(), + ) + ) + fail("QUERY_RPC_CONSUMER_REASON", `${contract.displayName}.${name} needs an allowance for ${use}`, node); + if ( + declaration.watch && + effect.execution === "rpc-permitted" && + !declaration.polling && + !member.operations.some((op) => op.displayName === "watch-start") + ) + fail( + "QUERY_WATCH_UNSUPPORTED", + `${contract.displayName}.${name} has no watch; explicitly acknowledge polling or use a one-shot query`, + node, + ); + }; + const inputEffects = (id: InterfaceRevisionId, value: ValueNode, use: "predicate" | "order") => { + if (value.kind === "Variable") { + // A dynamic filter may name any field in its declared input type. + for (const member of generated.contracts.get(id)!.members) + if (member.kind === "value" && member.queryRead) mark(id, member.displayName, use, value); + } else if (value.kind === "ListValue") value.values.forEach((child) => inputEffects(id, child, use)); + else if (value.kind === "ObjectValue") + for (const field of value.fields) { + if (use === "predicate" && ["and", "or", "not"].includes(field.name.value)) inputEffects(id, field.value, use); + else mark(id, field.name.value, use, field); + } + }; + const info = new TypeInfo(generated.schema); + let hasContinuation = false; + visit( + document, + visitWithTypeInfo(info, { + Field(node) { + const parent = info.getParentType(); + const contract = parent && generated.byName.get(parent.name); + if (!contract || node.name.value === "_qx") return; + mark(contract.revisionId, node.name.value, "select", node); + const member = contract.members.find((entry) => entry.displayName === node.name.value)!; + if (member.kind !== "relationship" || (member.cardinality !== "many" && member.cardinality !== "many-unique")) + return; + const target = generated.target(member); + const bounds = (node.arguments ?? []).filter( + (argument) => argument.name.value === "first" || argument.name.value === "all", + ); + if (bounds.length !== 1) fail("QUERY_ROW_LIMIT", "Specify exactly one of first or all", node); + if (bounds[0]!.name.value === "all" && node.arguments?.some((argument) => argument.name.value === "after")) + fail("QUERY_UNSUPPORTED_FEATURE", "Bounded-all does not accept a continuation", node); + for (const argument of node.arguments ?? []) { + if (argument.name.value === "where") inputEffects(target, argument.value, "predicate"); + if (argument.name.value === "orderBy") inputEffects(target, argument.value, "order"); + if (argument.name.value === "after") hasContinuation = true; + if ( + ["first", "all"].includes(argument.name.value) && + argument.value.kind !== "Variable" && + (argument.value.kind !== "IntValue" || + Number(argument.value.value) < 1 || + Number(argument.value.value) > declaration.budgets.rows) + ) + fail( + "QUERY_ROW_LIMIT", + `${argument.name.value} must be between 1 and ${declaration.budgets.rows}`, + argument, + ); + } + }, + FragmentSpread(node) { + const fragment = definitions.find( + (entry) => entry.kind === "FragmentDefinition" && entry.name.value === node.name.value, + ) as FragmentDefinitionNode; + if (fragment.typeCondition.name.value !== info.getParentType()?.name) + fail("QUERY_UNSUPPORTED_FEATURE", "Fragments must select the exact current type", node); + }, + }), + ); + if ( + hasContinuation && + [...effects.values()].some( + (effect) => effect.execution === "rpc-permitted" && effect.uses.some((use) => use !== "select"), + ) + ) + fail("QUERY_UNSUPPORTED_FEATURE", "RPC predicates/order support bounded first windows, not continuation"); + const fragments = new Map( + definitions + .filter((entry): entry is FragmentDefinitionNode => entry.kind === "FragmentDefinition") + .map((entry) => [entry.name.value, entry]), + ); + let expandedFields = 0; + // GraphQL merges repeated response keys. In particular, fragments may each + // contribute different children of one relationship; last-write-wins would + // silently remove fields from both the generated type and the wire codec. + const mergeOutput = (left: ValueType, right: ValueType): ValueType => { + const a = left.kind === "optional" ? left.value : left; + const b = right.kind === "optional" ? right.value : right; + let result = a; + if (a.kind === "record" && b.kind === "record") { + const fields = { ...a.fields }; + for (const [key, type] of Object.entries(b.fields)) + fields[key] = fields[key] ? mergeOutput(fields[key], type) : type; + result = { kind: "record", fields }; + } else if (a.kind === "list" && b.kind === "list") result = valueType.list(mergeOutput(a.value, b.value)); + return left.kind === "optional" && right.kind === "optional" ? valueType.optional(result) : result; + }; + const output = (type: GraphQLType, selections?: SelectionSetNode, depth = 0, conditional = false): ValueType => { + if (depth > declaration.budgets.depth * 4 + 4) fail("QUERY_DEPTH_LIMIT", "Expanded query exceeds its depth budget"); + if (isNonNullType(type)) return required(type.ofType, selections, depth, conditional); + return valueType.optional(required(type, selections, depth, conditional)); + }; + const required = (type: GraphQLType, selections?: SelectionSetNode, depth = 0, conditional = false): ValueType => { + if (isListType(type)) return valueType.list(output(type.ofType, selections, depth, conditional)); + if (isObjectType(type)) { + const fields: Record = {}; + const add = (set: SelectionSetNode, conditional = false) => { + for (const selection of set.selections) { + if (++expandedFields > 10000) fail("QUERY_WORK_LIMIT", "Expanded query exceeds 10000 fields", selection); + if (selection.kind === "FragmentSpread") { + add(fragments.get(selection.name.value)!.selectionSet, conditional || !!selection.directives?.length); + continue; + } + if (selection.kind !== "Field") continue; + const key = selection.alias?.value ?? selection.name.value; + const field = type.getFields()[selection.name.value]!; + const previous = fields[key]; + fields[key] = output( + field.type, + selection.selectionSet, + depth + 1, + conditional || !!selection.directives?.length, + ); + if (selection.name.value === "_qx") { + const contract = generated.byName.get(type.name)!; + const metadataFields: Record = {}; + for (const metadata of selection.selectionSet?.selections ?? []) { + if (metadata.kind !== "Field" || metadata.name.value !== "ref") + fail("QUERY_UNSUPPORTED_FEATURE", "Select _qx.ref directly", metadata); + else metadataFields[metadata.alias?.value ?? "ref"] = valueType.interfaceRef(contract.revisionId); + } + fields[key] = { kind: "record", fields: metadataFields }; + } + if ((conditional || selection.directives?.length) && fields[key]!.kind !== "optional") + fields[key] = valueType.optional(fields[key]!); + if (previous) fields[key] = mergeOutput(previous, fields[key]!); + } + }; + if (selections) add(selections, conditional); + return { kind: "record", fields }; + } + return shapeScalar(getNamedType(type)!.name); + }; + const variables: Record = {}; + const inputShape = (type: GraphQLType, seen = new Set()): ValueType => { + if (isNonNullType(type)) return inputRequired(type.ofType, seen); + return valueType.optional(inputRequired(type, seen)); + }; + const inputRequired = (type: GraphQLType, seen: Set): ValueType => { + if (isListType(type)) return valueType.list(inputShape(type.ofType, seen)); + if (isInputObjectType(type)) { + // Recursive boolean filter inputs need generated recursive TS shapes; never degrade to any. + if (seen.has(type.name)) + fail( + "QUERY_UNSUPPORTED_FEATURE", + "Pass scalar variables inside fixed filter expressions instead of a whole recursive filter", + ); + return { + kind: "record", + fields: Object.fromEntries( + Object.entries(type.getFields()).map(([key, field]) => [ + key, + inputShape(field.type, new Set([...seen, type.name])), + ]), + ), + }; + } + if (isScalarType(type) || isEnumType(type)) return shapeScalar(type.name); + return fail("QUERY_VARIABLE_TYPE", "Unsupported variable type"); + }; + for (const variable of operations[0]!.variableDefinitions ?? []) + variables[variable.variable.name.value] = inputShape(typeFromAST(generated.schema, variable.type)!); + const result = required(generated.schema.getQueryType()!, operations[0]!.selectionSet); + const argument = (node: ValueNode): QueryArgument => { + switch (node.kind) { + case "Variable": + return { kind: "variable", name: node.name.value }; + case "ListValue": + return { kind: "list", values: node.values.map(argument) }; + case "ObjectValue": + return { + kind: "object", + fields: Object.fromEntries(node.fields.map((field) => [field.name.value, argument(field.value)])), + }; + case "NullValue": + return { kind: "literal", value: null }; + case "BooleanValue": + return { kind: "literal", value: node.value }; + // Int literals stay decimal until their checked field codec interprets them. + default: + return { kind: "literal", value: node.value }; + } + }; + const conditions = (directives: readonly DirectiveNode[] = []) => + directives.map((directive) => ({ + include: directive.name.value === "include", + value: argument(directive.arguments!.find((entry) => entry.name.value === "if")!.value), + })); + const selection = ( + set: SelectionSetNode, + parent: import("graphql").GraphQLObjectType, + inherited: QuerySelection["conditions"] = [], + ): QuerySelection[] => + set.selections.flatMap((node): QuerySelection[] => { + if (node.kind === "FragmentSpread") + return selection(fragments.get(node.name.value)!.selectionSet, parent, [ + ...inherited, + ...conditions(node.directives), + ]); + if (node.kind !== "Field") return []; + const contract = generated.byName.get(parent.name); + const member = contract?.members.find((entry) => entry.displayName === node.name.value); + const type = getNamedType(parent.getFields()[node.name.value]!.type); + return [ + { + name: node.name.value, + key: node.alias?.value ?? node.name.value, + ...(member && contract ? { interfaceRevisionId: contract.revisionId, memberId: member.id } : {}), + ...(member?.kind === "relationship" ? { targetInterfaceRevisionId: generated.target(member) } : {}), + conditions: [...inherited, ...conditions(node.directives)], + arguments: Object.fromEntries( + (node.arguments ?? []).map((entry) => [entry.name.value, argument(entry.value)]), + ), + selection: node.selectionSet && isObjectType(type) ? selection(node.selectionSet, type) : [], + }, + ]; + }); + const normalized = print(document), + schema = printSchema(generated.schema); + const definitionDigest = createHash("sha256") + .update( + canonicalJson({ + semantics: 1, + declaration, + normalized, + interfaces: [...generated.byName.values()].sort((a, b) => + a.revisionId < b.revisionId ? -1 : a.revisionId > b.revisionId ? 1 : 0, + ), + }), + ) + .digest("hex"); + return { + declaration, + definitionDigest, + document: normalized, + schema, + variables: { kind: "record", fields: variables }, + output: result, + effects: [...effects.values()], + selection: selection(operations[0]!.selectionSet, generated.schema.getQueryType()!), + variableDefaults: Object.fromEntries( + (operations[0]!.variableDefinitions ?? []) + .filter((entry) => entry.defaultValue) + .map((entry) => [entry.variable.name.value, argument(entry.defaultValue!)]), + ), + sourceFiles: paths, + }; +} + +export const compileRepositoryQuery = async ( + root: string, + declaration: QueryDeclaration, + interfaces: readonly InterfaceRevision[], +) => { + const started = performance.now(); + try { + return await compileQuery(declaration, interfaces, (name) => readRepositorySource(root, name)); + } finally { + // Timing belongs in check logs, never in immutable artifact identities. + console.error( + `[query-check] ${JSON.stringify(declaration.displayName)}: ${(performance.now() - started).toFixed(1)}ms`, + ); + } +}; diff --git a/src/query/link.ts b/src/query/link.ts new file mode 100644 index 0000000..e11da31 --- /dev/null +++ b/src/query/link.ts @@ -0,0 +1,156 @@ +import { createHash } from "node:crypto"; +import type { + WorkspaceRevision, + Binding, + AtomId, + InterfaceRevisionId, + MemberId, + PersistentAttachment, +} from "../capability-model/types.js"; +import { QueryCompileError, type CheckedQuery } from "./types.js"; +import { queryRuntimePlan } from "./proto.js"; +import { canonicalJson } from "../capability-model/evolution.js"; + +export interface LinkedQueryField { + atomId: AtomId; + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + getter: string; + binding: Binding; + watch?: { start: string; stop: string; binding: Binding }; +} +export interface LinkedQuery { + runtime?: import("@bufbuild/protobuf").JsonValue; + id: string; + packageRevisionId: string; + checked: CheckedQuery; + bindingDigest: string; + fields: LinkedQueryField[]; + attachments: PersistentAttachment[]; +} + +/** Link every possible implementation, including atoms absent from today's data. */ +export function linkQueries(workspace: WorkspaceRevision): LinkedQuery[] { + const interfaces = new Map(workspace.interfaceImports.map((entry) => [entry.revisionId, entry])); + const attachments = [ + ...workspace.sharedAttachments, + ...workspace.conformances.flatMap((entry) => entry.privateAttachments), + ]; + const linked: LinkedQuery[] = []; + for (const pkg of workspace.packageImports) + for (const declaration of pkg.queries ?? []) { + const checked = pkg.checkedQueries?.find((query) => query.declaration.id === declaration.id); + if (!checked || JSON.stringify(checked.declaration) !== JSON.stringify(declaration)) + throw new QueryCompileError( + "QUERY_ARTIFACT_MISSING", + `${pkg.displayName}.${declaration.displayName} has no checked source artifact`, + ); + const fields: LinkedQueryField[] = []; + const needed = new Set(); + for (const view of declaration.views) + if ( + !workspace.conformances.some( + (entry) => entry.atomId === view.atomId && entry.interfaceRevisionId === view.interfaceRevisionId, + ) + ) + throw new QueryCompileError( + "QUERY_VIEW_REQUIRED", + `${view.atomId} does not conform to declared query view ${view.interfaceRevisionId}`, + ); + for (const effect of checked.effects) { + const contract = interfaces.get(effect.interfaceRevisionId); + const member = contract?.members.find((entry) => entry.id === effect.memberId); + if (!member || member.kind === "operation" || member.queryRead?.execution !== effect.execution) + throw new QueryCompileError( + "QUERY_STALE_CONTRACT", + `Query field ${effect.interfaceRevisionId}.${effect.memberId} changed`, + ); + const getter = member.operations.find((op) => op.displayName === (member.kind === "value" ? "get" : "resolve")); + if (!getter) throw new QueryCompileError("QUERY_CONTRACT", `Missing getter ${effect.memberId}`); + for (const conformance of workspace.conformances.filter( + (entry) => entry.interfaceRevisionId === effect.interfaceRevisionId, + )) { + const provider = conformance.operationBindings.find((entry) => entry.operationId === getter.id); + if (!provider) + throw new QueryCompileError("QUERY_CONTRACT", `Missing binding ${conformance.atomId}.${getter.id}`); + const binding = provider.binding; + if (binding.kind === "package") { + if (effect.execution !== "rpc-permitted") + throw new QueryCompileError( + "QUERY_NATIVE_BINDING_REQUIRED", + `Native query field ${effect.memberId} binds package code`, + ); + if (!provider.queryReason?.trim()) + throw new QueryCompileError( + "QUERY_RPC_PROVIDER_REASON", + `Package query field ${effect.memberId} needs query-reason`, + ); + } else if (binding.kind === "state" && binding.primitive === "read") needed.add(binding.slotId); + else if (binding.kind === "edge" && binding.primitive === "resolve") needed.add(binding.edgeTypeId); + else + throw new QueryCompileError( + "QUERY_NATIVE_BINDING_REQUIRED", + `Unsupported query read binding ${effect.memberId}`, + ); + const start = member.operations.find((op) => op.displayName === "watch-start"); + const stop = member.operations.find((op) => op.displayName === "watch-stop"); + const watch = start && stop && conformance.operationBindings.find((entry) => entry.operationId === start.id); + if ( + binding.kind === "state" && + watch && + (watch.binding.kind !== "state" || + watch.binding.slotId !== binding.slotId || + watch.binding.primitive !== "watch-start") + ) + throw new QueryCompileError( + "QUERY_WATCH_CONTRACT", + `Native query field ${effect.memberId} watch disagrees with its getter`, + ); + if ( + binding.kind === "edge" && + watch && + (watch.binding.kind !== "edge" || + watch.binding.edgeTypeId !== binding.edgeTypeId || + watch.binding.projectionId !== binding.projectionId) + ) + throw new QueryCompileError( + "QUERY_WATCH_CONTRACT", + `Native query relation ${effect.memberId} watch disagrees with its resolver`, + ); + fields.push({ + atomId: conformance.atomId, + interfaceRevisionId: effect.interfaceRevisionId, + memberId: effect.memberId, + getter: getter.id, + binding, + ...(watch && start && stop ? { watch: { start: start.id, stop: stop.id, binding: watch.binding } } : {}), + }); + } + } + const storage = attachments.filter((entry) => needed.has(entry.id)); + const bindingDigest = createHash("sha256") + .update( + canonicalJson({ + definition: checked.definitionDigest, + fields: [...fields].sort((a, b) => canonicalJson(a).localeCompare(canonicalJson(b))), + storage: [...storage].sort((a, b) => a.id.localeCompare(b.id)), + }), + ) + .digest("hex"); + linked.push({ + id: `${pkg.revisionId}:${declaration.id}`, + packageRevisionId: pkg.revisionId, + checked, + bindingDigest, + fields, + attachments: storage, + }); + } + for (const entry of linked) entry.runtime = queryRuntimePlan(entry, workspace); + if (new Set(linked.map((entry) => entry.id)).size !== linked.length) + throw new QueryCompileError( + "QUERY_ID_COLLISION", + "Query export identities collide; choose distinct package/query IDs", + ); + return linked; +} diff --git a/src/query/proto.ts b/src/query/proto.ts new file mode 100644 index 0000000..f6be26b --- /dev/null +++ b/src/query/proto.ts @@ -0,0 +1,89 @@ +import { create, toJson } from "@bufbuild/protobuf"; +import { + InstalledQuerySchema, + QueryArgumentSchema, + QuerySelectionSchema, + QueryReadBindingSchema, + Cardinality, + type QueryArgument as WireArgument, +} from "../gen/camino/schema_pb.js"; +import type { LinkedQuery } from "./link.js"; +import type { QueryArgument, QuerySelection } from "./types.js"; +import type { WorkspaceRevision } from "../capability-model/types.js"; + +const argument = (entry: QueryArgument): WireArgument => { + switch (entry.kind) { + case "variable": + return create(QueryArgumentSchema, { value: { case: "variable", value: entry.name } }); + case "literal": + return create(QueryArgumentSchema, { value: { case: "literalJson", value: JSON.stringify(entry.value) } }); + case "list": + return create(QueryArgumentSchema, { value: { case: "list", value: { values: entry.values.map(argument) } } }); + case "object": + return create(QueryArgumentSchema, { + value: { + case: "object", + value: { fields: Object.fromEntries(Object.entries(entry.fields).map(([k, v]) => [k, argument(v)])) }, + }, + }); + } +}; +const selection = (entry: QuerySelection): import("../gen/camino/schema_pb.js").QuerySelection => + create(QuerySelectionSchema, { + ...entry, + conditions: entry.conditions.map((condition) => ({ include: condition.include, value: argument(condition.value) })), + arguments: Object.fromEntries(Object.entries(entry.arguments).map(([k, v]) => [k, argument(v)])), + selection: entry.selection.map(selection), + }); + +export const queryRuntimePlan = (linked: LinkedQuery, workspace: WorkspaceRevision) => + toJson( + InstalledQuerySchema, + create(InstalledQuerySchema, { + id: linked.id, + definitionDigest: linked.checked.definitionDigest, + bindingDigest: linked.bindingDigest, + rootInterfaceRevisionId: linked.checked.declaration.root, + selection: linked.checked.selection.map(selection), + budgets: linked.checked.declaration.budgets, + variablesTypeJson: JSON.stringify(linked.checked.variables), + outputTypeJson: JSON.stringify(linked.checked.output), + variableDefaults: Object.fromEntries( + Object.entries(linked.checked.variableDefaults).map(([k, v]) => [k, argument(v)]), + ), + watch: linked.checked.declaration.watch, + pollingIntervalMs: linked.checked.declaration.polling?.intervalMs, + rpcPredicateOrOrder: linked.checked.effects.some( + (effect) => effect.execution === "rpc-permitted" && effect.uses.some((use) => use !== "select"), + ), + bindings: linked.fields.map((field) => { + const member = workspace.interfaceImports + .find((entry) => entry.revisionId === field.interfaceRevisionId)! + .members.find((entry) => entry.id === field.memberId)!; + return create(QueryReadBindingSchema, { + atomId: field.atomId, + interfaceRevisionId: field.interfaceRevisionId, + memberId: field.memberId, + getterOperationId: field.getter, + fieldName: member.displayName, + keyType: member.kind === "relationship" ? member.keyType : undefined, + valueTypeJson: member.kind === "value" ? JSON.stringify(member.valueType) : "", + cardinality: + member.kind === "relationship" + ? { + "optional-one": Cardinality.OPTIONAL_ONE, + "exactly-one": Cardinality.EXACTLY_ONE, + many: Cardinality.MANY, + "many-unique": Cardinality.MANY_UNIQUE, + }[member.cardinality] + : undefined, + slotId: field.binding.kind === "state" ? field.binding.slotId : "", + edgeTypeId: field.binding.kind === "edge" ? field.binding.edgeTypeId : "", + projectionId: field.binding.kind === "edge" ? field.binding.projectionId : "", + rpc: field.binding.kind === "package", + watchStartOperationId: field.watch?.start, + watchStopOperationId: field.watch?.stop, + }); + }), + }), + ); diff --git a/src/query/schema.ts b/src/query/schema.ts new file mode 100644 index 0000000..900a310 --- /dev/null +++ b/src/query/schema.ts @@ -0,0 +1,253 @@ +import { + GraphQLBoolean, + GraphQLString, + GraphQLInt, + GraphQLFloat, + GraphQLScalarType, + GraphQLObjectType, + GraphQLInputObjectType, + GraphQLEnumType, + GraphQLList, + GraphQLNonNull, + GraphQLSchema, + type GraphQLOutputType, + type GraphQLInputType, + type GraphQLFieldConfigMap, + type GraphQLInputFieldConfigMap, +} from "graphql"; +import { createHash } from "node:crypto"; +import type { + InterfaceRevision, + InterfaceRevisionId, + ValueType, + RelationshipInterfaceMember, +} from "../capability-model/types.js"; +import { QueryCompileError, type QueryDeclaration } from "./types.js"; + +// Validate losslessly; callers carry decimal strings across JSON transports. +function integerParser(name: string, min: bigint, max: bigint, value: unknown): string { + if ( + typeof value !== "string" && + typeof value !== "bigint" && + !(typeof value === "number" && Number.isSafeInteger(value)) + ) + throw new Error(`${name} requires a canonical integer`); + const text = String(value); + if (!/^-?(0|[1-9][0-9]*)$/.test(text) || text === "-0") throw new Error(`${name} requires a canonical integer`); + const n = BigInt(text); + if (n < min || n > max) throw new Error(`${name} out of range`); + return text; +} +const integerScalar = (name: string, min: bigint, max: bigint) => { + const parse = (v: unknown) => integerParser(name, min, max, v); + return new GraphQLScalarType({ + name, + serialize: parse, + parseValue: parse, + parseLiteral(node) { + if (node.kind !== "IntValue" && node.kind !== "StringValue") throw new Error(`${name} requires an integer`); + return parse(node.value); + }, + }); +}; +export const queryScalars = { + bool: GraphQLBoolean, + string: GraphQLString, + int32: GraphQLInt, + int64: integerScalar("Int64", -(1n << 63n), (1n << 63n) - 1n), + uint32: integerScalar("UInt32", 0n, (1n << 32n) - 1n), + uint64: integerScalar("UInt64", 0n, (1n << 64n) - 1n), + double: GraphQLFloat, + bytes: new GraphQLScalarType({ name: "Bytes" }), +}; +export const cursorScalar = new GraphQLScalarType({ + name: "Cursor", + parseValue(value) { + if (typeof value !== "string" || value.length > 4096) throw new Error("Invalid cursor"); + return value; + }, +}); +export const referenceScalar = new GraphQLScalarType({ name: "ManagedReference" }); + +export function querySchema(declaration: QueryDeclaration, interfaces: readonly InterfaceRevision[]) { + const contracts = new Map(interfaces.map((entry) => [entry.revisionId, entry])); + const objects = new Map(); + const filters = new Map(); + const orders = new Map(); + const byName = new Map(); + const comparisons = new Map(); + const metadata = new GraphQLObjectType({ + name: "QxMetadata", + fields: { ref: { type: new GraphQLNonNull(referenceScalar) } }, + }); + const pageInfo = new GraphQLObjectType({ + name: "QxPageInfo", + fields: { + hasNextPage: { type: new GraphQLNonNull(GraphQLBoolean) }, + endCursor: { type: cursorScalar }, + }, + }); + const direction = new GraphQLEnumType({ name: "QxDirection", values: { ASC: {}, DESC: {} } }); + const contract = (id: InterfaceRevisionId) => { + const found = contracts.get(id); + if (!found || found.template) throw new QueryCompileError("QUERY_CONTRACT", `Expected closed interface ${id}`); + return found; + }; + const name = (id: InterfaceRevisionId) => { + const revision = contract(id); + const result = + revision.displayName + + (revision.application ? `_${createHash("sha256").update(id).digest("hex").slice(0, 12)}` : ""); + if (!/^[_A-Za-z][_0-9A-Za-z]*$/.test(result) || result.startsWith("__") || result.startsWith("Qx")) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Unsupported query interface name ${result}`); + const existing = byName.get(result); + if (existing && existing.revisionId !== id) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Conflicting query interface name ${result}`); + byName.set(result, revision); + return result; + }; + const target = (member: RelationshipInterfaceMember): InterfaceRevisionId => { + if (member.target.kind === "interface") return member.target.interfaceRevisionId; + const atomId = member.target.atomId; + const views = declaration.views.filter((entry) => entry.atomId === atomId); + if (views.length !== 1) + throw new QueryCompileError( + "QUERY_VIEW_REQUIRED", + `Declare exactly one interface view for ${member.target.atomId}`, + ); + return views[0]!.interfaceRevisionId; + }; + const scalar = (type: ValueType): GraphQLOutputType & GraphQLInputType => { + if (type.kind === "optional") return scalar(type.value); + if (type.kind !== "scalar") + throw new QueryCompileError("QUERY_TYPE", "Only scalar/optional scalar query fields are supported"); + return queryScalars[type.name]; + }; + const comparison = (type: ValueType) => { + const base = type.kind === "optional" ? type.value : type; + const value = scalar(base); + const key = String(value); + let result = comparisons.get(key); + if (!result) { + const fields: GraphQLInputFieldConfigMap = { eq: { type: value }, isNull: { type: GraphQLBoolean } }; + if (base.kind === "scalar" && base.name !== "bool" && base.name !== "bytes") + for (const op of ["lt", "lte", "gt", "gte"]) fields[op] = { type: value }; + result = new GraphQLInputObjectType({ name: `QxCompare${key}`, fields }); + comparisons.set(key, result); + } + return result; + }; + const filter = (id: InterfaceRevisionId): GraphQLInputObjectType => { + const existing = filters.get(id); + if (existing) return existing; + const result = new GraphQLInputObjectType({ + name: `${name(id)}Where`, + fields: () => { + const fields: GraphQLInputFieldConfigMap = { + and: { type: new GraphQLList(new GraphQLNonNull(result)) }, + or: { type: new GraphQLList(new GraphQLNonNull(result)) }, + not: { type: result }, + }; + for (const member of contract(id).members) + if (member.kind === "value" && member.queryRead) { + if (member.displayName in fields) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Reserved predicate name ${member.displayName}`); + fields[member.displayName] = { type: comparison(member.valueType) }; + } + return fields; + }, + }); + filters.set(id, result); + return result; + }; + const order = (id: InterfaceRevisionId) => { + let result = orders.get(id); + if (!result) { + const fields: GraphQLInputFieldConfigMap = {}; + for (const member of contract(id).members) { + if (member.kind !== "value" || !member.queryRead) continue; + const t = member.valueType.kind === "optional" ? member.valueType.value : member.valueType; + if (t.kind === "scalar" && t.name !== "bytes") fields[member.displayName] = { type: direction }; + } + if (Object.keys(fields).length === 0) return undefined; + result = new GraphQLInputObjectType({ name: `${name(id)}Order`, fields }); + orders.set(id, result); + } + return result; + }; + const object = (id: InterfaceRevisionId): GraphQLObjectType => { + const existing = objects.get(id); + if (existing) return existing; + const result = new GraphQLObjectType({ + name: name(id), + fields: () => { + const fields: GraphQLFieldConfigMap = { _qx: { type: new GraphQLNonNull(metadata) } }; + for (const member of contract(id).members) { + if (member.kind === "operation" || !member.queryRead) continue; + if (!/^[_A-Za-z][_0-9A-Za-z]*$/.test(member.displayName) || member.displayName.startsWith("_")) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Unsupported query field name ${member.displayName}`); + if (member.kind === "value") { + const type = scalar(member.valueType); + fields[member.displayName] = { + type: member.valueType.kind === "optional" ? type : new GraphQLNonNull(type), + }; + } else { + const targetId = target(member), + node = object(targetId); + if (member.cardinality === "exactly-one" || member.cardinality === "optional-one") + fields[member.displayName] = { + type: member.cardinality === "exactly-one" ? new GraphQLNonNull(node) : node, + }; + else { + const entry = new GraphQLObjectType({ + name: `${name(id)}_${member.displayName}_Entry`, + fields: { + key: { type: new GraphQLNonNull(GraphQLString) }, + ...(member.keyType + ? { + mapKey: { + type: new GraphQLNonNull( + queryScalars[member.keyType === "boolean" ? "bool" : member.keyType], + ), + }, + } + : {}), + cursor: { type: cursorScalar }, + node: { type: new GraphQLNonNull(node) }, + }, + }); + const connection = new GraphQLObjectType({ + name: `${name(id)}_${member.displayName}_Connection`, + fields: { + entries: { type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(entry))) }, + pageInfo: { type: new GraphQLNonNull(pageInfo) }, + }, + }); + const ordering = order(targetId); + fields[member.displayName] = { + type: new GraphQLNonNull(connection), + args: { + first: { type: GraphQLInt }, + all: { type: GraphQLInt }, + after: { type: cursorScalar }, + where: { type: filter(targetId) }, + ...(ordering ? { orderBy: { type: new GraphQLList(new GraphQLNonNull(ordering)) } } : {}), + }, + }; + } + } + } + return fields; + }, + }); + objects.set(id, result); + return result; + }; + const schema = new GraphQLSchema({ + query: new GraphQLObjectType({ + name: "QxQuery", + fields: { root: { type: new GraphQLNonNull(object(declaration.root)) } }, + }), + }); + return { schema, byName, target, contracts }; +} diff --git a/src/query/templates.ts b/src/query/templates.ts new file mode 100644 index 0000000..f37cafa --- /dev/null +++ b/src/query/templates.ts @@ -0,0 +1,136 @@ +import { capabilityId, type InterfaceRevision, type InterfaceRevisionId } from "../capability-model/types.js"; +import { + TypeSubstitution, + bindTypeParameters, + type ClosedTypeArgument, + type GenericTypeEnvironment, +} from "../capability-model/generics.js"; +import { GenericSourceTypes } from "../capability-language/generic-types.js"; +import { compileQuery } from "./compile.js"; +import { QueryCompileError, type QueryDeclaration, type QueryTemplate } from "./types.js"; + +export function specializeQueryTemplate( + template: QueryTemplate, + arguments_: ClosedTypeArgument[], + environment: GenericTypeEnvironment, + interfaces: () => readonly InterfaceRevision[], + identity: { id: string; displayName: string }, +): QueryDeclaration { + const obligations: NonNullable = []; + const checked = { + ...environment, + implementsInterface: ( + target: Parameters[0], + required: InterfaceRevisionId, + ) => { + obligations.push({ target, required }); + return environment.implementsInterface(target, required); + }, + }; + const substitution = new TypeSubstitution({ + ...checked, + arguments: bindTypeParameters(template.parameters, arguments_, checked, template.declaration.displayName), + }); + return { + ...structuredClone(template.declaration), + ...identity, + root: substitution.application(template.root), + views: template.views + .map((view) => { + const target = substitution.object(view.target); + const interfaceRevisionId = substitution.application(view.interface); + if (target.kind === "interface") { + if (target.interfaceRevisionId !== interfaceRevisionId) + throw new QueryCompileError( + "QUERY_VIEW_REQUIRED", + "An interface argument must use its exact selected query view", + ); + return undefined; + } + return { atomId: target.atomId, interfaceRevisionId }; + }) + .filter((view): view is NonNullable => !!view), + allowances: template.allowances.map((allowance) => { + const interfaceRevisionId = substitution.application(allowance.interface); + const member = interfaces() + .find((entry) => entry.revisionId === interfaceRevisionId) + ?.members.find((entry) => entry.displayName === allowance.memberName); + if (!member) throw new QueryCompileError("QUERY_ALLOWANCE", `Unknown template field ${allowance.memberName}`); + return { interfaceRevisionId, memberId: member.id, uses: allowance.uses, reason: allowance.reason }; + }), + application: { templateId: template.declaration.id, arguments: structuredClone(arguments_) }, + argumentRequirements: obligations, + }; +} + +/** Check a document with only its declared bounds available, even if no concrete + * specialization is installed. No concrete atom fields can leak into this check. */ +export async function checkQueryTemplate( + template: QueryTemplate, + interfaces: readonly InterfaceRevision[], + read: (name: string) => Promise, +) { + const types = new GenericSourceTypes(new Map()); + for (const contract of interfaces) types.register(contract.displayName, contract); + const arguments_: ClosedTypeArgument[] = template.parameters.map((parameter) => { + if (parameter.kind !== "object") + throw new QueryCompileError( + "QUERY_TEMPLATE_PARAMETER", + "Query templates currently require object parameters with explicit interface views; scalar/value polymorphism is not queryable", + ); + return { + kind: "object", + target: { kind: "atom", atomId: capabilityId.atom(`query-bound:${template.declaration.id}:${parameter.id}`) }, + }; + }); + const bindings = new Map(template.parameters.map((parameter, index) => [parameter.id, arguments_[index]!])); + const substitution = new TypeSubstitution({ ...types.environment(), arguments: bindings }); + const evidence = new Map( + arguments_.map((argument, index) => { + const parameter = template.parameters[index]!; + const target = argument.kind === "object" && argument.target.kind === "atom" ? argument.target.atomId : ""; + return [ + target, + new Set( + parameter.kind === "object" ? parameter.implements.map((bound) => substitution.application(bound)) : [], + ), + ]; + }), + ); + const implies = (offered: string, required: string, seen = new Set()): boolean => { + if (offered === required) return true; + if (seen.has(offered)) return false; + seen.add(offered); + const contract = types.definitions.get(offered); + return (contract?.requiredInterfaces ?? []).some((parent) => implies(parent, required, seen)); + }; + const environment = { + ...types.environment(), + implementsInterface: ( + target: Parameters[0], + required: InterfaceRevisionId, + ) => + target.kind === "atom" && [...(evidence.get(target.atomId) ?? [])].some((offered) => implies(offered, required)), + }; + const declaration = specializeQueryTemplate( + template, + arguments_, + environment, + () => [...types.definitions.values()], + template.declaration, + ); + for (const view of declaration.views) + if (!environment.implementsInterface({ kind: "atom", atomId: view.atomId }, view.interfaceRevisionId)) + throw new QueryCompileError( + "QUERY_TEMPLATE_BOUND", + `The declared bounds do not guarantee the selected view ${view.interfaceRevisionId}`, + ); + for (const application of types.applications.values()) + for (const obligation of application.argumentRequirements ?? []) + if (!environment.implementsInterface(obligation.target, obligation.required)) + throw new QueryCompileError( + "QUERY_TEMPLATE_BOUND", + `Template arguments do not guarantee ${obligation.required}`, + ); + return compileQuery(declaration, [...types.definitions.values()], read); +} diff --git a/src/query/types.ts b/src/query/types.ts new file mode 100644 index 0000000..9d5768b --- /dev/null +++ b/src/query/types.ts @@ -0,0 +1,109 @@ +import type { AtomId, InterfaceRevisionId, MemberId, ValueType } from "../capability-model/types.js"; +import type { + TypeParameter, + InterfaceApplicationExpression, + ObjectTypeExpression, + ClosedTypeArgument, +} from "../capability-model/generics.js"; + +export type QueryUse = "select" | "predicate" | "order"; +export interface QueryAllowance { + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + uses: QueryUse[]; + reason: string; +} +export interface QueryBudgets { + rows: number; + depth: number; + resultBytes: number; + candidates: number; + rpcCalls: number; + concurrency: number; + deadlineMs: number; +} +export const defaultQueryBudgets: Readonly = Object.freeze({ + rows: 100, + depth: 8, + resultBytes: 1048576, + candidates: 100, + rpcCalls: 200, + concurrency: 8, + deadlineMs: 10000, +}); +export interface QueryDeclaration { + id: string; + displayName: string; + root: InterfaceRevisionId; + document: string; + operation: string; + fragments: string[]; + views: { atomId: AtomId; interfaceRevisionId: InterfaceRevisionId }[]; + allowances: QueryAllowance[]; + budgets: QueryBudgets; + watch: boolean; + polling?: { intervalMs: number; reason: string }; + application?: { templateId: string; arguments: ClosedTypeArgument[] }; + argumentRequirements?: { + target: import("../capability-model/types.js").ObjectExpectation; + required: InterfaceRevisionId; + }[]; +} +/** Source-only template; neither parameters nor synthetic bound witnesses are installed. */ +export interface QueryTemplate { + declaration: Omit; + parameters: TypeParameter[]; + root: InterfaceApplicationExpression; + views: { target: ObjectTypeExpression; interface: InterfaceApplicationExpression }[]; + allowances: { interface: InterfaceApplicationExpression; memberName: string; uses: QueryUse[]; reason: string }[]; +} +export interface QueryFieldEffect { + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + uses: QueryUse[]; + execution: "native" | "rpc-permitted"; +} +export interface QuerySourceLocation { + file: string; + line: number; + column: number; +} +export class QueryCompileError extends Error { + constructor( + readonly code: string, + message: string, + readonly location?: QuerySourceLocation, + ) { + super(`${code}${location ? ` ${location.file}:${location.line}:${location.column}` : ""}: ${message}`); + this.name = "QueryCompileError"; + } +} +export interface CheckedQuery { + declaration: QueryDeclaration; + definitionDigest: string; + /** Fixed, validated document: never supplied by runtime callers. */ + document: string; + schema: string; + variables: ValueType; + output: ValueType; + effects: QueryFieldEffect[]; + selection: QuerySelection[]; + variableDefaults: Record; + sourceFiles: string[]; +} + +export type QueryArgument = + | { kind: "variable"; name: string } + | { kind: "literal"; value: string | number | boolean | null } + | { kind: "list"; values: QueryArgument[] } + | { kind: "object"; fields: Record }; +export interface QuerySelection { + name: string; + key: string; + interfaceRevisionId?: InterfaceRevisionId; + memberId?: MemberId; + targetInterfaceRevisionId?: InterfaceRevisionId; + conditions: { include: boolean; value: QueryArgument }[]; + arguments: Record; + selection: QuerySelection[]; +} diff --git a/test/fixtures/query-workspace.ts b/test/fixtures/query-workspace.ts new file mode 100644 index 0000000..fe63e9d --- /dev/null +++ b/test/fixtures/query-workspace.ts @@ -0,0 +1,117 @@ +import assert from "node:assert/strict"; +import { compileCapabilityResourceSource, compileCapabilitySource } from "../../src/capability-language/index.js"; +import { compileQuery } from "../../src/query/compile.js"; +import { linkQueries } from "../../src/query/link.js"; +import type { InterfaceRevision, PackageRevision } from "../../src/capability-model/types.js"; + +export const queryFixtureSource = { + repository: "https://query-fixture.example.test/source.git", + commit: "1".repeat(40), +}; +export async function queryWorkspaceFixture() { + const interfaces = new Map(); + const sources: Record = {}; + function iface(name: string, members: string, parameters = "") { + const text = `${[...interfaces.keys()].map((name) => `import interface ${name};`).join("\n")} + interface ${name}${parameters} id "${name}" revision "${name}@1" {${members}}`; + sources[name] = text; + const result = compileCapabilityResourceSource(text, { + source: queryFixtureSource, + environment: { interfaces, interfaceClosure: [...interfaces.values()] }, + }); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + if (result.resource.kind !== "interface") throw new Error("interface expected"); + interfaces.set(name, result.resource.revision); + } + iface("PersonFacts", `queryable value name id "name" : string {get id "name:get";}`); + iface( + "TaskFacts", + ` + queryable value title id "title" : string {get id "title:get"; set id "title:set";} + queryable value done id "done" : bool {get id "done:get";} + queryable value rank id "rank" : int64 {get id "rank:get";} + queryable relation assignee id "assignee" : optional-one interface PersonFacts {resolve id "assignee:resolve";} + queryable rpc value score id "score" : int32 {get id "score:get";} + `, + ); + iface( + "Collection", + `queryable relation items id "items" : many object Item ordered {resolve id "items:resolve";}`, + "", + ); + const packageSource = `${[...interfaces.keys()].map((name) => `import interface ${name};`).join("\n")} + package Queries id "queries" revision "queries@1" { + operation titleSet id "title-set" : string -> unit mode call receiver any + requires {state title id "title-port" : string [write];}; + operation score id "score" : unit -> int32 mode call receiver any; + query Upcoming id "upcoming" root Collection document "upcoming.graphql" operation "Upcoming" { + fragments "row.graphql"; max rows 30; watch; + } + query Enriched id "enriched" root Collection document "enriched.graphql" operation "Enriched" { + max rows 30; allow TaskFacts.score select "Small visible page only"; + } + query Ranked id "ranked" root Collection document "ranked.graphql" operation "Ranked" { + max rows 30; max candidates 60; + allow TaskFacts.score predicate "Bounded local collection"; + allow TaskFacts.score order "Bounded local collection"; + } + }`; + sources.Queries = packageSource; + const pkgResult = compileCapabilityResourceSource(packageSource, { + source: queryFixtureSource, + environment: { interfaces, interfaceClosure: [...interfaces.values()] }, + }); + assert.ok(pkgResult.ok, JSON.stringify(pkgResult.diagnostics)); + if (pkgResult.resource.kind !== "package") throw new Error("package expected"); + const pkg: PackageRevision = pkgResult.resource.revision; + const allInterfaces = [...interfaces.values(), ...(pkgResult.resource.specializations ?? [])]; + const documents: Record = { + "upcoming.graphql": `query Upcoming($first: Int!, $after: Cursor) {root {items(first: $first, after: $after, where: {done: {eq: false}}, orderBy: [{rank: ASC}]) {entries {key cursor node {_qx {ref} ...TaskRow}} pageInfo {hasNextPage endCursor}}}}`, + "row.graphql": `fragment TaskRow on TaskFacts {title rank done assignee {name}}`, + "enriched.graphql": `query Enriched {root {items(first: 3) {entries {key node {_qx {ref} title score}}}}}`, + "ranked.graphql": `query Ranked {root {items(first: 3, where: {score: {gt: 0}}, orderBy: [{score: DESC}]) {entries {key node {_qx {ref} title}}}}}`, + }; + pkg.checkedQueries = await Promise.all( + pkg.queries!.map((query) => compileQuery(query, allInterfaces, async (name) => documents[name]!)), + ); + const implementation = (atom: string) => `conform ${atom} as TaskFacts id "${atom}-facts" { + private state Title${atom} id "${atom}:title" on ${atom} : string policy crdt(string) default "Untitled"; + private state Done${atom} id "${atom}:done" on ${atom} : bool policy optimistic-register default false; + private state Rank${atom} id "${atom}:rank" on ${atom} : int64 policy optimistic-register default 0; + private edge Assignee${atom} id "${atom}:assignee" { + atom ${atom} projection assignee id "${atom}:assignee:forward" optional-one; + interface PersonFacts projection tasks id "${atom}:assignee:inverse" many; + } + bind title.get to state Title${atom}.read; + bind title.set to package Queries.titleSet with {title to state Title${atom};}; + bind done to state Done${atom}; bind rank to state Rank${atom}; + bind assignee.resolve to edge Assignee${atom}.assignee.resolve; + bind score.get to package Queries.score query-reason "Explicit bounded score computation"; + }`; + const workspaceSource = `workspace QueryFixture id "query-fixture" revision "query-fixture@1" commit "${queryFixtureSource.commit}" { + import interface PersonFacts; import interface TaskFacts; import interface Collection; import package Queries; + atom Task id "Task"; atom Reminder id "Reminder"; atom Person id "Person"; atom Tasks id "Tasks"; + conform Person as PersonFacts id "person-facts" { + private state Name id "person:name" on Person : string policy optimistic-register default "Nobody"; + bind name to state Name; + } + ${implementation("Task")} ${implementation("Reminder")} + conform Tasks as Collection id "tasks-collection" { + private edge Items id "items" { + atom Tasks projection items id "items:forward" many ordered; + interface TaskFacts projection collections id "items:inverse" many; + } + bind items.resolve to edge Items.items.resolve; + } + }`; + sources.workspace = workspaceSource; + const result = compileCapabilitySource(workspaceSource, "workspace.qx", { + interfaces, + interfaceClosure: allInterfaces, + packages: new Map([["Queries", pkg]]), + packageClosure: [pkg], + }); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + const workspace = { ...result.workspace, linkedQueries: linkQueries(result.workspace) }; + return { workspace, pkg, interfaces: allInterfaces, sources, documents }; +} diff --git a/test/query-compiler.test.ts b/test/query-compiler.test.ts new file mode 100644 index 0000000..89e2267 --- /dev/null +++ b/test/query-compiler.test.ts @@ -0,0 +1,206 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { compileCapabilityResourceSource } from "../src/capability-language/index.js"; +import { compileQuery } from "../src/query/compile.js"; +import { QueryCompileError } from "../src/query/types.js"; +import { checkQueryTemplate } from "../src/query/templates.js"; +import type { InterfaceRevision } from "../src/capability-model/types.js"; + +const source = { repository: "https://example.test/queries.git", commit: "a".repeat(40) }; +const iface = (text: string, dependencies: InterfaceRevision[] = []) => { + const compiled = compileCapabilityResourceSource(text, { + source, + environment: { + interfaces: new Map(dependencies.map((entry) => [entry.displayName, entry])), + interfaceClosure: dependencies, + }, + }); + assert.ok(compiled.ok, JSON.stringify(compiled.diagnostics)); + assert.equal(compiled.resource.kind, "interface"); + if (compiled.resource.kind !== "interface") throw new Error("interface required"); + return compiled.resource.revision; +}; +const facts = iface(`interface TaskFacts id "facts" revision "facts@1" { + queryable value title id "title" : string { get id "title:get"; } + queryable value done id "done" : bool { get id "done:get"; } + queryable value due id "due" : optional { get id "due:get"; } + queryable rpc value score id "score" : int32 { get id "score:get"; } + value hidden id "hidden" : string { get id "hidden:get"; } +}`); +const collection = iface( + `import interface TaskFacts; +interface Tasks id "tasks" revision "tasks@1" { + queryable relation items id "items" : many interface TaskFacts ordered { resolve id "items:resolve"; } +}`, + [facts], +); + +test("generic query templates check declared bounds before closed specialization", async () => { + const generic = iface( + `import interface TaskFacts; + interface Collection id "generic-collection" revision "generic-collection@1" { + queryable relation items id "items" : many object Item { resolve id "items:resolve"; } + }`, + [facts], + ); + const build = (bound: string) => + compileCapabilityResourceSource( + `import interface Collection; import interface TaskFacts; + package GenericQueries id "generic-queries" revision "generic-queries@1" { + query Rows id "rows-template" root Collection + document "rows.graphql" operation "Rows" { view object Item as TaskFacts; max rows 30; } + query TaskRows id "task-rows" specialize Rows; + }`, + { + source, + environment: { + interfaces: new Map([ + ["Collection", generic], + ["TaskFacts", facts], + ]), + interfaceClosure: [generic, facts], + }, + }, + ); + const result = build("implements TaskFacts"); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + if (result.resource.kind !== "package") throw new Error("package expected"); + const pkg = result.resource.revision; + assert.equal(pkg.queries?.length, 1); + assert.equal(pkg.queryTemplates?.length, 1); + assert.equal(pkg.queries![0]!.application!.templateId, "rows-template"); + const read = async () => `query Rows { root { items(first: 3) { entries { node { title } } } } }`; + const universal = await checkQueryTemplate(pkg.queryTemplates![0]!, [generic, facts], read); + assert.equal( + universal.effects.some((effect) => effect.memberId === "title"), + true, + ); + const specialized = await compileQuery( + pkg.queries![0]!, + [generic, facts, ...(result.resource.specializations ?? [])], + read, + ); + assert.equal( + specialized.effects.some((effect) => effect.memberId === "title"), + true, + ); + const invalid = build(""); + assert.ok(invalid.ok, JSON.stringify(invalid.diagnostics)); + if (invalid.resource.kind !== "package") throw new Error("package expected"); + await assert.rejects( + checkQueryTemplate(invalid.resource.revision.queryTemplates![0]!, [generic, facts], read), + /bound|guarantee|implement/i, + ); +}); +function fixture(clauses = "") { + const result = compileCapabilityResourceSource( + `import interface Tasks; import interface TaskFacts; +package Queries id "queries" revision "queries@1" { + query Upcoming id "upcoming" root Tasks document "queries/upcoming.graphql" operation "Upcoming" { + fragments "queries/row.graphql"; max rows 30; ${clauses} + } +}`, + { + source, + environment: { + interfaces: new Map([ + ["Tasks", collection], + ["TaskFacts", facts], + ]), + interfaceClosure: [collection, facts], + }, + }, + ); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + assert.equal(result.resource.kind, "package"); + if (result.resource.kind !== "package") throw new Error("package required"); + assert.equal(result.resource.revision.exports.length, 0); + return result.resource.revision.queries![0]!; +} +const document = `query Upcoming($first: Int!, $before: Int64!) { + root { items(first: $first, where: {done: {eq: false}, due: {lt: $before}}, orderBy: [{due: ASC}]) { + entries { key node { _qx { ref } ...Row } } pageInfo { hasNextPage endCursor } + } } +}`; +const compile = (query = document, row = "fragment Row on TaskFacts { title due }", clauses = "") => + compileQuery(fixture(clauses), [collection, facts], async (name) => (name.endsWith("row.graphql") ? row : query)); + +test("query dependency ports resolve exact exports without declaration ordering constraints", () => { + const result = compileCapabilityResourceSource( + `import interface Tasks; + package Queries id "queries" revision "queries@1" { + operation load id "read" : unit -> unit mode call receiver interfaces [Tasks] + requires { query upcoming id "upcoming-port" : Queries.Upcoming; }; + query Upcoming id "upcoming" root Tasks document "upcoming.graphql" operation "Upcoming" { max rows 30; } + }`, + { source, environment: { interfaces: new Map([["Tasks", collection]]), interfaceClosure: [collection, facts] } }, + ); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + assert.equal(result.resource.kind, "package"); + if (result.resource.kind !== "package") throw new Error("package expected"); + assert.deepEqual(result.resource.revision.exports[0]!.dependencyPorts[0]!.requirement, { + kind: "query", + packageRevisionId: "queries@1", + queryId: "upcoming", + }); +}); + +test("result types merge repeated selections and preserve conditional fragment fields", async () => { + const checked = await compile( + `query Upcoming($show: Boolean!) { + root { items(first: 3) { entries { node { title } } } } + root { items(first: 3) { entries { node { ...Row @include(if: $show) } } } } + }`, + "fragment Row on TaskFacts { due done }", + ); + const output = JSON.stringify(checked.output); + assert.match(output, /\"title\":\{\"kind\":\"scalar\",\"name\":\"string\"\}/); + assert.match(output, /\"done\":\{\"kind\":\"optional\",\"value\":\{\"kind\":\"scalar\",\"name\":\"bool\"\}\}/); + assert.match(output, /\"due\"/); +}); + +test("fixed GraphQL yields exact effects, typed references and distinct query artifacts", async () => { + const checked = await compile(); + assert.deepEqual(checked.variables, { + kind: "record", + fields: { + first: { kind: "scalar", name: "int32" }, + before: { kind: "scalar", name: "int64" }, + }, + }); + assert.match(JSON.stringify(checked.output), /"kind":"object-ref"/); + assert.ok( + checked.effects.some( + (effect) => effect.memberId === "due" && effect.uses.includes("order") && effect.uses.includes("predicate"), + ), + ); + assert.equal(checked.definitionDigest, (await compile()).definitionDigest); + assert.notEqual( + checked.definitionDigest, + (await compile(document, "fragment Row on TaskFacts { title }")).definitionDigest, + ); +}); + +test("query allowlist and two-sided RPC effects fail during compilation", async () => { + const rejects = (promise: Promise, code: string) => + assert.rejects(promise, (error: unknown) => error instanceof QueryCompileError && error.code === code); + await rejects(compile(document, "fragment Row on TaskFacts { hidden }"), "QUERY_VALIDATION"); + await rejects(compile(document, "fragment Row on TaskFacts { score }"), "QUERY_RPC_CONSUMER_REASON"); + await compile( + document, + "fragment Row on TaskFacts { score }", + 'allow TaskFacts.score select "Only the visible page is enriched";', + ); + await rejects( + compile(document, "fragment Row on TaskFacts { score }", 'watch; allow TaskFacts.score select "Visible rows";'), + "QUERY_WATCH_UNSUPPORTED", + ); + await compile( + document, + "fragment Row on TaskFacts { score }", + 'watch; poll 5000 "External score has no push API"; allow TaskFacts.score select "Visible rows";', + ); + await rejects(compile(document.replace("first: $first", "first: 31")), "QUERY_VALIDATION"); + await rejects(compile(document.replace("...Row", "__typename ...Row")), "QUERY_UNSUPPORTED_FEATURE"); + await rejects(compile(document, "fragment Row on TaskFacts { ...Row }"), "QUERY_VALIDATION"); +}); diff --git a/test/query-contracts.test.ts b/test/query-contracts.test.ts new file mode 100644 index 0000000..c8f15f2 --- /dev/null +++ b/test/query-contracts.test.ts @@ -0,0 +1,41 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { compileCapabilityResourceSource } from "../src/capability-language/index.js"; +import { + capabilityFixtureSource, + capabilityResourceSources, + compileCapabilityFixture, +} from "./fixtures/capability-model.js"; + +test("query contracts retain native reads and explicitly acknowledged package reads", () => { + const named = capabilityResourceSources.named.replace("value name", "queryable value name"); + const native = compileCapabilityFixture({ named }); + assert.equal(native.ok, true, JSON.stringify(native.diagnostics)); + const summary = capabilityResourceSources.summary.replace("value summary", "queryable rpc value summary"); + const missing = compileCapabilityFixture({ summary }); + assert.equal(missing.ok, false); + assert.ok(missing.diagnostics.some((issue) => issue.code === "query-provider-reason-required")); + const workspace = capabilityFixtureSource.replace( + "person to constructor Person;\n };", + 'person to constructor Person;\n } query-reason "Summary needs package execution; bounded query callers acknowledge this cost";', + ); + const allowed = compileCapabilityFixture({ named, summary, workspace }); + assert.equal(allowed.ok, true, JSON.stringify(allowed.diagnostics)); + const denied = compileCapabilityFixture({ summary: summary.replace("queryable rpc", "queryable"), workspace }); + assert.equal(denied.ok, false); + assert.ok(denied.diagnostics.some((issue) => issue.code === "invalid-query-contract")); +}); + +test("queryable fields need one authoritative getter and supported values", () => { + const compile = (member: string) => + compileCapabilityResourceSource(`interface Facts id "facts" revision "facts@1" { ${member} }`, { + source: { repository: "https://example.test/facts.git", commit: "a".repeat(40) }, + }); + assert.equal(compile('queryable value title id "title" : string { get id "title:get"; }').ok, true); + for (const member of [ + 'queryable value title id "title" : string { set id "title:set"; }', + 'queryable value title id "title" : list { get id "title:get"; }', + 'queryable value title id "title" : string { get id "title:get"; get id "other:get"; }', + ]) + assert.equal(compile(member).ok, false, member); +}); diff --git a/test/query-workspace.test.ts b/test/query-workspace.test.ts new file mode 100644 index 0000000..d30b120 --- /dev/null +++ b/test/query-workspace.test.ts @@ -0,0 +1,20 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { queryWorkspaceFixture } from "./fixtures/query-workspace.js"; +import { linkQueries } from "../src/query/link.js"; + +test("query fixture links generic collections, both implementations, and native getter/RPC setter", async () => { + const { workspace } = await queryWorkspaceFixture(); + const query = workspace.linkedQueries.find((query) => query.id.endsWith(":upcoming"))!; + assert.ok(query); + assert.equal(query.fields.filter((field) => field.memberId === "title").length, 2); + assert.ok( + query.fields.filter((field) => field.memberId === "title").every((field) => field.binding.kind === "state"), + ); + const broken = structuredClone(workspace); + const facts = broken.interfaceImports.find((iface) => iface.displayName === "TaskFacts")!; + const title = facts.members.find((member) => member.id === "title")!; + assert.equal(title.kind, "value"); + delete title.queryRead; + assert.throws(() => linkQueries(broken), /changed/); +}); diff --git a/yarn-project.nix b/yarn-project.nix index b773583..1c9620f 100644 --- a/yarn-project.nix +++ b/yarn-project.nix @@ -174,6 +174,7 @@ cacheEntries = { "commander@npm:13.1.0" = { filename = "commander-npm-13.1.0-bdbbfaaf9d-7b8c5544bb.zip"; hash = "sha512-e4xVRLunBPvoS3yrLgQ9+FhtXBFKTFtgf4OuUGBwiUDtC1vVg4z4zidTnN4mXBy9Wc48jGsBftPuyJQ+OkFRZA=="; }; "debug@npm:4.4.3" = { filename = "debug-npm-4.4.3-0105c6123a-d79136ec6c.zip"; hash = "sha512-15E27GyD7L79D2pVk9pqnJHsTX3cS1TIg9bnHsmsy19noaXpbQCjKBlrW1yG02XpjYo6cIVqrxa057GYXmf1pg=="; }; "fast-printf@npm:1.6.10" = { filename = "fast-printf-npm-1.6.10-c05cca9b81-630cccbef8.zip"; hash = "sha512-YwzMvvg0mm7q2plYyTkenRS1vZUn3SjZ5+nylbAGxkDdyo/CRwz/VepcbJLKUwSIu62/fCT0hSrYw02RVdqddQ=="; }; +"graphql@npm:16.11.0" = { filename = "graphql-npm-16.11.0-836e6ade28-124da7860a.zip"; hash = "sha512-Ek2nhgoikums8v7Qxx/A9qm5yoZdOQ0RK91WPB9HQ1cUFQHBKJH0Fk/phDFXZHNq1n9wUhnGL3WAaB1DGoXbiA=="; }; "he@npm:1.2.0" = { filename = "he-npm-1.2.0-3b73a2ff07-a27d478bef.zip"; hash = "sha512-on1Hi+/jyBkvAGzdBjmmZ5iXnfpuISXGrFgqGaXr/sYq2D6DguYDYXDYc/RuRTan55W/i5W/fCR/TMCCXMyMFw=="; }; "luxon@npm:3.5.0" = { filename = "luxon-npm-3.5.0-92bb977f7f-335789bba9.zip"; hash = "sha512-M1eJu6lQd9uDHvmYlO2t6yMCOz6yE3obVqzQ0pAIK2kc95MUPWnjC8Bp7JXwtJ82QZ9I6VHGgBTxn/4SBF40lA=="; }; "ms@npm:2.1.3" = { filename = "ms-npm-2.1.3-81ff3cfac1-d924b57e73.zip"; hash = "sha512-2SS1fnMSs7Y60h/Fs9wK9eeNYaH8fPtUV+2vJjJr9ivlMHzIf/toYu8cKzOwIzzbXU8BxMlYzA1mCUi2Wih6SA=="; }; diff --git a/yarn.lock b/yarn.lock index 1ee94ec..fb471a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -85,6 +85,7 @@ __metadata: "@types/node": "npm:^24" antlr-ng: "npm:^1.0.10" antlr4ng: "npm:^3.0.16" + graphql: "npm:16.11.0" typescript: "npm:^7.0.2" bin: quixos-capability-compile: dist/src/capability-language/cli.js @@ -321,6 +322,13 @@ __metadata: languageName: node linkType: hard +"graphql@npm:16.11.0": + version: 16.11.0 + resolution: "graphql@npm:16.11.0" + checksum: 10c0/124da7860a2292e9acf2fed0c71fc0f6a9b9ca865d390d112bdd563c1f474357141501c12891f4164fe984315764736ad67f705219c62f7580681d431a85db88 + languageName: node + linkType: hard + "he@npm:1.2.0": version: 1.2.0 resolution: "he@npm:1.2.0"