@lokascript/compilation-service 2.10.0 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SB5NPMTN.js → chunk-BDISUJ32.js} +2 -2
- package/dist/{chunk-4ML32LEX.js → chunk-HRUSP6F2.js} +128 -2
- package/dist/chunk-HRUSP6F2.js.map +1 -0
- package/dist/{core-parser-adapter-VCJB52SO-3GSEHXCZ.js → core-parser-adapter-VCJB52SO-W3GDT5C6.js} +2 -2
- package/dist/{dist-CIDZTZVT.js → dist-4JWIJVFR.js} +3 -3
- package/dist/{dist-I7VYJWBF.js → dist-MGUUIWYB.js} +221 -34
- package/dist/dist-MGUUIWYB.js.map +1 -0
- package/dist/http.cjs +349 -37
- package/dist/http.cjs.map +1 -1
- package/dist/http.d.cts +2 -1
- package/dist/http.d.ts +2 -1
- package/dist/http.js +1 -1
- package/dist/index.cjs +351 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{service-ZMZn7WPv.d.cts → service-IyB2DZOm.d.cts} +48 -1
- package/dist/{service-ZMZn7WPv.d.ts → service-IyB2DZOm.d.ts} +48 -1
- package/package.json +6 -6
- package/dist/chunk-4ML32LEX.js.map +0 -1
- package/dist/dist-I7VYJWBF.js.map +0 -1
- /package/dist/{chunk-SB5NPMTN.js.map → chunk-BDISUJ32.js.map} +0 -0
- /package/dist/{core-parser-adapter-VCJB52SO-3GSEHXCZ.js.map → core-parser-adapter-VCJB52SO-W3GDT5C6.js.map} +0 -0
- /package/dist/{dist-CIDZTZVT.js.map → dist-4JWIJVFR.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -3458,6 +3458,12 @@ function createChildContext(parent, element) {
|
|
|
3458
3458
|
function isHTMLElement$2(value) {
|
|
3459
3459
|
return value !== null && typeof value === "object" && "nodeType" in value && value.nodeType === 1 && "tagName" in value && typeof value.tagName === "string" && "classList" in value;
|
|
3460
3460
|
}
|
|
3461
|
+
function isInsertableNode(value) {
|
|
3462
|
+
if (value === null || typeof value !== "object")
|
|
3463
|
+
return false;
|
|
3464
|
+
const nodeType = value.nodeType;
|
|
3465
|
+
return nodeType === 1 || nodeType === 3 || nodeType === 11;
|
|
3466
|
+
}
|
|
3461
3467
|
function isNodeList(value) {
|
|
3462
3468
|
return value !== null && typeof value === "object" && "length" in value && typeof value.length === "number" && (Symbol.iterator in value || typeof value.item === "function");
|
|
3463
3469
|
}
|
|
@@ -4327,6 +4333,11 @@ function evaluateLiteral(node) {
|
|
|
4327
4333
|
}
|
|
4328
4334
|
async function evaluateIdentifier(node, context) {
|
|
4329
4335
|
const name = node.name;
|
|
4336
|
+
if (name.startsWith("$")) {
|
|
4337
|
+
notifyGlobalRead(name.slice(1), context);
|
|
4338
|
+
} else if (node.scope === "global") {
|
|
4339
|
+
notifyGlobalRead(name, context);
|
|
4340
|
+
}
|
|
4330
4341
|
if (name === "me" || name === "my" || name === "I") {
|
|
4331
4342
|
return getExpr(context, "me").evaluate(context);
|
|
4332
4343
|
}
|
|
@@ -4346,7 +4357,6 @@ async function evaluateIdentifier(node, context) {
|
|
|
4346
4357
|
return getExpr(context, "document").evaluate(context);
|
|
4347
4358
|
}
|
|
4348
4359
|
if (node.scope === "global" && context.globals?.has(name)) {
|
|
4349
|
-
notifyGlobalRead(name, context);
|
|
4350
4360
|
return context.globals.get(name);
|
|
4351
4361
|
}
|
|
4352
4362
|
if (node.scope === "element") {
|
|
@@ -4357,12 +4367,9 @@ async function evaluateIdentifier(node, context) {
|
|
|
4357
4367
|
return context.locals.get(name);
|
|
4358
4368
|
}
|
|
4359
4369
|
if (context.globals && context.globals.has(name)) {
|
|
4360
|
-
if (name.startsWith("$"))
|
|
4361
|
-
notifyGlobalRead(name.slice(1), context);
|
|
4362
4370
|
return context.globals.get(name);
|
|
4363
4371
|
}
|
|
4364
4372
|
if (name.startsWith("$") && context.globals && context.globals.has(name.slice(1))) {
|
|
4365
|
-
notifyGlobalRead(name.slice(1), context);
|
|
4366
4373
|
return context.globals.get(name.slice(1));
|
|
4367
4374
|
}
|
|
4368
4375
|
if (context[name] !== void 0) {
|
|
@@ -6621,7 +6628,7 @@ function insertContent(target, content, position) {
|
|
|
6621
6628
|
insertReplace(target, content);
|
|
6622
6629
|
return;
|
|
6623
6630
|
}
|
|
6624
|
-
if (
|
|
6631
|
+
if (isInsertableNode(content)) {
|
|
6625
6632
|
insertElement(target, content, position);
|
|
6626
6633
|
} else {
|
|
6627
6634
|
insertText(target, content, position);
|
|
@@ -6631,7 +6638,7 @@ function insertContentSemantic(target, content, position) {
|
|
|
6631
6638
|
insertContent(target, content, toInsertPosition(position));
|
|
6632
6639
|
}
|
|
6633
6640
|
function insertReplace(target, content) {
|
|
6634
|
-
if (
|
|
6641
|
+
if (isInsertableNode(content)) {
|
|
6635
6642
|
target.innerHTML = "";
|
|
6636
6643
|
target.appendChild(content);
|
|
6637
6644
|
} else {
|
|
@@ -6675,6 +6682,52 @@ function insertText(target, content, position) {
|
|
|
6675
6682
|
target.insertAdjacentText(domPosition, content);
|
|
6676
6683
|
}
|
|
6677
6684
|
}
|
|
6685
|
+
function moveOrInsert(parent, element, ref) {
|
|
6686
|
+
const p = parent;
|
|
6687
|
+
if (typeof p.moveBefore === "function" && element.isConnected && parent.isConnected) {
|
|
6688
|
+
try {
|
|
6689
|
+
p.moveBefore(element, ref);
|
|
6690
|
+
return;
|
|
6691
|
+
} catch {
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
parent.insertBefore(element, ref);
|
|
6695
|
+
}
|
|
6696
|
+
function insertElementsInOrder(target, elements, position) {
|
|
6697
|
+
switch (position) {
|
|
6698
|
+
case "beforeend":
|
|
6699
|
+
for (const el of elements)
|
|
6700
|
+
moveOrInsert(target, el, null);
|
|
6701
|
+
break;
|
|
6702
|
+
case "afterbegin":
|
|
6703
|
+
for (let i = elements.length - 1; i >= 0; i--) {
|
|
6704
|
+
moveOrInsert(target, elements[i], target.firstChild);
|
|
6705
|
+
}
|
|
6706
|
+
break;
|
|
6707
|
+
case "beforebegin": {
|
|
6708
|
+
const parent = target.parentElement;
|
|
6709
|
+
if (!parent)
|
|
6710
|
+
return;
|
|
6711
|
+
for (const el of elements)
|
|
6712
|
+
moveOrInsert(parent, el, target);
|
|
6713
|
+
break;
|
|
6714
|
+
}
|
|
6715
|
+
case "afterend": {
|
|
6716
|
+
const parent = target.parentElement;
|
|
6717
|
+
if (!parent)
|
|
6718
|
+
return;
|
|
6719
|
+
for (let i = elements.length - 1; i >= 0; i--) {
|
|
6720
|
+
moveOrInsert(parent, elements[i], target.nextSibling);
|
|
6721
|
+
}
|
|
6722
|
+
break;
|
|
6723
|
+
}
|
|
6724
|
+
case "replace":
|
|
6725
|
+
target.innerHTML = "";
|
|
6726
|
+
for (const el of elements)
|
|
6727
|
+
moveOrInsert(target, el, null);
|
|
6728
|
+
break;
|
|
6729
|
+
}
|
|
6730
|
+
}
|
|
6678
6731
|
function removeElement(element) {
|
|
6679
6732
|
if (element.parentNode) {
|
|
6680
6733
|
element.remove();
|
|
@@ -7420,7 +7473,8 @@ function toMorphlexOptions(options) {
|
|
|
7420
7473
|
function getStartViewTransition() {
|
|
7421
7474
|
if (typeof document === "undefined")
|
|
7422
7475
|
return void 0;
|
|
7423
|
-
|
|
7476
|
+
const fn = document.startViewTransition;
|
|
7477
|
+
return typeof fn === "function" ? fn.bind(document) : void 0;
|
|
7424
7478
|
}
|
|
7425
7479
|
function isViewTransitionsSupported() {
|
|
7426
7480
|
return typeof getStartViewTransition() === "function";
|
|
@@ -16948,9 +17002,10 @@ function appendOptionalTailRole(tokens, extraction, commandSchema, languageCode,
|
|
|
16948
17002
|
type: "group",
|
|
16949
17003
|
optional: true,
|
|
16950
17004
|
tokens: [
|
|
16951
|
-
...(marker ? marker.split(/\s+/) : []).map(
|
|
16952
|
-
|
|
16953
|
-
|
|
17005
|
+
...(marker ? marker.split(/\s+/) : []).map((word) => ({
|
|
17006
|
+
type: "literal",
|
|
17007
|
+
value: word
|
|
17008
|
+
})),
|
|
16954
17009
|
{
|
|
16955
17010
|
type: "role",
|
|
16956
17011
|
role,
|
|
@@ -17081,6 +17136,70 @@ function generateSOVPatientFirstEventHandlerPattern(commandSchema, profile, keyw
|
|
|
17081
17136
|
extraction
|
|
17082
17137
|
};
|
|
17083
17138
|
}
|
|
17139
|
+
function generateSOVPatientFirstSourceFrontedEventHandlerPattern(commandSchema, profile, keyword, eventMarker, config2) {
|
|
17140
|
+
const sourceSpec = commandSchema.roles.find((r) => r.role === "source");
|
|
17141
|
+
if (!sourceSpec) return null;
|
|
17142
|
+
const { marker: sourceMarker, alternatives: sourceAlts } = resolveRoleMarker(sourceSpec, profile);
|
|
17143
|
+
const patientMarker = profile.roleMarkers.patient;
|
|
17144
|
+
if (!sourceMarker) return null;
|
|
17145
|
+
if (sourceMarker === eventMarker.primary || sourceMarker === patientMarker?.primary) return null;
|
|
17146
|
+
const tokens = [];
|
|
17147
|
+
tokens.push({ type: "role", role: "patient", optional: false });
|
|
17148
|
+
if (patientMarker) {
|
|
17149
|
+
tokens.push(
|
|
17150
|
+
patientMarker.alternatives ? {
|
|
17151
|
+
type: "literal",
|
|
17152
|
+
value: patientMarker.primary,
|
|
17153
|
+
alternatives: patientMarker.alternatives
|
|
17154
|
+
} : { type: "literal", value: patientMarker.primary }
|
|
17155
|
+
);
|
|
17156
|
+
}
|
|
17157
|
+
tokens.push({
|
|
17158
|
+
type: "role",
|
|
17159
|
+
role: "source",
|
|
17160
|
+
optional: false,
|
|
17161
|
+
...sourceSpec.expectedTypes ? { expectedTypes: sourceSpec.expectedTypes } : {},
|
|
17162
|
+
...sourceSpec.valueShape !== void 0 ? { valueShape: sourceSpec.valueShape } : {}
|
|
17163
|
+
});
|
|
17164
|
+
for (const word of sourceMarker.split(/\s+/)) {
|
|
17165
|
+
tokens.push(
|
|
17166
|
+
sourceAlts && sourceMarker.split(/\s+/).length === 1 ? { type: "literal", value: word, alternatives: sourceAlts } : { type: "literal", value: word }
|
|
17167
|
+
);
|
|
17168
|
+
}
|
|
17169
|
+
tokens.push({ type: "role", role: "event", optional: false });
|
|
17170
|
+
if (eventMarker.position === "after") {
|
|
17171
|
+
const markerWords = eventMarker.primary.split(/\s+/);
|
|
17172
|
+
if (markerWords.length > 1) {
|
|
17173
|
+
for (const word of markerWords) tokens.push({ type: "literal", value: word });
|
|
17174
|
+
} else {
|
|
17175
|
+
tokens.push(
|
|
17176
|
+
eventMarker.alternatives ? { type: "literal", value: eventMarker.primary, alternatives: eventMarker.alternatives } : { type: "literal", value: eventMarker.primary }
|
|
17177
|
+
);
|
|
17178
|
+
}
|
|
17179
|
+
}
|
|
17180
|
+
tokens.push(
|
|
17181
|
+
keyword.alternatives ? { type: "literal", value: keyword.primary, alternatives: keyword.alternatives } : { type: "literal", value: keyword.primary }
|
|
17182
|
+
);
|
|
17183
|
+
const extraction = {
|
|
17184
|
+
action: { value: commandSchema.action },
|
|
17185
|
+
event: { fromRole: "event" },
|
|
17186
|
+
patient: { fromRole: "patient" },
|
|
17187
|
+
source: { fromRole: "source" }
|
|
17188
|
+
};
|
|
17189
|
+
appendOptionalRecipient(tokens, extraction, commandSchema, profile.code);
|
|
17190
|
+
appendOptionalViewTransition(tokens, extraction, commandSchema, profile.code);
|
|
17191
|
+
return {
|
|
17192
|
+
id: `${commandSchema.action}-event-${profile.code}-sov-source-fronted`,
|
|
17193
|
+
language: profile.code,
|
|
17194
|
+
command: "on",
|
|
17195
|
+
priority: (config2.basePriority ?? 100) + 48,
|
|
17196
|
+
template: {
|
|
17197
|
+
format: `{patient} ${patientMarker?.primary || ""} {source} ${sourceMarker} {event} ${eventMarker.primary} ${keyword.primary}`,
|
|
17198
|
+
tokens
|
|
17199
|
+
},
|
|
17200
|
+
extraction
|
|
17201
|
+
};
|
|
17202
|
+
}
|
|
17084
17203
|
function generateSOVPatientFirstWithDestEventHandlerPattern(commandSchema, profile, keyword, eventMarker, config2) {
|
|
17085
17204
|
const tokens = [];
|
|
17086
17205
|
tokens.push({ type: "role", role: "patient", optional: false });
|
|
@@ -17966,6 +18085,14 @@ function generateEventHandlerPatterns(commandSchema, profile, config2 = defaultC
|
|
|
17966
18085
|
config2
|
|
17967
18086
|
)
|
|
17968
18087
|
);
|
|
18088
|
+
const sourceFronted = generateSOVPatientFirstSourceFrontedEventHandlerPattern(
|
|
18089
|
+
commandSchema,
|
|
18090
|
+
profile,
|
|
18091
|
+
keyword,
|
|
18092
|
+
eventMarker,
|
|
18093
|
+
config2
|
|
18094
|
+
);
|
|
18095
|
+
if (sourceFronted) patterns.push(sourceFronted);
|
|
17969
18096
|
const destMarkerCheck = profile.roleMarkers.destination;
|
|
17970
18097
|
if (destMarkerCheck && destMarkerCheck.primary !== eventMarker.primary) {
|
|
17971
18098
|
patterns.push(
|
|
@@ -21169,7 +21296,7 @@ function fillSchemaDefaults(node) {
|
|
|
21169
21296
|
const roles = node.roles;
|
|
21170
21297
|
for (const spec of schema.roles) {
|
|
21171
21298
|
if (spec.default !== void 0 && !roles.has(spec.role)) {
|
|
21172
|
-
roles.set(spec.role, { ...spec.default });
|
|
21299
|
+
roles.set(spec.role, { ...spec.default, implicit: true });
|
|
21173
21300
|
}
|
|
21174
21301
|
}
|
|
21175
21302
|
}
|
|
@@ -28359,7 +28486,7 @@ function createRuntimeInstance(options) {
|
|
|
28359
28486
|
return new Runtime(options);
|
|
28360
28487
|
}
|
|
28361
28488
|
function getVersion() {
|
|
28362
|
-
return
|
|
28489
|
+
return VERSION$1;
|
|
28363
28490
|
}
|
|
28364
28491
|
function toCompileError(error) {
|
|
28365
28492
|
return {
|
|
@@ -29475,7 +29602,7 @@ async function semanticNodeToRuntimeAST(node) {
|
|
|
29475
29602
|
const fw = await getFramework();
|
|
29476
29603
|
return fw.semanticNodeToRuntimeAST(node);
|
|
29477
29604
|
}
|
|
29478
|
-
var COMMAND_NAMES, COMMAND_MANIFEST, KEYWORDS$1, COMMAND_TERMINATORS, COMMANDS, COMPOUND_COMMANDS, CONTROL_FLOW_COMMANDS, PUT_OPERATIONS, PUT_OPERATION_KEYWORDS, HYPERSCRIPT_KEYWORDS, CommandClassification, CSS_FUNCTIONS, CONTEXT_VARS$1, LOGICAL_OPERATORS$1, COMPARISON_OPERATORS, DOM_EVENTS, TOKENIZER_KEYWORDS, TokenKind, MATHEMATICAL_OPERATORS, TIME_UNITS$1, isDebugEnabled$1, DEBUG, debug, debugEnabled, debugEventTarget, stats, DEFAULT_CONFIDENCE_THRESHOLD$1, SemanticIntegrationAdapter, STOP_TOKENS, STOP_DELIMITERS, CORE_FRAGMENT, PARSER_COMPARISON_FRAGMENT, ASSIGNMENT_FRAGMENT, PARSER_TABLE, FEATURE_REGISTRY, NODE_EVALUATORS, NODE_WRITERS, GLOBAL_WRITE_HOOKS, GLOBAL_READ_HOOKS, LOCAL_WRITE_HOOKS, LOCAL_READ_HOOKS, ParserExtensionRegistry, SINGLETON, WINDOW_KEY, MULTI_WORD_PATTERNS, DEFAULT_BOUNDARY_KEYWORDS, CommandNodeBuilder, OPERAND_INTRODUCERS, CONTEXT_POSSESSIVES, SWAP_STRATEGY_KEYWORDS, ELEMENT_PRONOUNS, GO_KEYWORDS, URL_HARD_STOPS, STRING_POSTFIX_UNITS, STRING_POSTFIX_BP, Parser, HookRegistry, sharedGlobals, elementScopes, ExpressionTypeRegistry, expressionTypeRegistry, BOOLEAN_ATTRIBUTES, SPECIAL_DOM_PROPERTIES, NUMBER_WORDS, conversionConfig, defaultConversions, TYPE_ALIASES, asExpression, isExpression, asyncExpression, conversionExpressions, UNSAFE_PROPS, possessiveExpression, myExpression, itsExpression$1, yourExpression, ofExpression, attributeExpression, attributeWithValueExpression, classReferenceExpression, idReferenceExpression, propertiesExpressions, NotSyncEvaluable, cachedFullRegistry, RAW_ARG_BUILTINS, CSS_PSEUDO_CLASSES, PSEUDO_CLASS_COLON_RE, BARE_REF_ESCAPE_RE, QUERY_REF_INTERP_RE, CleanupRegistry, EventSourceRegistry, ContextProviderRegistry, canonicalEvaluator, ContextBridge, CommandAdapterV2, CommandRegistryV2, defaultRegistry, RegistryIntegration, eventRecursionDepth, RuntimeBase, meExpression, youExpression, itExpression, itsExpression, resultExpression, querySelectorExpression, querySelectorAllExpression, idExpression, classExpression, closestExpression, parentExpression, windowExpression, documentExpression, elementWithSelectorExpression, styleRefExpression, possessiveStyleRefExpression, ofStyleRefExpression, referencesExpressions, isProduction, skipValidation, addDescribeToValidator, v, z, LRUCache, HyperscriptCache, globalCache, PerformanceTracker, performanceTracker, cleanupInterval, ComparisonInputSchema, PatternMatchingInputSchema, equalsExpression, strictEqualsExpression, notEqualsExpression, strictNotEqualsExpression, lessThanExpression, lessThanOrEqualExpression, greaterThanExpression, greaterThanOrEqualExpression, andExpression, orExpression, notExpression, isEmptyExpression, noExpression, isNotEmptyExpression, existsExpression, doesNotExistExpression, containsExpression, doesNotContainExpression, startsWithExpression, endsWithExpression, betweenExpression, matchesExpression, hasExpression, doesNotHaveExpression, logicalExpressions, BaseExpressionImpl, StringLiteralInputSchema, NumberLiteralInputSchema, BooleanLiteralInputSchema, BinaryOperationInputSchema, StringLiteralExpression, NumberLiteralExpression, BooleanLiteralExpression, AdditionExpression$1, StringConcatenationExpression, MultiplicationExpression$1, specialExpressions, firstExpression, lastExpression, atExpression, nextExpression, previousExpression, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, nextWithinExpression, previousWithinExpression, positionalExpressions, AdditionExpression2, SubtractionExpression, MultiplicationExpression2, DivisionExpression, ModuloExpression, PowerExpression, mathematicalExpressions, index$3, KEYWORD_PREPOSITIONS, VisibilityCommandBase, HideCommand, createHideCommand, ShowCommand, createShowCommand, SMART_ELEMENT_TAGS, DOMModificationBase, AddCommand, createAddCommand, positionMap, RemoveCommand, createRemoveCommand, PATTERN, BOOL_PROPS, ToggleCommand, createToggleCommand, PutCommand, createPutCommand, HTML_ESCAPE, MakeCommand, createMakeCommand, EmptyCommand, createEmptyCommand, OpenCommand, createOpenCommand, CloseCommand, createCloseCommand, SelectCommand, createSelectCommand, ResetCommand, createResetCommand, SUPPORTS_MOVE_BEFORE, ELEMENT_NODE_TYPE, TEXT_NODE_TYPE, IS_PARENT_NODE_TYPE, Operation, candidateNodes, candidateElements, candidateElementsWithIds, unmatchedNodes, unmatchedElements, whitespaceNodes, _idArrayMap, _idSetMap, _options, _Morph_instances, morphOneToMany_fn, morphOneToOne_fn, morphMatchingElements_fn, morphNonMatchingElements_fn, morphOtherNode_fn, visitAttributes_fn, visitTextArea_fn, replaceNode_fn, removeNode_fn, mapIdArraysForEach_fn, mapIdArrays_fn, mapIdSets_fn, Morph, morphAdapter, queue, processing, STRATEGY_KEYWORDS, SwapCommand, MorphCommand, createSwapCommand, createMorphCommand, CRITICAL_LAYOUT_ELEMENTS, STRUCTURAL_SEMANTIC_ELEMENTS, WARNING_ELEMENTS, DEFAULT_VALIDATION_CONFIG, globalConfig, STYLES, SEVERITY_ICONS, SEVERITY_LABELS, STRATEGY_MAP, ProcessPartialsCommand, createProcessPartialsCommand, WaitCommand, createWaitCommand, customResponseTypes, DEFAULT_FETCH_THROWS_ON, fetchThrowsOnPatterns, FetchCommand, createFetchCommand, SetCommand, createSetCommand, GetCommand, createGetCommand, NumericModifyCommand, createIncrementCommand, ClearCommand, createClearCommand, LogCommand, createLogCommand, EventDispatchCommand, createTriggerCommand, GoCommand, createGoCommand, KEYWORDS, HistoryCommand, createPushUrlCommand, ScrollCommand, createScrollCommand, ConditionalCommand, createConditionalCommand, createIfCommand, RepeatCommand, createRepeatCommand, ControlFlowSignalBase, BreakCommand, createBreakCommand, ContinueCommand, createContinueCommand, HaltCommand, createHaltCommand, ReturnCommand, createReturnCommand, ExitCommand, createExitCommand, ThrowCommand, createThrowCommand, CallCommand, createCallCommand, FocusCommand, createFocusCommand, BlurCommand, createBlurCommand, PseudoCommand, ContentInsertionCommand, AppendCommand, createAppendCommand, PrependCommand, createPrependCommand, TransitionCommand, createTransitionCommand, MeasureCommand, createMeasureCommand, SettleCommand, createSettleCommand, StartViewTransitionCommand, createStartViewTransitionCommand, TakeCommand, createTakeCommand, JsCommand, createJsCommand, AsyncCommand, createAsyncCommand, DefaultCommand, createDefaultCommand, TellCommand, createTellCommand, CopyCommand, createCopyCommand, PickCommand, createPickCommand, BeepCommand, createBeepCommand, BreakpointCommand, createBreakpointCommand, InstallCommand, RenderCommand, COMMAND_FACTORIES, Runtime, DEFAULT_REFERENCES, STRUCTURAL_ROLES, CHAIN_KEYWORDS, VERSION_HEADER_RE, VALID_KINDS, VALID_VALUE_TYPES$1, VALID_CHAIN_TYPES, VALID_ASYNC_VARIANTS, VALID_DIAGNOSTIC_LEVELS, DebugLogger, _PatternMatcher$1, PatternMatcher$1, patternMatcher$1, defaultConfig$1, GrammarTransformer, InMemoryDictionary, NullDictionary, InMemoryProfileProvider, NullProfileProvider, StringLiteralExtractor, NumberExtractor, IdentifierExtractor, UnicodeIdentifierExtractor, LatinExtendedIdentifierExtractor, SELECTOR_BODY_CHAR, PARTICLE_SCRIPT_CHAR, CssSelectorExtractor$1, WhitespaceExtractor, VALID_VALUE_TYPES, SCROLL_MARKERS, URL_MARKERS, PARTIALS_IN_MARKERS, DSLRegistry, MultilingualDSLImpl, DomainRegistry, COMMENT_PATTERN, CrossDomainDispatcher, DomainAwareScanner, AOTOrchestrator, TokenStreamImpl, DEFAULT_OPERATORS$1, OperatorExtractor$1, DEFAULT_PUNCTUATION$1, PunctuationExtractor$1, SIMPLE_TOKENIZER_OPERATOR_SET, MARKER_CONCEPT_NORMALIZEDS, ENGLISH_DOM_EVENT_NAMES, _BaseTokenizer, BaseTokenizer, BaseMorphologicalNormalizer, PatternTracker, MultiStatementParserImpl, index$2, __defProp2, __getOwnPropNames2, __esm2, __export2, SchemaErrorCodes, SchemaErrorMessages, SchemaErrorSuggestions, init_schema_error_codes, schema_validator_exports, MULTI_TYPE_PATIENT_COMMANDS, NO_REQUIRED_ROLES_COMMANDS, init_schema_validator, toggleSchema, addSchema, removeSchema, putSchema, setSchema, bindSchema, liveSchema, eventsourceSchema, socketSchema, workerSchema, interceptSchema, showSchema, hideSchema, onSchema, triggerSchema, waitSchema, fetchSchema, incrementSchema, decrementSchema, appendSchema, prependSchema, logSchema, getCommandSchema, takeSchema, makeSchema, haltSchema, settleSchema, throwSchema, sendSchema, ifSchema, unlessSchema, elseSchema, repeatSchema, forSchema, whileSchema, continueSchema, URL_MARKER_ALL_LANGS, goSchema, transitionSchema, cloneSchema, focusSchema, blurSchema, emptySchema, openSchema, closeSchema, selectSchema, clearSchema, resetSchema, breakpointSchema, callSchema, returnSchema, jsSchema, asyncSchema, tellSchema, defaultSchema, initSchema, behaviorSchema, installSchema, measureSchema, USING_VIEW_MARKER_ALL_LANGS, VIEW_TRANSITION_MANNER_ROLE, swapSchema, morphSchema, beepSchema, breakSchema, copySchema, exitSchema, pickSchema, scrollSchema, PARTIALS_IN_MARKER_ALL_LANGS, pushSchema, replaceSchema, processSchema, renderSchema, commandSchemas, init_command_schemas, tokenizers, profiles, patternCache, patternGenerator, registeredPatterns, init_registry, arabic_exports, arabicProfile, init_arabic, bengali_exports, bengaliProfile, init_bengali, german_exports, germanProfile, init_german, english_exports, englishProfile, init_english, spanish_exports, spanishProfile, init_spanish, french_exports, frenchProfile, init_french, he_exports, hebrewProfile, init_he, hindi_exports, hindiProfile, init_hindi, indonesian_exports, indonesianProfile, init_indonesian, italian_exports, italianProfile, init_italian, japanese_exports, japaneseProfile, init_japanese, korean_exports, koreanProfile, init_korean, ms_exports, malayProfile, init_ms, polish_exports, polishProfile, init_polish, portuguese_exports, portugueseProfile, init_portuguese, quechua_exports, quechuaProfile, init_quechua, russian_exports, russianProfile, init_russian, swahili_exports, swahiliProfile, init_swahili, thai_exports, thaiProfile, init_thai, tl_exports, tagalogProfile, init_tl, turkish_exports, turkishProfile, init_turkish, ukrainian_exports, ukrainianProfile, init_ukrainian, vietnamese_exports, vietnameseProfile, init_vietnamese, chinese_exports, chineseProfile, init_chinese, ROLE_MARKER_CONCEPTS, init_marker_resolution, PUT_POSITIONAL, PUT_AT_END, init_put, init_token_utils, init_char_classifiers, init_base_tokenizer, init_base, DEFAULT_OPERATORS, OperatorExtractor2, DEFAULT_PUNCTUATION, PunctuationExtractor2, init_generic_extractors, CssSelectorExtractor2, init_css_selector, EventModifierExtractor, init_event_modifier, URL_PREFIXES, UrlExtractor, init_url, VariableRefExtractor, init_variable_ref, JapaneseKeywordExtractor, init_japanese_keyword, SINGLE_CHAR_PARTICLES, MULTI_CHAR_PARTICLES, JapaneseParticleExtractor, init_japanese_particle, TEMPORAL_EVENT_SUFFIXES, KoreanKeywordExtractor, init_korean_keyword, SINGLE_CHAR_PARTICLES2, MULTI_CHAR_PARTICLES2, KoreanParticleExtractor, init_korean_particle, ChineseKeywordExtractor, init_chinese_keyword, SINGLE_CHAR_PARTICLES3, MULTI_CHAR_PARTICLES3, ChineseParticleExtractor, init_chinese_particle, isVietnameseLetter, isVietnameseIdentifierChar, PREPOSITIONS, VietnameseKeywordExtractor, init_vietnamese_keyword, isArabic, PREPOSITIONS2, ArabicKeywordExtractor, init_arabic_keyword, isArabic2, PROCLITICS, NON_PROCLITIC_WORDS, ArabicProcliticExtractor, init_arabic_proclitic, isArabic3, TEMPORAL_MARKERS, ArabicTemporalExtractor, init_arabic_temporal, CyrillicKeywordExtractor, RUSSIAN_PREPOSITIONS, UKRAINIAN_PREPOSITIONS, init_cyrillic_keyword, HindiKeywordExtractor, init_hindi_keyword, SINGLE_POSTPOSITIONS, COMPOUND_POSTPOSITIONS, HindiParticleExtractor, init_hindi_particle, BengaliKeywordExtractor, init_bengali_keyword, SINGLE_POSTPOSITIONS2, BengaliParticleExtractor, init_bengali_particle, ThaiKeywordExtractor, init_thai_keyword, MalayKeywordExtractor, init_malay_keyword, PREPOSITIONS3, TagalogKeywordExtractor, init_tagalog_keyword, PREPOSITIONS4, isPolishLetter, isPolishIdentifierChar, PolishKeywordExtractor, init_polish_keyword, PREPOSITIONS5, isIndonesianLetter, isIndonesianIdentifierChar, IndonesianKeywordExtractor, init_indonesian_keyword, PREPOSITIONS6, isSwahiliLetter, isSwahiliIdentifierChar, SwahiliKeywordExtractor, init_swahili_keyword, POSTPOSITIONS, CASE_SUFFIXES, TurkishKeywordExtractor, init_turkish_keyword, SUFFIXES, POSTPOSITIONS2, AGGLUTINATIVE_MARKERS, QuechuaKeywordExtractor, init_quechua_keyword, isHebrew, PREPOSITIONS7, CONJUNCTIONS, HebrewKeywordExtractor, init_hebrew_keyword, isHebrew2, PROCLITIC_PREFIXES, EVENT_MARKER_PREFIXES, EVENT_NAMES, HebrewProcliticExtractor, init_hebrew_proclitic, AsciiIdentifierExtractor, init_ascii_identifier, init_extractors, init_extractor_helpers, EnglishKeywordExtractor, init_english_keyword, english_exports2, ENGLISH_EXTRAS, EnglishTokenizer, englishTokenizer, init_english2, init_types, JAPANESE_SUFFIX_RULES, SURU_PATTERNS, JapaneseMorphologicalNormalizer, init_japanese_normalizer, japanese_exports2, PARTICLES, JAPANESE_EXTRAS, JapaneseTokenizer, japaneseTokenizer, init_japanese2, KOREAN_SUFFIX_RULES, HADA_PATTERNS, KoreanMorphologicalNormalizer, init_korean_normalizer, korean_exports2, PARTICLES2, KOREAN_EXTRAS, KoreanTokenizer, koreanTokenizer, init_korean2, COMBINED_PREFIXES, SINGLE_PREFIXES, VERB_PREFIXES, SUFFIXES2, ArabicMorphologicalNormalizer, init_arabic_normalizer, arabic_exports2, CONJUNCTIONS2, PREPOSITIONS8, ARABIC_EXTRAS, ArabicTokenizer, arabicTokenizer, init_arabic2, AR_ENDINGS, ER_ENDINGS, IR_ENDINGS, ALL_ENDINGS, SpanishMorphologicalNormalizer, init_spanish_normalizer, isSpanishLetter, isSpanishIdentifierChar, PREPOSITIONS9, SpanishKeywordExtractor, init_spanish_keyword, spanish_exports2, PREPOSITIONS10, SPANISH_EXTRAS, SpanishTokenizer, spanishTokenizer, init_spanish2, TURKISH_SUFFIX_RULES, TurkishMorphologicalNormalizer, init_turkish_normalizer, turkish_exports2, POSTPOSITIONS3, CASE_SUFFIXES2, TURKISH_EXTRAS, TurkishTokenizer, turkishTokenizer, init_turkish2, chinese_exports2, PARTICLES3, CHINESE_EXTRAS, ChineseTokenizer, chineseTokenizer, init_chinese2, REFLEXIVE_SUFFIXES, AR_ENDINGS2, ER_ENDINGS2, IR_ENDINGS2, ALL_ENDINGS2, PortugueseMorphologicalNormalizer, init_portuguese_normalizer, isPortugueseLetter, isPortugueseIdentifierChar, PREPOSITIONS11, PortugueseKeywordExtractor, init_portuguese_keyword, portuguese_exports2, PREPOSITIONS12, PORTUGUESE_EXTRAS, PortugueseTokenizer, portugueseTokenizer, init_portuguese2, REFLEXIVE_SUFFIXES2, ER_ENDINGS3, IR_ENDINGS3, RE_ENDINGS, ALL_ENDINGS3, FrenchMorphologicalNormalizer, init_french_normalizer, isFrenchLetter, isFrenchIdentifierChar, PREPOSITIONS13, FrenchKeywordExtractor, init_french_keyword, french_exports2, FRENCH_EXTRAS, FrenchTokenizer, frenchTokenizer, init_french2, SEPARABLE_PREFIXES, VERB_ENDINGS, ELN_ERN_ENDINGS, ALL_ENDINGS4, GermanMorphologicalNormalizer, init_german_normalizer, isGermanLetter, isGermanIdentifierChar, PREPOSITIONS14, GermanKeywordExtractor, init_german_keyword, german_exports2, GERMAN_EXTRAS, GermanTokenizer, germanTokenizer, init_german2, indonesian_exports2, PREPOSITIONS15, INDONESIAN_EXTRAS, IndonesianTokenizer, indonesianTokenizer, init_indonesian2, QUECHUA_SUFFIX_RULES, QuechuaMorphologicalNormalizer, quechuaMorphologicalNormalizer, init_quechua_normalizer, quechua_exports2, QuechuaStringLiteralExtractor, SUFFIXES3, QUECHUA_EXTRAS, QuechuaTokenizer, quechuaTokenizer, init_quechua2, swahili_exports2, PREPOSITIONS16, SWAHILI_EXTRAS, SwahiliTokenizer, swahiliTokenizer, init_swahili2, REFLEXIVE_SUFFIXES3, ARE_ENDINGS, ERE_ENDINGS, IRE_ENDINGS, ALL_ENDINGS5, ItalianMorphologicalNormalizer, init_italian_normalizer, RomanceKeywordExtractor, ITALIAN_PREPOSITIONS, init_romance_language_keyword, italian_exports2, PREPOSITIONS17, ITALIAN_EXTRAS, ItalianTokenizer, italianTokenizer, init_italian2, vietnamese_exports2, VIETNAMESE_EXTRAS, VietnameseTokenizer, vietnameseTokenizer, init_vietnamese2, IMPERATIVE_TO_INFINITIVE, PolishMorphologicalNormalizer, init_polish_normalizer, polish_exports2, PREPOSITIONS18, POLISH_EXTRAS, PolishTokenizer, polishTokenizer, init_polish2, IMPERATIVE_TO_INFINITIVE2, RussianMorphologicalNormalizer, init_russian_normalizer, russian_exports2, PREPOSITIONS19, RUSSIAN_EXTRAS, RussianTokenizer, russianTokenizer, init_russian2, IMPERATIVE_TO_INFINITIVE3, UkrainianMorphologicalNormalizer, init_ukrainian_normalizer, ukrainian_exports2, PREPOSITIONS20, UKRAINIAN_EXTRAS, UkrainianTokenizer, ukrainianTokenizer, init_ukrainian2, he_exports2, PREPOSITIONS21, HEBREW_EXTRAS, HebrewTokenizer, hebrewTokenizer, init_he2, SUFFIX_RULES, HindiMorphologicalNormalizer, init_hindi_normalizer, hindi_exports2, SINGLE_POSTPOSITIONS3, HINDI_EXTRAS, HindiTokenizer, hindiTokenizer, init_hindi2, SUFFIX_RULES2, BengaliMorphologicalNormalizer, bengaliMorphologicalNormalizer, init_bengali_normalizer, bengali_exports2, SINGLE_POSTPOSITIONS4, BENGALI_EXTRAS, BengaliTokenizer, bengaliTokenizer, init_bengali2, thai_exports2, THAI_EXTRAS, ThaiTokenizer, thaiTokenizer, init_thai2, ms_exports2, MALAY_EXTRAS, MalayTokenizer, malayTokenizer, init_ms2, COMBINED_PREFIXES2, SINGLE_PREFIXES2, INFIXES, SUFFIXES4, TagalogMorphologicalNormalizer, tagalogMorphologicalNormalizer, init_tagalog_normalizer, tl_exports2, TAGALOG_EXTRAS, TagalogTokenizer, tagalogTokenizer, init_tl2, eventNameTranslations, eventNameLocalizations, eventLocalizationDenylist, init_event_handler, init_role_positioning, init_event_handlers_sov, init_event_handlers_vso, defaultConfig, init_pattern_generator, fetchWithResponseTypeEnglish, fetchWithOptionsAndResponseTypeEnglish, fetchWithOptionsEnglish, fetchSimpleEnglish, fetchPatternsEn, init_fetch, pickVariantEnglish, pickPatternsEn, init_pick, VIEW_TRANSITION_TAIL, swapSimpleEnglish, swapElementEnglish, swapStrategyOfEnglish, swapStrategyEnglish, swapPatternsEn, init_swap, init_toggle, VERB_FIRST_REPEAT_TIMES, SOV_REPEAT_TIMES, FOR_IN_HEADS, WHILE_HEADS, VERB_FIRST_UNTIL_HEADS, repeatUntilHeadQuMidClause, SOV_UNTIL_HEADS, repeatUntilHeadQu, SOV_FOR_BINDING_HEADS, BY_LANG, addPattern, init_repeat, init_wait, en_exports, repeatUntilEventFromEnglish, repeatUntilEventEnglish, repeatTimesEnglish, repeatForeverEnglish, setPossessiveEnglish, forEnglish, ifEnglish, unlessEnglish, temporalInEnglish, temporalAfterEnglish, init_en, DEFAULT_CONFIDENCE_THRESHOLD, HIGH_CONFIDENCE_THRESHOLD, CONTEXT_VARS, LOGICAL_OPERATORS, BOOLEAN_LITERALS, COMPARISON_KEYWORDS, POSITIONAL_KEYWORDS, TIME_UNITS, POSSESSIVE_CONTEXT_TYPES, POSTFIX_STOP_WORDS, POSITIONAL_CALL_KEYWORDS, ExpressionParser, waitMapper, putMapper, goMapper, RANGE_METHODS, COUNT_METHODS, REGEX_METHODS, pickMapper, mappers, ASTBuilder, KNOWN_PROFILES, PROPERTY_NAME_LEXICON, CONNECTIVE_LEXICON, OF_POSSESSIVE_MARKERS, ROLE_CONCEPT_TO_ENGLISH_LOCATIVE, LOCATIVE_SURFACES, ENGLISH_LOCATIVE_SENSES, POSITIONAL_KEYWORDS2, POSITIONAL_HEAD_DUALS, COMMAND_ACTION_KEYWORDS, AMBIGUOUS_SENSES, SENSE_PREDICATE_NORMALIZED, CONVERSION_TYPE_NAMES, CURATED_END_KEYWORDS, MAX_FOLD_TOKENS, KEY_RE, FUSED_PAIR_RE, OPTIONAL_ROLE_WEIGHT, DEFAULT_PARTIAL_CREDIT, MAX_STEM_PENALTY, STEM_PENALTY_FLOOR, VSO_VERB_BOOST, MAX_PREPOSITION_ADJUSTMENT, ARABIC_VERBS, PREFERRED_PREPOSITIONS, DefaultConfidenceModel, defaultConfidenceModel, BAREKEYWORD_BLOCK_ACTIONS, _PatternMatcher2, PatternMatcher, patternMatcher, OPENER_ACTIONS, PASCAL_CASE_NAME, OPENER_NORMS, TARGET_REFERENCES, ROLE_CONCEPTS, TRIGGER_SIGNATURE_LANGS, DEF_NAME, FEATURE_ACTIONS, OPAQUE_BODY_FEATURES, NAMED_FEATURES, HANDLER_BODY_FEATURES, DEF_BODY_FEATURES, SOV_KEYWORD_SEARCH_LIMIT, INTERCEPT_SOV_KEYWORD_LIMIT, MODIFIER_KEYWORDS, ONCE_SEQUENCES, DURATION_RE, EXCLUDED_FIRST_KINDS, BLOCK_HEADER_ACTIONS, BLOCK_NEEDS_TRAILING_END, SemanticRendererImpl, semanticRenderer, hyperscriptSchemaLookup, BLOCK_BODY_ACTIONS, NON_VALUE_KEYWORDS, POSITIONAL_VALUE_KEYWORDS, WAITABLE_EVENT_WORDS, SemanticParseError, MAX_UNCONSUMED_SPAN_CHARS, COVERAGE_RESIDUE_NORMALIZED, NORMALIZE_CHILD_FIELDS, _SemanticParserImpl, SemanticParserImpl, semanticParser, SemanticCache2, semanticCache, LANGUAGE_IMPORTERS, SUPPORTED_LANGUAGES, PICK_UNIT_WORDS, retypePickUnitWord, VERB_INITIAL_SPECS, VERB_FINAL_SPECS, repeatUntilEventFromEnglish2, repeatUntilEventEnglish2, repeatPatternsEn, setPossessiveEnglish2, setPatternsEn, forEnglish2, ifEnglish2, unlessEnglish2, controlFlowPatternsEn, temporalInEnglish2, temporalAfterEnglish2, temporalPatternsEn, allEnglishOnlyPatterns, PATTERN_LOADERS, _generatedPatternsPerLanguage, handcraftedLanguages, patternCache2, _allPatterns, schemaRegistry, DEFAULT_CONFIG, HIGH_FREQUENCY_TRIGGERS, THROTTLE_RECOMMENDED_TRIGGERS, _devModeEnabled, _devModeConfig, VERSION, index$1, HistorySwapBehavior, BoostedBehavior, DEFAULT_EVENT_TYPE, DEFAULT_LANGUAGE$1, compileSyncFn, compileAsyncFn, getRuntimeFn, configRef, RingBuffer, HISTORY_CAPACITY, DebugController, DEFAULT_LANGUAGE, ASTCache, astCache, semanticAnalyzerInstance, bridgeInstance, config, _defaultRuntime, _debugController, hyperscript, lokascript, OP_TABLE, Lexer, Tokens, MAX_HISTORY_SIZE$5, DefInputSchema, TypedDefFeatureImplementation, enhancedDefImplementation, MAX_HISTORY_SIZE$4, EnhancedOnInputSchema, TypedOnFeatureImplementation, enhancedOnImplementation, MAX_HISTORY_SIZE$3, BehaviorsInputSchema, TypedBehaviorsFeatureImplementation, enhancedBehaviorsImplementation, MAX_HISTORY_SIZE$2, SocketsInputSchema, TypedSocketsFeatureImplementation, enhancedSocketsImplementation, MAX_HISTORY_SIZE$1, WebWorkerInputSchema, TypedWebWorkerFeatureImplementation, enhancedWebWorkerImplementation, MAX_HISTORY_SIZE, EventSourceInputSchema, TypedEventSourceFeatureImplementation, enhancedEventSourceImplementation, INTERCHANGE_ADAPTER, POS, DiagnosticSeverity, SymbolKind, CompletionItemKind, _semanticModule, SemanticGrammarBridge, bridge, _fw, index;
|
|
29605
|
+
var COMMAND_NAMES, COMMAND_MANIFEST, KEYWORDS$1, COMMAND_TERMINATORS, COMMANDS, COMPOUND_COMMANDS, CONTROL_FLOW_COMMANDS, PUT_OPERATIONS, PUT_OPERATION_KEYWORDS, HYPERSCRIPT_KEYWORDS, CommandClassification, CSS_FUNCTIONS, CONTEXT_VARS$1, LOGICAL_OPERATORS$1, COMPARISON_OPERATORS, DOM_EVENTS, TOKENIZER_KEYWORDS, TokenKind, MATHEMATICAL_OPERATORS, TIME_UNITS$1, isDebugEnabled$1, DEBUG, debug, debugEnabled, debugEventTarget, stats, DEFAULT_CONFIDENCE_THRESHOLD$1, SemanticIntegrationAdapter, STOP_TOKENS, STOP_DELIMITERS, CORE_FRAGMENT, PARSER_COMPARISON_FRAGMENT, ASSIGNMENT_FRAGMENT, PARSER_TABLE, FEATURE_REGISTRY, NODE_EVALUATORS, NODE_WRITERS, GLOBAL_WRITE_HOOKS, GLOBAL_READ_HOOKS, LOCAL_WRITE_HOOKS, LOCAL_READ_HOOKS, ParserExtensionRegistry, SINGLETON, WINDOW_KEY, MULTI_WORD_PATTERNS, DEFAULT_BOUNDARY_KEYWORDS, CommandNodeBuilder, OPERAND_INTRODUCERS, CONTEXT_POSSESSIVES, SWAP_STRATEGY_KEYWORDS, ELEMENT_PRONOUNS, GO_KEYWORDS, URL_HARD_STOPS, STRING_POSTFIX_UNITS, STRING_POSTFIX_BP, Parser, HookRegistry, sharedGlobals, elementScopes, ExpressionTypeRegistry, expressionTypeRegistry, BOOLEAN_ATTRIBUTES, SPECIAL_DOM_PROPERTIES, NUMBER_WORDS, conversionConfig, defaultConversions, TYPE_ALIASES, asExpression, isExpression, asyncExpression, conversionExpressions, UNSAFE_PROPS, possessiveExpression, myExpression, itsExpression$1, yourExpression, ofExpression, attributeExpression, attributeWithValueExpression, classReferenceExpression, idReferenceExpression, propertiesExpressions, NotSyncEvaluable, cachedFullRegistry, RAW_ARG_BUILTINS, CSS_PSEUDO_CLASSES, PSEUDO_CLASS_COLON_RE, BARE_REF_ESCAPE_RE, QUERY_REF_INTERP_RE, CleanupRegistry, EventSourceRegistry, ContextProviderRegistry, canonicalEvaluator, ContextBridge, CommandAdapterV2, CommandRegistryV2, defaultRegistry, RegistryIntegration, eventRecursionDepth, RuntimeBase, meExpression, youExpression, itExpression, itsExpression, resultExpression, querySelectorExpression, querySelectorAllExpression, idExpression, classExpression, closestExpression, parentExpression, windowExpression, documentExpression, elementWithSelectorExpression, styleRefExpression, possessiveStyleRefExpression, ofStyleRefExpression, referencesExpressions, isProduction, skipValidation, addDescribeToValidator, v, z, LRUCache, HyperscriptCache, globalCache, PerformanceTracker, performanceTracker, cleanupInterval, ComparisonInputSchema, PatternMatchingInputSchema, equalsExpression, strictEqualsExpression, notEqualsExpression, strictNotEqualsExpression, lessThanExpression, lessThanOrEqualExpression, greaterThanExpression, greaterThanOrEqualExpression, andExpression, orExpression, notExpression, isEmptyExpression, noExpression, isNotEmptyExpression, existsExpression, doesNotExistExpression, containsExpression, doesNotContainExpression, startsWithExpression, endsWithExpression, betweenExpression, matchesExpression, hasExpression, doesNotHaveExpression, logicalExpressions, BaseExpressionImpl, StringLiteralInputSchema, NumberLiteralInputSchema, BooleanLiteralInputSchema, BinaryOperationInputSchema, StringLiteralExpression, NumberLiteralExpression, BooleanLiteralExpression, AdditionExpression$1, StringConcatenationExpression, MultiplicationExpression$1, specialExpressions, firstExpression, lastExpression, atExpression, nextExpression, previousExpression, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, nextWithinExpression, previousWithinExpression, positionalExpressions, AdditionExpression2, SubtractionExpression, MultiplicationExpression2, DivisionExpression, ModuloExpression, PowerExpression, mathematicalExpressions, index$3, KEYWORD_PREPOSITIONS, VisibilityCommandBase, HideCommand, createHideCommand, ShowCommand, createShowCommand, SMART_ELEMENT_TAGS, DOMModificationBase, AddCommand, createAddCommand, positionMap, RemoveCommand, createRemoveCommand, PATTERN, BOOL_PROPS, ToggleCommand, createToggleCommand, PutCommand, createPutCommand, HTML_ESCAPE, MakeCommand, createMakeCommand, EmptyCommand, createEmptyCommand, OpenCommand, createOpenCommand, CloseCommand, createCloseCommand, SelectCommand, createSelectCommand, ResetCommand, createResetCommand, SUPPORTS_MOVE_BEFORE, ELEMENT_NODE_TYPE, TEXT_NODE_TYPE, IS_PARENT_NODE_TYPE, Operation, candidateNodes, candidateElements, candidateElementsWithIds, unmatchedNodes, unmatchedElements, whitespaceNodes, _idArrayMap, _idSetMap, _options, _Morph_instances, morphOneToMany_fn, morphOneToOne_fn, morphMatchingElements_fn, morphNonMatchingElements_fn, morphOtherNode_fn, visitAttributes_fn, visitTextArea_fn, replaceNode_fn, removeNode_fn, mapIdArraysForEach_fn, mapIdArrays_fn, mapIdSets_fn, Morph, morphAdapter, queue, processing, STRATEGY_KEYWORDS, SwapCommand, MorphCommand, createSwapCommand, createMorphCommand, CRITICAL_LAYOUT_ELEMENTS, STRUCTURAL_SEMANTIC_ELEMENTS, WARNING_ELEMENTS, DEFAULT_VALIDATION_CONFIG, globalConfig, STYLES, SEVERITY_ICONS, SEVERITY_LABELS, STRATEGY_MAP, ProcessPartialsCommand, createProcessPartialsCommand, WaitCommand, createWaitCommand, customResponseTypes, DEFAULT_FETCH_THROWS_ON, fetchThrowsOnPatterns, FetchCommand, createFetchCommand, SetCommand, createSetCommand, GetCommand, createGetCommand, NumericModifyCommand, createIncrementCommand, ClearCommand, createClearCommand, LogCommand, createLogCommand, EventDispatchCommand, createTriggerCommand, GoCommand, createGoCommand, KEYWORDS, HistoryCommand, createPushUrlCommand, ScrollCommand, createScrollCommand, ConditionalCommand, createConditionalCommand, createIfCommand, RepeatCommand, createRepeatCommand, ControlFlowSignalBase, BreakCommand, createBreakCommand, ContinueCommand, createContinueCommand, HaltCommand, createHaltCommand, ReturnCommand, createReturnCommand, ExitCommand, createExitCommand, ThrowCommand, createThrowCommand, CallCommand, createCallCommand, FocusCommand, createFocusCommand, BlurCommand, createBlurCommand, PseudoCommand, ContentInsertionCommand, AppendCommand, createAppendCommand, PrependCommand, createPrependCommand, TransitionCommand, createTransitionCommand, MeasureCommand, createMeasureCommand, SettleCommand, createSettleCommand, StartViewTransitionCommand, createStartViewTransitionCommand, TakeCommand, createTakeCommand, JsCommand, createJsCommand, AsyncCommand, createAsyncCommand, DefaultCommand, createDefaultCommand, TellCommand, createTellCommand, CopyCommand, createCopyCommand, PickCommand, createPickCommand, BeepCommand, createBeepCommand, BreakpointCommand, createBreakpointCommand, InstallCommand, RenderCommand, COMMAND_FACTORIES, Runtime, VERSION$1, DEFAULT_REFERENCES, STRUCTURAL_ROLES, CHAIN_KEYWORDS, VERSION_HEADER_RE, VALID_KINDS, VALID_VALUE_TYPES$1, VALID_CHAIN_TYPES, VALID_ASYNC_VARIANTS, VALID_DIAGNOSTIC_LEVELS, DebugLogger, _PatternMatcher$1, PatternMatcher$1, patternMatcher$1, defaultConfig$1, GrammarTransformer, InMemoryDictionary, NullDictionary, InMemoryProfileProvider, NullProfileProvider, StringLiteralExtractor, NumberExtractor, IdentifierExtractor, UnicodeIdentifierExtractor, LatinExtendedIdentifierExtractor, SELECTOR_BODY_CHAR, PARTICLE_SCRIPT_CHAR, CssSelectorExtractor$1, WhitespaceExtractor, VALID_VALUE_TYPES, SCROLL_MARKERS, URL_MARKERS, PARTIALS_IN_MARKERS, DSLRegistry, MultilingualDSLImpl, DomainRegistry, COMMENT_PATTERN, CrossDomainDispatcher, DomainAwareScanner, AOTOrchestrator, TokenStreamImpl, DEFAULT_OPERATORS$1, OperatorExtractor$1, DEFAULT_PUNCTUATION$1, PunctuationExtractor$1, SIMPLE_TOKENIZER_OPERATOR_SET, MARKER_CONCEPT_NORMALIZEDS, ENGLISH_DOM_EVENT_NAMES, _BaseTokenizer, BaseTokenizer, BaseMorphologicalNormalizer, PatternTracker, MultiStatementParserImpl, index$2, __defProp2, __getOwnPropNames2, __esm2, __export2, SchemaErrorCodes, SchemaErrorMessages, SchemaErrorSuggestions, init_schema_error_codes, schema_validator_exports, MULTI_TYPE_PATIENT_COMMANDS, NO_REQUIRED_ROLES_COMMANDS, init_schema_validator, toggleSchema, addSchema, removeSchema, putSchema, setSchema, bindSchema, liveSchema, eventsourceSchema, socketSchema, workerSchema, interceptSchema, showSchema, hideSchema, onSchema, triggerSchema, waitSchema, fetchSchema, incrementSchema, decrementSchema, appendSchema, prependSchema, logSchema, getCommandSchema, takeSchema, makeSchema, haltSchema, settleSchema, throwSchema, sendSchema, ifSchema, unlessSchema, elseSchema, repeatSchema, forSchema, whileSchema, continueSchema, URL_MARKER_ALL_LANGS, goSchema, transitionSchema, cloneSchema, focusSchema, blurSchema, emptySchema, openSchema, closeSchema, selectSchema, clearSchema, resetSchema, breakpointSchema, callSchema, returnSchema, jsSchema, asyncSchema, tellSchema, defaultSchema, initSchema, behaviorSchema, installSchema, measureSchema, USING_VIEW_MARKER_ALL_LANGS, VIEW_TRANSITION_MANNER_ROLE, swapSchema, morphSchema, beepSchema, breakSchema, copySchema, exitSchema, pickSchema, scrollSchema, PARTIALS_IN_MARKER_ALL_LANGS, pushSchema, replaceSchema, processSchema, renderSchema, commandSchemas, init_command_schemas, tokenizers, profiles, patternCache, patternGenerator, registeredPatterns, init_registry, arabic_exports, arabicProfile, init_arabic, bengali_exports, bengaliProfile, init_bengali, german_exports, germanProfile, init_german, english_exports, englishProfile, init_english, spanish_exports, spanishProfile, init_spanish, french_exports, frenchProfile, init_french, he_exports, hebrewProfile, init_he, hindi_exports, hindiProfile, init_hindi, indonesian_exports, indonesianProfile, init_indonesian, italian_exports, italianProfile, init_italian, japanese_exports, japaneseProfile, init_japanese, korean_exports, koreanProfile, init_korean, ms_exports, malayProfile, init_ms, polish_exports, polishProfile, init_polish, portuguese_exports, portugueseProfile, init_portuguese, quechua_exports, quechuaProfile, init_quechua, russian_exports, russianProfile, init_russian, swahili_exports, swahiliProfile, init_swahili, thai_exports, thaiProfile, init_thai, tl_exports, tagalogProfile, init_tl, turkish_exports, turkishProfile, init_turkish, ukrainian_exports, ukrainianProfile, init_ukrainian, vietnamese_exports, vietnameseProfile, init_vietnamese, chinese_exports, chineseProfile, init_chinese, ROLE_MARKER_CONCEPTS, init_marker_resolution, PUT_POSITIONAL, PUT_AT_END, init_put, init_token_utils, init_char_classifiers, init_base_tokenizer, init_base, DEFAULT_OPERATORS, OperatorExtractor2, DEFAULT_PUNCTUATION, PunctuationExtractor2, init_generic_extractors, CssSelectorExtractor2, init_css_selector, EventModifierExtractor, init_event_modifier, URL_PREFIXES, UrlExtractor, init_url, VariableRefExtractor, init_variable_ref, JapaneseKeywordExtractor, init_japanese_keyword, SINGLE_CHAR_PARTICLES, MULTI_CHAR_PARTICLES, JapaneseParticleExtractor, init_japanese_particle, TEMPORAL_EVENT_SUFFIXES, KoreanKeywordExtractor, init_korean_keyword, SINGLE_CHAR_PARTICLES2, MULTI_CHAR_PARTICLES2, KoreanParticleExtractor, init_korean_particle, ChineseKeywordExtractor, init_chinese_keyword, SINGLE_CHAR_PARTICLES3, MULTI_CHAR_PARTICLES3, ChineseParticleExtractor, init_chinese_particle, isVietnameseLetter, isVietnameseIdentifierChar, PREPOSITIONS, VietnameseKeywordExtractor, init_vietnamese_keyword, isArabic, PREPOSITIONS2, ArabicKeywordExtractor, init_arabic_keyword, isArabic2, PROCLITICS, NON_PROCLITIC_WORDS, ArabicProcliticExtractor, init_arabic_proclitic, isArabic3, TEMPORAL_MARKERS, ArabicTemporalExtractor, init_arabic_temporal, CyrillicKeywordExtractor, RUSSIAN_PREPOSITIONS, UKRAINIAN_PREPOSITIONS, init_cyrillic_keyword, HindiKeywordExtractor, init_hindi_keyword, SINGLE_POSTPOSITIONS, COMPOUND_POSTPOSITIONS, HindiParticleExtractor, init_hindi_particle, BengaliKeywordExtractor, init_bengali_keyword, SINGLE_POSTPOSITIONS2, BengaliParticleExtractor, init_bengali_particle, ThaiKeywordExtractor, init_thai_keyword, MalayKeywordExtractor, init_malay_keyword, PREPOSITIONS3, TagalogKeywordExtractor, init_tagalog_keyword, PREPOSITIONS4, isPolishLetter, isPolishIdentifierChar, PolishKeywordExtractor, init_polish_keyword, PREPOSITIONS5, isIndonesianLetter, isIndonesianIdentifierChar, IndonesianKeywordExtractor, init_indonesian_keyword, PREPOSITIONS6, isSwahiliLetter, isSwahiliIdentifierChar, SwahiliKeywordExtractor, init_swahili_keyword, POSTPOSITIONS, CASE_SUFFIXES, TurkishKeywordExtractor, init_turkish_keyword, SUFFIXES, POSTPOSITIONS2, AGGLUTINATIVE_MARKERS, QuechuaKeywordExtractor, init_quechua_keyword, isHebrew, PREPOSITIONS7, CONJUNCTIONS, HebrewKeywordExtractor, init_hebrew_keyword, isHebrew2, PROCLITIC_PREFIXES, EVENT_MARKER_PREFIXES, EVENT_NAMES, HebrewProcliticExtractor, init_hebrew_proclitic, AsciiIdentifierExtractor, init_ascii_identifier, init_extractors, init_extractor_helpers, EnglishKeywordExtractor, init_english_keyword, english_exports2, ENGLISH_EXTRAS, EnglishTokenizer, englishTokenizer, init_english2, init_types, JAPANESE_SUFFIX_RULES, SURU_PATTERNS, JapaneseMorphologicalNormalizer, init_japanese_normalizer, japanese_exports2, PARTICLES, JAPANESE_EXTRAS, JapaneseTokenizer, japaneseTokenizer, init_japanese2, KOREAN_SUFFIX_RULES, HADA_PATTERNS, KoreanMorphologicalNormalizer, init_korean_normalizer, korean_exports2, PARTICLES2, KOREAN_EXTRAS, KoreanTokenizer, koreanTokenizer, init_korean2, COMBINED_PREFIXES, SINGLE_PREFIXES, VERB_PREFIXES, SUFFIXES2, ArabicMorphologicalNormalizer, init_arabic_normalizer, arabic_exports2, CONJUNCTIONS2, PREPOSITIONS8, ARABIC_EXTRAS, ArabicTokenizer, arabicTokenizer, init_arabic2, AR_ENDINGS, ER_ENDINGS, IR_ENDINGS, ALL_ENDINGS, SpanishMorphologicalNormalizer, init_spanish_normalizer, isSpanishLetter, isSpanishIdentifierChar, PREPOSITIONS9, SpanishKeywordExtractor, init_spanish_keyword, spanish_exports2, PREPOSITIONS10, SPANISH_EXTRAS, SpanishTokenizer, spanishTokenizer, init_spanish2, TURKISH_SUFFIX_RULES, TurkishMorphologicalNormalizer, init_turkish_normalizer, turkish_exports2, POSTPOSITIONS3, CASE_SUFFIXES2, TURKISH_EXTRAS, TurkishTokenizer, turkishTokenizer, init_turkish2, chinese_exports2, PARTICLES3, CHINESE_EXTRAS, ChineseTokenizer, chineseTokenizer, init_chinese2, REFLEXIVE_SUFFIXES, AR_ENDINGS2, ER_ENDINGS2, IR_ENDINGS2, ALL_ENDINGS2, PortugueseMorphologicalNormalizer, init_portuguese_normalizer, isPortugueseLetter, isPortugueseIdentifierChar, PREPOSITIONS11, PortugueseKeywordExtractor, init_portuguese_keyword, portuguese_exports2, PREPOSITIONS12, PORTUGUESE_EXTRAS, PortugueseTokenizer, portugueseTokenizer, init_portuguese2, REFLEXIVE_SUFFIXES2, ER_ENDINGS3, IR_ENDINGS3, RE_ENDINGS, ALL_ENDINGS3, FrenchMorphologicalNormalizer, init_french_normalizer, isFrenchLetter, isFrenchIdentifierChar, PREPOSITIONS13, FrenchKeywordExtractor, init_french_keyword, french_exports2, FRENCH_EXTRAS, FrenchTokenizer, frenchTokenizer, init_french2, SEPARABLE_PREFIXES, VERB_ENDINGS, ELN_ERN_ENDINGS, ALL_ENDINGS4, GermanMorphologicalNormalizer, init_german_normalizer, isGermanLetter, isGermanIdentifierChar, PREPOSITIONS14, GermanKeywordExtractor, init_german_keyword, german_exports2, GERMAN_EXTRAS, GermanTokenizer, germanTokenizer, init_german2, indonesian_exports2, PREPOSITIONS15, INDONESIAN_EXTRAS, IndonesianTokenizer, indonesianTokenizer, init_indonesian2, QUECHUA_SUFFIX_RULES, QuechuaMorphologicalNormalizer, quechuaMorphologicalNormalizer, init_quechua_normalizer, quechua_exports2, QuechuaStringLiteralExtractor, SUFFIXES3, QUECHUA_EXTRAS, QuechuaTokenizer, quechuaTokenizer, init_quechua2, swahili_exports2, PREPOSITIONS16, SWAHILI_EXTRAS, SwahiliTokenizer, swahiliTokenizer, init_swahili2, REFLEXIVE_SUFFIXES3, ARE_ENDINGS, ERE_ENDINGS, IRE_ENDINGS, ALL_ENDINGS5, ItalianMorphologicalNormalizer, init_italian_normalizer, RomanceKeywordExtractor, ITALIAN_PREPOSITIONS, init_romance_language_keyword, italian_exports2, PREPOSITIONS17, ITALIAN_EXTRAS, ItalianTokenizer, italianTokenizer, init_italian2, vietnamese_exports2, VIETNAMESE_EXTRAS, VietnameseTokenizer, vietnameseTokenizer, init_vietnamese2, IMPERATIVE_TO_INFINITIVE, PolishMorphologicalNormalizer, init_polish_normalizer, polish_exports2, PREPOSITIONS18, POLISH_EXTRAS, PolishTokenizer, polishTokenizer, init_polish2, IMPERATIVE_TO_INFINITIVE2, RussianMorphologicalNormalizer, init_russian_normalizer, russian_exports2, PREPOSITIONS19, RUSSIAN_EXTRAS, RussianTokenizer, russianTokenizer, init_russian2, IMPERATIVE_TO_INFINITIVE3, UkrainianMorphologicalNormalizer, init_ukrainian_normalizer, ukrainian_exports2, PREPOSITIONS20, UKRAINIAN_EXTRAS, UkrainianTokenizer, ukrainianTokenizer, init_ukrainian2, he_exports2, PREPOSITIONS21, HEBREW_EXTRAS, HebrewTokenizer, hebrewTokenizer, init_he2, SUFFIX_RULES, HindiMorphologicalNormalizer, init_hindi_normalizer, hindi_exports2, SINGLE_POSTPOSITIONS3, HINDI_EXTRAS, HindiTokenizer, hindiTokenizer, init_hindi2, SUFFIX_RULES2, BengaliMorphologicalNormalizer, bengaliMorphologicalNormalizer, init_bengali_normalizer, bengali_exports2, SINGLE_POSTPOSITIONS4, BENGALI_EXTRAS, BengaliTokenizer, bengaliTokenizer, init_bengali2, thai_exports2, THAI_EXTRAS, ThaiTokenizer, thaiTokenizer, init_thai2, ms_exports2, MALAY_EXTRAS, MalayTokenizer, malayTokenizer, init_ms2, COMBINED_PREFIXES2, SINGLE_PREFIXES2, INFIXES, SUFFIXES4, TagalogMorphologicalNormalizer, tagalogMorphologicalNormalizer, init_tagalog_normalizer, tl_exports2, TAGALOG_EXTRAS, TagalogTokenizer, tagalogTokenizer, init_tl2, eventNameTranslations, eventNameLocalizations, eventLocalizationDenylist, init_event_handler, init_role_positioning, init_event_handlers_sov, init_event_handlers_vso, defaultConfig, init_pattern_generator, fetchWithResponseTypeEnglish, fetchWithOptionsAndResponseTypeEnglish, fetchWithOptionsEnglish, fetchSimpleEnglish, fetchPatternsEn, init_fetch, pickVariantEnglish, pickPatternsEn, init_pick, VIEW_TRANSITION_TAIL, swapSimpleEnglish, swapElementEnglish, swapStrategyOfEnglish, swapStrategyEnglish, swapPatternsEn, init_swap, init_toggle, VERB_FIRST_REPEAT_TIMES, SOV_REPEAT_TIMES, FOR_IN_HEADS, WHILE_HEADS, VERB_FIRST_UNTIL_HEADS, repeatUntilHeadQuMidClause, SOV_UNTIL_HEADS, repeatUntilHeadQu, SOV_FOR_BINDING_HEADS, BY_LANG, addPattern, init_repeat, init_wait, en_exports, repeatUntilEventFromEnglish, repeatUntilEventEnglish, repeatTimesEnglish, repeatForeverEnglish, setPossessiveEnglish, forEnglish, ifEnglish, unlessEnglish, temporalInEnglish, temporalAfterEnglish, init_en, DEFAULT_CONFIDENCE_THRESHOLD, HIGH_CONFIDENCE_THRESHOLD, CONTEXT_VARS, LOGICAL_OPERATORS, BOOLEAN_LITERALS, COMPARISON_KEYWORDS, POSITIONAL_KEYWORDS, TIME_UNITS, POSSESSIVE_CONTEXT_TYPES, POSTFIX_STOP_WORDS, POSITIONAL_CALL_KEYWORDS, ExpressionParser, waitMapper, putMapper, goMapper, RANGE_METHODS, COUNT_METHODS, REGEX_METHODS, pickMapper, mappers, ASTBuilder, KNOWN_PROFILES, PROPERTY_NAME_LEXICON, CONNECTIVE_LEXICON, OF_POSSESSIVE_MARKERS, ROLE_CONCEPT_TO_ENGLISH_LOCATIVE, LOCATIVE_SURFACES, ENGLISH_LOCATIVE_SENSES, POSITIONAL_KEYWORDS2, POSITIONAL_HEAD_DUALS, COMMAND_ACTION_KEYWORDS, AMBIGUOUS_SENSES, SENSE_PREDICATE_NORMALIZED, CONVERSION_TYPE_NAMES, CURATED_END_KEYWORDS, MAX_FOLD_TOKENS, KEY_RE, FUSED_PAIR_RE, OPTIONAL_ROLE_WEIGHT, DEFAULT_PARTIAL_CREDIT, MAX_STEM_PENALTY, STEM_PENALTY_FLOOR, VSO_VERB_BOOST, MAX_PREPOSITION_ADJUSTMENT, ARABIC_VERBS, PREFERRED_PREPOSITIONS, DefaultConfidenceModel, defaultConfidenceModel, BAREKEYWORD_BLOCK_ACTIONS, _PatternMatcher2, PatternMatcher, patternMatcher, OPENER_ACTIONS, PASCAL_CASE_NAME, OPENER_NORMS, TARGET_REFERENCES, ROLE_CONCEPTS, TRIGGER_SIGNATURE_LANGS, DEF_NAME, FEATURE_ACTIONS, OPAQUE_BODY_FEATURES, NAMED_FEATURES, HANDLER_BODY_FEATURES, DEF_BODY_FEATURES, SOV_KEYWORD_SEARCH_LIMIT, INTERCEPT_SOV_KEYWORD_LIMIT, MODIFIER_KEYWORDS, ONCE_SEQUENCES, DURATION_RE, EXCLUDED_FIRST_KINDS, BLOCK_HEADER_ACTIONS, BLOCK_NEEDS_TRAILING_END, SemanticRendererImpl, semanticRenderer, hyperscriptSchemaLookup, BLOCK_BODY_ACTIONS, NON_VALUE_KEYWORDS, POSITIONAL_VALUE_KEYWORDS, WAITABLE_EVENT_WORDS, SemanticParseError, MAX_UNCONSUMED_SPAN_CHARS, COVERAGE_RESIDUE_NORMALIZED, NORMALIZE_CHILD_FIELDS, _SemanticParserImpl, SemanticParserImpl, semanticParser, SemanticCache2, semanticCache, LANGUAGE_IMPORTERS, SUPPORTED_LANGUAGES, PICK_UNIT_WORDS, retypePickUnitWord, VERB_INITIAL_SPECS, VERB_FINAL_SPECS, repeatUntilEventFromEnglish2, repeatUntilEventEnglish2, repeatPatternsEn, setPossessiveEnglish2, setPatternsEn, forEnglish2, ifEnglish2, unlessEnglish2, controlFlowPatternsEn, temporalInEnglish2, temporalAfterEnglish2, temporalPatternsEn, allEnglishOnlyPatterns, PATTERN_LOADERS, _generatedPatternsPerLanguage, handcraftedLanguages, patternCache2, _allPatterns, schemaRegistry, DEFAULT_CONFIG, HIGH_FREQUENCY_TRIGGERS, THROTTLE_RECOMMENDED_TRIGGERS, _devModeEnabled, _devModeConfig, VERSION, index$1, HistorySwapBehavior, BoostedBehavior, DEFAULT_EVENT_TYPE, DEFAULT_LANGUAGE$1, compileSyncFn, compileAsyncFn, getRuntimeFn, configRef, RingBuffer, HISTORY_CAPACITY, DebugController, DEFAULT_LANGUAGE, ASTCache, astCache, semanticAnalyzerInstance, bridgeInstance, config, _defaultRuntime, _debugController, hyperscript, lokascript, OP_TABLE, Lexer, Tokens, MAX_HISTORY_SIZE$5, DefInputSchema, TypedDefFeatureImplementation, enhancedDefImplementation, MAX_HISTORY_SIZE$4, EnhancedOnInputSchema, TypedOnFeatureImplementation, enhancedOnImplementation, MAX_HISTORY_SIZE$3, BehaviorsInputSchema, TypedBehaviorsFeatureImplementation, enhancedBehaviorsImplementation, MAX_HISTORY_SIZE$2, SocketsInputSchema, TypedSocketsFeatureImplementation, enhancedSocketsImplementation, MAX_HISTORY_SIZE$1, WebWorkerInputSchema, TypedWebWorkerFeatureImplementation, enhancedWebWorkerImplementation, MAX_HISTORY_SIZE, EventSourceInputSchema, TypedEventSourceFeatureImplementation, enhancedEventSourceImplementation, INTERCHANGE_ADAPTER, POS, DiagnosticSeverity, SymbolKind, CompletionItemKind, _semanticModule, SemanticGrammarBridge, bridge, _fw, index;
|
|
29479
29606
|
var init_dist = __esm({
|
|
29480
29607
|
"../core/dist/index.mjs"() {
|
|
29481
29608
|
"use strict";
|
|
@@ -32601,15 +32728,15 @@ var init_dist = __esm({
|
|
|
32601
32728
|
braceDepth--;
|
|
32602
32729
|
}
|
|
32603
32730
|
}
|
|
32604
|
-
const
|
|
32731
|
+
const valueString2 = this.originalInput && valueStart >= 0 && valueEnd > valueStart ? this.originalInput.slice(valueStart, valueEnd) : valueTokens.join("");
|
|
32605
32732
|
const value = hasTemplateExpression ? {
|
|
32606
32733
|
type: "templateLiteral",
|
|
32607
|
-
value:
|
|
32734
|
+
value: valueString2,
|
|
32608
32735
|
start: pos2.start,
|
|
32609
32736
|
end: this.getPosition().end,
|
|
32610
32737
|
line: pos2.line,
|
|
32611
32738
|
column: pos2.column
|
|
32612
|
-
} : this.createLiteral(
|
|
32739
|
+
} : this.createLiteral(valueString2, valueString2);
|
|
32613
32740
|
properties.push({ key, value });
|
|
32614
32741
|
if (this.check(";")) {
|
|
32615
32742
|
this.advance();
|
|
@@ -40333,7 +40460,11 @@ var init_dist = __esm({
|
|
|
40333
40460
|
} else {
|
|
40334
40461
|
for (const t of targets) {
|
|
40335
40462
|
const content = this.parseValue(value);
|
|
40336
|
-
|
|
40463
|
+
if (Array.isArray(content)) {
|
|
40464
|
+
insertElementsInOrder(t, content, toInsertPosition(position));
|
|
40465
|
+
} else {
|
|
40466
|
+
insertContentSemantic(t, content, position);
|
|
40467
|
+
}
|
|
40337
40468
|
}
|
|
40338
40469
|
}
|
|
40339
40470
|
return targets;
|
|
@@ -40365,6 +40496,11 @@ var init_dist = __esm({
|
|
|
40365
40496
|
parseValue(v2) {
|
|
40366
40497
|
if (isHTMLElement$2(v2))
|
|
40367
40498
|
return v2;
|
|
40499
|
+
if (Array.isArray(v2) && v2.length > 0 && v2.every(isHTMLElement$2)) {
|
|
40500
|
+
return v2;
|
|
40501
|
+
}
|
|
40502
|
+
if (isInsertableNode(v2))
|
|
40503
|
+
return v2;
|
|
40368
40504
|
return v2 == null ? "" : String(v2);
|
|
40369
40505
|
}
|
|
40370
40506
|
looksLikeCss(s) {
|
|
@@ -46839,6 +46975,7 @@ var init_dist = __esm({
|
|
|
46839
46975
|
return this.registry;
|
|
46840
46976
|
}
|
|
46841
46977
|
};
|
|
46978
|
+
VERSION$1 = "2.11.1";
|
|
46842
46979
|
DEFAULT_REFERENCES = /* @__PURE__ */ new Set([
|
|
46843
46980
|
"me",
|
|
46844
46981
|
"you",
|
|
@@ -48599,14 +48736,26 @@ var init_dist = __esm({
|
|
|
48599
48736
|
}
|
|
48600
48737
|
translate(input, fromLanguage, toLanguage) {
|
|
48601
48738
|
if (isExplicitSyntax$1(input)) return input;
|
|
48602
|
-
|
|
48603
|
-
|
|
48604
|
-
|
|
48605
|
-
|
|
48606
|
-
|
|
48739
|
+
let node;
|
|
48740
|
+
try {
|
|
48741
|
+
node = this.parseWithConfidence(input, fromLanguage).node;
|
|
48742
|
+
} catch (parseError) {
|
|
48743
|
+
if (this.hasGrammarProfile(fromLanguage) && this.hasGrammarProfile(toLanguage)) {
|
|
48744
|
+
return this.transformer.transform(input, fromLanguage, toLanguage);
|
|
48607
48745
|
}
|
|
48746
|
+
throw parseError;
|
|
48608
48747
|
}
|
|
48609
|
-
|
|
48748
|
+
const rendered = this.registry.getSupportedLanguages().includes(toLanguage) ? this.render(node, toLanguage) : null;
|
|
48749
|
+
if (rendered != null) return rendered;
|
|
48750
|
+
if (this.hasGrammarProfile(fromLanguage) && this.hasGrammarProfile(toLanguage)) {
|
|
48751
|
+
return this.transformer.transform(input, fromLanguage, toLanguage);
|
|
48752
|
+
}
|
|
48753
|
+
throw new Error(
|
|
48754
|
+
`translate() could not render action "${node.action}" in language "${toLanguage}": no custom renderer, domain renderer, or schema pattern covers it, and no grammar profile is configured for the transformer fallback. Either add "${toLanguage}" to the DSL's languages/renderer, or set 'grammarProfile' on its LanguageConfig in createMultilingualDSL() (parse/validate/compile do not need it).`
|
|
48755
|
+
);
|
|
48756
|
+
}
|
|
48757
|
+
hasGrammarProfile(language) {
|
|
48758
|
+
return this.profileProvider.getProfile(language) != null;
|
|
48610
48759
|
}
|
|
48611
48760
|
compile(input, language) {
|
|
48612
48761
|
if (!this.codeGenerator) {
|
|
@@ -50837,7 +50986,13 @@ ${body}
|
|
|
50837
50986
|
expectedTypes: ["selector"],
|
|
50838
50987
|
selectorKinds: ["class", "attribute"],
|
|
50839
50988
|
svoPosition: 1,
|
|
50840
|
-
sovPosition: 2
|
|
50989
|
+
sovPosition: 2,
|
|
50990
|
+
// zh: the transformer emits `\u5207\u6362 \u628a .active` (the profile's \u628a patient
|
|
50991
|
+
// marker), but natural zh writes `\u5207\u6362 .active` bare \u2014 the handcrafted
|
|
50992
|
+
// patterns' form. Optional accepts both; without it the generated
|
|
50993
|
+
// pattern REQUIRED \u628a and the slim bundles could not parse the bare
|
|
50994
|
+
// form at all. Same treatment as go's destination.
|
|
50995
|
+
markerOptional: { zh: true }
|
|
50841
50996
|
},
|
|
50842
50997
|
{
|
|
50843
50998
|
role: "destination",
|
|
@@ -51175,6 +51330,8 @@ ${body}
|
|
|
51175
51330
|
markerOverride: {
|
|
51176
51331
|
en: "",
|
|
51177
51332
|
// No marker before destination in English: "set :x to 5"
|
|
51333
|
+
es: "",
|
|
51334
|
+
// "establecer x a 5" - no marker before variable (profile default `en` matched nothing)
|
|
51178
51335
|
ja: "\u3092",
|
|
51179
51336
|
// "x \u3092 10 \u306b \u8a2d\u5b9a" - variable gets object marker
|
|
51180
51337
|
ko: "\uB97C",
|
|
@@ -51197,9 +51354,19 @@ ${body}
|
|
|
51197
51354
|
// generated hi set patterns carried the swapped markers and matched no
|
|
51198
51355
|
// corpus, so the whole hi set-family (set-text/inner-html/style/attribute)
|
|
51199
51356
|
// fell to the bare-event fallback (S6 set-trio).
|
|
51200
|
-
hi: "\u0915\u094B"
|
|
51357
|
+
hi: "\u0915\u094B",
|
|
51201
51358
|
// target (destination) gets \u0915\u094b
|
|
51202
|
-
|
|
51359
|
+
// zh: the transformer emits the verb-first BA form `\u8bbe\u7f6e \u628a X \u5230 V`
|
|
51360
|
+
// (\u628a before the variable), while natural zh writes `\u8bbe\u7f6e X \u4e3a V`
|
|
51361
|
+
// (unmarked). \u628a as the marker, optional below, accepts both. The
|
|
51362
|
+
// profile default \u5728 matched neither form, so the generated zh set
|
|
51363
|
+
// patterns were dead weight and the slim bundles (schema-generated
|
|
51364
|
+
// patterns only) could not parse set at all.
|
|
51365
|
+
zh: "\u628A"
|
|
51366
|
+
},
|
|
51367
|
+
// Accept the unmarked natural form alongside the transformer's \u628a form
|
|
51368
|
+
// (same treatment as go's destination).
|
|
51369
|
+
markerOptional: { zh: true }
|
|
51203
51370
|
},
|
|
51204
51371
|
{
|
|
51205
51372
|
role: "patient",
|
|
@@ -51242,8 +51409,14 @@ ${body}
|
|
|
51242
51409
|
// "x \u0995\u09c7 10 \u09a4\u09c7 \u09b8\u09c7\u099f" - destination marker on value
|
|
51243
51410
|
qu: "man",
|
|
51244
51411
|
// "x ta 10 man churay" - destination marker on value
|
|
51245
|
-
hi: "\u092E\u0947\u0902"
|
|
51412
|
+
hi: "\u092E\u0947\u0902",
|
|
51246
51413
|
// value (patient) gets \u092e\u0947\u0902 \u2014 see the destination note above
|
|
51414
|
+
// zh: the transformer/corpus form marks the value with \u5230 (`\u8bbe\u7f6e \u628a X
|
|
51415
|
+
// \u5230 V`); natural zh uses \u4e3a (`\u8bbe\u7f6e X \u4e3a V`). \u5230 is the override,
|
|
51416
|
+
// the \u4e3a-family rides along as variants (all merged as alternatives
|
|
51417
|
+
// by schemaMarkerAlternatives). Profile default \u628a was the PATIENT
|
|
51418
|
+
// marker, which never precedes set's value in either form.
|
|
51419
|
+
zh: "\u5230"
|
|
51247
51420
|
},
|
|
51248
51421
|
// Turkish dative is allomorphic under vowel harmony: the i18n transformer
|
|
51249
51422
|
// emits `e` for quoted-string values (`"red" e`) but `-ya` for a value
|
|
@@ -51256,7 +51429,11 @@ ${body}
|
|
|
51256
51429
|
// not parse as a bare command while `t\u0131klama da @disabled i do\u011fru ya
|
|
51257
51430
|
// ayarla` did. See STRUCTURAL_ARCS_ROADMAP.md (tr set-attribute).
|
|
51258
51431
|
markerVariants: {
|
|
51259
|
-
tr: ["e", "a", "ye", "ya"]
|
|
51432
|
+
tr: ["e", "a", "ye", "ya"],
|
|
51433
|
+
// Natural zh value markers (`\u8bbe\u7f6e X \u4e3a V`), simplified + traditional +
|
|
51434
|
+
// resultative \u2014 the handcrafted set-zh-full alternatives, kept parseable
|
|
51435
|
+
// alongside the transformer's \u5230 override above.
|
|
51436
|
+
zh: ["\u4E3A", "\u70BA", "\u6210"]
|
|
51260
51437
|
}
|
|
51261
51438
|
},
|
|
51262
51439
|
{
|
|
@@ -73404,7 +73581,10 @@ ${body}
|
|
|
73404
73581
|
}
|
|
73405
73582
|
}
|
|
73406
73583
|
if (patternToken.valueShape === "keyword" && value.type === "expression") {
|
|
73407
|
-
captured.set(
|
|
73584
|
+
captured.set(
|
|
73585
|
+
patternToken.role,
|
|
73586
|
+
createLiteral(String(value.raw ?? ""))
|
|
73587
|
+
);
|
|
73408
73588
|
} else {
|
|
73409
73589
|
captured.set(patternToken.role, value);
|
|
73410
73590
|
}
|
|
@@ -74502,7 +74682,7 @@ ${body}
|
|
|
74502
74682
|
} else if (rule.value !== void 0) {
|
|
74503
74683
|
captured.set(role, { type: "literal", value: rule.value });
|
|
74504
74684
|
} else if (rule.default) {
|
|
74505
|
-
captured.set(role, rule.default);
|
|
74685
|
+
captured.set(role, { ...rule.default, implicit: true });
|
|
74506
74686
|
}
|
|
74507
74687
|
}
|
|
74508
74688
|
}
|
|
@@ -74805,14 +74985,20 @@ ${body}
|
|
|
74805
74985
|
return parts.join(" ");
|
|
74806
74986
|
}
|
|
74807
74987
|
/**
|
|
74808
|
-
* Join a statement list the way a block body reads:
|
|
74809
|
-
* but a single space immediately after a loop/tell block header
|
|
74810
|
-
* follows directly).
|
|
74811
|
-
* keeps its own copy because it also handles the multi-handler
|
|
74812
|
-
* cases.
|
|
74988
|
+
* Join a statement list the way a block body reads: the target language's `then`
|
|
74989
|
+
* between siblings, but a single space immediately after a loop/tell block header
|
|
74990
|
+
* (whose body follows directly). Used by renderConditional's branches;
|
|
74991
|
+
* renderCompound keeps its own copy because it also handles the multi-handler
|
|
74992
|
+
* and bind-feature cases.
|
|
74993
|
+
*
|
|
74994
|
+
* The chain word is localized (`this.keyword(language, 'then')`) for the same
|
|
74995
|
+
* reason renderCompound localizes it: a hardcoded English `then` leaks into every
|
|
74996
|
+
* non-en block body (`\u3082\u3057 \u2026 \u524a\u9664 then \u8ffd\u52a0`), which no target-language tokenizer
|
|
74997
|
+
* recognizes as a connector.
|
|
74813
74998
|
*/
|
|
74814
74999
|
joinStatements(statements, language) {
|
|
74815
75000
|
const rendered = statements.map((s) => this.render(s, language));
|
|
75001
|
+
const thenKw = this.keyword(language, "then");
|
|
74816
75002
|
let out = rendered[0] ?? "";
|
|
74817
75003
|
for (let i = 1; i < rendered.length; i++) {
|
|
74818
75004
|
const prev = statements[i - 1];
|
|
@@ -74820,7 +75006,7 @@ ${body}
|
|
|
74820
75006
|
if (prev.kind === "command" && BLOCK_NEEDS_TRAILING_END.has(prev.action)) {
|
|
74821
75007
|
out += ` ${this.keyword(language, "end")}`;
|
|
74822
75008
|
}
|
|
74823
|
-
out += (afterBlockHeader ? " " :
|
|
75009
|
+
out += (afterBlockHeader ? " " : ` ${thenKw} `) + rendered[i];
|
|
74824
75010
|
}
|
|
74825
75011
|
return out;
|
|
74826
75012
|
}
|
|
@@ -74993,6 +75179,7 @@ ${body}
|
|
|
74993
75179
|
if (!roleToken) continue;
|
|
74994
75180
|
const roleValue = node.roles.get(roleName);
|
|
74995
75181
|
if (roleValue?.type !== "reference" || roleValue.value !== "me") continue;
|
|
75182
|
+
if (!roleValue.implicit) continue;
|
|
74996
75183
|
if (roleName === "destination") {
|
|
74997
75184
|
const patient = node.roles.get("patient");
|
|
74998
75185
|
if (patient?.type === "literal" && patient.dataType === "string") continue;
|
|
@@ -75840,7 +76027,7 @@ ${body}
|
|
|
75840
76027
|
}
|
|
75841
76028
|
let eventModifiers = patternMatcher.extractEventModifiers(tokens);
|
|
75842
76029
|
const sourceValue = match.captured.get("source");
|
|
75843
|
-
if (sourceValue && match.pattern.id.
|
|
76030
|
+
if (sourceValue && match.pattern.id.endsWith("source") && !(sourceValue.type === "reference" && sourceValue.value === "me")) {
|
|
75844
76031
|
eventModifiers = { ...eventModifiers ?? {}, from: sourceValue };
|
|
75845
76032
|
}
|
|
75846
76033
|
const additionalEvents = this.extractOrConjunctionEvents(tokens, language);
|
|
@@ -90796,6 +90983,7 @@ __export(index_exports, {
|
|
|
90796
90983
|
extractOperations: () => extractOperations,
|
|
90797
90984
|
generateCacheKey: () => generateCacheKey,
|
|
90798
90985
|
jsonToSemanticNode: () => import_ir.jsonToSemanticNode,
|
|
90986
|
+
scoreNodes: () => import_fidelity.scoreNodes,
|
|
90799
90987
|
validateSemanticJSON: () => import_ir.validateSemanticJSON
|
|
90800
90988
|
});
|
|
90801
90989
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -91052,6 +91240,9 @@ function generateSummary(trigger, opDiffs) {
|
|
|
91052
91240
|
return parts.join(". ");
|
|
91053
91241
|
}
|
|
91054
91242
|
|
|
91243
|
+
// src/scoring/score.ts
|
|
91244
|
+
var import_fidelity = require("@lokascript/semantic/fidelity");
|
|
91245
|
+
|
|
91055
91246
|
// src/input/detect.ts
|
|
91056
91247
|
function detectFormat(input) {
|
|
91057
91248
|
const trimmed = input.trim();
|
|
@@ -91108,6 +91299,23 @@ function normalize(request) {
|
|
|
91108
91299
|
return normalizeNatural(input, request.language ?? "en");
|
|
91109
91300
|
}
|
|
91110
91301
|
}
|
|
91302
|
+
function liftNodeDiagnostics(node, diagnostics) {
|
|
91303
|
+
const nodeDiags = node.diagnostics;
|
|
91304
|
+
if (!Array.isArray(nodeDiags)) return;
|
|
91305
|
+
for (const d of nodeDiags) {
|
|
91306
|
+
if (d.severity !== "warning" && d.severity !== "error") continue;
|
|
91307
|
+
const diag = {
|
|
91308
|
+
severity: d.severity,
|
|
91309
|
+
// Parser codes are kebab-case; this surface uses UPPER_SNAKE (PARSE_ERROR &c).
|
|
91310
|
+
code: (d.code ?? "PARSE_DIAGNOSTIC").replace(/-/g, "_").toUpperCase(),
|
|
91311
|
+
message: d.message ?? "parser diagnostic"
|
|
91312
|
+
};
|
|
91313
|
+
if (d.code === "unconsumed-input") {
|
|
91314
|
+
diag.suggestion = "Dropped tokens were parsed but bound to no role \u2014 usually a missing role marker (e.g. 'to'/'on'/'from' before the target), so the role fell back to a default like `me`. Compare the returned roles against your intent.";
|
|
91315
|
+
}
|
|
91316
|
+
diagnostics.push(diag);
|
|
91317
|
+
}
|
|
91318
|
+
}
|
|
91111
91319
|
function normalizeNatural(code, language) {
|
|
91112
91320
|
const diagnostics = [];
|
|
91113
91321
|
try {
|
|
@@ -91128,6 +91336,7 @@ function normalizeNatural(code, language) {
|
|
|
91128
91336
|
});
|
|
91129
91337
|
return { node: null, confidence: result.confidence, format: "natural", diagnostics };
|
|
91130
91338
|
}
|
|
91339
|
+
liftNodeDiagnostics(result.node, diagnostics);
|
|
91131
91340
|
return {
|
|
91132
91341
|
node: result.node,
|
|
91133
91342
|
confidence: result.confidence,
|
|
@@ -91185,6 +91394,66 @@ function normalizeJSON(input) {
|
|
|
91185
91394
|
};
|
|
91186
91395
|
}
|
|
91187
91396
|
|
|
91397
|
+
// src/validation/inert-shapes.ts
|
|
91398
|
+
var QUANTIFIER = /^(all|every|each)\.(\S+)$/;
|
|
91399
|
+
var PREDICATE_AS_CLASS = /(^|\s)\.(has|is|contains|matches|includes)(\s|$)/;
|
|
91400
|
+
function valueString(v2) {
|
|
91401
|
+
return String(v2.value ?? v2.raw ?? "");
|
|
91402
|
+
}
|
|
91403
|
+
function checkInertShapes(node) {
|
|
91404
|
+
const out = [];
|
|
91405
|
+
walk(node, out);
|
|
91406
|
+
return out;
|
|
91407
|
+
}
|
|
91408
|
+
function walk(node, out) {
|
|
91409
|
+
if (!node || typeof node !== "object") return;
|
|
91410
|
+
const n = node;
|
|
91411
|
+
if (n.roles && typeof n.roles.entries === "function") {
|
|
91412
|
+
for (const [role, raw] of n.roles.entries()) {
|
|
91413
|
+
const v2 = raw ?? {};
|
|
91414
|
+
const s = valueString(v2);
|
|
91415
|
+
const q = v2.type === "expression" ? QUANTIFIER.exec(s) : null;
|
|
91416
|
+
if (q && (role === "destination" || role === "source")) {
|
|
91417
|
+
out.push({
|
|
91418
|
+
severity: "warning",
|
|
91419
|
+
code: "INERT_QUANTIFIER_TARGET",
|
|
91420
|
+
message: `${role} parsed as property access "${s}" \u2014 "${q[1]}" is an undefined identifier at runtime, so this ${role} will not resolve.`,
|
|
91421
|
+
suggestion: `Selectors already address every match: write the bare selector (e.g. ".${q[2]}") without "${q[1]}".`
|
|
91422
|
+
});
|
|
91423
|
+
continue;
|
|
91424
|
+
}
|
|
91425
|
+
if (role === "condition" && v2.type === "expression" && PREDICATE_AS_CLASS.test(s)) {
|
|
91426
|
+
const word = PREDICATE_AS_CLASS.exec(s)?.[2];
|
|
91427
|
+
out.push({
|
|
91428
|
+
severity: "warning",
|
|
91429
|
+
code: "HALF_PARSED_CONDITION",
|
|
91430
|
+
message: `condition parsed ".${word}" as a class selector (full condition: "${s}") \u2014 it will evaluate falsy and the body will never run.`,
|
|
91431
|
+
suggestion: "For class tests use `matches`: `if #box matches .danger`."
|
|
91432
|
+
});
|
|
91433
|
+
continue;
|
|
91434
|
+
}
|
|
91435
|
+
if (v2.type === "selector" && s.startsWith("<")) {
|
|
91436
|
+
out.push({
|
|
91437
|
+
severity: "warning",
|
|
91438
|
+
code: "UNSUPPORTED_QUERY_LITERAL",
|
|
91439
|
+
message: `${role} selector "${s}" uses query-literal syntax, which this parser does not support \u2014 at runtime it is an invalid CSS selector and matches nothing.`,
|
|
91440
|
+
suggestion: `Use a plain CSS selector instead (e.g. "${s.replace(/^<|\/?>$/g, "")}").`
|
|
91441
|
+
});
|
|
91442
|
+
continue;
|
|
91443
|
+
}
|
|
91444
|
+
if (n.action === "set" && v2.type === "property-path" && v2.property === "text") {
|
|
91445
|
+
out.push({
|
|
91446
|
+
severity: "warning",
|
|
91447
|
+
code: "INERT_PROPERTY_WRITE",
|
|
91448
|
+
message: `set targets property "text" \u2014 on most elements this is not a DOM property, so the write usually changes nothing visible.`,
|
|
91449
|
+
suggestion: 'Use `textContent` (`set the textContent of #el to \u2026`) or `put "\u2026" into #el`.'
|
|
91450
|
+
});
|
|
91451
|
+
}
|
|
91452
|
+
}
|
|
91453
|
+
}
|
|
91454
|
+
if (Array.isArray(n.body)) for (const child of n.body) walk(child, out);
|
|
91455
|
+
}
|
|
91456
|
+
|
|
91188
91457
|
// src/validation/gates.ts
|
|
91189
91458
|
var _validators = null;
|
|
91190
91459
|
function initValidation(validators) {
|
|
@@ -91241,6 +91510,7 @@ function runValidationGates(node, confidence, confidenceThreshold) {
|
|
|
91241
91510
|
}
|
|
91242
91511
|
}
|
|
91243
91512
|
}
|
|
91513
|
+
diagnostics.push(...checkInertShapes(node));
|
|
91244
91514
|
return { pass: true, diagnostics, adjustedConfidence };
|
|
91245
91515
|
}
|
|
91246
91516
|
function nodeToParseResult(node) {
|
|
@@ -93693,9 +93963,17 @@ var CompilationService = class _CompilationService {
|
|
|
93693
93963
|
}
|
|
93694
93964
|
try {
|
|
93695
93965
|
const result = this.translateFn(request.code, request.from, request.to);
|
|
93966
|
+
let verification;
|
|
93967
|
+
if (request.verify !== false) {
|
|
93968
|
+
verification = this.scoreFidelity({
|
|
93969
|
+
reference: { code: request.code, language: request.from },
|
|
93970
|
+
candidate: { code: result, language: request.to }
|
|
93971
|
+
});
|
|
93972
|
+
}
|
|
93696
93973
|
return {
|
|
93697
93974
|
ok: true,
|
|
93698
93975
|
code: result,
|
|
93976
|
+
...verification !== void 0 ? { verification } : {},
|
|
93699
93977
|
diagnostics: []
|
|
93700
93978
|
};
|
|
93701
93979
|
} catch (error) {
|
|
@@ -93919,6 +94197,41 @@ var CompilationService = class _CompilationService {
|
|
|
93919
94197
|
diagnostics
|
|
93920
94198
|
};
|
|
93921
94199
|
}
|
|
94200
|
+
/**
|
|
94201
|
+
* Score a candidate against a reference for structural fidelity — the
|
|
94202
|
+
* multilingual ratchet's scorers (docs/FIDELITY.md) applied to one pair of
|
|
94203
|
+
* inputs. Sides accept any input format and may be in different languages;
|
|
94204
|
+
* see src/scoring/score.ts for signal semantics. Complementary to diff():
|
|
94205
|
+
* diff answers "identical, and where not?", this answers "how faithful, and
|
|
94206
|
+
* what exactly is missing or hallucinated?".
|
|
94207
|
+
*/
|
|
94208
|
+
scoreFidelity(request) {
|
|
94209
|
+
const diagnostics = [];
|
|
94210
|
+
const threshold = request.confidence ?? this.confidenceThreshold;
|
|
94211
|
+
const normRef = normalize({ ...request.reference, confidence: request.confidence });
|
|
94212
|
+
diagnostics.push(
|
|
94213
|
+
...normRef.diagnostics.map((d) => ({ ...d, message: `[reference] ${d.message}` }))
|
|
94214
|
+
);
|
|
94215
|
+
const normCand = normalize({ ...request.candidate, confidence: request.confidence });
|
|
94216
|
+
diagnostics.push(
|
|
94217
|
+
...normCand.diagnostics.map((d) => ({ ...d, message: `[candidate] ${d.message}` }))
|
|
94218
|
+
);
|
|
94219
|
+
if (!normRef.node || !normCand.node) {
|
|
94220
|
+
return { ok: false, diagnostics };
|
|
94221
|
+
}
|
|
94222
|
+
const gateRef = runValidationGates(normRef.node, normRef.confidence, threshold);
|
|
94223
|
+
const gateCand = runValidationGates(normCand.node, normCand.confidence, threshold);
|
|
94224
|
+
diagnostics.push(
|
|
94225
|
+
...gateRef.diagnostics.map((d) => ({ ...d, message: `[reference] ${d.message}` }))
|
|
94226
|
+
);
|
|
94227
|
+
diagnostics.push(
|
|
94228
|
+
...gateCand.diagnostics.map((d) => ({ ...d, message: `[candidate] ${d.message}` }))
|
|
94229
|
+
);
|
|
94230
|
+
if (!gateRef.pass || !gateCand.pass) {
|
|
94231
|
+
return { ok: false, diagnostics };
|
|
94232
|
+
}
|
|
94233
|
+
return { ok: true, diagnostics, ...(0, import_fidelity.scoreNodes)(normRef.node, normCand.node) };
|
|
94234
|
+
}
|
|
93922
94235
|
/**
|
|
93923
94236
|
* Generate a target-specific output from LSE (bracket syntax or protocol JSON).
|
|
93924
94237
|
*
|
|
@@ -94131,6 +94444,7 @@ var import_ir = require("@lokascript/framework/ir");
|
|
|
94131
94444
|
extractOperations,
|
|
94132
94445
|
generateCacheKey,
|
|
94133
94446
|
jsonToSemanticNode,
|
|
94447
|
+
scoreNodes,
|
|
94134
94448
|
validateSemanticJSON
|
|
94135
94449
|
});
|
|
94136
94450
|
//# sourceMappingURL=index.cjs.map
|