@dbml/parse 10.1.1 → 10.2.0

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.
@@ -45,7 +45,7 @@ var e = Symbol("PASS_THROUGH"), t = Symbol("UNHANDLED"), n = class e {
45
45
  }, r = /* @__PURE__ */ function(e) {
46
46
  return e.Table = "table", e.Enum = "enum", e.Ref = "ref", e.Dep = "dep", e.Note = "note", e.Project = "project", e.Indexes = "indexes", e.TableGroup = "tablegroup", e.TablePartial = "tablepartial", e.Checks = "checks", e.Records = "records", e.DiagramView = "diagramview", e.DiagramViewTables = "tables", e.DiagramViewNotes = "notes", e.DiagramViewTableGroups = "tablegroups", e.DiagramViewSchemas = "schemas", e.Metadata = "metadata", e;
47
47
  }({}), i = /* @__PURE__ */ function(e) {
48
- return e.Color = "color", e.HeaderColor = "headercolor", e.Note = "note", e.PK = "pk", e.PrimaryKey = "primary key", e.Unique = "unique", e.Ref = "ref", e.Dep = "dep", e.NotNull = "not null", e.Null = "null", e.Increment = "increment", e.Default = "default", e.Name = "name", e.Type = "type", e.Check = "check", e.Update = "update", e.Delete = "delete", e.Inactive = "inactive", e;
48
+ return e.Color = "color", e.HeaderColor = "headercolor", e.Note = "note", e.PK = "pk", e.PrimaryKey = "primary key", e.Unique = "unique", e.Ref = "ref", e.Dep = "dep", e.NotNull = "not null", e.Null = "null", e.Increment = "increment", e.Default = "default", e.Name = "name", e.Type = "type", e.Check = "check", e.Update = "update", e.Delete = "delete", e.Inactive = "inactive", e.Example = "example", e;
49
49
  }({}), a = typeof global == "object" && global && global.Object === Object && global, o = typeof self == "object" && self && self.Object === Object && self, s = a || o || Function("return this")(), c = s.Symbol, l = Object.prototype, u = l.hasOwnProperty, d = l.toString, f = c ? c.toStringTag : void 0;
50
50
  function p(e) {
51
51
  var t = u.call(e, f), n = e[f];
@@ -5190,7 +5190,7 @@ function yf(e) {
5190
5190
  //#endregion
5191
5191
  //#region src/core/types/errors.ts
5192
5192
  var w = /* @__PURE__ */ function(e) {
5193
- return e[e.UNKNOWN_SYMBOL = 1e3] = "UNKNOWN_SYMBOL", e[e.UNEXPECTED_SYMBOL = 1001] = "UNEXPECTED_SYMBOL", e[e.UNEXPECTED_EOF = 1002] = "UNEXPECTED_EOF", e[e.UNEXPECTED_NEWLINE = 1003] = "UNEXPECTED_NEWLINE", e[e.UNKNOWN_TOKEN = 1004] = "UNKNOWN_TOKEN", e[e.UNEXPECTED_TOKEN = 1005] = "UNEXPECTED_TOKEN", e[e.UNEXPECTED_ELEMENT_DECLARATION = 1006] = "UNEXPECTED_ELEMENT_DECLARATION", e[e.MISSING_SPACES = 1007] = "MISSING_SPACES", e[e.UNKNOWN_PREFIX_OP = 1008] = "UNKNOWN_PREFIX_OP", e[e.INVALID_OPERAND = 1009] = "INVALID_OPERAND", e[e.EMPTY_ATTRIBUTE_NAME = 1010] = "EMPTY_ATTRIBUTE_NAME", e[e.INVALID_ESCAPE_SEQUENCE = 1011] = "INVALID_ESCAPE_SEQUENCE", e[e.INVALID_NAME = 3e3] = "INVALID_NAME", e[e.UNEXPECTED_NAME = 3001] = "UNEXPECTED_NAME", e[e.NAME_NOT_FOUND = 3002] = "NAME_NOT_FOUND", e[e.DUPLICATE_NAME = 3003] = "DUPLICATE_NAME", e[e.INVALID_ALIAS = 3004] = "INVALID_ALIAS", e[e.UNEXPECTED_ALIAS = 3005] = "UNEXPECTED_ALIAS", e[e.UNEXPECTED_SETTINGS = 3006] = "UNEXPECTED_SETTINGS", e[e.INVALID_SETTINGS = 3007] = "INVALID_SETTINGS", e[e.UNEXPECTED_SIMPLE_BODY = 3008] = "UNEXPECTED_SIMPLE_BODY", e[e.UNEXPECTED_COMPLEX_BODY = 3009] = "UNEXPECTED_COMPLEX_BODY", e[e.INVALID_TABLE_CONTEXT = 3010] = "INVALID_TABLE_CONTEXT", e[e.UNKNOWN_TABLE_SETTING = 3011] = "UNKNOWN_TABLE_SETTING", e[e.DUPLICATE_TABLE_SETTING = 3012] = "DUPLICATE_TABLE_SETTING", e[e.INVALID_TABLEGROUP_CONTEXT = 3013] = "INVALID_TABLEGROUP_CONTEXT", e[e.INVALID_TABLEGROUP_ELEMENT_NAME = 3014] = "INVALID_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_ELEMENT_NAME = 3015] = "DUPLICATE_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_FIELD_NAME = 3016] = "DUPLICATE_TABLEGROUP_FIELD_NAME", e[e.INVALID_TABLEGROUP_FIELD = 3017] = "INVALID_TABLEGROUP_FIELD", e[e.EMPTY_TABLE = 3018] = "EMPTY_TABLE", e[e.INVALID_COLUMN = 3019] = "INVALID_COLUMN", e[e.INVALID_COLUMN_NAME = 3020] = "INVALID_COLUMN_NAME", e[e.UNKNOWN_COLUMN_SETTING = 3021] = "UNKNOWN_COLUMN_SETTING", e[e.INVALID_COLUMN_TYPE = 3022] = "INVALID_COLUMN_TYPE", e[e.DUPLICATE_COLUMN_NAME = 3023] = "DUPLICATE_COLUMN_NAME", e[e.DUPLICATE_COLUMN_SETTING = 3024] = "DUPLICATE_COLUMN_SETTING", e[e.INVALID_COLUMN_SETTING_VALUE = 3025] = "INVALID_COLUMN_SETTING_VALUE", e[e.INVALID_ENUM_CONTEXT = 3026] = "INVALID_ENUM_CONTEXT", e[e.INVALID_ENUM_ELEMENT_NAME = 3027] = "INVALID_ENUM_ELEMENT_NAME", e[e.INVALID_ENUM_ELEMENT = 3028] = "INVALID_ENUM_ELEMENT", e[e.DUPLICATE_ENUM_ELEMENT_NAME = 3029] = "DUPLICATE_ENUM_ELEMENT_NAME", e[e.UNKNOWN_ENUM_ELEMENT_SETTING = 3030] = "UNKNOWN_ENUM_ELEMENT_SETTING", e[e.DUPLICATE_ENUM_ELEMENT_SETTING = 3031] = "DUPLICATE_ENUM_ELEMENT_SETTING", e[e.INVALID_ENUM_ELEMENT_SETTING = 3032] = "INVALID_ENUM_ELEMENT_SETTING", e[e.EMPTY_ENUM = 3033] = "EMPTY_ENUM", e[e.INVALID_REF_CONTEXT = 3034] = "INVALID_REF_CONTEXT", e[e.UNKNOWN_REF_SETTING = 3035] = "UNKNOWN_REF_SETTING", e[e.DUPLICATE_REF_SETTING = 3036] = "DUPLICATE_REF_SETTING", e[e.INVALID_REF_SETTING_VALUE = 3037] = "INVALID_REF_SETTING_VALUE", e[e.INVALID_REF_RELATIONSHIP = 3038] = "INVALID_REF_RELATIONSHIP", e[e.INVALID_REF_FIELD = 3039] = "INVALID_REF_FIELD", e[e.EMPTY_REF = 3040] = "EMPTY_REF", e[e.REF_REDEFINED = 3041] = "REF_REDEFINED", e[e.INVALID_DEP_CONTEXT = 3042] = "INVALID_DEP_CONTEXT", e[e.INVALID_DEP_FIELD = 3043] = "INVALID_DEP_FIELD", e[e.INVALID_NOTE_CONTEXT = 3044] = "INVALID_NOTE_CONTEXT", e[e.INVALID_NOTE = 3045] = "INVALID_NOTE", e[e.NOTE_REDEFINED = 3046] = "NOTE_REDEFINED", e[e.NOTE_CONTENT_REDEFINED = 3047] = "NOTE_CONTENT_REDEFINED", e[e.EMPTY_NOTE = 3048] = "EMPTY_NOTE", e[e.UNKNOWN_NOTE_SETTING = 3049] = "UNKNOWN_NOTE_SETTING", e[e.DUPLICATE_NOTE_SETTING = 3050] = "DUPLICATE_NOTE_SETTING", e[e.INVALID_NOTE_SETTING_VALUE = 3051] = "INVALID_NOTE_SETTING_VALUE", e[e.INVALID_INDEXES_CONTEXT = 3052] = "INVALID_INDEXES_CONTEXT", e[e.INVALID_INDEXES_FIELD = 3053] = "INVALID_INDEXES_FIELD", e[e.INVALID_INDEX = 3054] = "INVALID_INDEX", e[e.UNKNOWN_INDEX_SETTING = 3055] = "UNKNOWN_INDEX_SETTING", e[e.DUPLICATE_INDEX_SETTING = 3056] = "DUPLICATE_INDEX_SETTING", e[e.UNEXPECTED_INDEX_SETTING_VALUE = 3057] = "UNEXPECTED_INDEX_SETTING_VALUE", e[e.INVALID_INDEX_SETTING_VALUE = 3058] = "INVALID_INDEX_SETTING_VALUE", e[e.INVALID_PROJECT_CONTEXT = 3059] = "INVALID_PROJECT_CONTEXT", e[e.PROJECT_REDEFINED = 3060] = "PROJECT_REDEFINED", e[e.INVALID_PROJECT_FIELD = 3061] = "INVALID_PROJECT_FIELD", e[e.INVALID_CUSTOM_CONTEXT = 3062] = "INVALID_CUSTOM_CONTEXT", e[e.INVALID_CUSTOM_ELEMENT_VALUE = 3063] = "INVALID_CUSTOM_ELEMENT_VALUE", e[e.INVALID_ELEMENT_IN_SIMPLE_BODY = 3064] = "INVALID_ELEMENT_IN_SIMPLE_BODY", e[e.INVALID_TABLE_PARTIAL_CONTEXT = 3065] = "INVALID_TABLE_PARTIAL_CONTEXT", e[e.INVALID_TABLE_PARTIAL_ELEMENT_NAME = 3066] = "INVALID_TABLE_PARTIAL_ELEMENT_NAME", e[e.INVALID_TABLE_PARTIAL_SETTING_VALUE = 3067] = "INVALID_TABLE_PARTIAL_SETTING_VALUE", e[e.DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME = 3068] = "DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME", e[e.DUPLICATE_TABLE_PARTIAL_SETTING = 3069] = "DUPLICATE_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_PARTIAL_INJECTION = 3070] = "INVALID_TABLE_PARTIAL_INJECTION", e[e.INVALID_TABLE_PARTIAL_INJECTION_OP = 3071] = "INVALID_TABLE_PARTIAL_INJECTION_OP", e[e.INVALID_TABLE_PARTIAL_INJECTION_NAME = 3072] = "INVALID_TABLE_PARTIAL_INJECTION_NAME", e[e.DUPLICATE_TABLE_PARTIAL_INJECTION_NAME = 3073] = "DUPLICATE_TABLE_PARTIAL_INJECTION_NAME", e[e.UNKNOWN_TABLE_PARTIAL_SETTING = 3074] = "UNKNOWN_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_SETTING_VALUE = 3075] = "INVALID_TABLE_SETTING_VALUE", e[e.INVALID_CHECKS_CONTEXT = 3076] = "INVALID_CHECKS_CONTEXT", e[e.INVALID_CHECKS_FIELD = 3077] = "INVALID_CHECKS_FIELD", e[e.INVALID_CHECK = 3078] = "INVALID_CHECK", e[e.UNKNOWN_CHECK_SETTING = 3079] = "UNKNOWN_CHECK_SETTING", e[e.DUPLICATE_CHECK_SETTING = 3080] = "DUPLICATE_CHECK_SETTING", e[e.INVALID_CHECK_SETTING_VALUE = 3081] = "INVALID_CHECK_SETTING_VALUE", e[e.INVALID_RECORDS_CONTEXT = 3082] = "INVALID_RECORDS_CONTEXT", e[e.INVALID_RECORDS_NAME = 3083] = "INVALID_RECORDS_NAME", e[e.INVALID_RECORDS_FIELD = 3084] = "INVALID_RECORDS_FIELD", e[e.DUPLICATE_COLUMN_REFERENCES_IN_RECORDS = 3085] = "DUPLICATE_COLUMN_REFERENCES_IN_RECORDS", e[e.DUPLICATE_RECORDS_FOR_TABLE = 3086] = "DUPLICATE_RECORDS_FOR_TABLE", e[e.INVALID_USE_CONTEXT = 3087] = "INVALID_USE_CONTEXT", e[e.INVALID_USE_SPECIFIER_KIND = 3088] = "INVALID_USE_SPECIFIER_KIND", e[e.INVALID_USE_SPECIFIER_NAME = 3089] = "INVALID_USE_SPECIFIER_NAME", e[e.INVALID_DIAGRAMVIEW_CONTEXT = 3090] = "INVALID_DIAGRAMVIEW_CONTEXT", e[e.DUPLICATE_DIAGRAMVIEW_NAME = 3091] = "DUPLICATE_DIAGRAMVIEW_NAME", e[e.INVALID_DIAGRAMVIEW_FIELD = 3092] = "INVALID_DIAGRAMVIEW_FIELD", e[e.DUPLICATE_DIAGRAMVIEW_FIELD = 3093] = "DUPLICATE_DIAGRAMVIEW_FIELD", e[e.BINDING_ERROR = 4e3] = "BINDING_ERROR", e[e.NONEXISTENT_MODULE = 4001] = "NONEXISTENT_MODULE", e[e.UNSUPPORTED = 5e3] = "UNSUPPORTED", e[e.CIRCULAR_REF = 5001] = "CIRCULAR_REF", e[e.SAME_ENDPOINT = 5002] = "SAME_ENDPOINT", e[e.DEP_SELF_LOOP = 5003] = "DEP_SELF_LOOP", e[e.DEP_MIXED_DOWNSTREAM_TABLES = 5004] = "DEP_MIXED_DOWNSTREAM_TABLES", e[e.DEP_DUPLICATE_DOWNSTREAM_TABLE = 5005] = "DEP_DUPLICATE_DOWNSTREAM_TABLE", e[e.DEP_MIXED_LEVEL = 5006] = "DEP_MIXED_LEVEL", e[e.UNEQUAL_FIELDS_BINARY_REF = 5007] = "UNEQUAL_FIELDS_BINARY_REF", e[e.CONFLICTING_SETTING = 5008] = "CONFLICTING_SETTING", e[e.TABLE_REAPPEAR_IN_TABLEGROUP = 5009] = "TABLE_REAPPEAR_IN_TABLEGROUP", e[e.INVALID_METADATA_TARGET_KIND = 5010] = "INVALID_METADATA_TARGET_KIND", e[e.INVALID_METADATA_FIELD = 5011] = "INVALID_METADATA_FIELD", e[e.DUPLICATE_METADATA_FIELD = 5012] = "DUPLICATE_METADATA_FIELD", e;
5193
+ return e[e.UNKNOWN_SYMBOL = 1e3] = "UNKNOWN_SYMBOL", e[e.UNEXPECTED_SYMBOL = 1001] = "UNEXPECTED_SYMBOL", e[e.UNEXPECTED_EOF = 1002] = "UNEXPECTED_EOF", e[e.UNEXPECTED_NEWLINE = 1003] = "UNEXPECTED_NEWLINE", e[e.UNKNOWN_TOKEN = 1004] = "UNKNOWN_TOKEN", e[e.UNEXPECTED_TOKEN = 1005] = "UNEXPECTED_TOKEN", e[e.UNEXPECTED_ELEMENT_DECLARATION = 1006] = "UNEXPECTED_ELEMENT_DECLARATION", e[e.MISSING_SPACES = 1007] = "MISSING_SPACES", e[e.UNKNOWN_PREFIX_OP = 1008] = "UNKNOWN_PREFIX_OP", e[e.INVALID_OPERAND = 1009] = "INVALID_OPERAND", e[e.EMPTY_ATTRIBUTE_NAME = 1010] = "EMPTY_ATTRIBUTE_NAME", e[e.INVALID_ESCAPE_SEQUENCE = 1011] = "INVALID_ESCAPE_SEQUENCE", e[e.INVALID_NAME = 3e3] = "INVALID_NAME", e[e.UNEXPECTED_NAME = 3001] = "UNEXPECTED_NAME", e[e.NAME_NOT_FOUND = 3002] = "NAME_NOT_FOUND", e[e.DUPLICATE_NAME = 3003] = "DUPLICATE_NAME", e[e.INVALID_ALIAS = 3004] = "INVALID_ALIAS", e[e.UNEXPECTED_ALIAS = 3005] = "UNEXPECTED_ALIAS", e[e.UNEXPECTED_SETTINGS = 3006] = "UNEXPECTED_SETTINGS", e[e.INVALID_SETTINGS = 3007] = "INVALID_SETTINGS", e[e.UNEXPECTED_SIMPLE_BODY = 3008] = "UNEXPECTED_SIMPLE_BODY", e[e.UNEXPECTED_COMPLEX_BODY = 3009] = "UNEXPECTED_COMPLEX_BODY", e[e.INVALID_TABLE_CONTEXT = 3010] = "INVALID_TABLE_CONTEXT", e[e.UNKNOWN_TABLE_SETTING = 3011] = "UNKNOWN_TABLE_SETTING", e[e.DUPLICATE_TABLE_SETTING = 3012] = "DUPLICATE_TABLE_SETTING", e[e.INVALID_TABLEGROUP_CONTEXT = 3013] = "INVALID_TABLEGROUP_CONTEXT", e[e.INVALID_TABLEGROUP_ELEMENT_NAME = 3014] = "INVALID_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_ELEMENT_NAME = 3015] = "DUPLICATE_TABLEGROUP_ELEMENT_NAME", e[e.DUPLICATE_TABLEGROUP_FIELD_NAME = 3016] = "DUPLICATE_TABLEGROUP_FIELD_NAME", e[e.INVALID_TABLEGROUP_FIELD = 3017] = "INVALID_TABLEGROUP_FIELD", e[e.EMPTY_TABLE = 3018] = "EMPTY_TABLE", e[e.INVALID_COLUMN = 3019] = "INVALID_COLUMN", e[e.INVALID_COLUMN_NAME = 3020] = "INVALID_COLUMN_NAME", e[e.UNKNOWN_COLUMN_SETTING = 3021] = "UNKNOWN_COLUMN_SETTING", e[e.INVALID_COLUMN_TYPE = 3022] = "INVALID_COLUMN_TYPE", e[e.DUPLICATE_COLUMN_NAME = 3023] = "DUPLICATE_COLUMN_NAME", e[e.DUPLICATE_COLUMN_SETTING = 3024] = "DUPLICATE_COLUMN_SETTING", e[e.INVALID_COLUMN_SETTING_VALUE = 3025] = "INVALID_COLUMN_SETTING_VALUE", e[e.INVALID_ENUM_CONTEXT = 3026] = "INVALID_ENUM_CONTEXT", e[e.INVALID_ENUM_ELEMENT_NAME = 3027] = "INVALID_ENUM_ELEMENT_NAME", e[e.INVALID_ENUM_ELEMENT = 3028] = "INVALID_ENUM_ELEMENT", e[e.DUPLICATE_ENUM_ELEMENT_NAME = 3029] = "DUPLICATE_ENUM_ELEMENT_NAME", e[e.UNKNOWN_ENUM_ELEMENT_SETTING = 3030] = "UNKNOWN_ENUM_ELEMENT_SETTING", e[e.DUPLICATE_ENUM_ELEMENT_SETTING = 3031] = "DUPLICATE_ENUM_ELEMENT_SETTING", e[e.INVALID_ENUM_ELEMENT_SETTING = 3032] = "INVALID_ENUM_ELEMENT_SETTING", e[e.EMPTY_ENUM = 3033] = "EMPTY_ENUM", e[e.INVALID_REF_CONTEXT = 3034] = "INVALID_REF_CONTEXT", e[e.UNKNOWN_REF_SETTING = 3035] = "UNKNOWN_REF_SETTING", e[e.DUPLICATE_REF_SETTING = 3036] = "DUPLICATE_REF_SETTING", e[e.INVALID_REF_SETTING_VALUE = 3037] = "INVALID_REF_SETTING_VALUE", e[e.INVALID_REF_RELATIONSHIP = 3038] = "INVALID_REF_RELATIONSHIP", e[e.INVALID_REF_FIELD = 3039] = "INVALID_REF_FIELD", e[e.EMPTY_REF = 3040] = "EMPTY_REF", e[e.REF_REDEFINED = 3041] = "REF_REDEFINED", e[e.INVALID_DEP_CONTEXT = 3042] = "INVALID_DEP_CONTEXT", e[e.INVALID_DEP_FIELD = 3043] = "INVALID_DEP_FIELD", e[e.INVALID_NOTE_CONTEXT = 3044] = "INVALID_NOTE_CONTEXT", e[e.INVALID_NOTE = 3045] = "INVALID_NOTE", e[e.NOTE_REDEFINED = 3046] = "NOTE_REDEFINED", e[e.NOTE_CONTENT_REDEFINED = 3047] = "NOTE_CONTENT_REDEFINED", e[e.EMPTY_NOTE = 3048] = "EMPTY_NOTE", e[e.UNKNOWN_NOTE_SETTING = 3049] = "UNKNOWN_NOTE_SETTING", e[e.DUPLICATE_NOTE_SETTING = 3050] = "DUPLICATE_NOTE_SETTING", e[e.INVALID_NOTE_SETTING_VALUE = 3051] = "INVALID_NOTE_SETTING_VALUE", e[e.INVALID_INDEXES_CONTEXT = 3052] = "INVALID_INDEXES_CONTEXT", e[e.INVALID_INDEXES_FIELD = 3053] = "INVALID_INDEXES_FIELD", e[e.INVALID_INDEX = 3054] = "INVALID_INDEX", e[e.UNKNOWN_INDEX_SETTING = 3055] = "UNKNOWN_INDEX_SETTING", e[e.DUPLICATE_INDEX_SETTING = 3056] = "DUPLICATE_INDEX_SETTING", e[e.UNEXPECTED_INDEX_SETTING_VALUE = 3057] = "UNEXPECTED_INDEX_SETTING_VALUE", e[e.INVALID_INDEX_SETTING_VALUE = 3058] = "INVALID_INDEX_SETTING_VALUE", e[e.INVALID_PROJECT_CONTEXT = 3059] = "INVALID_PROJECT_CONTEXT", e[e.PROJECT_REDEFINED = 3060] = "PROJECT_REDEFINED", e[e.INVALID_PROJECT_FIELD = 3061] = "INVALID_PROJECT_FIELD", e[e.INVALID_CUSTOM_CONTEXT = 3062] = "INVALID_CUSTOM_CONTEXT", e[e.INVALID_CUSTOM_ELEMENT_VALUE = 3063] = "INVALID_CUSTOM_ELEMENT_VALUE", e[e.INVALID_ELEMENT_IN_SIMPLE_BODY = 3064] = "INVALID_ELEMENT_IN_SIMPLE_BODY", e[e.INVALID_TABLE_PARTIAL_CONTEXT = 3065] = "INVALID_TABLE_PARTIAL_CONTEXT", e[e.INVALID_TABLE_PARTIAL_ELEMENT_NAME = 3066] = "INVALID_TABLE_PARTIAL_ELEMENT_NAME", e[e.INVALID_TABLE_PARTIAL_SETTING_VALUE = 3067] = "INVALID_TABLE_PARTIAL_SETTING_VALUE", e[e.DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME = 3068] = "DUPLICATE_TABLE_PARTIAL_ELEMENT_NAME", e[e.DUPLICATE_TABLE_PARTIAL_SETTING = 3069] = "DUPLICATE_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_PARTIAL_INJECTION = 3070] = "INVALID_TABLE_PARTIAL_INJECTION", e[e.INVALID_TABLE_PARTIAL_INJECTION_OP = 3071] = "INVALID_TABLE_PARTIAL_INJECTION_OP", e[e.INVALID_TABLE_PARTIAL_INJECTION_NAME = 3072] = "INVALID_TABLE_PARTIAL_INJECTION_NAME", e[e.DUPLICATE_TABLE_PARTIAL_INJECTION_NAME = 3073] = "DUPLICATE_TABLE_PARTIAL_INJECTION_NAME", e[e.UNKNOWN_TABLE_PARTIAL_SETTING = 3074] = "UNKNOWN_TABLE_PARTIAL_SETTING", e[e.INVALID_TABLE_SETTING_VALUE = 3075] = "INVALID_TABLE_SETTING_VALUE", e[e.INVALID_CHECKS_CONTEXT = 3076] = "INVALID_CHECKS_CONTEXT", e[e.INVALID_CHECKS_FIELD = 3077] = "INVALID_CHECKS_FIELD", e[e.INVALID_CHECK = 3078] = "INVALID_CHECK", e[e.UNKNOWN_CHECK_SETTING = 3079] = "UNKNOWN_CHECK_SETTING", e[e.DUPLICATE_CHECK_SETTING = 3080] = "DUPLICATE_CHECK_SETTING", e[e.INVALID_CHECK_SETTING_VALUE = 3081] = "INVALID_CHECK_SETTING_VALUE", e[e.INVALID_RECORDS_CONTEXT = 3082] = "INVALID_RECORDS_CONTEXT", e[e.INVALID_RECORDS_NAME = 3083] = "INVALID_RECORDS_NAME", e[e.INVALID_RECORDS_FIELD = 3084] = "INVALID_RECORDS_FIELD", e[e.DUPLICATE_COLUMN_REFERENCES_IN_RECORDS = 3085] = "DUPLICATE_COLUMN_REFERENCES_IN_RECORDS", e[e.DUPLICATE_RECORDS_FOR_TABLE = 3086] = "DUPLICATE_RECORDS_FOR_TABLE", e[e.UNKNOWN_RECORDS_SETTING = 3087] = "UNKNOWN_RECORDS_SETTING", e[e.DUPLICATE_RECORDS_SETTING = 3088] = "DUPLICATE_RECORDS_SETTING", e[e.INVALID_RECORDS_SETTING_VALUE = 3089] = "INVALID_RECORDS_SETTING_VALUE", e[e.INVALID_USE_CONTEXT = 3090] = "INVALID_USE_CONTEXT", e[e.INVALID_USE_SPECIFIER_KIND = 3091] = "INVALID_USE_SPECIFIER_KIND", e[e.INVALID_USE_SPECIFIER_NAME = 3092] = "INVALID_USE_SPECIFIER_NAME", e[e.INVALID_DIAGRAMVIEW_CONTEXT = 3093] = "INVALID_DIAGRAMVIEW_CONTEXT", e[e.DUPLICATE_DIAGRAMVIEW_NAME = 3094] = "DUPLICATE_DIAGRAMVIEW_NAME", e[e.INVALID_DIAGRAMVIEW_FIELD = 3095] = "INVALID_DIAGRAMVIEW_FIELD", e[e.DUPLICATE_DIAGRAMVIEW_FIELD = 3096] = "DUPLICATE_DIAGRAMVIEW_FIELD", e[e.BINDING_ERROR = 4e3] = "BINDING_ERROR", e[e.NONEXISTENT_MODULE = 4001] = "NONEXISTENT_MODULE", e[e.UNSUPPORTED = 5e3] = "UNSUPPORTED", e[e.CIRCULAR_REF = 5001] = "CIRCULAR_REF", e[e.SAME_ENDPOINT = 5002] = "SAME_ENDPOINT", e[e.DEP_SELF_LOOP = 5003] = "DEP_SELF_LOOP", e[e.DEP_MIXED_DOWNSTREAM_TABLES = 5004] = "DEP_MIXED_DOWNSTREAM_TABLES", e[e.DEP_DUPLICATE_DOWNSTREAM_TABLE = 5005] = "DEP_DUPLICATE_DOWNSTREAM_TABLE", e[e.DEP_MIXED_LEVEL = 5006] = "DEP_MIXED_LEVEL", e[e.UNEQUAL_FIELDS_BINARY_REF = 5007] = "UNEQUAL_FIELDS_BINARY_REF", e[e.CONFLICTING_SETTING = 5008] = "CONFLICTING_SETTING", e[e.TABLE_REAPPEAR_IN_TABLEGROUP = 5009] = "TABLE_REAPPEAR_IN_TABLEGROUP", e[e.INVALID_METADATA_TARGET_KIND = 5010] = "INVALID_METADATA_TARGET_KIND", e[e.INVALID_METADATA_FIELD = 5011] = "INVALID_METADATA_FIELD", e[e.DUPLICATE_METADATA_FIELD = 5012] = "DUPLICATE_METADATA_FIELD", e;
5194
5194
  }({}), bf = /* @__PURE__ */ function(e) {
5195
5195
  return e.RefColumnMismatch = "Mismatched optional ref constraints", e.RecordValueTypeMismatch = "Record type errors", e.RecordConstraintViolation = "Record constraint violations", e.Other = "Other", e;
5196
5196
  }({}), T = class e extends Error {
@@ -7038,6 +7038,9 @@ var Um = /* @__PURE__ */ function(e) {
7038
7038
  let s = o.variables.at(-1);
7039
7039
  if (s) return e.nodeReferee(s).getFiltered(t)?.originalSymbol;
7040
7040
  }
7041
+ example(e) {
7042
+ return !!e.nodeSettings(this.declaration).getFiltered(t)?.[i.Example]?.length;
7043
+ }
7041
7044
  owners(e) {
7042
7045
  let t = this.table(e);
7043
7046
  return t ? this.resolveOwnerPrograms(e, [t]) : [];
@@ -9070,12 +9073,13 @@ var Rg = class {
9070
9073
  let o = a.getValue();
9071
9074
  o.row && i.push(o.row);
9072
9075
  }
9073
- let a = F(this.element);
9076
+ let a = F(this.element), o = this.metadata.example(this.compiler) || void 0;
9074
9077
  return new n({
9075
9078
  schemaName: r.schemaName,
9076
9079
  tableName: r.tableName,
9077
9080
  columns: r.columns.map((e) => e.name ?? ""),
9078
9081
  values: i,
9082
+ example: o,
9079
9083
  token: a
9080
9084
  }, e, [], t);
9081
9085
  }
@@ -11535,11 +11539,14 @@ var Pv = {
11535
11539
  return e.flatMap((e) => {
11536
11540
  if (!e.type) return [];
11537
11541
  let t = e.type.value?.toLowerCase(), n = e.body;
11538
- if (!t || !(n instanceof H) || !n.callee) return [];
11542
+ if (!t) return [];
11539
11543
  switch (t) {
11540
- case i.Color: return Pf(n.callee) ? [] : [new T(w.INVALID_SETTINGS, "Invalid color value. Expected a hex color (e.g. #fff or #aabbcc)", e)];
11541
- case i.Note: return D(n.callee) ? [] : [new T(w.INVALID_SETTINGS, "Invalid note value. Expected a quoted string", e)];
11542
- default: return !D(n.callee) && !Pf(n.callee) && !Lf(n.callee) && !kf(n.callee) ? [new T(w.INVALID_SETTINGS, `Invalid value for '${t}'. Expected a string, number, color, or identifier`, e)] : [];
11544
+ case i.Color: return e.name || !(n instanceof H) || !n.callee || !Pf(n.callee) ? [new T(w.INVALID_SETTINGS, "Invalid color value. Expected a hex color (e.g. #fff or #aabbcc)", e)] : [];
11545
+ case i.Note: {
11546
+ let t;
11547
+ return n instanceof H ? t = n.callee : n instanceof U && n.body[0] instanceof H && (t = n.body[0].callee), !t || !D(t) ? [new T(w.INVALID_SETTINGS, "Invalid note value. Expected a quoted string", e)] : [];
11548
+ }
11549
+ default: return e.name || n instanceof U ? [new T(w.INVALID_SETTINGS, `'${t}' must be a simple field (e.g. ${t}: value). Block syntax is not allowed`, e)] : !(n instanceof H) || !n.callee ? [] : !D(n.callee) && !Pf(n.callee) && !Lf(n.callee) && !kf(n.callee) ? [new T(w.INVALID_SETTINGS, `Invalid value for '${t}'. Expected a string, number, color, or identifier`, e)] : [];
11543
11550
  }
11544
11551
  });
11545
11552
  }
@@ -12134,7 +12141,7 @@ var Lv = {
12134
12141
  return e ? [new T(w.UNEXPECTED_ALIAS, "Records cannot have an alias", e)] : [];
12135
12142
  }
12136
12143
  validateSettingList(e) {
12137
- return e ? [new T(w.UNEXPECTED_SETTINGS, "Records cannot have a setting list", e)] : [];
12144
+ return ey(e).getErrors();
12138
12145
  }
12139
12146
  validateBody(e) {
12140
12147
  if (!e) return [];
@@ -12167,7 +12174,23 @@ var Lv = {
12167
12174
  validateSubElements(e) {
12168
12175
  return e.flatMap((e) => e.type ? this.compiler.validateNode(e).getErrors() : []);
12169
12176
  }
12170
- }, ey = {
12177
+ };
12178
+ function ey(e) {
12179
+ let t = E(e), r = t.getErrors(), a = t.getValue();
12180
+ return Ca(a, (e, t) => {
12181
+ switch (t) {
12182
+ case i.Example:
12183
+ e.length > 1 && r.push(...e.map((e) => new T(w.DUPLICATE_RECORDS_SETTING, "'example' can only appear once", e))), e.forEach((e) => {
12184
+ e.value && r.push(new T(w.INVALID_RECORDS_SETTING_VALUE, "'example' cannot have a value", e));
12185
+ });
12186
+ break;
12187
+ default: r.push(...e.map((e) => new T(w.UNKNOWN_RECORDS_SETTING, `Unknown '${t}' setting`, e)));
12188
+ }
12189
+ }), new n(a, r);
12190
+ }
12191
+ //#endregion
12192
+ //#region src/core/local_modules/records/index.ts
12193
+ var ty = {
12171
12194
  validateNode(t, i) {
12172
12195
  return A(i, r.Records) ? n.create(void 0, new $v(t, i).validate()) : n.create(e);
12173
12196
  },
@@ -12191,9 +12214,9 @@ var Lv = {
12191
12214
  return A(i, r.Records) ? i.alias ? new n(void 0, [new T(w.UNEXPECTED_ALIAS, "Records cannot have an alias", i.alias)]) : new n(void 0) : j(i, r.Records) ? new n(void 0) : n.create(e);
12192
12215
  },
12193
12216
  nodeSettings(t, i) {
12194
- return A(i, r.Records) ? i.attributeList ? new n({}, [new T(w.UNEXPECTED_SETTINGS, "Records cannot have a setting list", i.attributeList)]) : new n({}) : j(i, r.Records) ? new n({}) : n.create(e);
12217
+ return A(i, r.Records) ? i.attributeList ? ey(i.attributeList) : new n({}) : j(i, r.Records) ? new n({}) : n.create(e);
12195
12218
  }
12196
- }, ty = class {
12219
+ }, ny = class {
12197
12220
  constructor(e, t) {
12198
12221
  this.compiler = e, this.declarationNode = t;
12199
12222
  }
@@ -12248,13 +12271,13 @@ var Lv = {
12248
12271
  }), t;
12249
12272
  }
12250
12273
  validateFieldSettings(e) {
12251
- return ry(e).getErrors();
12274
+ return iy(e).getErrors();
12252
12275
  }
12253
12276
  validateSubElements(e) {
12254
12277
  return e.flatMap((e) => e.type ? this.compiler.validateNode(e).getErrors() : []);
12255
12278
  }
12256
12279
  };
12257
- function ny(e) {
12280
+ function ry(e) {
12258
12281
  if (!(O(e) && e.expression.variable.kind !== _.QUOTED_STRING) && !(e instanceof hm)) return !1;
12259
12282
  let t;
12260
12283
  if (t = e instanceof hm ? ap(e) || "" : e.expression.variable.value, t) switch (t.toLowerCase()) {
@@ -12267,13 +12290,13 @@ function ny(e) {
12267
12290
  }
12268
12291
  return !1;
12269
12292
  }
12270
- function ry(e) {
12293
+ function iy(e) {
12271
12294
  let t = E(e), r = t.getErrors(), a = t.getValue(), o = {};
12272
12295
  for (let [e, t] of Object.entries(a)) switch (e) {
12273
12296
  case i.Delete:
12274
12297
  case i.Update:
12275
12298
  t.length > 1 && t.forEach((t) => r.push(new T(w.DUPLICATE_REF_SETTING, `'${e}' can only appear once`, t))), t.forEach((t) => {
12276
- ny(t.value) || r.push(new T(w.INVALID_REF_SETTING_VALUE, `'${e}' can only have values "cascade", "no action", "set null", "set default" or "restrict"`, t));
12299
+ ry(t.value) || r.push(new T(w.INVALID_REF_SETTING_VALUE, `'${e}' can only have values "cascade", "no action", "set null", "set default" or "restrict"`, t));
12277
12300
  }), o[e] = t;
12278
12301
  break;
12279
12302
  case i.Color:
@@ -12292,9 +12315,9 @@ function ry(e) {
12292
12315
  }
12293
12316
  //#endregion
12294
12317
  //#region src/core/local_modules/ref/index.ts
12295
- var iy = {
12318
+ var ay = {
12296
12319
  validateNode(t, i) {
12297
- return A(i, r.Ref) ? n.create(void 0, new ty(t, i).validate()) : n.create(e);
12320
+ return A(i, r.Ref) ? n.create(void 0, new ny(t, i).validate()) : n.create(e);
12298
12321
  },
12299
12322
  nodeFullname(t, i) {
12300
12323
  return A(i, r.Ref) ? i.name ? kf(i.name) ? new n(M(i.name)) : new n(void 0, [new T(w.INVALID_NAME, "A Ref's name is optional or must be an identifier or a quoted identifer", i.name)]) : new n(void 0) : j(i, r.Ref) ? new n(void 0) : n.create(e);
@@ -12306,11 +12329,11 @@ var iy = {
12306
12329
  if (A(i, r.Ref)) return i.attributeList ? new n({}, [new T(w.UNEXPECTED_SETTINGS, "A Ref shouldn't have a setting list", i.attributeList)]) : new n({});
12307
12330
  if (j(i, r.Ref)) {
12308
12331
  let e = [...i.args], t;
12309
- return h(e) instanceof W ? t = h(e) : e[0] instanceof W && (t = e[0]), t ? ry(t) : new n({});
12332
+ return h(e) instanceof W ? t = h(e) : e[0] instanceof W && (t = e[0]), t ? iy(t) : new n({});
12310
12333
  }
12311
12334
  return n.create(e);
12312
12335
  }
12313
- }, ay = class {
12336
+ }, oy = class {
12314
12337
  constructor(e, t) {
12315
12338
  this.declarationNode = t, this.compiler = e;
12316
12339
  }
@@ -12333,7 +12356,7 @@ var iy = {
12333
12356
  return e ? Of(e) ? [] : [new T(w.INVALID_ALIAS, "Table aliases can only contain alphanumeric and underscore unless surrounded by double quotes", e)] : [];
12334
12357
  }
12335
12358
  validateSettingList(e) {
12336
- return oy(e).getErrors();
12359
+ return sy(e).getErrors();
12337
12360
  }
12338
12361
  validateBody(e) {
12339
12362
  if (!e) return [];
@@ -12355,14 +12378,14 @@ var iy = {
12355
12378
  return e.flatMap((e) => e.callee instanceof V && e.callee.op?.value === "~" ? n(e) : t(e));
12356
12379
  }
12357
12380
  validateFieldSetting(e) {
12358
- return sy(e).getErrors();
12381
+ return cy(e).getErrors();
12359
12382
  }
12360
12383
  validateSubElements(e) {
12361
12384
  let t = e.flatMap((e) => e.type ? this.compiler.validateNode(e).getErrors() : []), n = e.filter((e) => e.isKind(r.Note));
12362
12385
  return n.length > 1 && t.push(...n.map((e) => new T(w.NOTE_REDEFINED, "Duplicate notes are defined", e))), t;
12363
12386
  }
12364
12387
  };
12365
- function oy(e) {
12388
+ function sy(e) {
12366
12389
  let t = E(e), r = t.getErrors(), a = t.getValue();
12367
12390
  return Ca(a, (e, t) => {
12368
12391
  switch (t) {
@@ -12390,7 +12413,7 @@ function oy(e) {
12390
12413
  }
12391
12414
  }), new n(a, r);
12392
12415
  }
12393
- function sy(e) {
12416
+ function cy(e) {
12394
12417
  if (!e.slice(0, -1).every(Wf) || !e.slice(-1).every((e) => Wf(e) || e instanceof W)) return new n({}, e.map((e) => new T(w.INVALID_COLUMN, "These fields must be some inline settings optionally ended with a setting list", e)));
12395
12418
  if (e.length === 0) return new n({});
12396
12419
  let t;
@@ -12475,9 +12498,9 @@ function sy(e) {
12475
12498
  }
12476
12499
  //#endregion
12477
12500
  //#region src/core/local_modules/table/index.ts
12478
- var cy = {
12501
+ var ly = {
12479
12502
  validateNode(t, i) {
12480
- return A(i, r.Table) ? n.create(void 0, new ay(t, i).validate()) : n.create(e);
12503
+ return A(i, r.Table) ? n.create(void 0, new oy(t, i).validate()) : n.create(e);
12481
12504
  },
12482
12505
  nodeFullname(t, i) {
12483
12506
  if (A(i, r.Table)) {
@@ -12500,9 +12523,9 @@ var cy = {
12500
12523
  return A(i, r.Table) ? i.alias ? Of(i.alias) ? new n(P(i.alias)) : new n(void 0, [new T(w.INVALID_ALIAS, "Table aliases can only contain alphanumeric and underscore unless surrounded by double quotes", i.alias)]) : new n(void 0) : j(i, r.Table) ? new n(void 0) : n.create(e);
12501
12524
  },
12502
12525
  nodeSettings(t, i) {
12503
- return A(i, r.Table) ? i.attributeList ? oy(i.attributeList) : new n({}) : j(i, r.Table) ? sy(i.args.slice(1)) : n.create(e);
12526
+ return A(i, r.Table) ? i.attributeList ? sy(i.attributeList) : new n({}) : j(i, r.Table) ? cy(i.args.slice(1)) : n.create(e);
12504
12527
  }
12505
- }, ly = class {
12528
+ }, uy = class {
12506
12529
  constructor(e, t) {
12507
12530
  this.declarationNode = t, this.compiler = e;
12508
12531
  }
@@ -12525,7 +12548,7 @@ var cy = {
12525
12548
  return e ? [new T(w.UNEXPECTED_ALIAS, "A TableGroup shouldn't have an alias", e)] : [];
12526
12549
  }
12527
12550
  validateSettingList(e) {
12528
- return uy(e).getErrors();
12551
+ return dy(e).getErrors();
12529
12552
  }
12530
12553
  validateBody(e) {
12531
12554
  if (!e) return [];
@@ -12544,7 +12567,7 @@ var cy = {
12544
12567
  return n.length > 1 && t.push(...n.map((e) => new T(w.NOTE_REDEFINED, "Duplicate notes are defined", e))), t;
12545
12568
  }
12546
12569
  };
12547
- function uy(e) {
12570
+ function dy(e) {
12548
12571
  let t = E(e), r = t.getErrors(), a = t.getValue(), o = {};
12549
12572
  for (let [e, t] of Object.entries(a)) switch (e) {
12550
12573
  case i.Color:
@@ -12566,9 +12589,9 @@ function uy(e) {
12566
12589
  }
12567
12590
  //#endregion
12568
12591
  //#region src/core/local_modules/tableGroup/index.ts
12569
- var dy = {
12592
+ var fy = {
12570
12593
  validateNode(t, i) {
12571
- return A(i, r.TableGroup) ? n.create(void 0, new ly(t, i).validate()) : n.create(e);
12594
+ return A(i, r.TableGroup) ? n.create(void 0, new uy(t, i).validate()) : n.create(e);
12572
12595
  },
12573
12596
  nodeFullname(t, i) {
12574
12597
  if (A(i, r.TableGroup)) return i.name ? kf(i.name) ? new n(M(i.name)) : new n(void 0, [new T(w.INVALID_NAME, "A TableGroup name must be a single identifier", i.name)]) : new n(void 0, [new T(w.NAME_NOT_FOUND, "A TableGroup must have a name", i)]);
@@ -12582,9 +12605,9 @@ var dy = {
12582
12605
  return A(i, r.TableGroup) ? i.alias ? new n(void 0, [new T(w.UNEXPECTED_ALIAS, "A TableGroup shouldn't have an alias", i.alias)]) : new n(void 0) : j(i, r.TableGroup) ? new n(void 0) : n.create(e);
12583
12606
  },
12584
12607
  nodeSettings(t, i) {
12585
- return A(i, r.TableGroup) ? uy(i.attributeList) : j(i, r.TableGroup) ? new n({}) : n.create(e);
12608
+ return A(i, r.TableGroup) ? dy(i.attributeList) : j(i, r.TableGroup) ? new n({}) : n.create(e);
12586
12609
  }
12587
- }, fy = class {
12610
+ }, py = class {
12588
12611
  constructor(e, t) {
12589
12612
  this.compiler = e, this.declarationNode = t;
12590
12613
  }
@@ -12722,7 +12745,7 @@ var dy = {
12722
12745
  return n.length > 1 && t.push(...n.map((e) => new T(w.NOTE_REDEFINED, "Duplicate notes are defined", e))), t;
12723
12746
  }
12724
12747
  };
12725
- function py(e) {
12748
+ function my(e) {
12726
12749
  let t = E(e), r = t.getErrors(), a = t.getValue();
12727
12750
  return Ca(a, (e, t) => {
12728
12751
  switch (t) {
@@ -12740,7 +12763,7 @@ function py(e) {
12740
12763
  }
12741
12764
  }), new n(a, r);
12742
12765
  }
12743
- function my(e) {
12766
+ function hy(e) {
12744
12767
  let t = h(e);
12745
12768
  if (e.length > 0 && (!e.slice(0, -1).every(Wf) || !(Wf(t) || t instanceof W))) return new n({}, e.map((e) => new T(w.INVALID_COLUMN, "These fields must be some inline settings optionally ended with a setting list", e)));
12746
12769
  if (e.length === 0) return new n({});
@@ -12820,9 +12843,9 @@ function my(e) {
12820
12843
  }
12821
12844
  //#endregion
12822
12845
  //#region src/core/local_modules/tablePartial/index.ts
12823
- var hy = {
12846
+ var gy = {
12824
12847
  validateNode(t, i) {
12825
- return A(i, r.TablePartial) ? n.create(void 0, new fy(t, i).validate()) : n.create(e);
12848
+ return A(i, r.TablePartial) ? n.create(void 0, new py(t, i).validate()) : n.create(e);
12826
12849
  },
12827
12850
  nodeFullname(t, i) {
12828
12851
  if (A(i, r.TablePartial)) return i.name ? kf(i.name) ? new n(M(i.name)) : new n(void 0, [new T(w.INVALID_NAME, "A TablePartial name must be an identifier or a quoted identifer", i.name)]) : new n(void 0, [new T(w.NAME_NOT_FOUND, "A TablePartial must have a name", i)]);
@@ -12836,9 +12859,9 @@ var hy = {
12836
12859
  return A(i, r.TablePartial) ? i.alias ? new n(void 0, [new T(w.UNEXPECTED_ALIAS, "A TablePartial shouldn't have an alias", i.alias)]) : new n(P(i.alias)) : j(i, r.TablePartial) ? new n(void 0) : n.create(e);
12837
12860
  },
12838
12861
  nodeSettings(t, i) {
12839
- return A(i, r.TablePartial) ? py(i.attributeList) : j(i, r.TablePartial) ? my(i.args.slice(1)) : n.create(e);
12862
+ return A(i, r.TablePartial) ? my(i.attributeList) : j(i, r.TablePartial) ? hy(i.args.slice(1)) : n.create(e);
12840
12863
  }
12841
- }, gy = class {
12864
+ }, _y = class {
12842
12865
  constructor(e, t) {
12843
12866
  this.compiler = e, this.declarationNode = t;
12844
12867
  }
@@ -12862,24 +12885,24 @@ var hy = {
12862
12885
  ...this.compiler.nodeAlias(e).getErrors()
12863
12886
  ];
12864
12887
  }
12865
- }, _y = [
12866
- cy,
12888
+ }, vy = [
12889
+ ly,
12867
12890
  Vv,
12868
- ey,
12891
+ ty,
12869
12892
  Uv,
12870
12893
  jv,
12871
- iy,
12894
+ ay,
12872
12895
  Lv,
12873
12896
  Qv,
12874
- dy,
12875
- hy,
12897
+ fy,
12898
+ gy,
12876
12899
  Gv,
12877
12900
  Jv,
12878
12901
  zv,
12879
12902
  Xv,
12880
12903
  {
12881
12904
  validateNode(t, r) {
12882
- return r instanceof fm ? n.create(void 0, new gy(t, r).validate()) : n.create(e);
12905
+ return r instanceof fm ? n.create(void 0, new _y(t, r).validate()) : n.create(e);
12883
12906
  },
12884
12907
  nodeFullname(t, r) {
12885
12908
  if (!qf(r)) return n.create(e);
@@ -12895,8 +12918,8 @@ var hy = {
12895
12918
  },
12896
12919
  Pv
12897
12920
  ];
12898
- function vy(t, ...r) {
12899
- for (let n of _y) {
12921
+ function yy(t, ...r) {
12922
+ for (let n of vy) {
12900
12923
  let i = n[t];
12901
12924
  if (i) {
12902
12925
  let t = i(...r);
@@ -12905,57 +12928,57 @@ function vy(t, ...r) {
12905
12928
  }
12906
12929
  return n.create(e);
12907
12930
  }
12908
- function yy(r) {
12909
- let i = vy("validateNode", this, r);
12910
- return i.hasValue(e) ? n.create(t) : i;
12911
- }
12912
12931
  function by(r) {
12913
- let i = vy("nodeSettings", this, r);
12932
+ let i = yy("validateNode", this, r);
12914
12933
  return i.hasValue(e) ? n.create(t) : i;
12915
12934
  }
12916
12935
  function xy(r) {
12917
- let i = vy("nodeFullname", this, r);
12936
+ let i = yy("nodeSettings", this, r);
12918
12937
  return i.hasValue(e) ? n.create(t) : i;
12919
12938
  }
12920
12939
  function Sy(r) {
12921
- let i = vy("nodeAlias", this, r);
12940
+ let i = yy("nodeFullname", this, r);
12941
+ return i.hasValue(e) ? n.create(t) : i;
12942
+ }
12943
+ function Cy(r) {
12944
+ let i = yy("nodeAlias", this, r);
12922
12945
  return i.hasValue(e) ? n.create(t) : i;
12923
12946
  }
12924
- var Cy = typeof document < "u" && document.location && document.location.hash.indexOf("pseudo=true") >= 0;
12925
- function wy(e, t) {
12947
+ var wy = typeof document < "u" && document.location && document.location.hash.indexOf("pseudo=true") >= 0;
12948
+ function Ty(e, t) {
12926
12949
  let n;
12927
12950
  return n = t.length === 0 ? e : e.replace(/\{(\d+)\}/g, (e, n) => {
12928
12951
  let r = t[n[0]], i = e;
12929
12952
  return typeof r == "string" ? i = r : (typeof r == "number" || typeof r == "boolean" || r == null) && (i = String(r)), i;
12930
- }), Cy && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n;
12953
+ }), wy && (n = "[" + n.replace(/[aouei]/g, "$&$&") + "]"), n;
12931
12954
  }
12932
- function Ty(e, t, ...n) {
12933
- return wy(t, n);
12955
+ function Ey(e, t, ...n) {
12956
+ return Ty(t, n);
12934
12957
  }
12935
12958
  //#endregion
12936
12959
  //#region ../../node_modules/monaco-editor-core/esm/vs/base/common/platform.js
12937
- var Ey = !1, Dy = !1, Oy = !1, ky = !1, Ay = void 0, jy = typeof self == "object" ? self : typeof global == "object" ? global : {}, My = void 0;
12938
- jy.vscode !== void 0 && jy.vscode.process !== void 0 ? My = jy.vscode.process : typeof process < "u" && (My = process);
12939
- var Ny = typeof My?.versions?.electron == "string" && My?.type === "renderer";
12940
- if (typeof navigator == "object" && !Ny) Ay = navigator.userAgent, Ey = Ay.indexOf("Windows") >= 0, Dy = Ay.indexOf("Macintosh") >= 0, (Ay.indexOf("Macintosh") >= 0 || Ay.indexOf("iPad") >= 0 || Ay.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints, Oy = Ay.indexOf("Linux") >= 0, Ay?.indexOf("Mobi"), ky = !0, Ty({
12960
+ var Dy = !1, Oy = !1, ky = !1, Ay = !1, jy = void 0, My = typeof self == "object" ? self : typeof global == "object" ? global : {}, Ny = void 0;
12961
+ My.vscode !== void 0 && My.vscode.process !== void 0 ? Ny = My.vscode.process : typeof process < "u" && (Ny = process);
12962
+ var Py = typeof Ny?.versions?.electron == "string" && Ny?.type === "renderer";
12963
+ if (typeof navigator == "object" && !Py) jy = navigator.userAgent, Dy = jy.indexOf("Windows") >= 0, Oy = jy.indexOf("Macintosh") >= 0, (jy.indexOf("Macintosh") >= 0 || jy.indexOf("iPad") >= 0 || jy.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints, ky = jy.indexOf("Linux") >= 0, jy?.indexOf("Mobi"), Ay = !0, Ey({
12941
12964
  key: "ensureLoaderPluginIsLoaded",
12942
12965
  comment: ["{Locked}"]
12943
12966
  }, "_"), navigator.language;
12944
- else if (typeof My == "object") {
12945
- Ey = My.platform === "win32", Dy = My.platform === "darwin", Oy = My.platform === "linux", Oy && My.env.SNAP && My.env.SNAP_REVISION, My.env.CI || My.env.BUILD_ARTIFACTSTAGINGDIRECTORY;
12946
- let e = My.env.VSCODE_NLS_CONFIG;
12967
+ else if (typeof Ny == "object") {
12968
+ Dy = Ny.platform === "win32", Oy = Ny.platform === "darwin", ky = Ny.platform === "linux", ky && Ny.env.SNAP && Ny.env.SNAP_REVISION, Ny.env.CI || Ny.env.BUILD_ARTIFACTSTAGINGDIRECTORY;
12969
+ let e = Ny.env.VSCODE_NLS_CONFIG;
12947
12970
  if (e) try {
12948
12971
  let t = JSON.parse(e);
12949
12972
  t.availableLanguages["*"], t.locale, t.osLocale, t._translationsConfigFile;
12950
12973
  } catch {}
12951
12974
  } else console.error("Unable to resolve platform.");
12952
- var Py = Ey, Fy = Dy;
12953
- ky && jy.importScripts;
12954
- var Iy = Ay, Ly = typeof jy.postMessage == "function" && !jy.importScripts;
12975
+ var Fy = Dy, Iy = Oy;
12976
+ Ay && My.importScripts;
12977
+ var Ly = jy, Ry = typeof My.postMessage == "function" && !My.importScripts;
12955
12978
  (() => {
12956
- if (Ly) {
12979
+ if (Ry) {
12957
12980
  let e = [];
12958
- jy.addEventListener("message", (t) => {
12981
+ My.addEventListener("message", (t) => {
12959
12982
  if (t.data && t.data.vscodeScheduleAsyncWork) for (let n = 0, r = e.length; n < r; n++) {
12960
12983
  let r = e[n];
12961
12984
  if (r.id === t.data.vscodeScheduleAsyncWork) {
@@ -12970,19 +12993,19 @@ var Iy = Ay, Ly = typeof jy.postMessage == "function" && !jy.importScripts;
12970
12993
  e.push({
12971
12994
  id: r,
12972
12995
  callback: n
12973
- }), jy.postMessage({ vscodeScheduleAsyncWork: r }, "*");
12996
+ }), My.postMessage({ vscodeScheduleAsyncWork: r }, "*");
12974
12997
  };
12975
12998
  }
12976
12999
  return (e) => setTimeout(e);
12977
13000
  })();
12978
- var Ry = !!(Iy && Iy.indexOf("Chrome") >= 0);
12979
- Iy && Iy.indexOf("Firefox"), !Ry && Iy && Iy.indexOf("Safari"), Iy && Iy.indexOf("Edg/"), Iy && Iy.indexOf("Android");
13001
+ var zy = !!(Ly && Ly.indexOf("Chrome") >= 0);
13002
+ Ly && Ly.indexOf("Firefox"), !zy && Ly && Ly.indexOf("Safari"), Ly && Ly.indexOf("Edg/"), Ly && Ly.indexOf("Android");
12980
13003
  //#endregion
12981
13004
  //#region ../../node_modules/monaco-editor-core/esm/vs/base/common/process.js
12982
- var zy;
12983
- if (jy.vscode !== void 0 && jy.vscode.process !== void 0) {
12984
- let e = jy.vscode.process;
12985
- zy = {
13005
+ var By;
13006
+ if (My.vscode !== void 0 && My.vscode.process !== void 0) {
13007
+ let e = My.vscode.process;
13008
+ By = {
12986
13009
  get platform() {
12987
13010
  return e.platform;
12988
13011
  },
@@ -12996,7 +13019,7 @@ if (jy.vscode !== void 0 && jy.vscode.process !== void 0) {
12996
13019
  return e.cwd();
12997
13020
  }
12998
13021
  };
12999
- } else zy = typeof process < "u" ? {
13022
+ } else By = typeof process < "u" ? {
13000
13023
  get platform() {
13001
13024
  return process.platform;
13002
13025
  },
@@ -13011,7 +13034,7 @@ if (jy.vscode !== void 0 && jy.vscode.process !== void 0) {
13011
13034
  }
13012
13035
  } : {
13013
13036
  get platform() {
13014
- return Py ? "win32" : Fy ? "darwin" : "linux";
13037
+ return Fy ? "win32" : Iy ? "darwin" : "linux";
13015
13038
  },
13016
13039
  get arch() {},
13017
13040
  get env() {
@@ -13021,7 +13044,7 @@ if (jy.vscode !== void 0 && jy.vscode.process !== void 0) {
13021
13044
  return "/";
13022
13045
  }
13023
13046
  };
13024
- var By = zy.cwd, Vy = zy.env, Hy = zy.platform, Uy = 65, Wy = 97, Gy = 90, Ky = 122, qy = 46, Jy = 47, Yy = 92, Xy = 58, Zy = 63, Qy = class extends Error {
13047
+ var Vy = By.cwd, Hy = By.env, Uy = By.platform, Wy = 65, Gy = 97, Ky = 90, qy = 122, Jy = 46, Yy = 47, Xy = 92, Zy = 58, Qy = 63, $y = class extends Error {
13025
13048
  constructor(e, t, n) {
13026
13049
  let r;
13027
13050
  typeof t == "string" && t.indexOf("not ") === 0 ? (r = "must not be", t = t.replace(/^not /, "")) : r = "must be";
@@ -13029,31 +13052,31 @@ var By = zy.cwd, Vy = zy.env, Hy = zy.platform, Uy = 65, Wy = 97, Gy = 90, Ky =
13029
13052
  i += `. Received type ${typeof n}`, super(i), this.code = "ERR_INVALID_ARG_TYPE";
13030
13053
  }
13031
13054
  };
13032
- function $y(e, t) {
13033
- if (typeof e != "object" || !e) throw new Qy(t, "Object", e);
13034
- }
13035
13055
  function eb(e, t) {
13036
- if (typeof e != "string") throw new Qy(t, "string", e);
13056
+ if (typeof e != "object" || !e) throw new $y(t, "Object", e);
13037
13057
  }
13038
- var tb = Hy === "win32";
13039
- function K(e) {
13040
- return e === Jy || e === Yy;
13058
+ function tb(e, t) {
13059
+ if (typeof e != "string") throw new $y(t, "string", e);
13041
13060
  }
13042
- function nb(e) {
13043
- return e === Jy;
13061
+ var nb = Uy === "win32";
13062
+ function K(e) {
13063
+ return e === Yy || e === Xy;
13044
13064
  }
13045
13065
  function rb(e) {
13046
- return e >= Uy && e <= Gy || e >= Wy && e <= Ky;
13066
+ return e === Yy;
13067
+ }
13068
+ function ib(e) {
13069
+ return e >= Wy && e <= Ky || e >= Gy && e <= qy;
13047
13070
  }
13048
- function ib(e, t, n, r) {
13071
+ function ab(e, t, n, r) {
13049
13072
  let i = "", a = 0, o = -1, s = 0, c = 0;
13050
13073
  for (let l = 0; l <= e.length; ++l) {
13051
13074
  if (l < e.length) c = e.charCodeAt(l);
13052
13075
  else if (r(c)) break;
13053
- else c = Jy;
13076
+ else c = Yy;
13054
13077
  if (r(c)) {
13055
13078
  if (!(o === l - 1 || s === 1)) if (s === 2) {
13056
- if (i.length < 2 || a !== 2 || i.charCodeAt(i.length - 1) !== qy || i.charCodeAt(i.length - 2) !== qy) {
13079
+ if (i.length < 2 || a !== 2 || i.charCodeAt(i.length - 1) !== Jy || i.charCodeAt(i.length - 2) !== Jy) {
13057
13080
  if (i.length > 2) {
13058
13081
  let e = i.lastIndexOf(n);
13059
13082
  e === -1 ? (i = "", a = 0) : (i = i.slice(0, e), a = i.length - 1 - i.lastIndexOf(n)), o = l, s = 0;
@@ -13066,23 +13089,23 @@ function ib(e, t, n, r) {
13066
13089
  t && (i += i.length > 0 ? `${n}..` : "..", a = 2);
13067
13090
  } else i.length > 0 ? i += `${n}${e.slice(o + 1, l)}` : i = e.slice(o + 1, l), a = l - o - 1;
13068
13091
  o = l, s = 0;
13069
- } else c === qy && s !== -1 ? ++s : s = -1;
13092
+ } else c === Jy && s !== -1 ? ++s : s = -1;
13070
13093
  }
13071
13094
  return i;
13072
13095
  }
13073
- function ab(e, t) {
13074
- $y(t, "pathObject");
13096
+ function ob(e, t) {
13097
+ eb(t, "pathObject");
13075
13098
  let n = t.dir || t.root, r = t.base || `${t.name || ""}${t.ext || ""}`;
13076
13099
  return n ? n === t.root ? `${n}${r}` : `${n}${e}${r}` : r;
13077
13100
  }
13078
- var ob = {
13101
+ var sb = {
13079
13102
  resolve(...e) {
13080
13103
  let t = "", n = "", r = !1;
13081
13104
  for (let i = e.length - 1; i >= -1; i--) {
13082
13105
  let a;
13083
13106
  if (i >= 0) {
13084
- if (a = e[i], eb(a, "path"), a.length === 0) continue;
13085
- } else t.length === 0 ? a = By() : (a = Vy[`=${t}`] || By(), (a === void 0 || a.slice(0, 2).toLowerCase() !== t.toLowerCase() && a.charCodeAt(2) === Yy) && (a = `${t}\\`));
13107
+ if (a = e[i], tb(a, "path"), a.length === 0) continue;
13108
+ } else t.length === 0 ? a = Vy() : (a = Hy[`=${t}`] || Vy(), (a === void 0 || a.slice(0, 2).toLowerCase() !== t.toLowerCase() && a.charCodeAt(2) === Xy) && (a = `${t}\\`));
13086
13109
  let o = a.length, s = 0, c = "", l = !1, u = a.charCodeAt(0);
13087
13110
  if (o === 1) K(u) && (s = 1, l = !0);
13088
13111
  else if (K(u)) if (l = !0, K(a.charCodeAt(1))) {
@@ -13097,7 +13120,7 @@ var ob = {
13097
13120
  }
13098
13121
  }
13099
13122
  } else s = 1;
13100
- else rb(u) && a.charCodeAt(1) === Xy && (c = a.slice(0, 2), s = 2, o > 2 && K(a.charCodeAt(2)) && (l = !0, s = 3));
13123
+ else ib(u) && a.charCodeAt(1) === Zy && (c = a.slice(0, 2), s = 2, o > 2 && K(a.charCodeAt(2)) && (l = !0, s = 3));
13101
13124
  if (c.length > 0) if (t.length > 0) {
13102
13125
  if (c.toLowerCase() !== t.toLowerCase()) continue;
13103
13126
  } else t = c;
@@ -13105,14 +13128,14 @@ var ob = {
13105
13128
  if (t.length > 0) break;
13106
13129
  } else if (n = `${a.slice(s)}\\${n}`, r = l, l && t.length > 0) break;
13107
13130
  }
13108
- return n = ib(n, !r, "\\", K), r ? `${t}\\${n}` : `${t}${n}` || ".";
13131
+ return n = ab(n, !r, "\\", K), r ? `${t}\\${n}` : `${t}${n}` || ".";
13109
13132
  },
13110
13133
  normalize(e) {
13111
- eb(e, "path");
13134
+ tb(e, "path");
13112
13135
  let t = e.length;
13113
13136
  if (t === 0) return ".";
13114
13137
  let n = 0, r, i = !1, a = e.charCodeAt(0);
13115
- if (t === 1) return nb(a) ? "\\" : e;
13138
+ if (t === 1) return rb(a) ? "\\" : e;
13116
13139
  if (K(a)) if (i = !0, K(e.charCodeAt(1))) {
13117
13140
  let i = 2, a = i;
13118
13141
  for (; i < t && !K(e.charCodeAt(i));) i++;
@@ -13126,23 +13149,23 @@ var ob = {
13126
13149
  }
13127
13150
  }
13128
13151
  } else n = 1;
13129
- else rb(a) && e.charCodeAt(1) === Xy && (r = e.slice(0, 2), n = 2, t > 2 && K(e.charCodeAt(2)) && (i = !0, n = 3));
13130
- let o = n < t ? ib(e.slice(n), !i, "\\", K) : "";
13152
+ else ib(a) && e.charCodeAt(1) === Zy && (r = e.slice(0, 2), n = 2, t > 2 && K(e.charCodeAt(2)) && (i = !0, n = 3));
13153
+ let o = n < t ? ab(e.slice(n), !i, "\\", K) : "";
13131
13154
  return o.length === 0 && !i && (o = "."), o.length > 0 && K(e.charCodeAt(t - 1)) && (o += "\\"), r === void 0 ? i ? `\\${o}` : o : i ? `${r}\\${o}` : `${r}${o}`;
13132
13155
  },
13133
13156
  isAbsolute(e) {
13134
- eb(e, "path");
13157
+ tb(e, "path");
13135
13158
  let t = e.length;
13136
13159
  if (t === 0) return !1;
13137
13160
  let n = e.charCodeAt(0);
13138
- return K(n) || t > 2 && rb(n) && e.charCodeAt(1) === Xy && K(e.charCodeAt(2));
13161
+ return K(n) || t > 2 && ib(n) && e.charCodeAt(1) === Zy && K(e.charCodeAt(2));
13139
13162
  },
13140
13163
  join(...e) {
13141
13164
  if (e.length === 0) return ".";
13142
13165
  let t, n;
13143
13166
  for (let r = 0; r < e.length; ++r) {
13144
13167
  let i = e[r];
13145
- eb(i, "path"), i.length > 0 && (t === void 0 ? t = n = i : t += `\\${i}`);
13168
+ tb(i, "path"), i.length > 0 && (t === void 0 ? t = n = i : t += `\\${i}`);
13146
13169
  }
13147
13170
  if (t === void 0) return ".";
13148
13171
  let r = !0, i = 0;
@@ -13155,53 +13178,53 @@ var ob = {
13155
13178
  for (; i < t.length && K(t.charCodeAt(i));) i++;
13156
13179
  i >= 2 && (t = `\\${t.slice(i)}`);
13157
13180
  }
13158
- return ob.normalize(t);
13181
+ return sb.normalize(t);
13159
13182
  },
13160
13183
  relative(e, t) {
13161
- if (eb(e, "from"), eb(t, "to"), e === t) return "";
13162
- let n = ob.resolve(e), r = ob.resolve(t);
13184
+ if (tb(e, "from"), tb(t, "to"), e === t) return "";
13185
+ let n = sb.resolve(e), r = sb.resolve(t);
13163
13186
  if (n === r || (e = n.toLowerCase(), t = r.toLowerCase(), e === t)) return "";
13164
13187
  let i = 0;
13165
- for (; i < e.length && e.charCodeAt(i) === Yy;) i++;
13188
+ for (; i < e.length && e.charCodeAt(i) === Xy;) i++;
13166
13189
  let a = e.length;
13167
- for (; a - 1 > i && e.charCodeAt(a - 1) === Yy;) a--;
13190
+ for (; a - 1 > i && e.charCodeAt(a - 1) === Xy;) a--;
13168
13191
  let o = a - i, s = 0;
13169
- for (; s < t.length && t.charCodeAt(s) === Yy;) s++;
13192
+ for (; s < t.length && t.charCodeAt(s) === Xy;) s++;
13170
13193
  let c = t.length;
13171
- for (; c - 1 > s && t.charCodeAt(c - 1) === Yy;) c--;
13194
+ for (; c - 1 > s && t.charCodeAt(c - 1) === Xy;) c--;
13172
13195
  let l = c - s, u = o < l ? o : l, d = -1, f = 0;
13173
13196
  for (; f < u; f++) {
13174
13197
  let n = e.charCodeAt(i + f);
13175
13198
  if (n !== t.charCodeAt(s + f)) break;
13176
- n === Yy && (d = f);
13199
+ n === Xy && (d = f);
13177
13200
  }
13178
13201
  if (f !== u) {
13179
13202
  if (d === -1) return r;
13180
13203
  } else {
13181
13204
  if (l > u) {
13182
- if (t.charCodeAt(s + f) === Yy) return r.slice(s + f + 1);
13205
+ if (t.charCodeAt(s + f) === Xy) return r.slice(s + f + 1);
13183
13206
  if (f === 2) return r.slice(s + f);
13184
13207
  }
13185
- o > u && (e.charCodeAt(i + f) === Yy ? d = f : f === 2 && (d = 3)), d === -1 && (d = 0);
13208
+ o > u && (e.charCodeAt(i + f) === Xy ? d = f : f === 2 && (d = 3)), d === -1 && (d = 0);
13186
13209
  }
13187
13210
  let p = "";
13188
- for (f = i + d + 1; f <= a; ++f) (f === a || e.charCodeAt(f) === Yy) && (p += p.length === 0 ? ".." : "\\..");
13189
- return s += d, p.length > 0 ? `${p}${r.slice(s, c)}` : (r.charCodeAt(s) === Yy && ++s, r.slice(s, c));
13211
+ for (f = i + d + 1; f <= a; ++f) (f === a || e.charCodeAt(f) === Xy) && (p += p.length === 0 ? ".." : "\\..");
13212
+ return s += d, p.length > 0 ? `${p}${r.slice(s, c)}` : (r.charCodeAt(s) === Xy && ++s, r.slice(s, c));
13190
13213
  },
13191
13214
  toNamespacedPath(e) {
13192
13215
  if (typeof e != "string" || e.length === 0) return e;
13193
- let t = ob.resolve(e);
13216
+ let t = sb.resolve(e);
13194
13217
  if (t.length <= 2) return e;
13195
- if (t.charCodeAt(0) === Yy) {
13196
- if (t.charCodeAt(1) === Yy) {
13218
+ if (t.charCodeAt(0) === Xy) {
13219
+ if (t.charCodeAt(1) === Xy) {
13197
13220
  let e = t.charCodeAt(2);
13198
- if (e !== Zy && e !== qy) return `\\\\?\\UNC\\${t.slice(2)}`;
13221
+ if (e !== Qy && e !== Jy) return `\\\\?\\UNC\\${t.slice(2)}`;
13199
13222
  }
13200
- } else if (rb(t.charCodeAt(0)) && t.charCodeAt(1) === Xy && t.charCodeAt(2) === Yy) return `\\\\?\\${t}`;
13223
+ } else if (ib(t.charCodeAt(0)) && t.charCodeAt(1) === Zy && t.charCodeAt(2) === Xy) return `\\\\?\\${t}`;
13201
13224
  return e;
13202
13225
  },
13203
13226
  dirname(e) {
13204
- eb(e, "path");
13227
+ tb(e, "path");
13205
13228
  let t = e.length;
13206
13229
  if (t === 0) return ".";
13207
13230
  let n = -1, r = 0, i = e.charCodeAt(0);
@@ -13219,7 +13242,7 @@ var ob = {
13219
13242
  }
13220
13243
  }
13221
13244
  }
13222
- } else rb(i) && e.charCodeAt(1) === Xy && (n = t > 2 && K(e.charCodeAt(2)) ? 3 : 2, r = n);
13245
+ } else ib(i) && e.charCodeAt(1) === Zy && (n = t > 2 && K(e.charCodeAt(2)) ? 3 : 2, r = n);
13223
13246
  let a = -1, o = !0;
13224
13247
  for (let n = t - 1; n >= r; --n) if (K(e.charCodeAt(n))) {
13225
13248
  if (!o) {
@@ -13234,9 +13257,9 @@ var ob = {
13234
13257
  return e.slice(0, a);
13235
13258
  },
13236
13259
  basename(e, t) {
13237
- t !== void 0 && eb(t, "ext"), eb(e, "path");
13260
+ t !== void 0 && tb(t, "ext"), tb(e, "path");
13238
13261
  let n = 0, r = -1, i = !0, a;
13239
- if (e.length >= 2 && rb(e.charCodeAt(0)) && e.charCodeAt(1) === Xy && (n = 2), t !== void 0 && t.length > 0 && t.length <= e.length) {
13262
+ if (e.length >= 2 && ib(e.charCodeAt(0)) && e.charCodeAt(1) === Zy && (n = 2), t !== void 0 && t.length > 0 && t.length <= e.length) {
13240
13263
  if (t === e) return "";
13241
13264
  let o = t.length - 1, s = -1;
13242
13265
  for (a = e.length - 1; a >= n; --a) {
@@ -13259,9 +13282,9 @@ var ob = {
13259
13282
  return r === -1 ? "" : e.slice(n, r);
13260
13283
  },
13261
13284
  extname(e) {
13262
- eb(e, "path");
13285
+ tb(e, "path");
13263
13286
  let t = 0, n = -1, r = 0, i = -1, a = !0, o = 0;
13264
- e.length >= 2 && e.charCodeAt(1) === Xy && rb(e.charCodeAt(0)) && (t = r = 2);
13287
+ e.length >= 2 && e.charCodeAt(1) === Zy && ib(e.charCodeAt(0)) && (t = r = 2);
13265
13288
  for (let s = e.length - 1; s >= t; --s) {
13266
13289
  let t = e.charCodeAt(s);
13267
13290
  if (K(t)) {
@@ -13271,13 +13294,13 @@ var ob = {
13271
13294
  }
13272
13295
  continue;
13273
13296
  }
13274
- i === -1 && (a = !1, i = s + 1), t === qy ? n === -1 ? n = s : o !== 1 && (o = 1) : n !== -1 && (o = -1);
13297
+ i === -1 && (a = !1, i = s + 1), t === Jy ? n === -1 ? n = s : o !== 1 && (o = 1) : n !== -1 && (o = -1);
13275
13298
  }
13276
13299
  return n === -1 || i === -1 || o === 0 || o === 1 && n === i - 1 && n === r + 1 ? "" : e.slice(n, i);
13277
13300
  },
13278
- format: ab.bind(null, "\\"),
13301
+ format: ob.bind(null, "\\"),
13279
13302
  parse(e) {
13280
- eb(e, "path");
13303
+ tb(e, "path");
13281
13304
  let t = {
13282
13305
  root: "",
13283
13306
  dir: "",
@@ -13300,7 +13323,7 @@ var ob = {
13300
13323
  }
13301
13324
  }
13302
13325
  }
13303
- } else if (rb(i) && e.charCodeAt(1) === Xy) {
13326
+ } else if (ib(i) && e.charCodeAt(1) === Zy) {
13304
13327
  if (n <= 2) return t.root = t.dir = e, t;
13305
13328
  if (r = 2, K(e.charCodeAt(2))) {
13306
13329
  if (n === 3) return t.root = t.dir = e, t;
@@ -13317,7 +13340,7 @@ var ob = {
13317
13340
  }
13318
13341
  continue;
13319
13342
  }
13320
- s === -1 && (c = !1, s = l + 1), i === qy ? a === -1 ? a = l : u !== 1 && (u = 1) : a !== -1 && (u = -1);
13343
+ s === -1 && (c = !1, s = l + 1), i === Jy ? a === -1 ? a = l : u !== 1 && (u = 1) : a !== -1 && (u = -1);
13321
13344
  }
13322
13345
  return s !== -1 && (a === -1 || u === 0 || u === 1 && a === s - 1 && a === o + 1 ? t.base = t.name = e.slice(o, s) : (t.name = e.slice(o, a), t.base = e.slice(o, s), t.ext = e.slice(a, s))), o > 0 && o !== r ? t.dir = e.slice(0, o - 1) : t.dir = t.root, t;
13323
13346
  },
@@ -13325,64 +13348,64 @@ var ob = {
13325
13348
  delimiter: ";",
13326
13349
  win32: null,
13327
13350
  posix: null
13328
- }, sb = (() => {
13329
- if (tb) {
13351
+ }, cb = (() => {
13352
+ if (nb) {
13330
13353
  let e = /\\/g;
13331
13354
  return () => {
13332
- let t = By().replace(e, "/");
13355
+ let t = Vy().replace(e, "/");
13333
13356
  return t.slice(t.indexOf("/"));
13334
13357
  };
13335
13358
  }
13336
- return () => By();
13337
- })(), cb = {
13359
+ return () => Vy();
13360
+ })(), lb = {
13338
13361
  resolve(...e) {
13339
13362
  let t = "", n = !1;
13340
13363
  for (let r = e.length - 1; r >= -1 && !n; r--) {
13341
- let i = r >= 0 ? e[r] : sb();
13342
- eb(i, "path"), i.length !== 0 && (t = `${i}/${t}`, n = i.charCodeAt(0) === Jy);
13364
+ let i = r >= 0 ? e[r] : cb();
13365
+ tb(i, "path"), i.length !== 0 && (t = `${i}/${t}`, n = i.charCodeAt(0) === Yy);
13343
13366
  }
13344
- return t = ib(t, !n, "/", nb), n ? `/${t}` : t.length > 0 ? t : ".";
13367
+ return t = ab(t, !n, "/", rb), n ? `/${t}` : t.length > 0 ? t : ".";
13345
13368
  },
13346
13369
  normalize(e) {
13347
- if (eb(e, "path"), e.length === 0) return ".";
13348
- let t = e.charCodeAt(0) === Jy, n = e.charCodeAt(e.length - 1) === Jy;
13349
- return e = ib(e, !t, "/", nb), e.length === 0 ? t ? "/" : n ? "./" : "." : (n && (e += "/"), t ? `/${e}` : e);
13370
+ if (tb(e, "path"), e.length === 0) return ".";
13371
+ let t = e.charCodeAt(0) === Yy, n = e.charCodeAt(e.length - 1) === Yy;
13372
+ return e = ab(e, !t, "/", rb), e.length === 0 ? t ? "/" : n ? "./" : "." : (n && (e += "/"), t ? `/${e}` : e);
13350
13373
  },
13351
13374
  isAbsolute(e) {
13352
- return eb(e, "path"), e.length > 0 && e.charCodeAt(0) === Jy;
13375
+ return tb(e, "path"), e.length > 0 && e.charCodeAt(0) === Yy;
13353
13376
  },
13354
13377
  join(...e) {
13355
13378
  if (e.length === 0) return ".";
13356
13379
  let t;
13357
13380
  for (let n = 0; n < e.length; ++n) {
13358
13381
  let r = e[n];
13359
- eb(r, "path"), r.length > 0 && (t === void 0 ? t = r : t += `/${r}`);
13382
+ tb(r, "path"), r.length > 0 && (t === void 0 ? t = r : t += `/${r}`);
13360
13383
  }
13361
- return t === void 0 ? "." : cb.normalize(t);
13384
+ return t === void 0 ? "." : lb.normalize(t);
13362
13385
  },
13363
13386
  relative(e, t) {
13364
- if (eb(e, "from"), eb(t, "to"), e === t || (e = cb.resolve(e), t = cb.resolve(t), e === t)) return "";
13387
+ if (tb(e, "from"), tb(t, "to"), e === t || (e = lb.resolve(e), t = lb.resolve(t), e === t)) return "";
13365
13388
  let n = e.length, r = n - 1, i = t.length - 1, a = r < i ? r : i, o = -1, s = 0;
13366
13389
  for (; s < a; s++) {
13367
13390
  let n = e.charCodeAt(1 + s);
13368
13391
  if (n !== t.charCodeAt(1 + s)) break;
13369
- n === Jy && (o = s);
13392
+ n === Yy && (o = s);
13370
13393
  }
13371
13394
  if (s === a) if (i > a) {
13372
- if (t.charCodeAt(1 + s) === Jy) return t.slice(1 + s + 1);
13395
+ if (t.charCodeAt(1 + s) === Yy) return t.slice(1 + s + 1);
13373
13396
  if (s === 0) return t.slice(1 + s);
13374
- } else r > a && (e.charCodeAt(1 + s) === Jy ? o = s : s === 0 && (o = 0));
13397
+ } else r > a && (e.charCodeAt(1 + s) === Yy ? o = s : s === 0 && (o = 0));
13375
13398
  let c = "";
13376
- for (s = 1 + o + 1; s <= n; ++s) (s === n || e.charCodeAt(s) === Jy) && (c += c.length === 0 ? ".." : "/..");
13399
+ for (s = 1 + o + 1; s <= n; ++s) (s === n || e.charCodeAt(s) === Yy) && (c += c.length === 0 ? ".." : "/..");
13377
13400
  return `${c}${t.slice(1 + o)}`;
13378
13401
  },
13379
13402
  toNamespacedPath(e) {
13380
13403
  return e;
13381
13404
  },
13382
13405
  dirname(e) {
13383
- if (eb(e, "path"), e.length === 0) return ".";
13384
- let t = e.charCodeAt(0) === Jy, n = -1, r = !0;
13385
- for (let t = e.length - 1; t >= 1; --t) if (e.charCodeAt(t) === Jy) {
13406
+ if (tb(e, "path"), e.length === 0) return ".";
13407
+ let t = e.charCodeAt(0) === Yy, n = -1, r = !0;
13408
+ for (let t = e.length - 1; t >= 1; --t) if (e.charCodeAt(t) === Yy) {
13386
13409
  if (!r) {
13387
13410
  n = t;
13388
13411
  break;
@@ -13391,14 +13414,14 @@ var ob = {
13391
13414
  return n === -1 ? t ? "/" : "." : t && n === 1 ? "//" : e.slice(0, n);
13392
13415
  },
13393
13416
  basename(e, t) {
13394
- t !== void 0 && eb(t, "ext"), eb(e, "path");
13417
+ t !== void 0 && tb(t, "ext"), tb(e, "path");
13395
13418
  let n = 0, r = -1, i = !0, a;
13396
13419
  if (t !== void 0 && t.length > 0 && t.length <= e.length) {
13397
13420
  if (t === e) return "";
13398
13421
  let o = t.length - 1, s = -1;
13399
13422
  for (a = e.length - 1; a >= 0; --a) {
13400
13423
  let c = e.charCodeAt(a);
13401
- if (c === Jy) {
13424
+ if (c === Yy) {
13402
13425
  if (!i) {
13403
13426
  n = a + 1;
13404
13427
  break;
@@ -13407,7 +13430,7 @@ var ob = {
13407
13430
  }
13408
13431
  return n === r ? r = s : r === -1 && (r = e.length), e.slice(n, r);
13409
13432
  }
13410
- for (a = e.length - 1; a >= 0; --a) if (e.charCodeAt(a) === Jy) {
13433
+ for (a = e.length - 1; a >= 0; --a) if (e.charCodeAt(a) === Yy) {
13411
13434
  if (!i) {
13412
13435
  n = a + 1;
13413
13436
  break;
@@ -13416,24 +13439,24 @@ var ob = {
13416
13439
  return r === -1 ? "" : e.slice(n, r);
13417
13440
  },
13418
13441
  extname(e) {
13419
- eb(e, "path");
13442
+ tb(e, "path");
13420
13443
  let t = -1, n = 0, r = -1, i = !0, a = 0;
13421
13444
  for (let o = e.length - 1; o >= 0; --o) {
13422
13445
  let s = e.charCodeAt(o);
13423
- if (s === Jy) {
13446
+ if (s === Yy) {
13424
13447
  if (!i) {
13425
13448
  n = o + 1;
13426
13449
  break;
13427
13450
  }
13428
13451
  continue;
13429
13452
  }
13430
- r === -1 && (i = !1, r = o + 1), s === qy ? t === -1 ? t = o : a !== 1 && (a = 1) : t !== -1 && (a = -1);
13453
+ r === -1 && (i = !1, r = o + 1), s === Jy ? t === -1 ? t = o : a !== 1 && (a = 1) : t !== -1 && (a = -1);
13431
13454
  }
13432
13455
  return t === -1 || r === -1 || a === 0 || a === 1 && t === r - 1 && t === n + 1 ? "" : e.slice(t, r);
13433
13456
  },
13434
- format: ab.bind(null, "/"),
13457
+ format: ob.bind(null, "/"),
13435
13458
  parse(e) {
13436
- eb(e, "path");
13459
+ tb(e, "path");
13437
13460
  let t = {
13438
13461
  root: "",
13439
13462
  dir: "",
@@ -13442,19 +13465,19 @@ var ob = {
13442
13465
  name: ""
13443
13466
  };
13444
13467
  if (e.length === 0) return t;
13445
- let n = e.charCodeAt(0) === Jy, r;
13468
+ let n = e.charCodeAt(0) === Yy, r;
13446
13469
  n ? (t.root = "/", r = 1) : r = 0;
13447
13470
  let i = -1, a = 0, o = -1, s = !0, c = e.length - 1, l = 0;
13448
13471
  for (; c >= r; --c) {
13449
13472
  let t = e.charCodeAt(c);
13450
- if (t === Jy) {
13473
+ if (t === Yy) {
13451
13474
  if (!s) {
13452
13475
  a = c + 1;
13453
13476
  break;
13454
13477
  }
13455
13478
  continue;
13456
13479
  }
13457
- o === -1 && (s = !1, o = c + 1), t === qy ? i === -1 ? i = c : l !== 1 && (l = 1) : i !== -1 && (l = -1);
13480
+ o === -1 && (s = !1, o = c + 1), t === Jy ? i === -1 ? i = c : l !== 1 && (l = 1) : i !== -1 && (l = -1);
13458
13481
  }
13459
13482
  if (o !== -1) {
13460
13483
  let r = a === 0 && n ? 1 : a;
@@ -13467,69 +13490,69 @@ var ob = {
13467
13490
  win32: null,
13468
13491
  posix: null
13469
13492
  };
13470
- cb.win32 = ob.win32 = ob, cb.posix = ob.posix = cb, tb ? ob.normalize : cb.normalize, tb ? ob.resolve : cb.resolve, tb ? ob.relative : cb.relative, tb ? ob.dirname : cb.dirname, tb ? ob.basename : cb.basename, tb ? ob.extname : cb.extname, tb ? ob.sep : cb.sep;
13493
+ lb.win32 = sb.win32 = sb, lb.posix = sb.posix = lb, nb ? sb.normalize : lb.normalize, nb ? sb.resolve : lb.resolve, nb ? sb.relative : lb.relative, nb ? sb.dirname : lb.dirname, nb ? sb.basename : lb.basename, nb ? sb.extname : lb.extname, nb ? sb.sep : lb.sep;
13471
13494
  //#endregion
13472
13495
  //#region ../../node_modules/monaco-editor-core/esm/vs/base/common/uri.js
13473
- var lb = /^\w[\w\d+.-]*$/, ub = /^\//, db = /^\/\//;
13474
- function fb(e, t) {
13496
+ var ub = /^\w[\w\d+.-]*$/, db = /^\//, fb = /^\/\//;
13497
+ function pb(e, t) {
13475
13498
  if (!e.scheme && t) throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);
13476
- if (e.scheme && !lb.test(e.scheme)) throw Error("[UriError]: Scheme contains illegal characters.");
13499
+ if (e.scheme && !ub.test(e.scheme)) throw Error("[UriError]: Scheme contains illegal characters.");
13477
13500
  if (e.path) {
13478
13501
  if (e.authority) {
13479
- if (!ub.test(e.path)) throw Error("[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character");
13480
- } else if (db.test(e.path)) throw Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
13502
+ if (!db.test(e.path)) throw Error("[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character");
13503
+ } else if (fb.test(e.path)) throw Error("[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")");
13481
13504
  }
13482
13505
  }
13483
- function pb(e, t) {
13506
+ function mb(e, t) {
13484
13507
  return !e && !t ? "file" : e;
13485
13508
  }
13486
- function mb(e, t) {
13509
+ function hb(e, t) {
13487
13510
  switch (e) {
13488
13511
  case "https":
13489
13512
  case "http":
13490
13513
  case "file":
13491
- t ? t[0] !== hb && (t = hb + t) : t = hb;
13514
+ t ? t[0] !== gb && (t = gb + t) : t = gb;
13492
13515
  break;
13493
13516
  }
13494
13517
  return t;
13495
13518
  }
13496
- var q = "", hb = "/", gb = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, _b = class e {
13519
+ var q = "", gb = "/", _b = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, vb = class e {
13497
13520
  static isUri(t) {
13498
13521
  return t instanceof e ? !0 : t ? typeof t.authority == "string" && typeof t.fragment == "string" && typeof t.path == "string" && typeof t.query == "string" && typeof t.scheme == "string" && typeof t.fsPath == "string" && typeof t.with == "function" && typeof t.toString == "function" : !1;
13499
13522
  }
13500
13523
  constructor(e, t, n, r, i, a = !1) {
13501
- typeof e == "object" ? (this.scheme = e.scheme || q, this.authority = e.authority || q, this.path = e.path || q, this.query = e.query || q, this.fragment = e.fragment || q) : (this.scheme = pb(e, a), this.authority = t || q, this.path = mb(this.scheme, n || q), this.query = r || q, this.fragment = i || q, fb(this, a));
13524
+ typeof e == "object" ? (this.scheme = e.scheme || q, this.authority = e.authority || q, this.path = e.path || q, this.query = e.query || q, this.fragment = e.fragment || q) : (this.scheme = mb(e, a), this.authority = t || q, this.path = hb(this.scheme, n || q), this.query = r || q, this.fragment = i || q, pb(this, a));
13502
13525
  }
13503
13526
  get fsPath() {
13504
- return Cb(this, !1);
13527
+ return wb(this, !1);
13505
13528
  }
13506
13529
  with(e) {
13507
13530
  if (!e) return this;
13508
13531
  let { scheme: t, authority: n, path: r, query: i, fragment: a } = e;
13509
- return t === void 0 ? t = this.scheme : t === null && (t = q), n === void 0 ? n = this.authority : n === null && (n = q), r === void 0 ? r = this.path : r === null && (r = q), i === void 0 ? i = this.query : i === null && (i = q), a === void 0 ? a = this.fragment : a === null && (a = q), t === this.scheme && n === this.authority && r === this.path && i === this.query && a === this.fragment ? this : new yb(t, n, r, i, a);
13532
+ return t === void 0 ? t = this.scheme : t === null && (t = q), n === void 0 ? n = this.authority : n === null && (n = q), r === void 0 ? r = this.path : r === null && (r = q), i === void 0 ? i = this.query : i === null && (i = q), a === void 0 ? a = this.fragment : a === null && (a = q), t === this.scheme && n === this.authority && r === this.path && i === this.query && a === this.fragment ? this : new bb(t, n, r, i, a);
13510
13533
  }
13511
13534
  static parse(e, t = !1) {
13512
- let n = gb.exec(e);
13513
- return n ? new yb(n[2] || q, Db(n[4] || q), Db(n[5] || q), Db(n[7] || q), Db(n[9] || q), t) : new yb(q, q, q, q, q);
13535
+ let n = _b.exec(e);
13536
+ return n ? new bb(n[2] || q, Ob(n[4] || q), Ob(n[5] || q), Ob(n[7] || q), Ob(n[9] || q), t) : new bb(q, q, q, q, q);
13514
13537
  }
13515
13538
  static file(e) {
13516
13539
  let t = q;
13517
- if (Py && (e = e.replace(/\\/g, hb)), e[0] === hb && e[1] === hb) {
13518
- let n = e.indexOf(hb, 2);
13519
- n === -1 ? (t = e.substring(2), e = hb) : (t = e.substring(2, n), e = e.substring(n) || hb);
13540
+ if (Fy && (e = e.replace(/\\/g, gb)), e[0] === gb && e[1] === gb) {
13541
+ let n = e.indexOf(gb, 2);
13542
+ n === -1 ? (t = e.substring(2), e = gb) : (t = e.substring(2, n), e = e.substring(n) || gb);
13520
13543
  }
13521
- return new yb("file", t, e, q, q);
13544
+ return new bb("file", t, e, q, q);
13522
13545
  }
13523
13546
  static from(e, t) {
13524
- return new yb(e.scheme, e.authority, e.path, e.query, e.fragment, t);
13547
+ return new bb(e.scheme, e.authority, e.path, e.query, e.fragment, t);
13525
13548
  }
13526
13549
  static joinPath(t, ...n) {
13527
13550
  if (!t.path) throw Error("[UriError]: cannot call joinPath on URI without path");
13528
13551
  let r;
13529
- return r = Py && t.scheme === "file" ? e.file(ob.join(Cb(t, !0), ...n)).path : cb.join(t.path, ...n), t.with({ path: r });
13552
+ return r = Fy && t.scheme === "file" ? e.file(sb.join(wb(t, !0), ...n)).path : lb.join(t.path, ...n), t.with({ path: r });
13530
13553
  }
13531
13554
  toString(e = !1) {
13532
- return wb(this, e);
13555
+ return Tb(this, e);
13533
13556
  }
13534
13557
  toJSON() {
13535
13558
  return this;
@@ -13537,25 +13560,25 @@ var q = "", hb = "/", gb = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?
13537
13560
  static revive(t) {
13538
13561
  if (!t || t instanceof e) return t;
13539
13562
  {
13540
- let e = new yb(t);
13541
- return e._formatted = t.external ?? null, e._fsPath = t._sep === vb ? t.fsPath ?? null : null, e;
13563
+ let e = new bb(t);
13564
+ return e._formatted = t.external ?? null, e._fsPath = t._sep === yb ? t.fsPath ?? null : null, e;
13542
13565
  }
13543
13566
  }
13544
- }, vb = Py ? 1 : void 0, yb = class extends _b {
13567
+ }, yb = Fy ? 1 : void 0, bb = class extends vb {
13545
13568
  constructor() {
13546
13569
  super(...arguments), this._formatted = null, this._fsPath = null;
13547
13570
  }
13548
13571
  get fsPath() {
13549
- return this._fsPath ||= Cb(this, !1), this._fsPath;
13572
+ return this._fsPath ||= wb(this, !1), this._fsPath;
13550
13573
  }
13551
13574
  toString(e = !1) {
13552
- return e ? wb(this, !0) : (this._formatted ||= wb(this, !1), this._formatted);
13575
+ return e ? Tb(this, !0) : (this._formatted ||= Tb(this, !1), this._formatted);
13553
13576
  }
13554
13577
  toJSON() {
13555
13578
  let e = { $mid: 1 };
13556
- return this._fsPath && (e.fsPath = this._fsPath, e._sep = vb), this._formatted && (e.external = this._formatted), this.path && (e.path = this.path), this.scheme && (e.scheme = this.scheme), this.authority && (e.authority = this.authority), this.query && (e.query = this.query), this.fragment && (e.fragment = this.fragment), e;
13579
+ return this._fsPath && (e.fsPath = this._fsPath, e._sep = yb), this._formatted && (e.external = this._formatted), this.path && (e.path = this.path), this.scheme && (e.scheme = this.scheme), this.authority && (e.authority = this.authority), this.query && (e.query = this.query), this.fragment && (e.fragment = this.fragment), e;
13557
13580
  }
13558
- }, bb = {
13581
+ }, xb = {
13559
13582
  58: "%3A",
13560
13583
  47: "%2F",
13561
13584
  63: "%3F",
@@ -13576,34 +13599,34 @@ var q = "", hb = "/", gb = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?
13576
13599
  61: "%3D",
13577
13600
  32: "%20"
13578
13601
  };
13579
- function xb(e, t, n) {
13602
+ function Sb(e, t, n) {
13580
13603
  let r, i = -1;
13581
13604
  for (let a = 0; a < e.length; a++) {
13582
13605
  let o = e.charCodeAt(a);
13583
13606
  if (o >= 97 && o <= 122 || o >= 65 && o <= 90 || o >= 48 && o <= 57 || o === 45 || o === 46 || o === 95 || o === 126 || t && o === 47 || n && o === 91 || n && o === 93 || n && o === 58) i !== -1 && (r += encodeURIComponent(e.substring(i, a)), i = -1), r !== void 0 && (r += e.charAt(a));
13584
13607
  else {
13585
13608
  r === void 0 && (r = e.substr(0, a));
13586
- let t = bb[o];
13609
+ let t = xb[o];
13587
13610
  t === void 0 ? i === -1 && (i = a) : (i !== -1 && (r += encodeURIComponent(e.substring(i, a)), i = -1), r += t);
13588
13611
  }
13589
13612
  }
13590
13613
  return i !== -1 && (r += encodeURIComponent(e.substring(i))), r === void 0 ? e : r;
13591
13614
  }
13592
- function Sb(e) {
13615
+ function Cb(e) {
13593
13616
  let t;
13594
13617
  for (let n = 0; n < e.length; n++) {
13595
13618
  let r = e.charCodeAt(n);
13596
- r === 35 || r === 63 ? (t === void 0 && (t = e.substr(0, n)), t += bb[r]) : t !== void 0 && (t += e[n]);
13619
+ r === 35 || r === 63 ? (t === void 0 && (t = e.substr(0, n)), t += xb[r]) : t !== void 0 && (t += e[n]);
13597
13620
  }
13598
13621
  return t === void 0 ? e : t;
13599
13622
  }
13600
- function Cb(e, t) {
13623
+ function wb(e, t) {
13601
13624
  let n;
13602
- return n = e.authority && e.path.length > 1 && e.scheme === "file" ? `//${e.authority}${e.path}` : e.path.charCodeAt(0) === 47 && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && e.path.charCodeAt(2) === 58 ? t ? e.path.substr(1) : e.path[1].toLowerCase() + e.path.substr(2) : e.path, Py && (n = n.replace(/\//g, "\\")), n;
13625
+ return n = e.authority && e.path.length > 1 && e.scheme === "file" ? `//${e.authority}${e.path}` : e.path.charCodeAt(0) === 47 && (e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90 || e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122) && e.path.charCodeAt(2) === 58 ? t ? e.path.substr(1) : e.path[1].toLowerCase() + e.path.substr(2) : e.path, Fy && (n = n.replace(/\//g, "\\")), n;
13603
13626
  }
13604
- function wb(e, t) {
13605
- let n = t ? Sb : xb, r = "", { scheme: i, authority: a, path: o, query: s, fragment: c } = e;
13606
- if (i && (r += i, r += ":"), (a || i === "file") && (r += hb, r += hb), a) {
13627
+ function Tb(e, t) {
13628
+ let n = t ? Cb : Sb, r = "", { scheme: i, authority: a, path: o, query: s, fragment: c } = e;
13629
+ if (i && (r += i, r += ":"), (a || i === "file") && (r += gb, r += gb), a) {
13607
13630
  let e = a.indexOf("@");
13608
13631
  if (e !== -1) {
13609
13632
  let t = a.substr(0, e);
@@ -13621,18 +13644,18 @@ function wb(e, t) {
13621
13644
  }
13622
13645
  r += n(o, !0, !1);
13623
13646
  }
13624
- return s && (r += "?", r += n(s, !1, !1)), c && (r += "#", r += t ? c : xb(c, !1, !1)), r;
13647
+ return s && (r += "?", r += n(s, !1, !1)), c && (r += "#", r += t ? c : Sb(c, !1, !1)), r;
13625
13648
  }
13626
- function Tb(e) {
13649
+ function Eb(e) {
13627
13650
  try {
13628
13651
  return decodeURIComponent(e);
13629
13652
  } catch {
13630
- return e.length > 3 ? e.substr(0, 3) + Tb(e.substr(3)) : e;
13653
+ return e.length > 3 ? e.substr(0, 3) + Eb(e.substr(3)) : e;
13631
13654
  }
13632
13655
  }
13633
- var Eb = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
13634
- function Db(e) {
13635
- return e.match(Eb) ? e.replace(Eb, (e) => Tb(e)) : e;
13656
+ var Db = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
13657
+ function Ob(e) {
13658
+ return e.match(Db) ? e.replace(Db, (e) => Eb(e)) : e;
13636
13659
  }
13637
13660
  //#endregion
13638
13661
  //#region src/services/types.ts
@@ -13640,15 +13663,15 @@ var J = /* @__PURE__ */ function(e) {
13640
13663
  return e[e.Function = 1] = "Function", e[e.Constructor = 2] = "Constructor", e[e.Field = 3] = "Field", e[e.Variable = 4] = "Variable", e[e.Class = 5] = "Class", e[e.Struct = 6] = "Struct", e[e.Interface = 7] = "Interface", e[e.Module = 8] = "Module", e[e.Property = 9] = "Property", e[e.Event = 10] = "Event", e[e.Operator = 11] = "Operator", e[e.Unit = 12] = "Unit", e[e.Value = 13] = "Value", e[e.Constant = 14] = "Constant", e[e.Enum = 15] = "Enum", e[e.EnumMember = 16] = "EnumMember", e[e.Keyword = 17] = "Keyword", e[e.Text = 18] = "Text", e[e.Color = 19] = "Color", e[e.File = 20] = "File", e[e.Reference = 21] = "Reference", e[e.Customcolor = 22] = "Customcolor", e[e.Folder = 23] = "Folder", e[e.TypeParameter = 24] = "TypeParameter", e[e.User = 25] = "User", e[e.Issue = 26] = "Issue", e[e.Snippet = 27] = "Snippet", e;
13641
13664
  }({}), Y = /* @__PURE__ */ function(e) {
13642
13665
  return e[e.None = 0] = "None", e[e.KeepWhitespace = 1] = "KeepWhitespace", e[e.InsertAsSnippet = 4] = "InsertAsSnippet", e;
13643
- }({}), Ob = /* @__PURE__ */ function(e) {
13666
+ }({}), kb = /* @__PURE__ */ function(e) {
13644
13667
  return e[e.Hint = 1] = "Hint", e[e.Info = 2] = "Info", e[e.Warning = 4] = "Warning", e[e.Error = 8] = "Error", e;
13645
13668
  }({});
13646
13669
  //#endregion
13647
13670
  //#region src/services/utils.ts
13648
- function kb(e, t) {
13671
+ function Ab(e, t) {
13649
13672
  return e.getOffsetAt(t);
13650
13673
  }
13651
- function Ab(e, t) {
13674
+ function jb(e, t) {
13652
13675
  let { startPos: n, endPos: r } = t;
13653
13676
  return {
13654
13677
  startLineNumber: n.line + 1,
@@ -13659,7 +13682,7 @@ function Ab(e, t) {
13659
13682
  }
13660
13683
  //#endregion
13661
13684
  //#region src/services/code_actions/provider.ts
13662
- var jb = class {
13685
+ var Mb = class {
13663
13686
  constructor(e) {
13664
13687
  this.compiler = e;
13665
13688
  }
@@ -13669,7 +13692,7 @@ var jb = class {
13669
13692
  if (!a.length) return;
13670
13693
  let o = [];
13671
13694
  for (let t of n.markers) for (let n of a) {
13672
- let r = Ab(e, n.nodeOrToken);
13695
+ let r = jb(e, n.nodeOrToken);
13673
13696
  if (!(r.startLineNumber !== t.startLineNumber || r.startColumn !== t.startColumn || r.endLineNumber !== t.endLineNumber || r.endColumn !== t.endColumn)) for (let r of n.quickFixes ?? []) {
13674
13697
  let n = this.quickFixToCodeAction(r, e, t);
13675
13698
  n && o.push(n);
@@ -13687,7 +13710,7 @@ var jb = class {
13687
13710
  quickFixToCodeAction(e, t, n) {
13688
13711
  let r = xo.fromUri(String(t.uri));
13689
13712
  if (!e.filepath.equals(r)) return;
13690
- let i = _b.parse(e.filepath.toUri({ protocol: t.uri.scheme })), a = { edits: e.edits.map((e) => {
13713
+ let i = vb.parse(e.filepath.toUri({ protocol: t.uri.scheme })), a = { edits: e.edits.map((e) => {
13691
13714
  let n = t.getPositionAt(e.start), r = t.getPositionAt(e.end);
13692
13715
  return {
13693
13716
  resource: i,
@@ -13710,12 +13733,12 @@ var jb = class {
13710
13733
  diagnostics: [n]
13711
13734
  };
13712
13735
  }
13713
- }, Mb = class {
13736
+ }, Nb = class {
13714
13737
  constructor(e) {
13715
13738
  this.compiler = e;
13716
13739
  }
13717
13740
  provideDefinition(e, n) {
13718
- let { uri: r } = e, i = xo.fromUri(String(e.uri)), a = kb(e, n), o = [...this.compiler.container.stack(i, a)];
13741
+ let { uri: r } = e, i = xo.fromUri(String(e.uri)), a = Ab(e, n), o = [...this.compiler.container.stack(i, a)];
13719
13742
  for (; o.length !== 0;) {
13720
13743
  let e = o.pop();
13721
13744
  if (!e) continue;
@@ -13724,7 +13747,7 @@ var jb = class {
13724
13747
  let i;
13725
13748
  if (n.declaration && [dm.PRIMARY_EXPRESSION, dm.VARIABLE].includes(e.kind) && ({declaration: i} = n), i) {
13726
13749
  let { startPos: e, endPos: t } = i, n = r;
13727
- return r && i.filepath && (n = _b.parse(i.filepath.toUri({ protocol: r.scheme }))), [{
13750
+ return r && i.filepath && (n = vb.parse(i.filepath.toUri({ protocol: r.scheme }))), [{
13728
13751
  range: {
13729
13752
  startColumn: e.column + 1,
13730
13753
  startLineNumber: e.line + 1,
@@ -13737,7 +13760,7 @@ var jb = class {
13737
13760
  }
13738
13761
  return [];
13739
13762
  }
13740
- }, Nb = class {
13763
+ }, Pb = class {
13741
13764
  constructor(e) {
13742
13765
  this.compiler = e;
13743
13766
  }
@@ -13794,14 +13817,14 @@ var jb = class {
13794
13817
  };
13795
13818
  }
13796
13819
  getSeverityValue(e) {
13797
- return e === "error" ? Ob.Error : e === "warning" ? Ob.Warning : Ob.Info;
13820
+ return e === "error" ? kb.Error : e === "warning" ? kb.Warning : kb.Info;
13798
13821
  }
13799
- }, Pb = class {
13822
+ }, Fb = class {
13800
13823
  constructor(e) {
13801
13824
  this.compiler = e;
13802
13825
  }
13803
13826
  provideReferences(e, n) {
13804
- let { uri: r } = e, i = xo.fromUri(String(r)), a = kb(e, n);
13827
+ let { uri: r } = e, i = xo.fromUri(String(r)), a = Ab(e, n);
13805
13828
  this.compiler.bindProject();
13806
13829
  let o = [...this.compiler.container.stack(i, a)];
13807
13830
  for (; o.length !== 0;) {
@@ -13814,7 +13837,7 @@ var jb = class {
13814
13837
  let n = this.compiler.nodeSymbol(e).getFiltered(t) ?? this.compiler.nodeReferee(e).getFiltered(t), i = n ? this.compiler.symbolReferences(n) : void 0;
13815
13838
  if (i && i.length > 0) return i.map((e) => {
13816
13839
  let t = r;
13817
- return r && e.filepath && (t = _b.parse(e.filepath.toUri({ protocol: r.scheme }))), {
13840
+ return r && e.filepath && (t = vb.parse(e.filepath.toUri({ protocol: r.scheme }))), {
13818
13841
  range: {
13819
13842
  startColumn: e.startPos.column + 1,
13820
13843
  startLineNumber: e.startPos.line + 1,
@@ -13831,7 +13854,7 @@ var jb = class {
13831
13854
  };
13832
13855
  //#endregion
13833
13856
  //#region src/services/suggestions/utils/useMerger.ts
13834
- function Fb(e, t) {
13857
+ function Ib(e, t) {
13835
13858
  let n = [], r = e.parseFile(t).getValue()?.ast;
13836
13859
  if (!r) return n;
13837
13860
  for (let e of r.uses) {
@@ -13858,21 +13881,21 @@ function Fb(e, t) {
13858
13881
  }
13859
13882
  return n;
13860
13883
  }
13861
- function Ib(e, t, n, r, i, a) {
13862
- let o = Fb(e, i), s = r.relativeTo(i.dirname).replace(/\.dbml$/, ""), c = o.findIndex((e) => e.sourceFile === s), l = `${n} ${t}`;
13884
+ function Lb(e, t, n, r, i, a) {
13885
+ let o = Ib(e, i), s = r.relativeTo(i.dirname).replace(/\.dbml$/, ""), c = o.findIndex((e) => e.sourceFile === s), l = `${n} ${t}`;
13863
13886
  if (c !== -1) {
13864
13887
  let e = o[c];
13865
13888
  return e.specifiers.some((e) => e.name === t) ? { topInsert: "" } : {
13866
- topInsert: Lb(Pa([...e.specifiers.filter((e) => e.name !== "*").map((e) => `${e.kind ?? n} ${e.name}${e.alias ? ` as ${e.alias}` : ""}`), l]), s, "\n"),
13867
- removeRange: Rb(a, e.startOffset, e.endOffset)
13889
+ topInsert: Rb(Pa([...e.specifiers.filter((e) => e.name !== "*").map((e) => `${e.kind ?? n} ${e.name}${e.alias ? ` as ${e.alias}` : ""}`), l]), s, "\n"),
13890
+ removeRange: zb(a, e.startOffset, e.endOffset)
13868
13891
  };
13869
13892
  }
13870
- return { topInsert: Lb([l], s, "\n") };
13893
+ return { topInsert: Rb([l], s, "\n") };
13871
13894
  }
13872
- function Lb(e, t, n) {
13895
+ function Rb(e, t, n) {
13873
13896
  return `use {${n}${e.map((e) => ` ${e}`).join(n)}${n}} from '${t}'${n}${n}`;
13874
13897
  }
13875
- function Rb(e, t, n) {
13898
+ function zb(e, t, n) {
13876
13899
  let r = e.lastIndexOf("\n", t - 1) + 1, i = n;
13877
13900
  for (; i < e.length && (e[i] === " " || e[i] === " ");) i++;
13878
13901
  return i < e.length && e[i] === "\r" && i++, i < e.length && e[i] === "\n" && i++, {
@@ -13882,7 +13905,7 @@ function Rb(e, t, n) {
13882
13905
  }
13883
13906
  //#endregion
13884
13907
  //#region src/services/suggestions/utils/index.ts
13885
- function zb(e) {
13908
+ function Bb(e) {
13886
13909
  switch (e) {
13887
13910
  case I.Schema: return J.Module;
13888
13911
  case I.Table:
@@ -13896,7 +13919,7 @@ function zb(e) {
13896
13919
  default: return J.Text;
13897
13920
  }
13898
13921
  }
13899
- function Bb(e, t) {
13922
+ function Vb(e, t) {
13900
13923
  if (!e || Ga(e)) return !1;
13901
13924
  for (let n of e.trailingTrivia) {
13902
13925
  if (n.start > t) break;
@@ -13907,7 +13930,7 @@ function Bb(e, t) {
13907
13930
  function X() {
13908
13931
  return { suggestions: [] };
13909
13932
  }
13910
- function Vb(e) {
13933
+ function Hb(e) {
13911
13934
  return {
13912
13935
  ...e,
13913
13936
  suggestions: e.suggestions.map((e) => ({
@@ -13916,7 +13939,7 @@ function Vb(e) {
13916
13939
  }))
13917
13940
  };
13918
13941
  }
13919
- function Hb(e) {
13942
+ function Ub(e) {
13920
13943
  return {
13921
13944
  ...e,
13922
13945
  suggestions: e.suggestions.map((e) => ({
@@ -13926,7 +13949,7 @@ function Hb(e) {
13926
13949
  }))
13927
13950
  };
13928
13951
  }
13929
- function Ub(e, t = ", ") {
13952
+ function Wb(e, t = ", ") {
13930
13953
  let n = e.suggestions.map((e) => typeof e.label == "string" ? e.label : e.label.label).join(t);
13931
13954
  return n ? {
13932
13955
  ...e,
@@ -13942,7 +13965,7 @@ function Ub(e, t = ", ") {
13942
13965
  }
13943
13966
  //#endregion
13944
13967
  //#region src/services/suggestions/crossFile.ts
13945
- function Wb(e, n, r) {
13968
+ function Gb(e, n, r) {
13946
13969
  let i = [], a = /* @__PURE__ */ new Set(), o = e.layout.getSource(r) ?? "";
13947
13970
  for (let s of e.layout.getEntrypoints()) {
13948
13971
  if (s.equals(r)) continue;
@@ -13950,13 +13973,13 @@ function Wb(e, n, r) {
13950
13973
  if (c) for (let t of [...c.nonSchemaMembers, ...c.schemaMembers]) {
13951
13974
  if (!n.includes(t.kind)) continue;
13952
13975
  let c = t.name;
13953
- !c || a.has(c) || (a.add(c), i.push(Gb(e, c, t.kind, s, r, o)));
13976
+ !c || a.has(c) || (a.add(c), i.push(Kb(e, c, t.kind, s, r, o)));
13954
13977
  }
13955
13978
  }
13956
13979
  return i;
13957
13980
  }
13958
- function Gb(e, t, n, r, i, a) {
13959
- let o = Ib(e, t, n, r, i, a), s = [];
13981
+ function Kb(e, t, n, r, i, a) {
13982
+ let o = Lb(e, t, n, r, i, a), s = [];
13960
13983
  if (o.topInsert && s.push({
13961
13984
  range: {
13962
13985
  startLineNumber: 1,
@@ -13966,7 +13989,7 @@ function Gb(e, t, n, r, i, a) {
13966
13989
  },
13967
13990
  text: o.topInsert
13968
13991
  }), o.removeRange) {
13969
- let e = Kb(a, o.removeRange.startOffset), t = Kb(a, o.removeRange.endOffset);
13992
+ let e = qb(a, o.removeRange.startOffset), t = qb(a, o.removeRange.endOffset);
13970
13993
  s.push({
13971
13994
  range: {
13972
13995
  startLineNumber: e.line,
@@ -13981,14 +14004,14 @@ function Gb(e, t, n, r, i, a) {
13981
14004
  label: t,
13982
14005
  insertText: t,
13983
14006
  insertTextRules: Y.KeepWhitespace,
13984
- kind: zb(n),
14007
+ kind: Bb(n),
13985
14008
  detail: `from ${r.basename}`,
13986
- sortText: `zzz_${zb(n).toString().padStart(2, "0")}_${t}`,
14009
+ sortText: `zzz_${Bb(n).toString().padStart(2, "0")}_${t}`,
13987
14010
  range: void 0,
13988
14011
  additionalTextEdits: s
13989
14012
  };
13990
14013
  }
13991
- function Kb(e, t) {
14014
+ function qb(e, t) {
13992
14015
  let n = 1, r = 1;
13993
14016
  for (let i = 0; i < t && i < e.length; i++) e[i] === "\n" ? (n++, r = 1) : r++;
13994
14017
  return {
@@ -13998,11 +14021,11 @@ function Kb(e, t) {
13998
14021
  }
13999
14022
  //#endregion
14000
14023
  //#region src/services/suggestions/recordRowSnippet.ts
14001
- function qb(e, t, n, i, a) {
14024
+ function Jb(e, t, n, i, a) {
14002
14025
  let o = e.container.element(i, a);
14003
- return !(o instanceof z) || !o.isKind(r.Records) || !(o.body instanceof U) || !o.body || !jh(a, o.body) || t.getLineContent(n.lineNumber).trim() !== "" ? null : o.parent instanceof R ? Jb(e, o) : Yb(e, o);
14026
+ return !(o instanceof z) || !o.isKind(r.Records) || !(o.body instanceof U) || !o.body || !jh(a, o.body) || t.getLineContent(n.lineNumber).trim() !== "" ? null : o.parent instanceof R ? Yb(e, o) : Xb(e, o);
14004
14027
  }
14005
- function Jb(e, n) {
14028
+ function Yb(e, n) {
14006
14029
  if (!(n.name instanceof Sm)) return X();
14007
14030
  let r = n.name.argumentList?.elementList || [], i = r.map((n) => e.nodeReferee(n).getFiltered(t));
14008
14031
  if (!i || i.length === 0) return X();
@@ -14023,7 +14046,7 @@ function Jb(e, n) {
14023
14046
  range: void 0
14024
14047
  }] };
14025
14048
  }
14026
- function Yb(e, n) {
14049
+ function Xb(e, n) {
14027
14050
  let r = n.parent;
14028
14051
  if (!(r instanceof z)) return X();
14029
14052
  let i = e.nodeSymbol(r).getFiltered(t);
@@ -14061,40 +14084,40 @@ function Yb(e, n) {
14061
14084
  }
14062
14085
  //#endregion
14063
14086
  //#region src/services/suggestions/use.ts
14064
- function Xb(e, t, n, r, i) {
14087
+ function Zb(e, t, n, r, i) {
14065
14088
  let a = e.parse.ast(t);
14066
- for (let o of a.body) if (o instanceof fm && n >= o.start && n <= o.fullEnd) return Zb(e, t, n, o, i, r);
14089
+ for (let o of a.body) if (o instanceof fm && n >= o.start && n <= o.fullEnd) return Qb(e, t, n, o, i, r);
14067
14090
  return null;
14068
14091
  }
14069
- function Zb(e, t, n, r, i, a) {
14070
- if (r.importPath && jh(n, r.importPath)) return nx(e, t, r.importPath, i, r);
14092
+ function Qb(e, t, n, r, i, a) {
14093
+ if (r.importPath && jh(n, r.importPath)) return rx(e, t, r.importPath, i, r);
14071
14094
  if (r.importPath && n >= r.importPath.end) return X();
14072
- if (r.fromKeyword && n > r.fromKeyword.end) return nx(e, t, void 0, i, r);
14095
+ if (r.fromKeyword && n > r.fromKeyword.end) return rx(e, t, void 0, i, r);
14073
14096
  if (r.specifiers instanceof mm) {
14074
14097
  if (!r.specifiers.openBrace) {
14075
- let e = tx();
14076
- return Bb(r.useKeyword, n) ? Vb(e) : e;
14098
+ let e = nx();
14099
+ return Vb(r.useKeyword, n) ? Hb(e) : e;
14077
14100
  }
14078
- return Qb(e, t, n, r.specifiers, r.importPath, a);
14101
+ return $b(e, t, n, r.specifiers, r.importPath, a);
14079
14102
  }
14080
14103
  if (r.specifiers instanceof wm) return X();
14081
- let o = tx();
14082
- return Bb(r.useKeyword, n) ? Vb(o) : o;
14104
+ let o = nx();
14105
+ return Vb(r.useKeyword, n) ? Hb(o) : o;
14083
14106
  }
14084
- function Qb(e, t, n, r, i, a) {
14107
+ function $b(e, t, n, r, i, a) {
14085
14108
  for (let o of r.specifiers) {
14086
14109
  let r = !Number.isNaN(o.start) && n >= o.start && n <= o.end, s = a === o.importKind || a === o.asKeyword;
14087
14110
  if (r || s) {
14088
14111
  if (o.importKind && n > o.importKind.end) {
14089
14112
  let n = o.getSymbolKind();
14090
- if (n !== void 0 && n !== I.Schema) return ex(e, t, i, n);
14113
+ if (n !== void 0 && n !== I.Schema) return tx(e, t, i, n);
14091
14114
  }
14092
- return $b();
14115
+ return ex();
14093
14116
  }
14094
14117
  }
14095
- return $b();
14118
+ return ex();
14096
14119
  }
14097
- function $b() {
14120
+ function ex() {
14098
14121
  return { suggestions: Object.keys(Bp).map((e) => ({
14099
14122
  label: e.toLowerCase(),
14100
14123
  insertText: `${e.toLowerCase()} `,
@@ -14103,7 +14126,7 @@ function $b() {
14103
14126
  range: void 0
14104
14127
  })) };
14105
14128
  }
14106
- function ex(e, n, r, i) {
14129
+ function tx(e, n, r, i) {
14107
14130
  if (!r) return X();
14108
14131
  let a = So(n, r.value);
14109
14132
  if (!a) return X();
@@ -14122,11 +14145,11 @@ function ex(e, n, r, i) {
14122
14145
  label: e,
14123
14146
  insertText: e,
14124
14147
  insertTextRules: Y.KeepWhitespace,
14125
- kind: zb(i),
14148
+ kind: Bb(i),
14126
14149
  range: void 0
14127
14150
  })) };
14128
14151
  }
14129
- function tx() {
14152
+ function nx() {
14130
14153
  return { suggestions: [{
14131
14154
  label: "* from",
14132
14155
  detail: "import all",
@@ -14143,10 +14166,10 @@ function tx() {
14143
14166
  range: void 0
14144
14167
  }] };
14145
14168
  }
14146
- function nx(e, t, n, r, i) {
14169
+ function rx(e, t, n, r, i) {
14147
14170
  let a = t.dirname, o = n ? n.value : "./", s = n === void 0, c;
14148
14171
  if (n) {
14149
- let e = Ab(r, n);
14172
+ let e = jb(r, n);
14150
14173
  c = {
14151
14174
  startLineNumber: e.startLineNumber,
14152
14175
  startColumn: e.startColumn + 1,
@@ -14160,7 +14183,7 @@ function nx(e, t, n, r, i) {
14160
14183
  let r = n.relativeTo(a);
14161
14184
  if (r.endsWith(".dbml") && (r = r.slice(0, -To.length)), r.startsWith(".") || (r = `./${r}`), o && !r.startsWith(o)) continue;
14162
14185
  let d = `${o}${r.slice(o.length).split("/")[0]}`, f = xo.resolve(a, d), p = e.layout.isDirectory(f);
14163
- if (ix(e, n, rx(i)) && u.set(d, !0), l.has(d)) continue;
14186
+ if (ax(e, n, ix(i)) && u.set(d, !0), l.has(d)) continue;
14164
14187
  let m = s ? `'${d}'` : d;
14165
14188
  l.set(d, {
14166
14189
  label: d,
@@ -14174,7 +14197,7 @@ function nx(e, t, n, r, i) {
14174
14197
  for (let [e, t] of l) u.get(e) && (t.sortText = `${t.kind === J.File ? "0" : "1"}${e}`, t.detail = "best match");
14175
14198
  return { suggestions: [...l.values()] };
14176
14199
  }
14177
- function rx(e) {
14200
+ function ix(e) {
14178
14201
  let t = e.specifiers;
14179
14202
  return t instanceof mm ? t.specifiers.flatMap((e) => {
14180
14203
  let t = P(e.name), n = e.importKind?.value.toLowerCase();
@@ -14184,7 +14207,7 @@ function rx(e) {
14184
14207
  }];
14185
14208
  }) : [];
14186
14209
  }
14187
- function ix(e, n, r) {
14210
+ function ax(e, n, r) {
14188
14211
  if (r.length === 0) return !1;
14189
14212
  let i = e.usableMembers(n).getFiltered(t);
14190
14213
  return i ? r.every(({ name: e, kind: t }) => i.nonSchemaMembers.some((n) => n.kind === t && n.name === e)) : !1;
@@ -14210,40 +14233,40 @@ var Z = {
14210
14233
  Notes: "Notes",
14211
14234
  Schemas: "Schemas",
14212
14235
  Column: "Column"
14213
- }, ax = /* @__PURE__ */ "integer.int.tinyint.smallint.mediumint.bigint.bit.bool.binary.varbinary.logical.char.nchar.varchar.varchar2.nvarchar.nvarchar2.binary_float.binary_double.float.double.decimal.dec.real.money.smallmoney.enum.tinyblob.tinytext.blob.text.mediumblob.mediumtext.longblob.longtext.ntext.set.inet6.uuid.image.date.time.datetime.datetime2.timestamp.year.smalldatetime.datetimeoffset.XML.sql_variant.uniqueidentifier.CURSOR.BFILE.CLOB.NCLOB.RAW".split("."), ox = [i.HeaderColor, i.Note];
14214
- ox.map((e) => `${e}: `);
14215
- var sx = [
14236
+ }, ox = /* @__PURE__ */ "integer.int.tinyint.smallint.mediumint.bigint.bit.bool.binary.varbinary.logical.char.nchar.varchar.varchar2.nvarchar.nvarchar2.binary_float.binary_double.float.double.decimal.dec.real.money.smallmoney.enum.tinyblob.tinytext.blob.text.mediumblob.mediumtext.longblob.longtext.ntext.set.inet6.uuid.image.date.time.datetime.datetime2.timestamp.year.smalldatetime.datetimeoffset.XML.sql_variant.uniqueidentifier.CURSOR.BFILE.CLOB.NCLOB.RAW".split("."), sx = [i.HeaderColor, i.Note];
14237
+ sx.map((e) => `${e}: `);
14238
+ var cx = [
14216
14239
  i.PK,
14217
14240
  i.PrimaryKey,
14218
14241
  i.Null,
14219
14242
  i.NotNull,
14220
14243
  i.Increment,
14221
14244
  i.Unique
14222
- ], cx = [
14245
+ ], lx = [
14223
14246
  i.Ref,
14224
14247
  i.Dep,
14225
14248
  i.Default,
14226
14249
  i.Note,
14227
14250
  i.Check
14228
- ], lx = [...sx, ...cx], ux = [...sx, ...cx.map((e) => `${e}: `)], dx = [i.Unique, i.PK], fx = [
14251
+ ], ux = [...cx, ...lx], dx = [...cx, ...lx.map((e) => `${e}: `)], fx = [i.Unique, i.PK], px = [
14229
14252
  i.Note,
14230
14253
  i.Name,
14231
14254
  i.Type
14232
- ], px = [...dx, ...fx], mx = [...dx, ...fx.map((e) => `${e}: `)], hx = [i.Inactive], gx = [
14255
+ ], mx = [...fx, ...px], hx = [...fx, ...px.map((e) => `${e}: `)], gx = [i.Inactive], _x = [
14233
14256
  i.Update,
14234
14257
  i.Delete,
14235
14258
  i.Color
14236
- ], _x = [...hx, ...gx], vx = [...hx, ...gx.map((e) => `${e}: `)], yx = [i.Note], bx = yx.map((e) => `${e}: `), xx = [i.Name], Sx = xx.map((e) => `${e}: `), Cx = [
14259
+ ], vx = [...gx, ..._x], yx = [...gx, ..._x.map((e) => `${e}: `)], bx = [i.Note], xx = bx.map((e) => `${e}: `), Sx = [i.Name], Cx = Sx.map((e) => `${e}: `), wx = [
14237
14260
  "cascade",
14238
14261
  "set default",
14239
14262
  "set null",
14240
14263
  "restrict"
14241
- ], wx = ["btree", "hash"], Tx = [
14264
+ ], Tx = ["btree", "hash"], Ex = [
14242
14265
  Z.Note,
14243
14266
  Z.Indexes,
14244
14267
  Z.Checks,
14245
14268
  Z.Records
14246
- ], Ex = [
14269
+ ], Dx = [
14247
14270
  Z.Table,
14248
14271
  Z.TableGroup,
14249
14272
  Z.Enum,
@@ -14251,12 +14274,12 @@ var sx = [
14251
14274
  Z.Ref,
14252
14275
  Z.Dep,
14253
14276
  Z.TablePartial
14254
- ], Dx = class {
14277
+ ], Ox = class {
14255
14278
  constructor(e, t = {}) {
14256
14279
  this.compiler = e, this.triggerCharacters = t.triggerCharacters ?? [];
14257
14280
  }
14258
14281
  provideCompletionItems(e, t) {
14259
- let n = xo.fromUri(String(e.uri)), i = kb(e, t), a = qb(this.compiler, e, t, n, i);
14282
+ let n = xo.fromUri(String(e.uri)), i = Ab(e, t), a = Jb(this.compiler, e, t, n, i);
14260
14283
  if (a !== null) return a;
14261
14284
  let o = this.compiler.token.flatStream(n), { token: s, index: c } = this.compiler.container.token(n, i), l = c === void 0 ? o[0] : o[c + 1];
14262
14285
  if ([
@@ -14264,12 +14287,12 @@ var sx = [
14264
14287
  ...s?.leadingTrivia || [],
14265
14288
  ...l?.leadingTrivia || []
14266
14289
  ].find((e) => Ja(e) && jh(i, e))) return X();
14267
- if (c === void 0) return Hx();
14268
- let u = Xb(this.compiler, n, i, s, e);
14290
+ if (c === void 0) return Ux();
14291
+ let u = Zb(this.compiler, n, i, s, e);
14269
14292
  if (u !== null) return u;
14270
14293
  if ([_.STRING_LITERAL, _.QUOTED_STRING].includes(s.kind) && jh(i, s)) return X();
14271
14294
  let d = this.compiler.container.element(n, i);
14272
- if (this.compiler.container.scopeKind(n, i) === Q.TOPLEVEL || d instanceof z && d.type && d.type.start <= i && d.type.end >= i) return Hx();
14295
+ if (this.compiler.container.scopeKind(n, i) === Q.TOPLEVEL || d instanceof z && d.type && d.type.start <= i && d.type.end >= i) return Ux();
14273
14296
  let f = [...this.compiler.container.stack(n, i)].reverse();
14274
14297
  for (let e of f) if (e instanceof V) switch (e.op?.value) {
14275
14298
  case ">":
@@ -14277,8 +14300,8 @@ var sx = [
14277
14300
  case "<>":
14278
14301
  case "-":
14279
14302
  case "->":
14280
- case "<-": return kx(this.compiler, n, i, e);
14281
- case "~": return Ox(this.compiler, n, i);
14303
+ case "<-": return Ax(this.compiler, n, i, e);
14304
+ case "~": return kx(this.compiler, n, i);
14282
14305
  default:
14283
14306
  }
14284
14307
  else if (e instanceof gm) switch (e.op?.value) {
@@ -14287,27 +14310,27 @@ var sx = [
14287
14310
  case "<>":
14288
14311
  case "-":
14289
14312
  case "->":
14290
- case "<-": return kx(this.compiler, n, i, e);
14291
- case ".": return zx(this.compiler, n, i, e);
14313
+ case "<-": return Ax(this.compiler, n, i, e);
14314
+ case ".": return Bx(this.compiler, n, i, e);
14292
14315
  default:
14293
14316
  }
14294
- else if (e instanceof B) return Px(this.compiler, n, i, e);
14295
- else if (e instanceof W) return Px(this.compiler, n, i, e);
14296
- else if (e instanceof ym) return Mx(this.compiler, n, i, e);
14297
- else if (e instanceof bm) return Nx(this.compiler, n, i);
14298
- else if (e instanceof Sm) return Qx(this.compiler, n, i, e);
14299
- else if (e instanceof H) return Bx(this.compiler, n, i, e);
14317
+ else if (e instanceof B) return Fx(this.compiler, n, i, e);
14318
+ else if (e instanceof W) return Fx(this.compiler, n, i, e);
14319
+ else if (e instanceof ym) return Nx(this.compiler, n, i, e);
14320
+ else if (e instanceof bm) return Px(this.compiler, n, i);
14321
+ else if (e instanceof Sm) return $x(this.compiler, n, i, e);
14322
+ else if (e instanceof H) return Vx(this.compiler, n, i, e);
14300
14323
  else if (e instanceof z) {
14301
- if (Mh(i, e)) return A(e, r.Metadata) ? Xx(this.compiler, n, i, e) : Zx(this.compiler, n, i, e);
14302
- if (e.bodyColon && i >= e.bodyColon.end || e.body && jh(i, e.body)) return Bx(this.compiler, n, i, void 0);
14324
+ if (Mh(i, e)) return A(e, r.Metadata) ? Zx(this.compiler, n, i, e) : Qx(this.compiler, n, i, e);
14325
+ if (e.bodyColon && i >= e.bodyColon.end || e.body && jh(i, e.body)) return Vx(this.compiler, n, i, void 0);
14303
14326
  }
14304
14327
  return X();
14305
14328
  }
14306
14329
  };
14307
- function Ox(e, t, n) {
14308
- return jx(e, t, n, e.parse.ast(t), [I.TablePartial]);
14330
+ function kx(e, t, n) {
14331
+ return Mx(e, t, n, e.parse.ast(t), [I.TablePartial]);
14309
14332
  }
14310
- function kx(e, t, n, r) {
14333
+ function Ax(e, t, n, r) {
14311
14334
  let i = e.container.scopeKind(t, n);
14312
14335
  if ([
14313
14336
  Q.REF,
@@ -14315,18 +14338,18 @@ function kx(e, t, n, r) {
14315
14338
  Q.TABLE,
14316
14339
  Q.TABLEPARTIAL
14317
14340
  ].includes(i)) {
14318
- let i = jx(e, t, n, e.container.element(t, n), [
14341
+ let i = Mx(e, t, n, e.container.element(t, n), [
14319
14342
  I.Table,
14320
14343
  I.Schema,
14321
14344
  I.Column
14322
14345
  ]);
14323
- return Bb(r.op, n) ? Vb(i) : i;
14346
+ return Vb(r.op, n) ? Hb(i) : i;
14324
14347
  }
14325
14348
  return X();
14326
14349
  }
14327
- function Ax(e, n, r) {
14350
+ function jx(e, n, r) {
14328
14351
  let i = e.symbolMembers(n).getFiltered(t);
14329
- return i ? Hb({ suggestions: i.filter((e) => r.includes(e.kind)).filter((e) => !(e instanceof Wp && e.isPublicSchema())).flatMap((e) => {
14352
+ return i ? Ub({ suggestions: i.filter((e) => r.includes(e.kind)).filter((e) => !(e instanceof Wp && e.isPublicSchema())).flatMap((e) => {
14330
14353
  let t = e.name;
14331
14354
  if (t === void 0) return [];
14332
14355
  let r = e.originalFilepath, i = r && !r.equals(n.filepath) ? `from ${r.basename}` : "this file";
@@ -14334,21 +14357,21 @@ function Ax(e, n, r) {
14334
14357
  label: t,
14335
14358
  insertText: t,
14336
14359
  insertTextRules: Y.KeepWhitespace,
14337
- kind: zb(e.kind),
14338
- sortText: zb(e.kind).toString().padStart(2, "0"),
14360
+ kind: Bb(e.kind),
14361
+ sortText: Bb(e.kind).toString().padStart(2, "0"),
14339
14362
  detail: i,
14340
14363
  range: void 0
14341
14364
  };
14342
14365
  }).filter((e) => e.label !== "") }) : X();
14343
14366
  }
14344
- function jx(e, n, r, i, a) {
14367
+ function Mx(e, n, r, i, a) {
14345
14368
  if (i === void 0) return X();
14346
14369
  let o = i, s = { suggestions: [] }, c;
14347
14370
  for (; o;) {
14348
14371
  o instanceof R && (c = o);
14349
14372
  let n = e.nodeSymbol(o).getFiltered(t);
14350
14373
  if (n) {
14351
- let t = Ax(e, n, a).suggestions, r = (e) => {
14374
+ let t = jx(e, n, a).suggestions, r = (e) => {
14352
14375
  switch (e) {
14353
14376
  case J.Field: return 0;
14354
14377
  case J.Module: return 1;
@@ -14362,57 +14385,57 @@ function jx(e, n, r, i, a) {
14362
14385
  }
14363
14386
  if (c?.filepath) {
14364
14387
  let t = c.filepath, n = new Set(s.suggestions.map((e) => typeof e.label == "string" ? e.label : e.label.label));
14365
- for (let r of Wb(e, a, t)) {
14388
+ for (let r of Gb(e, a, t)) {
14366
14389
  let e = typeof r.label == "string" ? r.label : r.label.label;
14367
14390
  n.has(e) || (n.add(e), s.suggestions.push(r));
14368
14391
  }
14369
14392
  }
14370
- return Hb(s);
14393
+ return Ub(s);
14371
14394
  }
14372
- function Mx(e, n, i, a) {
14395
+ function Nx(e, n, i, a) {
14373
14396
  let o = e.container.scopeKind(n, i), s = e.container.element(n, i), c = [...e.container.stack(n, i)];
14374
- for (let t of c) if (t instanceof Sm && t.argumentList === a) return Qx(e, n, i, t);
14397
+ for (let t of c) if (t instanceof Sm && t.argumentList === a) return $x(e, n, i, t);
14375
14398
  if (s instanceof z && s.isKind(r.Records) && !(s.name instanceof Sm) && Mh(i, s)) {
14376
14399
  let n = s.parent ? e.nodeSymbol(s.parent).getFiltered(t) : void 0, r = s.name ? e.nodeReferee(s.name).getFiltered(t) : void 0, i = n || r;
14377
14400
  if (i) {
14378
- let t = Ax(e, i, [I.Column]);
14379
- return sp(a) ? Ub(t) : t;
14401
+ let t = jx(e, i, [I.Column]);
14402
+ return sp(a) ? Wb(t) : t;
14380
14403
  }
14381
14404
  }
14382
14405
  switch (o) {
14383
- case Q.INDEXES: return nS(e, n, i);
14406
+ case Q.INDEXES: return rS(e, n, i);
14384
14407
  case Q.REF:
14385
14408
  case Q.DEP:
14386
14409
  for (; c.length > 0;) {
14387
14410
  let t = c.pop();
14388
- if (t instanceof gm && t.op?.value === ".") return zx(e, n, i, t);
14411
+ if (t instanceof gm && t.op?.value === ".") return Bx(e, n, i, t);
14389
14412
  }
14390
- return Kx(e, n, i);
14413
+ return qx(e, n, i);
14391
14414
  default: break;
14392
14415
  }
14393
14416
  return X();
14394
14417
  }
14395
- function Nx(e, t, n) {
14396
- return e.container.scopeKind(t, n) === Q.RECORDS ? jx(e, t, n, e.container.element(t, n), [
14418
+ function Px(e, t, n) {
14419
+ return e.container.scopeKind(t, n) === Q.RECORDS ? Mx(e, t, n, e.container.element(t, n), [
14397
14420
  I.Schema,
14398
14421
  I.Enum,
14399
14422
  I.EnumField
14400
14423
  ]) : X();
14401
14424
  }
14402
- function Px(e, t, n, r) {
14425
+ function Fx(e, t, n, r) {
14403
14426
  let { token: i } = e.container.token(t, n);
14404
14427
  if ([_.COMMA, _.LBRACKET].includes(i?.kind)) {
14405
- let r = Fx(e, t, n);
14406
- return i?.kind === _.COMMA && Bb(i, n) ? Vb(r) : r;
14428
+ let r = Ix(e, t, n);
14429
+ return i?.kind === _.COMMA && Vb(i, n) ? Hb(r) : r;
14407
14430
  }
14408
- if (r.name && r.name.start <= n && r.name.end >= n) return Fx(e, t, n);
14431
+ if (r.name && r.name.start <= n && r.name.end >= n) return Ix(e, t, n);
14409
14432
  if (r.name instanceof hm) {
14410
- let a = Lx(e, t, n, ap(r.name) ?? "");
14411
- return i?.kind === _.COLON && Bb(i, n) ? Vb(a) : a;
14433
+ let a = Rx(e, t, n, ap(r.name) ?? "");
14434
+ return i?.kind === _.COLON && Vb(i, n) ? Hb(a) : a;
14412
14435
  }
14413
14436
  return X();
14414
14437
  }
14415
- function Fx(e, t, n) {
14438
+ function Ix(e, t, n) {
14416
14439
  let r = e.container.element(t, n);
14417
14440
  if (r instanceof R) return X();
14418
14441
  let a = e.container.scopeKind(t, n);
@@ -14421,11 +14444,18 @@ function Fx(e, t, n) {
14421
14444
  switch (a) {
14422
14445
  case Q.TABLE:
14423
14446
  case Q.TABLEPARTIAL:
14424
- e = ox;
14447
+ e = sx;
14425
14448
  break;
14426
14449
  case Q.TABLEGROUP:
14427
14450
  e = [i.Color, i.Note];
14428
14451
  break;
14452
+ case Q.RECORDS: return { suggestions: [{
14453
+ label: i.Example,
14454
+ insertText: i.Example,
14455
+ kind: J.Field,
14456
+ insertTextRules: Y.KeepWhitespace,
14457
+ range: void 0
14458
+ }] };
14429
14459
  case Q.NOTE:
14430
14460
  e = [i.Color];
14431
14461
  break;
@@ -14441,10 +14471,10 @@ function Fx(e, t, n) {
14441
14471
  }
14442
14472
  switch (a) {
14443
14473
  case Q.TABLE:
14444
- case Q.TABLEPARTIAL: return { suggestions: Ix(lx, ux) };
14445
- case Q.ENUM: return { suggestions: Ix(yx, bx) };
14446
- case Q.INDEXES: return { suggestions: Ix(px, mx) };
14447
- case Q.REF: return { suggestions: Ix(_x, vx) };
14474
+ case Q.TABLEPARTIAL: return { suggestions: Lx(ux, dx) };
14475
+ case Q.ENUM: return { suggestions: Lx(bx, xx) };
14476
+ case Q.INDEXES: return { suggestions: Lx(mx, hx) };
14477
+ case Q.REF: return { suggestions: Lx(vx, yx) };
14448
14478
  case Q.DEP: return { suggestions: [i.Note, i.Color].map((e) => ({
14449
14479
  label: e,
14450
14480
  insertText: `${e}: `,
@@ -14452,12 +14482,12 @@ function Fx(e, t, n) {
14452
14482
  insertTextRules: Y.KeepWhitespace,
14453
14483
  range: void 0
14454
14484
  })) };
14455
- case Q.CHECKS: return { suggestions: Ix(xx, Sx) };
14485
+ case Q.CHECKS: return { suggestions: Lx(Sx, Cx) };
14456
14486
  default: break;
14457
14487
  }
14458
14488
  return X();
14459
14489
  }
14460
- function Ix(e, t) {
14490
+ function Lx(e, t) {
14461
14491
  return e.map((e, n) => ({
14462
14492
  label: e,
14463
14493
  insertText: t[n],
@@ -14466,17 +14496,17 @@ function Ix(e, t) {
14466
14496
  range: void 0
14467
14497
  }));
14468
14498
  }
14469
- function Lx(e, t, n, r) {
14499
+ function Rx(e, t, n, r) {
14470
14500
  switch (r?.toLowerCase()) {
14471
14501
  case "update":
14472
- case "delete": return { suggestions: Cx.map((e) => ({
14502
+ case "delete": return { suggestions: wx.map((e) => ({
14473
14503
  label: e,
14474
14504
  insertText: e,
14475
14505
  kind: J.Value,
14476
14506
  insertTextRules: Y.KeepWhitespace,
14477
14507
  range: void 0
14478
14508
  })) };
14479
- case "type": return { suggestions: wx.map((e) => ({
14509
+ case "type": return { suggestions: Tx.map((e) => ({
14480
14510
  label: e,
14481
14511
  insertText: `${e}`,
14482
14512
  kind: J.Value,
@@ -14492,12 +14522,12 @@ function Lx(e, t, n, r) {
14492
14522
  range: void 0
14493
14523
  })) };
14494
14524
  break;
14495
- case "default": return jx(e, t, n, e.container.element(t, n), [I.Schema, I.Enum]);
14525
+ case "default": return Mx(e, t, n, e.container.element(t, n), [I.Schema, I.Enum]);
14496
14526
  default: break;
14497
14527
  }
14498
14528
  return X();
14499
14529
  }
14500
- function Rx(e, n, r) {
14530
+ function zx(e, n, r) {
14501
14531
  if (!r) return [];
14502
14532
  let i = [], a = r;
14503
14533
  for (; a;) {
@@ -14515,44 +14545,44 @@ function Rx(e, n, r) {
14515
14545
  }
14516
14546
  return i;
14517
14547
  }
14518
- function zx(e, n, r, i) {
14548
+ function Bx(e, n, r, i) {
14519
14549
  let a = lp(i) ?? [];
14520
- return a.pop(), a.some((e) => !O(e)) ? X() : Hb({ suggestions: Rx(e, a.map((e) => P(e)), e.container.element(n, r)).flatMap((n) => e.symbolMembers(n).getFiltered(t) || []).flatMap((e) => {
14550
+ return a.pop(), a.some((e) => !O(e)) ? X() : Ub({ suggestions: zx(e, a.map((e) => P(e)), e.container.element(n, r)).flatMap((n) => e.symbolMembers(n).getFiltered(t) || []).flatMap((e) => {
14521
14551
  let t = e.name;
14522
14552
  return t === void 0 ? [] : {
14523
14553
  label: t,
14524
14554
  insertText: t,
14525
- kind: zb(e.kind),
14555
+ kind: Bb(e.kind),
14526
14556
  range: void 0
14527
14557
  };
14528
14558
  }) });
14529
14559
  }
14530
- function Bx(e, t, n, i) {
14560
+ function Vx(e, t, n, i) {
14531
14561
  switch (e.container.scopeKind(t, n)) {
14532
14562
  case Q.TABLE:
14533
- case Q.TABLEPARTIAL: return Wx(e, t, n, i);
14534
- case Q.PROJECT: return Gx(e, t, n, i);
14535
- case Q.INDEXES: return eS(e, t, n);
14536
- case Q.ENUM: return Ux(e, t, n, i);
14563
+ case Q.TABLEPARTIAL: return Gx(e, t, n, i);
14564
+ case Q.PROJECT: return Kx(e, t, n, i);
14565
+ case Q.INDEXES: return tS(e, t, n);
14566
+ case Q.ENUM: return Wx(e, t, n, i);
14537
14567
  case Q.REF:
14538
14568
  case Q.DEP: {
14539
- let r = Kx(e, t, n);
14540
- return e.container.token(t, n).token?.kind === _.COLON && Bb(e.container.token(t, n).token, n) ? Vb(r) : r;
14569
+ let r = qx(e, t, n);
14570
+ return e.container.token(t, n).token?.kind === _.COLON && Vb(e.container.token(t, n).token, n) ? Hb(r) : r;
14541
14571
  }
14542
- case Q.TABLEGROUP: return $x(e, t);
14543
- case Q.DIAGRAMVIEW: return aS();
14572
+ case Q.TABLEGROUP: return eS(e, t);
14573
+ case Q.DIAGRAMVIEW: return oS();
14544
14574
  case Q.CUSTOM: {
14545
14575
  let i = e.container.element(t, n);
14546
14576
  if (i instanceof z) {
14547
14577
  let a = i.parentNode, o = a instanceof U ? a.parentNode : void 0;
14548
- if (o instanceof z && o.isKind(r.DiagramView)) return oS(e, t, n, i);
14578
+ if (o instanceof z && o.isKind(r.DiagramView)) return sS(e, t, n, i);
14549
14579
  }
14550
14580
  return X();
14551
14581
  }
14552
14582
  default: return X();
14553
14583
  }
14554
14584
  }
14555
- var Vx = [
14585
+ var Hx = [
14556
14586
  Z.Table,
14557
14587
  Z.TableGroup,
14558
14588
  Z.Enum,
@@ -14565,8 +14595,8 @@ var Vx = [
14565
14595
  Z.Note,
14566
14596
  Z.Metadata
14567
14597
  ];
14568
- function Hx() {
14569
- return { suggestions: Vx.map((e) => ({
14598
+ function Ux() {
14599
+ return { suggestions: Hx.map((e) => ({
14570
14600
  label: e,
14571
14601
  insertText: e,
14572
14602
  insertTextRules: Y.KeepWhitespace,
@@ -14574,15 +14604,15 @@ function Hx() {
14574
14604
  range: void 0
14575
14605
  })) };
14576
14606
  }
14577
- function Ux(e, t, n, r) {
14578
- return r?.callee && rS(n, r) === 1 ? jx(e, t, n, e.container.element(t, n), [
14607
+ function Wx(e, t, n, r) {
14608
+ return r?.callee && iS(n, r) === 1 ? Mx(e, t, n, e.container.element(t, n), [
14579
14609
  I.Schema,
14580
14610
  I.Table,
14581
14611
  I.Column
14582
14612
  ]) : X();
14583
14613
  }
14584
- function Wx(e, t, n, r) {
14585
- let i = Tx;
14614
+ function Gx(e, t, n, r) {
14615
+ let i = Ex;
14586
14616
  if (!r?.callee) return { suggestions: i.map((e) => ({
14587
14617
  label: e,
14588
14618
  insertText: e,
@@ -14590,18 +14620,18 @@ function Wx(e, t, n, r) {
14590
14620
  kind: J.Keyword,
14591
14621
  range: void 0
14592
14622
  })) };
14593
- let a = rS(n, r);
14623
+ let a = iS(n, r);
14594
14624
  return a === 0 ? { suggestions: i.map((e) => ({
14595
14625
  label: e,
14596
14626
  insertText: e,
14597
14627
  insertTextRules: Y.KeepWhitespace,
14598
14628
  kind: J.Keyword,
14599
14629
  range: void 0
14600
- })) } : a === 1 ? tS(e, t, n) : X();
14630
+ })) } : a === 1 ? nS(e, t, n) : X();
14601
14631
  }
14602
- function Gx(e, t, n, r) {
14603
- let i = Ex;
14604
- return !r?.callee || rS(n, r) === 0 ? { suggestions: i.map((e) => ({
14632
+ function Kx(e, t, n, r) {
14633
+ let i = Dx;
14634
+ return !r?.callee || iS(n, r) === 0 ? { suggestions: i.map((e) => ({
14605
14635
  label: e,
14606
14636
  insertText: e,
14607
14637
  insertTextRules: Y.KeepWhitespace,
@@ -14609,14 +14639,14 @@ function Gx(e, t, n, r) {
14609
14639
  range: void 0
14610
14640
  })) } : X();
14611
14641
  }
14612
- function Kx(e, t, n) {
14613
- return jx(e, t, n, e.container.element(t, n), [
14642
+ function qx(e, t, n) {
14643
+ return Mx(e, t, n, e.container.element(t, n), [
14614
14644
  I.Schema,
14615
14645
  I.Table,
14616
14646
  I.Column
14617
14647
  ]);
14618
14648
  }
14619
- var qx = {
14649
+ var Jx = {
14620
14650
  [Vp.Table]: [I.Schema, I.Table],
14621
14651
  [Vp.Column]: [
14622
14652
  I.Schema,
@@ -14625,15 +14655,15 @@ var qx = {
14625
14655
  ],
14626
14656
  [Vp.TableGroup]: [I.TableGroup],
14627
14657
  [Vp.Note]: [I.StickyNote]
14628
- }, Jx = {
14658
+ }, Yx = {
14629
14659
  [Vp.Table]: Z.Table,
14630
14660
  [Vp.Column]: Z.Column,
14631
14661
  [Vp.TableGroup]: Z.TableGroup,
14632
14662
  [Vp.Note]: Z.Note
14633
14663
  };
14634
- function Yx() {
14664
+ function Xx() {
14635
14665
  return { suggestions: Object.values(Vp).map((e) => {
14636
- let t = Jx[e];
14666
+ let t = Yx[e];
14637
14667
  return {
14638
14668
  label: t,
14639
14669
  insertText: t,
@@ -14643,46 +14673,46 @@ function Yx() {
14643
14673
  };
14644
14674
  }) };
14645
14675
  }
14646
- function Xx(e, t, n, r) {
14676
+ function Zx(e, t, n, r) {
14647
14677
  let i = y_(r);
14648
- if (!i || n <= r.targetKind.end && n >= r.targetKind.start) return Yx();
14649
- let a = qx[i];
14650
- return a ? jx(e, t, n, r.parent, a) : X();
14678
+ if (!i || n <= r.targetKind.end && n >= r.targetKind.start) return Xx();
14679
+ let a = Jx[i];
14680
+ return a ? Mx(e, t, n, r.parent, a) : X();
14651
14681
  }
14652
- function Zx(e, t, n, i) {
14653
- return i.isKind(r.Records) ? jx(e, t, n, i.parent, [I.Schema, I.Table]) : X();
14682
+ function Qx(e, t, n, i) {
14683
+ return i.isKind(r.Records) ? Mx(e, t, n, i.parent, [I.Schema, I.Table]) : X();
14654
14684
  }
14655
- function Qx(e, n, i, a) {
14685
+ function $x(e, n, i, a) {
14656
14686
  let o = e.container.element(n, i), s = a.callee && jh(i, a.callee), c = a.argumentList && jh(i, a.argumentList);
14657
14687
  if (o instanceof z && o.isKind(r.Records) && Mh(i, o)) {
14658
- if (s) return jx(e, n, i, o.parent, [I.Schema, I.Table]);
14688
+ if (s) return Mx(e, n, i, o.parent, [I.Schema, I.Table]);
14659
14689
  if (!c) return X();
14660
14690
  let r = a.callee;
14661
14691
  if (!r) return X();
14662
14692
  let l = lp(r) ?? [r], u = l[l.length - 1], d = u ? e.nodeReferee(u).getFiltered(t) : void 0;
14663
14693
  if (!d) return X();
14664
- let f = Ax(e, d, [I.Column]), { argumentList: p } = a;
14665
- return !p || !sp(p) ? f : Ub(f);
14694
+ let f = jx(e, d, [I.Column]), { argumentList: p } = a;
14695
+ return !p || !sp(p) ? f : Wb(f);
14666
14696
  }
14667
14697
  let l = [...e.container.stack(n, i)];
14668
14698
  for (let o of l) {
14669
14699
  if (!c || !(o instanceof H) || o.callee !== a || (P(a.callee) ?? "").toLowerCase() !== r.Records) continue;
14670
14700
  let s = e.nodeSymbol(e.container.element(n, i)).getFiltered(t);
14671
14701
  if (!s) return X();
14672
- let l = Ax(e, s, [I.Column]), { argumentList: u } = a;
14673
- return !u || !sp(u) ? l : Ub(l);
14702
+ let l = jx(e, s, [I.Column]), { argumentList: u } = a;
14703
+ return !u || !sp(u) ? l : Wb(l);
14674
14704
  }
14675
14705
  return X();
14676
14706
  }
14677
- function $x(e, t) {
14678
- return { suggestions: [...Hb({ suggestions: (e.parse.publicSymbolTable(t) ?? []).flatMap((e) => {
14707
+ function eS(e, t) {
14708
+ return { suggestions: [...Ub({ suggestions: (e.parse.publicSymbolTable(t) ?? []).flatMap((e) => {
14679
14709
  if (e.kind !== I.Table && e.kind !== I.Schema) return [];
14680
14710
  let t = e.name;
14681
14711
  return t === void 0 || e instanceof Wp && e.isPublicSchema() ? [] : {
14682
14712
  label: t,
14683
14713
  insertText: t,
14684
14714
  insertTextRules: Y.KeepWhitespace,
14685
- kind: zb(e.kind),
14715
+ kind: Bb(e.kind),
14686
14716
  range: void 0
14687
14717
  };
14688
14718
  }) }).suggestions, ...[Z.Note].map((e) => ({
@@ -14693,47 +14723,47 @@ function $x(e, t) {
14693
14723
  range: void 0
14694
14724
  }))] };
14695
14725
  }
14696
- function eS(e, t, n) {
14697
- return nS(e, t, n);
14698
- }
14699
14726
  function tS(e, t, n) {
14700
- return { suggestions: [...ax.map((e) => ({
14727
+ return rS(e, t, n);
14728
+ }
14729
+ function nS(e, t, n) {
14730
+ return { suggestions: [...ox.map((e) => ({
14701
14731
  label: e,
14702
14732
  insertText: e,
14703
14733
  insertTextRules: Y.KeepWhitespace,
14704
14734
  kind: J.TypeParameter,
14705
14735
  sortText: J.TypeParameter.toString().padStart(2, "0"),
14706
14736
  range: void 0
14707
- })), ...jx(e, t, n, e.container.element(t, n), [I.Enum, I.Schema]).suggestions] };
14737
+ })), ...Mx(e, t, n, e.container.element(t, n), [I.Enum, I.Schema]).suggestions] };
14708
14738
  }
14709
- function nS(e, n, r) {
14739
+ function rS(e, n, r) {
14710
14740
  let i = e.container.element(n, r)?.parent, a = i ? e.nodeSymbol(i).getFiltered(t) : void 0;
14711
14741
  if (!a || !a?.isKind(I.Table)) return X();
14712
14742
  let o = e.symbolMembers(a).getFiltered(t);
14713
- return o ? Hb({ suggestions: o.flatMap((n) => {
14743
+ return o ? Ub({ suggestions: o.flatMap((n) => {
14714
14744
  let r = n.declaration ? e.nodeFullname(n.declaration) : void 0, i = r && !r.hasValue(t) ? r.getValue()?.at(-1) : void 0;
14715
14745
  return i ? {
14716
14746
  label: i,
14717
14747
  insertText: i,
14718
14748
  insertTextRules: Y.KeepWhitespace,
14719
- kind: zb(I.Column),
14749
+ kind: Bb(I.Column),
14720
14750
  range: void 0
14721
14751
  } : [];
14722
14752
  }) }) : X();
14723
14753
  }
14724
- function rS(e, t) {
14754
+ function iS(e, t) {
14725
14755
  if (!t.callee) return -1;
14726
14756
  let n = [t.callee, ...t.args], r = n.findIndex((t) => e <= t.end);
14727
14757
  return r === -1 ? n.length : r;
14728
14758
  }
14729
- var iS = {
14759
+ var aS = {
14730
14760
  label: "*",
14731
14761
  insertText: "*",
14732
14762
  insertTextRules: Y.KeepWhitespace,
14733
14763
  kind: J.Keyword,
14734
14764
  range: void 0
14735
14765
  };
14736
- function aS() {
14766
+ function oS() {
14737
14767
  return { suggestions: [...[
14738
14768
  Z.Tables,
14739
14769
  Z.TableGroups,
@@ -14745,14 +14775,14 @@ function aS() {
14745
14775
  insertTextRules: Y.KeepWhitespace,
14746
14776
  kind: J.Keyword,
14747
14777
  range: void 0
14748
- })), iS] };
14778
+ })), aS] };
14749
14779
  }
14750
- function oS(e, t, n, i) {
14780
+ function sS(e, t, n, i) {
14751
14781
  switch (i.getElementKind()) {
14752
- case r.DiagramViewTables: return { suggestions: [iS, ...jx(e, t, n, e.parse.ast(t), [I.Table, I.Schema]).suggestions] };
14753
- case r.DiagramViewTableGroups: return { suggestions: [iS, ...jx(e, t, n, e.parse.ast(t), [I.TableGroup]).suggestions] };
14782
+ case r.DiagramViewTables: return { suggestions: [aS, ...Mx(e, t, n, e.parse.ast(t), [I.Table, I.Schema]).suggestions] };
14783
+ case r.DiagramViewTableGroups: return { suggestions: [aS, ...Mx(e, t, n, e.parse.ast(t), [I.TableGroup]).suggestions] };
14754
14784
  case r.DiagramViewSchemas: return { suggestions: [
14755
- iS,
14785
+ aS,
14756
14786
  {
14757
14787
  label: v,
14758
14788
  insertText: v,
@@ -14760,15 +14790,15 @@ function oS(e, t, n, i) {
14760
14790
  kind: J.Module,
14761
14791
  range: void 0
14762
14792
  },
14763
- ...jx(e, t, n, e.parse.ast(t), [I.Schema]).suggestions
14793
+ ...Mx(e, t, n, e.parse.ast(t), [I.Schema]).suggestions
14764
14794
  ] };
14765
- case r.DiagramViewNotes: return { suggestions: [iS, ...jx(e, t, n, e.parse.ast(t), [I.StickyNote]).suggestions] };
14795
+ case r.DiagramViewNotes: return { suggestions: [aS, ...Mx(e, t, n, e.parse.ast(t), [I.StickyNote]).suggestions] };
14766
14796
  default: return X();
14767
14797
  }
14768
14798
  }
14769
14799
  //#endregion
14770
14800
  //#region src/services/monarch.ts
14771
- var sS = {
14801
+ var cS = {
14772
14802
  comments: {
14773
14803
  lineComment: "//",
14774
14804
  blockComment: ["/*", "*/"]
@@ -14834,7 +14864,7 @@ var sS = {
14834
14864
  increaseIndentPattern: /^(.*\{[^}]*|\s*[{[].*)$/,
14835
14865
  decreaseIndentPattern: /^(.*\}.*|\s*[}\]].*)$/
14836
14866
  }
14837
- }, cS = {
14867
+ }, lS = {
14838
14868
  tokenPostfix: ".dbml",
14839
14869
  brackets: [
14840
14870
  {
@@ -14901,7 +14931,8 @@ var sS = {
14901
14931
  "tablegroups",
14902
14932
  "notes",
14903
14933
  "schemas",
14904
- "inactive"
14934
+ "inactive",
14935
+ "example"
14905
14936
  ],
14906
14937
  symbols: /[=><!~?:&|+\-/^%]+/,
14907
14938
  escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
@@ -15072,7 +15103,7 @@ var sS = {
15072
15103
  };
15073
15104
  //#endregion
15074
15105
  //#region src/compiler/queries/container/stack.ts
15075
- function lS(e, t) {
15106
+ function uS(e, t) {
15076
15107
  let n = this.token.flatStream(e), { index: r, token: i } = this.container.token(e, t), a = r === void 0 ? -1 : va(n, (e) => !e.isInvalid, r);
15077
15108
  if (a === -1) return [this.parse.ast(e)];
15078
15109
  let o = n[a].start, s = this.parse.ast(e), c = [s];
@@ -15098,7 +15129,7 @@ function lS(e, t) {
15098
15129
  }
15099
15130
  //#endregion
15100
15131
  //#region src/compiler/queries/container/token.ts
15101
- function uS(e, t) {
15132
+ function dS(e, t) {
15102
15133
  let n = this.token.flatStream(e).findIndex((e) => e.start >= t);
15103
15134
  return n === void 0 || n <= 0 ? {
15104
15135
  token: void 0,
@@ -15110,14 +15141,14 @@ function uS(e, t) {
15110
15141
  }
15111
15142
  //#endregion
15112
15143
  //#region src/compiler/queries/container/element.ts
15113
- function dS(e, t) {
15144
+ function fS(e, t) {
15114
15145
  let n = this.container.stack(e, t);
15115
15146
  for (let e = n.length - 1; e >= 0; --e) if (n[e] instanceof z) return n[e];
15116
15147
  return this.parse.ast(e);
15117
15148
  }
15118
15149
  //#endregion
15119
15150
  //#region src/compiler/queries/container/scope.ts
15120
- function fS(e, n) {
15151
+ function pS(e, n) {
15121
15152
  let r = this.container.element(e, n);
15122
15153
  if (!r) return;
15123
15154
  let i = this.nodeSymbol(r);
@@ -15132,7 +15163,7 @@ var Q = /* @__PURE__ */ function(e) {
15132
15163
  }({});
15133
15164
  //#endregion
15134
15165
  //#region src/compiler/queries/container/scopeKind.ts
15135
- function pS(e, t) {
15166
+ function mS(e, t) {
15136
15167
  let n = this.container.element(e, t);
15137
15168
  if (n instanceof R) return Q.TOPLEVEL;
15138
15169
  switch (n.type?.value.toLowerCase()) {
@@ -15154,9 +15185,9 @@ function pS(e, t) {
15154
15185
  }
15155
15186
  //#endregion
15156
15187
  //#region src/compiler/queries/canonicalName.ts
15157
- function mS(e, t) {
15188
+ function hS(e, t) {
15158
15189
  let r = t.originalSymbol;
15159
- if (r.filepath.equals(e)) return n.create(gS(this, r));
15190
+ if (r.filepath.equals(e)) return n.create(_S(this, r));
15160
15191
  let i = [...this.symbolUses(r).getValue(), ...this.symbolAliases(r).getValue()].filter((t) => t.filepath.equals(e));
15161
15192
  for (let e of i) {
15162
15193
  let t = e.name;
@@ -15165,12 +15196,12 @@ function mS(e, t) {
15165
15196
  schema: "",
15166
15197
  name: t
15167
15198
  });
15168
- let i = hS(this, e);
15199
+ let i = gS(this, e);
15169
15200
  if (i.length > 0) return n.create({
15170
15201
  schema: i.join("."),
15171
15202
  name: t
15172
15203
  });
15173
- let a = gS(this, r);
15204
+ let a = _S(this, r);
15174
15205
  return a ? n.create({
15175
15206
  ...a,
15176
15207
  name: t
@@ -15179,9 +15210,9 @@ function mS(e, t) {
15179
15210
  name: t
15180
15211
  });
15181
15212
  }
15182
- return n.create(gS(this, r));
15213
+ return n.create(_S(this, r));
15183
15214
  }
15184
- function hS(e, t) {
15215
+ function gS(e, t) {
15185
15216
  let n = [], r = t;
15186
15217
  for (; r;) {
15187
15218
  let t = e.symbolParent(r).find((e) => e instanceof Wp && e.isKind(I.Schema));
@@ -15190,7 +15221,7 @@ function hS(e, t) {
15190
15221
  }
15191
15222
  return n;
15192
15223
  }
15193
- function gS(e, n) {
15224
+ function _S(e, n) {
15194
15225
  if (!n.declaration) return n.name ? {
15195
15226
  schema: v,
15196
15227
  name: n.name
@@ -15208,7 +15239,7 @@ function gS(e, n) {
15208
15239
  }
15209
15240
  //#endregion
15210
15241
  //#region src/compiler/queries/files/fileDependencies.ts
15211
- function _S(e) {
15242
+ function vS(e) {
15212
15243
  let { ast: t } = this.parseFile(e).getValue(), n = [], r = /* @__PURE__ */ new Set();
15213
15244
  for (let i of t.body) {
15214
15245
  if (!(i instanceof fm) || !i.importPath) continue;
@@ -15219,7 +15250,7 @@ function _S(e) {
15219
15250
  }
15220
15251
  //#endregion
15221
15252
  //#region src/compiler/queries/files/reachableFiles.ts
15222
- function vS(e, t) {
15253
+ function yS(e, t) {
15223
15254
  let n = /* @__PURE__ */ new Set(), r = [], i = [...t], a = 0;
15224
15255
  for (; a < i.length;) {
15225
15256
  let t = i[a++], o = t.intern();
@@ -15230,46 +15261,46 @@ function vS(e, t) {
15230
15261
  }
15231
15262
  return r;
15232
15263
  }
15233
- function yS(e) {
15234
- return vS(this, e ? [e] : this.layout.getEntrypoints());
15264
+ function bS(e) {
15265
+ return yS(this, e ? [e] : this.layout.getEntrypoints());
15235
15266
  }
15236
15267
  //#endregion
15237
15268
  //#region src/compiler/queries/legacy/parse.ts
15238
- function bS(e) {
15269
+ function xS(e) {
15239
15270
  return this.bindFile(e), this.parseFile(e).getValue().ast;
15240
15271
  }
15241
- function xS(e) {
15272
+ function SS(e) {
15242
15273
  return this.interpretFile(e).getErrors();
15243
15274
  }
15244
- function SS(e) {
15275
+ function CS(e) {
15245
15276
  return this.interpretFile(e).getWarnings();
15246
15277
  }
15247
- function CS(e) {
15278
+ function wS(e) {
15248
15279
  return this.parseFile(e).getValue().tokens;
15249
15280
  }
15250
- function wS(e) {
15281
+ function TS(e) {
15251
15282
  let n = this.parseFile(e).getValue().ast, r = this.nodeSymbol(n).getFiltered(t);
15252
15283
  if (r) return this.interpretSymbol(r, e).getFiltered(t);
15253
15284
  }
15254
- function TS(e) {
15285
+ function ES(e) {
15255
15286
  let n = this.parseFile(e).getValue().ast, r = this.nodeSymbol(n).getFiltered(t);
15256
15287
  if (r) return this.symbolMembers(r).getFiltered(t);
15257
15288
  }
15258
15289
  //#endregion
15259
15290
  //#region src/compiler/queries/legacy/token.ts
15260
- function ES(e) {
15291
+ function DS(e) {
15261
15292
  return this.parseFile(e).getValue().tokens.flatMap((e) => [
15262
15293
  ...e.leadingInvalid,
15263
15294
  e,
15264
15295
  ...e.trailingInvalid
15265
15296
  ]);
15266
15297
  }
15267
- function DS(e) {
15298
+ function OS(e) {
15268
15299
  return this.parseFile(e).getValue().tokens.filter(eo);
15269
15300
  }
15270
15301
  //#endregion
15271
15302
  //#region src/compiler/queries/nodeAtPosition.ts
15272
- function OS(e, t) {
15303
+ function kS(e, t) {
15273
15304
  let n = this.parse.ast(e);
15274
15305
  for (;;) {
15275
15306
  let e = Fm(n).find((e) => jh(t, e));
@@ -15280,11 +15311,11 @@ function OS(e, t) {
15280
15311
  }
15281
15312
  //#endregion
15282
15313
  //#region src/compiler/queries/pipeline/bind.ts
15283
- function kS(e) {
15314
+ function AS(e) {
15284
15315
  let t = this.validateFile(e), r = this.parseFile(e).getValue().ast, i = this.bindNode(r).map(() => void 0);
15285
15316
  return new n(void 0, [...t.getErrors(), ...i.getErrors()], [...t.getWarnings(), ...i.getWarnings()]);
15286
15317
  }
15287
- function AS() {
15318
+ function jS() {
15288
15319
  let e = W_(this, this.layout.getEntrypoints()), t = /* @__PURE__ */ new Map();
15289
15320
  for (let n of e) {
15290
15321
  let e = this.bindFile(n);
@@ -15294,11 +15325,11 @@ function AS() {
15294
15325
  }
15295
15326
  //#endregion
15296
15327
  //#region src/compiler/queries/pipeline/interpret.ts
15297
- function jS(e) {
15328
+ function MS(e) {
15298
15329
  let { ast: r } = this.parseFile(e).getValue(), i = this.nodeSymbol(r).getFiltered(t);
15299
15330
  return i ? this.interpretSymbol(i, e).map((e) => e === t || !e ? void 0 : e) : n.create(void 0);
15300
15331
  }
15301
- function MS() {
15332
+ function NS() {
15302
15333
  let e = [], r = [], i = [], a = /* @__PURE__ */ new Set(), o = [];
15303
15334
  for (let e of this.layout.getEntrypoints()) for (let t of this.reachableFiles(e)) {
15304
15335
  let e = t.intern();
@@ -15319,12 +15350,12 @@ function MS() {
15319
15350
  }
15320
15351
  //#endregion
15321
15352
  //#region src/compiler/queries/pipeline/validate.ts
15322
- function NS(e) {
15353
+ function PS(e) {
15323
15354
  return this.parseFile(e).chain(({ ast: e }) => this.validateNode(e).map(() => void 0));
15324
15355
  }
15325
15356
  //#endregion
15326
15357
  //#region src/core/lexer/lexer.ts
15327
- var PS = class {
15358
+ var FS = class {
15328
15359
  constructor(e, t) {
15329
15360
  this.start = {
15330
15361
  offset: 0,
@@ -15608,9 +15639,9 @@ var PS = class {
15608
15639
  default: return this.text[this.current.offset - 1];
15609
15640
  }
15610
15641
  }
15611
- }, FS = /* @__PURE__ */ function(e) {
15642
+ }, IS = /* @__PURE__ */ function(e) {
15612
15643
  return e[e.ListExpression = 0] = "ListExpression", e[e.GroupExpression = 1] = "GroupExpression", e[e.BlockExpression = 2] = "BlockExpression", e;
15613
- }({}), IS = class {
15644
+ }({}), LS = class {
15614
15645
  constructor() {
15615
15646
  this.stack = [], this.numberOfNestedLParens = 0, this.numberOfNestedLBrackets = 0, this.numberOfNestedLBraces = 0;
15616
15647
  }
@@ -15660,7 +15691,7 @@ var PS = class {
15660
15691
  default: break;
15661
15692
  }
15662
15693
  }
15663
- }, LS = class {
15694
+ }, RS = class {
15664
15695
  constructor(e, t) {
15665
15696
  this.generator = e, this.filepath = t;
15666
15697
  }
@@ -15671,9 +15702,9 @@ var PS = class {
15671
15702
  constructor(e, t, n) {
15672
15703
  this.token = e, this.partialNode = t, this.handlerContext = n;
15673
15704
  }
15674
- }, RS = class {
15705
+ }, zS = class {
15675
15706
  constructor(e, t, n, r) {
15676
- this.current = 0, this.errors = [], this.contextStack = new IS(), this.useSpecifierList = this.contextStack.withContextDo(FS.BlockExpression, () => {
15707
+ this.current = 0, this.errors = [], this.contextStack = new LS(), this.useSpecifierList = this.contextStack.withContextDo(IS.BlockExpression, () => {
15677
15708
  let e = { specifiers: [] }, t = () => this.nodeFactory.create(mm, e);
15678
15709
  try {
15679
15710
  this.consume("Expect an opening brace '{'", _.LBRACE), e.openBrace = this.previous();
@@ -15722,7 +15753,7 @@ var PS = class {
15722
15753
  if (this.check(_.COLON, _.LBRACE, _.LBRACKET)) break;
15723
15754
  G(e), this.advance();
15724
15755
  }
15725
- }, this.blockExpression = this.contextStack.withContextDo(FS.BlockExpression, () => {
15756
+ }, this.blockExpression = this.contextStack.withContextDo(IS.BlockExpression, () => {
15726
15757
  let e = { body: [] }, t = () => this.nodeFactory.create(U, e);
15727
15758
  try {
15728
15759
  this.consume("Expect an opening brace '{'", _.LBRACE), e.blockOpenBrace = this.previous();
@@ -15752,7 +15783,7 @@ var PS = class {
15752
15783
  if (this.check(_.RBRACE) || Wa(this.previous(), e)) break;
15753
15784
  G(e), this.advance();
15754
15785
  }
15755
- }, this.tupleExpression = this.contextStack.withContextDo(FS.GroupExpression, () => {
15786
+ }, this.tupleExpression = this.contextStack.withContextDo(IS.GroupExpression, () => {
15756
15787
  let e = {
15757
15788
  elementList: [],
15758
15789
  commaList: []
@@ -15796,7 +15827,7 @@ var PS = class {
15796
15827
  if (this.check(_.RPAREN, _.COMMA)) break;
15797
15828
  G(e), this.advance();
15798
15829
  }
15799
- }, this.listExpression = this.contextStack.withContextDo(FS.ListExpression, () => {
15830
+ }, this.listExpression = this.contextStack.withContextDo(IS.ListExpression, () => {
15800
15831
  let e = {
15801
15832
  elementList: [],
15802
15833
  commaList: []
@@ -15848,7 +15879,7 @@ var PS = class {
15848
15879
  if (this.check(_.COMMA, _.RBRACKET)) break;
15849
15880
  G(e), this.advance();
15850
15881
  }
15851
- }, this.source = e, this.tokens = t, this.nodeFactory = new LS(n, r), this.filepath = r;
15882
+ }, this.source = e, this.tokens = t, this.nodeFactory = new RS(n, r), this.filepath = r;
15852
15883
  }
15853
15884
  isAtEnd() {
15854
15885
  return this.current >= this.tokens.length || this.tokens[this.current].kind === _.EOF;
@@ -16101,7 +16132,7 @@ var PS = class {
16101
16132
  for (; !this.isAtEnd();) {
16102
16133
  let n = this.peek();
16103
16134
  if (n.kind === _.LPAREN) {
16104
- let { left: r } = JS(n);
16135
+ let { left: r } = YS(n);
16105
16136
  if (r < e || Wa(this.previous(), n) && !this.contextStack.isWithinGroupExpressionContext() && !this.contextStack.isWithinListExpressionContext()) break;
16106
16137
  try {
16107
16138
  t = this.nodeFactory.create(Sm, {
@@ -16128,7 +16159,7 @@ var PS = class {
16128
16159
  }), new $(e.token, t, e.handlerContext)) : e;
16129
16160
  }
16130
16161
  } else if (Va(n)) {
16131
- let r = n, i = JS(r);
16162
+ let r = n, i = YS(r);
16132
16163
  if (i.left !== null) {
16133
16164
  if (i.left <= e) break;
16134
16165
  this.advance(), t = this.nodeFactory.create(_m, {
@@ -16136,7 +16167,7 @@ var PS = class {
16136
16167
  op: r
16137
16168
  });
16138
16169
  } else {
16139
- let n = WS(r);
16170
+ let n = GS(r);
16140
16171
  if (n.left === null || n.left <= e) break;
16141
16172
  this.advance();
16142
16173
  try {
@@ -16162,7 +16193,7 @@ var PS = class {
16162
16193
  if (Va(this.peek())) {
16163
16194
  let t = {};
16164
16195
  t.op = this.peek();
16165
- let n = KS(t.op);
16196
+ let n = qS(t.op);
16166
16197
  if (n.right === null) throw this.logError(t.op, w.UNKNOWN_PREFIX_OP, `Unexpected '${t.op.value}' in an expression`), new $(t.op, this.nodeFactory.create(Dm, { prevToken: t.op }), this.contextStack.findHandlerContext(this.tokens, this.current));
16167
16198
  this.advance();
16168
16199
  try {
@@ -16234,30 +16265,30 @@ var PS = class {
16234
16265
  logError(e, t, n) {
16235
16266
  this.errors.push(new T(t, n, e));
16236
16267
  }
16237
- }, zS = (e) => ({
16268
+ }, BS = (e) => ({
16238
16269
  left: e,
16239
16270
  right: e + 1
16240
- }), BS = (e) => ({
16271
+ }), VS = (e) => ({
16241
16272
  left: null,
16242
16273
  right: e
16243
- }), VS = (e) => ({
16274
+ }), HS = (e) => ({
16244
16275
  left: e,
16245
16276
  right: null
16246
- }), HS = {
16277
+ }), US = {
16247
16278
  left: null,
16248
16279
  right: null
16249
- }, US = {
16250
- ".": zS(16),
16251
- "/": zS(11),
16252
- "%": zS(11),
16253
- "+": zS(9),
16254
- "=": zS(2),
16255
- "==": zS(4),
16256
- "!=": zS(4),
16257
- "-": zS(9),
16258
- "-?": zS(9),
16259
- "?-": zS(9),
16260
- "?-?": zS(9),
16280
+ }, WS = {
16281
+ ".": BS(16),
16282
+ "/": BS(11),
16283
+ "%": BS(11),
16284
+ "+": BS(9),
16285
+ "=": BS(2),
16286
+ "==": BS(4),
16287
+ "!=": BS(4),
16288
+ "-": BS(9),
16289
+ "-?": BS(9),
16290
+ "?-": BS(9),
16291
+ "?-?": BS(9),
16261
16292
  ...Object.fromEntries([
16262
16293
  "<",
16263
16294
  "<=",
@@ -16275,12 +16306,12 @@ var PS = class {
16275
16306
  "?<>?",
16276
16307
  "->",
16277
16308
  "<-"
16278
- ].map((e) => [e, zS(7)]))
16309
+ ].map((e) => [e, BS(7)]))
16279
16310
  };
16280
- function WS(e) {
16281
- return US[e.value] ?? HS;
16311
+ function GS(e) {
16312
+ return WS[e.value] ?? US;
16282
16313
  }
16283
- var GS = Object.fromEntries([
16314
+ var KS = Object.fromEntries([
16284
16315
  "+",
16285
16316
  "-",
16286
16317
  "<",
@@ -16302,25 +16333,25 @@ var GS = Object.fromEntries([
16302
16333
  "<-",
16303
16334
  "!",
16304
16335
  "~"
16305
- ].map((e) => [e, BS(15)]));
16306
- function KS(e) {
16307
- return GS[e.value] ?? HS;
16336
+ ].map((e) => [e, VS(15)]));
16337
+ function qS(e) {
16338
+ return KS[e.value] ?? US;
16308
16339
  }
16309
- var qS = { "(": VS(14) };
16310
- function JS(e) {
16311
- return qS[e.value] ?? HS;
16340
+ var JS = { "(": HS(14) };
16341
+ function YS(e) {
16342
+ return JS[e.value] ?? US;
16312
16343
  }
16313
16344
  //#endregion
16314
16345
  //#region src/compiler/queries/pipeline/parse.ts
16315
- function YS(e) {
16346
+ function XS(e) {
16316
16347
  let t = this.getSource(e);
16317
- return new PS(t ?? "", e).lex().chain((n) => new RS(t ?? "", n, this.nodeIdGenerator, e).parse()).map(({ ast: t, tokens: n }) => ({
16348
+ return new FS(t ?? "", e).lex().chain((n) => new zS(t ?? "", n, this.nodeIdGenerator, e).parse()).map(({ ast: t, tokens: n }) => ({
16318
16349
  ast: t,
16319
16350
  tokens: n,
16320
16351
  path: e
16321
16352
  }));
16322
16353
  }
16323
- function XS() {
16354
+ function ZS() {
16324
16355
  let e = W_(this, this.layout.getEntrypoints()), t = /* @__PURE__ */ new Map();
16325
16356
  for (let n of e) {
16326
16357
  let e = this.parseFile(n);
@@ -16330,7 +16361,7 @@ function XS() {
16330
16361
  }
16331
16362
  //#endregion
16332
16363
  //#region src/compiler/queries/symbol/lookupMembers.ts
16333
- function ZS(e) {
16364
+ function QS(e) {
16334
16365
  let n = this.symbolMembers(e).getFiltered(t), r = /* @__PURE__ */ new Map();
16335
16366
  if (n) for (let e of n) {
16336
16367
  let t = e instanceof cm ? o_.visibleName(this, e)?.at(-1) : e.name;
@@ -16340,7 +16371,7 @@ function ZS(e) {
16340
16371
  }
16341
16372
  return r;
16342
16373
  }
16343
- function QS(e, n, r) {
16374
+ function $S(e, n, r) {
16344
16375
  let i;
16345
16376
  if (e instanceof Up) i = e;
16346
16377
  else {
@@ -16353,13 +16384,13 @@ function QS(e, n, r) {
16353
16384
  }
16354
16385
  //#endregion
16355
16386
  //#region src/compiler/queries/symbol/symbolAliases.ts
16356
- function $S(e) {
16387
+ function eC(e) {
16357
16388
  let t = e.originalSymbol;
16358
16389
  return G_(this).map((n) => n.filter((n) => n instanceof sm && n.originalSymbol === t && n !== e));
16359
16390
  }
16360
16391
  //#endregion
16361
16392
  //#region src/compiler/queries/resolutionIndex.ts
16362
- function eC() {
16393
+ function tC() {
16363
16394
  let e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = this.parseProject();
16364
16395
  this.bindProject();
16365
16396
  let i = /* @__PURE__ */ new Set(), a = (t, n) => {
@@ -16429,35 +16460,35 @@ function eC() {
16429
16460
  parents: s
16430
16461
  };
16431
16462
  }
16432
- function tC(e) {
16463
+ function nC(e) {
16433
16464
  return this.resolutionIndex().parents.get(e.intern()) ?? [];
16434
16465
  }
16435
- function nC(e) {
16466
+ function rC(e) {
16436
16467
  return this.resolutionIndex().references.get(e.intern()) ?? [];
16437
16468
  }
16438
- function rC(e) {
16469
+ function iC(e) {
16439
16470
  return this.resolutionIndex().metadata.get(e.intern()) ?? [];
16440
16471
  }
16441
16472
  //#endregion
16442
16473
  //#region src/compiler/queries/symbol/symbolUses.ts
16443
- function iC(e) {
16474
+ function aC(e) {
16444
16475
  let t = e.originalSymbol;
16445
16476
  return G_(this).map((n) => n.filter((n) => n instanceof cm && n.originalSymbol === t && n !== e));
16446
16477
  }
16447
16478
  //#endregion
16448
16479
  //#region src/compiler/queries/transform/applyTextEdits.ts
16449
- function aC(e, t, n = !1) {
16480
+ function oC(e, t, n = !1) {
16450
16481
  let r = n ? t : [...t].sort((e, t) => t.start - e.start), i = e;
16451
16482
  for (let { start: e, end: t, newText: n } of r) i = i.substring(0, e) + n + i.substring(t);
16452
16483
  return i;
16453
16484
  }
16454
16485
  //#endregion
16455
16486
  //#region src/compiler/queries/transform/utils/ref.ts
16456
- function oC(e, n, r) {
16487
+ function sC(e, n, r) {
16457
16488
  let a = e.parseFile(n).getValue().ast, o = e.nodeSymbol(a).getFiltered(t);
16458
16489
  if (!o) return;
16459
16490
  let s = e.getSource(n) ?? "";
16460
- for (let t of e.symbolMetadata(o)) if (t instanceof Gm && cC(e, t, r)) {
16491
+ for (let t of e.symbolMetadata(o)) if (t instanceof Gm && lC(e, t, r)) {
16461
16492
  if (t.declaration instanceof B) {
16462
16493
  let n = t.op(e);
16463
16494
  if (!n) continue;
@@ -16481,41 +16512,41 @@ function oC(e, n, r) {
16481
16512
  }
16482
16513
  }
16483
16514
  }
16484
- function sC(e, t, n) {
16515
+ function cC(e, t, n) {
16485
16516
  if (!e?.name || e.name !== n.tableName) return !1;
16486
16517
  let r = n.fieldNames ?? [];
16487
16518
  return r.length === 0 ? !0 : t.length === r.length ? t.every((e, t) => e.name === r[t]) : !1;
16488
16519
  }
16489
- function cC(e, t, n) {
16520
+ function lC(e, t, n) {
16490
16521
  let r = t.leftTable(e), i = t.leftColumns(e), a = t.rightTable(e), o = t.rightColumns(e), [s, c] = n.endpoints;
16491
- return sC(r, i, s) && sC(a, o, c) || sC(r, i, c) && sC(a, o, s);
16522
+ return cC(r, i, s) && cC(a, o, c) || cC(r, i, c) && cC(a, o, s);
16492
16523
  }
16493
16524
  //#endregion
16494
16525
  //#region src/compiler/queries/transform/utils/dep.ts
16495
- function lC(e, t, n) {
16496
- let r = hC(e, t, pC(n.schemaName), n.tableName, I.Table);
16526
+ function uC(e, t, n) {
16527
+ let r = gC(e, t, mC(n.schemaName), n.tableName, I.Table);
16497
16528
  return {
16498
16529
  table: r,
16499
16530
  columns: (n.fieldNames ?? []).map((t) => r ? e.lookupMembers(r, I.Column, t) : void 0)
16500
16531
  };
16501
16532
  }
16502
- function uC(e, t) {
16533
+ function dC(e, t) {
16503
16534
  let n = e?.originalSymbol.declaration;
16504
16535
  return !!n && n === t?.originalSymbol.declaration;
16505
16536
  }
16506
- function dC(e, t, n) {
16507
- return !uC(e, n.table) || t.length !== n.columns.length ? !1 : t.every((e, t) => uC(e, n.columns[t]));
16537
+ function fC(e, t, n) {
16538
+ return !dC(e, n.table) || t.length !== n.columns.length ? !1 : t.every((e, t) => dC(e, n.columns[t]));
16508
16539
  }
16509
- function fC(e, n, r) {
16540
+ function pC(e, n, r) {
16510
16541
  let a = e.parseFile(n).getValue().ast, o = e.nodeSymbol(a).getFiltered(t);
16511
16542
  if (!o) return;
16512
- let s = lC(e, n, r.upstream), c = lC(e, n, r.downstream);
16543
+ let s = uC(e, n, r.upstream), c = uC(e, n, r.downstream);
16513
16544
  if (!s.table || !c.table) return;
16514
16545
  let l = e.getSource(n) ?? "";
16515
16546
  for (let t of e.symbolMetadata(o)) {
16516
16547
  if (!(t instanceof Km)) continue;
16517
16548
  let n = t.upstreamTables(e), r = t.upstreamColumns(e), a = t.downstreamTables(e), o = t.downstreamColumns(e);
16518
- if (!n.some((e, t) => dC(n[t], r[t] ?? [], s) && dC(a[t], o[t] ?? [], c))) continue;
16549
+ if (!n.some((e, t) => fC(n[t], r[t] ?? [], s) && fC(a[t], o[t] ?? [], c))) continue;
16519
16550
  if (t.declaration instanceof z) return {
16520
16551
  kind: "block",
16521
16552
  declaration: t.declaration
@@ -16537,10 +16568,10 @@ function fC(e, n, r) {
16537
16568
  }
16538
16569
  //#endregion
16539
16570
  //#region src/compiler/queries/transform/utils/index.ts
16540
- function pC(e) {
16571
+ function mC(e) {
16541
16572
  return e && e.length > 0 ? e : v;
16542
16573
  }
16543
- function mC(e) {
16574
+ function hC(e) {
16544
16575
  if (typeof e != "string") return {
16545
16576
  schema: e.schema ?? "public",
16546
16577
  table: e.table
@@ -16564,33 +16595,33 @@ function mC(e) {
16564
16595
  table: n
16565
16596
  };
16566
16597
  }
16567
- function hC(e, n, r, i, a = I.Table) {
16598
+ function gC(e, n, r, i, a = I.Table) {
16568
16599
  let o = e.parseFile(n).getValue().ast, s = e.nodeSymbol(o).getFiltered(t);
16569
16600
  if (!s) return;
16570
16601
  if (r === "public") return e.lookupMembers(s, a, i) ?? void 0;
16571
16602
  let c = e.lookupMembers(s, I.Schema, r);
16572
16603
  if (c) return e.lookupMembers(c, a, i) ?? void 0;
16573
16604
  }
16574
- function gC(e) {
16605
+ function _C(e) {
16575
16606
  return e.startsWith("\"") && e.endsWith("\"") && e.length >= 2 ? e.slice(1, -1) : e;
16576
16607
  }
16577
- function _C(e) {
16608
+ function vC(e) {
16578
16609
  let t = [];
16579
16610
  e.schemaName && e.schemaName !== "public" && t.push(R_(e.schemaName)), t.push(R_(e.tableName));
16580
16611
  for (let n of e.fieldNames ?? []) t.push(R_(n));
16581
16612
  return t.join(".");
16582
16613
  }
16583
- function vC(e, t) {
16614
+ function yC(e, t) {
16584
16615
  return t === void 0 ? e : t === null ? "" : `${e}: ${t}`;
16585
16616
  }
16586
16617
  //#endregion
16587
16618
  //#region src/compiler/queries/transform/renameTable.ts
16588
- function yC(e, t) {
16619
+ function bC(e, t) {
16589
16620
  if (!e || !(e instanceof z)) return !1;
16590
16621
  let n = e.name;
16591
16622
  return n ? t.substring(n.start, n.end).includes("\"") : !1;
16592
16623
  }
16593
- function bC(e, t, n) {
16624
+ function xC(e, t, n) {
16594
16625
  let r = !L_(t), i = !L_(e), a = n || r, o = n || i;
16595
16626
  return {
16596
16627
  schema: e,
@@ -16601,10 +16632,10 @@ function bC(e, t, n) {
16601
16632
  shouldQuoteTable: a
16602
16633
  };
16603
16634
  }
16604
- function xC(e, t, n, r, i, a) {
16605
- return n === i && r === a ? !1 : hC(e, t, i, a) !== void 0;
16635
+ function SC(e, t, n, r, i, a) {
16636
+ return n === i && r === a ? !1 : gC(e, t, i, a) !== void 0;
16606
16637
  }
16607
- function SC(e, t, n) {
16638
+ function CC(e, t, n) {
16608
16639
  let r = e.start - 1;
16609
16640
  for (; r >= 0 && /\s/.test(n[r]);) r--;
16610
16641
  if (r < 0 || n[r] !== ".") return null;
@@ -16619,19 +16650,19 @@ function SC(e, t, n) {
16619
16650
  for (a = r + 1; r >= 0 && /[a-zA-Z0-9_]/.test(n[r]);) r--;
16620
16651
  i = r + 1;
16621
16652
  }
16622
- return gC(n.substring(i, a)) === t ? {
16653
+ return _C(n.substring(i, a)) === t ? {
16623
16654
  start: i,
16624
16655
  end: e.end
16625
16656
  } : null;
16626
16657
  }
16627
- function CC(e) {
16658
+ function wC(e) {
16628
16659
  return e.schema === "public" ? e.formattedTable : `${e.formattedSchema}.${e.formattedTable}`;
16629
16660
  }
16630
- function wC(e, t, n, r, i) {
16631
- let a = [], o = /* @__PURE__ */ new Set(), s = CC(r);
16661
+ function TC(e, t, n, r, i) {
16662
+ let a = [], o = /* @__PURE__ */ new Set(), s = wC(r);
16632
16663
  for (let r of e) {
16633
- if (gC(i.substring(r.start, r.end)) !== n) continue;
16634
- let e = SC(r, t, i) ?? {
16664
+ if (_C(i.substring(r.start, r.end)) !== n) continue;
16665
+ let e = CC(r, t, i) ?? {
16635
16666
  start: r.start,
16636
16667
  end: r.end
16637
16668
  }, c = `${e.start}-${e.end}`;
@@ -16643,19 +16674,19 @@ function wC(e, t, n, r, i) {
16643
16674
  }
16644
16675
  return a;
16645
16676
  }
16646
- function TC(e, n, r) {
16647
- let i = mC(n), a = mC(r), o = i.schema, s = i.table, c = a.schema, l = a.table, u = hC(this, e, o, s);
16648
- if (!u || u instanceof sm || xC(this, e, o, s, c, l)) return /* @__PURE__ */ new Map();
16677
+ function EC(e, n, r) {
16678
+ let i = hC(n), a = hC(r), o = i.schema, s = i.table, c = a.schema, l = a.table, u = gC(this, e, o, s);
16679
+ if (!u || u instanceof sm || SC(this, e, o, s, c, l)) return /* @__PURE__ */ new Map();
16649
16680
  if (u instanceof cm && u.useSpecifierDeclaration instanceof pm && u.useSpecifierDeclaration.alias) {
16650
16681
  let n = u.useSpecifierDeclaration;
16651
- if (this.nodeAlias(n).getFiltered(t) === s) return EC(this, e, n, u, c, l);
16682
+ if (this.nodeAlias(n).getFiltered(t) === s) return DC(this, e, n, u, c, l);
16652
16683
  }
16653
- return DC(this, u, o, s, c, l);
16684
+ return OC(this, u, o, s, c, l);
16654
16685
  }
16655
- function EC(e, t, n, r, i, a) {
16686
+ function DC(e, t, n, r, i, a) {
16656
16687
  let o = e.getSource(t) ?? "";
16657
16688
  if (!n.alias) return /* @__PURE__ */ new Map();
16658
- let s = bC(i, a, o.substring(n.alias.start, n.alias.end).includes("\"")), c = [];
16689
+ let s = xC(i, a, o.substring(n.alias.start, n.alias.end).includes("\"")), c = [];
16659
16690
  c.push({
16660
16691
  start: n.alias.start,
16661
16692
  end: n.alias.end,
@@ -16667,14 +16698,14 @@ function EC(e, t, n, r, i, a) {
16667
16698
  end: e.end,
16668
16699
  newText: s.formattedTable
16669
16700
  });
16670
- return new Map([[t.absolute, aC(o, c)]]);
16701
+ return new Map([[t.absolute, oC(o, c)]]);
16671
16702
  }
16672
- function DC(e, t, n, r, i, a) {
16703
+ function OC(e, t, n, r, i, a) {
16673
16704
  let o = t.originalSymbol, s = o.declaration;
16674
16705
  if (!s || !(s instanceof z)) return /* @__PURE__ */ new Map();
16675
16706
  let c = s.filepath;
16676
16707
  if (!c) return /* @__PURE__ */ new Map();
16677
- let l = bC(i, a, yC(s, e.getSource(c) ?? "")), u = /* @__PURE__ */ new Map(), d = (e, t) => {
16708
+ let l = xC(i, a, bC(s, e.getSource(c) ?? "")), u = /* @__PURE__ */ new Map(), d = (e, t) => {
16678
16709
  let n = e.absolute, r = u.get(n);
16679
16710
  r || (r = {
16680
16711
  fp: e,
@@ -16684,56 +16715,56 @@ function DC(e, t, n, r, i, a) {
16684
16715
  f && d(c, {
16685
16716
  start: f.start,
16686
16717
  end: f.end,
16687
- newText: CC(l)
16718
+ newText: wC(l)
16688
16719
  });
16689
16720
  let p = e.symbolReferences(o);
16690
16721
  for (let t of p) {
16691
16722
  if (t === f) continue;
16692
16723
  let i = t.filepath, a = e.getSource(i) ?? "";
16693
- for (let e of wC([t], n, r, l, a)) d(i, e);
16724
+ for (let e of TC([t], n, r, l, a)) d(i, e);
16694
16725
  }
16695
16726
  let m = /* @__PURE__ */ new Map();
16696
16727
  for (let { fp: t, edits: n } of u.values()) {
16697
16728
  let r = e.getSource(t) ?? "";
16698
- m.set(t.absolute, aC(r, n));
16729
+ m.set(t.absolute, oC(r, n));
16699
16730
  }
16700
16731
  return m;
16701
16732
  }
16702
16733
  //#endregion
16703
16734
  //#region src/compiler/queries/transform/updateElementSetting.ts
16704
- function OC(e, t, n, r) {
16705
- if (t.kind === "dep") return jC(this, e, t, n, r);
16706
- if (t.kind === "ref") return MC(this, e, t, n, r);
16707
- let i = AC(this, e, t);
16735
+ function kC(e, t, n, r) {
16736
+ if (t.kind === "dep") return MC(this, e, t, n, r);
16737
+ if (t.kind === "ref") return NC(this, e, t, n, r);
16738
+ let i = jC(this, e, t);
16708
16739
  if (!i) return [];
16709
16740
  let a = Dg(i, n, r, this.getSource(e) ?? "");
16710
16741
  return a ? [a] : [];
16711
16742
  }
16712
- function kC(e, t, n, r) {
16743
+ function AC(e, t, n, r) {
16713
16744
  let i = this.getSource(e) ?? "", a = this.updateElementSettingEdit(e, t, n, r);
16714
- return a.length === 0 ? i : aC(i, a);
16745
+ return a.length === 0 ? i : oC(i, a);
16715
16746
  }
16716
- function AC(e, t, n) {
16747
+ function jC(e, t, n) {
16717
16748
  let r = ("schema" in n ? n.schema : void 0) ?? "public";
16718
16749
  switch (n.kind) {
16719
16750
  case I.Column: {
16720
- let i = hC(e, t, r, n.table, I.Table);
16751
+ let i = gC(e, t, r, n.table, I.Table);
16721
16752
  return i ? e.lookupMembers(i, I.Column, n.column)?.declaration : void 0;
16722
16753
  }
16723
- case I.Table: return hC(e, t, r, n.table)?.declaration;
16754
+ case I.Table: return gC(e, t, r, n.table)?.declaration;
16724
16755
  case I.Enum:
16725
16756
  case I.StickyNote:
16726
- case I.TableGroup: return hC(e, t, r, n.name, n.kind)?.declaration;
16727
- case I.Schema: return hC(e, t, n.schema, "", I.Schema)?.declaration;
16757
+ case I.TableGroup: return gC(e, t, r, n.name, n.kind)?.declaration;
16758
+ case I.Schema: return gC(e, t, n.schema, "", I.Schema)?.declaration;
16728
16759
  default: return;
16729
16760
  }
16730
16761
  }
16731
- function jC(e, t, n, r, i) {
16732
- let a = e.getSource(t) ?? "", o = fC(e, t, n);
16762
+ function MC(e, t, n, r, i) {
16763
+ let a = e.getSource(t) ?? "", o = pC(e, t, n);
16733
16764
  if (!o) return [];
16734
16765
  if (o.kind === "inline") {
16735
16766
  if (i === null) return [];
16736
- let e = _C(n.upstream), t = _C(n.downstream), s = vC(r, i), c = s ? `Dep [${s}] {\n ${e} -> ${t}\n}` : `Dep {\n ${e} -> ${t}\n}`;
16767
+ let e = vC(n.upstream), t = vC(n.downstream), s = yC(r, i), c = s ? `Dep [${s}] {\n ${e} -> ${t}\n}` : `Dep {\n ${e} -> ${t}\n}`;
16737
16768
  return [{
16738
16769
  start: o.fullStart,
16739
16770
  end: o.fullEnd,
@@ -16754,12 +16785,12 @@ function jC(e, t, n, r, i) {
16754
16785
  let l = Dg(s, r, i, a);
16755
16786
  return l ? [l] : [];
16756
16787
  }
16757
- function MC(e, t, n, r, i) {
16758
- let a = e.getSource(t) ?? "", o = oC(e, t, n);
16788
+ function NC(e, t, n, r, i) {
16789
+ let a = e.getSource(t) ?? "", o = sC(e, t, n);
16759
16790
  if (!o) return [];
16760
16791
  if (o.kind === "inline") {
16761
16792
  if (i === null) return [];
16762
- let e = _C(n.endpoints[0]), t = _C(n.endpoints[1]), s = vC(r, i), c = s ? `Ref: ${e} ${o.op} ${t} [${s}]` : `Ref: ${e} ${o.op} ${t}`;
16793
+ let e = vC(n.endpoints[0]), t = vC(n.endpoints[1]), s = yC(r, i), c = s ? `Ref: ${e} ${o.op} ${t} [${s}]` : `Ref: ${e} ${o.op} ${t}`;
16763
16794
  return [{
16764
16795
  start: o.fullStart,
16765
16796
  end: o.fullEnd,
@@ -16775,10 +16806,10 @@ function MC(e, t, n, r, i) {
16775
16806
  }
16776
16807
  //#endregion
16777
16808
  //#region src/compiler/queries/transform/syncDiagramView.ts
16778
- function NC(e) {
16779
- let t = [], n = new PS(e, Do).lex();
16809
+ function PC(e) {
16810
+ let t = [], n = new FS(e, Do).lex();
16780
16811
  if (n.getErrors().length > 0) return t;
16781
- let i = new RS(e, n.getValue(), new um(), Do).parse();
16812
+ let i = new zS(e, n.getValue(), new um(), Do).parse();
16782
16813
  if (i.getErrors().length > 0) return t;
16783
16814
  let a = i.getValue().ast;
16784
16815
  for (let e of a.declarations) if (e.isKind(r.DiagramView)) {
@@ -16791,66 +16822,66 @@ function NC(e) {
16791
16822
  }
16792
16823
  return t;
16793
16824
  }
16794
- function PC(e, t, n) {
16825
+ function FC(e, t, n) {
16795
16826
  e.push(` ${t} {`), n.forEach((t) => e.push(` ${t}`)), e.push(" }");
16796
16827
  }
16797
- function FC(e, t) {
16828
+ function IC(e, t) {
16798
16829
  e.push(` ${t} { * }`);
16799
16830
  }
16800
- function IC(e) {
16831
+ function LC(e) {
16801
16832
  return e == null ? "null" : e.length === 0 ? "empty" : "items";
16802
16833
  }
16803
- function LC(e, t) {
16834
+ function RC(e, t) {
16804
16835
  let n = `DiagramView ${R_(e)} {`, r = (e) => R_(e.name), i = t?.tables?.map((e) => {
16805
16836
  let t = R_(e.name);
16806
16837
  return e.schemaName === "public" ? t : `${R_(e.schemaName)}.${t}`;
16807
16838
  }) ?? [], a = t?.tableGroups?.map(r) ?? [], o = t?.schemas?.map(r) ?? [], s = t?.stickyNotes?.map(r) ?? [];
16808
16839
  if (!t) return `${n}\n}`;
16809
16840
  let c = {
16810
- tables: IC(t.tables),
16811
- tableGroups: IC(t.tableGroups),
16812
- schemas: IC(t.schemas),
16813
- stickyNotes: IC(t.stickyNotes)
16841
+ tables: LC(t.tables),
16842
+ tableGroups: LC(t.tableGroups),
16843
+ schemas: LC(t.schemas),
16844
+ stickyNotes: LC(t.stickyNotes)
16814
16845
  };
16815
16846
  if (Object.values(c).every((e) => e === "null")) return `${n}\n}`;
16816
16847
  if (Object.values(c).every((e) => e === "empty")) return `${n}\n *\n}`;
16817
16848
  let l = c.tables === "items" || c.tableGroups === "items" || c.schemas === "items", u = c.tables === "empty" && c.tableGroups === "empty" && c.schemas === "empty", d = [n];
16818
- return l ? (c.tables === "items" && PC(d, "Tables", i), c.tableGroups === "items" && PC(d, "TableGroups", a), c.schemas === "items" && PC(d, "Schemas", o)) : u && FC(d, "Tables"), c.stickyNotes === "items" ? PC(d, "Notes", s) : c.stickyNotes === "empty" && FC(d, "Notes"), d.push("}"), d.join("\n");
16849
+ return l ? (c.tables === "items" && FC(d, "Tables", i), c.tableGroups === "items" && FC(d, "TableGroups", a), c.schemas === "items" && FC(d, "Schemas", o)) : u && IC(d, "Tables"), c.stickyNotes === "items" ? FC(d, "Notes", s) : c.stickyNotes === "empty" && IC(d, "Notes"), d.push("}"), d.join("\n");
16819
16850
  }
16820
- function RC(e, t, n) {
16821
- let r = this.getSource(e) ?? "", i = n ?? NC(r), a = [];
16851
+ function zC(e, t, n) {
16852
+ let r = this.getSource(e) ?? "", i = n ?? PC(r), a = [];
16822
16853
  for (let e of t) {
16823
- let t = zC(r, e, i);
16854
+ let t = BC(r, e, i);
16824
16855
  a.push(...t);
16825
16856
  }
16826
16857
  return a.sort((e, t) => t.start - e.start), {
16827
- newDbml: aC(r, a, !0),
16858
+ newDbml: oC(r, a, !0),
16828
16859
  edits: a
16829
16860
  };
16830
16861
  }
16831
- function zC(e, t, n) {
16862
+ function BC(e, t, n) {
16832
16863
  switch (t.operation) {
16833
- case "create": return BC(e, t, n);
16834
- case "update": return VC(e, t, n);
16835
- case "delete": return HC(e, t, n);
16864
+ case "create": return VC(e, t, n);
16865
+ case "update": return HC(e, t, n);
16866
+ case "delete": return UC(e, t, n);
16836
16867
  default: return [];
16837
16868
  }
16838
16869
  }
16839
- function BC(e, t, n) {
16840
- if (n.find((e) => e.name === t.name)) return VC(e, t, n);
16841
- let r = "\n\n" + LC(t.name, t.visibleEntities) + "\n";
16870
+ function VC(e, t, n) {
16871
+ if (n.find((e) => e.name === t.name)) return HC(e, t, n);
16872
+ let r = "\n\n" + RC(t.name, t.visibleEntities) + "\n";
16842
16873
  return [{
16843
16874
  start: e.length,
16844
16875
  end: e.length,
16845
16876
  newText: r
16846
16877
  }];
16847
16878
  }
16848
- function VC(e, t, n) {
16879
+ function HC(e, t, n) {
16849
16880
  let r = n.find((e) => e.name === t.name);
16850
16881
  if (!r) return [];
16851
16882
  let i = [];
16852
16883
  if (t.newName || t.visibleEntities) {
16853
- let e = LC(t.newName || t.name, t.visibleEntities);
16884
+ let e = RC(t.newName || t.name, t.visibleEntities);
16854
16885
  i.push({
16855
16886
  start: r.startIndex,
16856
16887
  end: r.endIndex,
@@ -16859,7 +16890,7 @@ function VC(e, t, n) {
16859
16890
  }
16860
16891
  return i;
16861
16892
  }
16862
- function HC(e, t, n) {
16893
+ function UC(e, t, n) {
16863
16894
  let r = n.find((e) => e.name === t.name);
16864
16895
  if (!r) return [];
16865
16896
  let i = r.startIndex, a = r.endIndex;
@@ -16879,25 +16910,25 @@ function HC(e, t, n) {
16879
16910
  }
16880
16911
  //#endregion
16881
16912
  //#region src/core/utils/note.ts
16882
- function UC(e, t) {
16883
- let n = KC(e);
16913
+ function WC(e, t) {
16914
+ let n = qC(e);
16884
16915
  if (n) return {
16885
16916
  start: n.noteValueStart,
16886
16917
  end: n.noteValueEnd,
16887
16918
  newText: K_(t)
16888
16919
  };
16889
16920
  }
16890
- function WC(e) {
16891
- let t = KC(e);
16921
+ function GC(e) {
16922
+ let t = qC(e);
16892
16923
  if (t) return {
16893
16924
  start: t.fullNoteStart,
16894
16925
  end: t.fullNoteEnd,
16895
16926
  newText: ""
16896
16927
  };
16897
16928
  }
16898
- function GC(e, t) {
16899
- if (KC(e) || !(e instanceof z)) return;
16900
- let n = qC(e);
16929
+ function KC(e, t) {
16930
+ if (qC(e) || !(e instanceof z)) return;
16931
+ let n = JC(e);
16901
16932
  if (n !== void 0) return {
16902
16933
  start: n,
16903
16934
  end: n,
@@ -16921,12 +16952,12 @@ function GC(e, t) {
16921
16952
  };
16922
16953
  }
16923
16954
  }
16924
- function KC(e) {
16955
+ function qC(e) {
16925
16956
  if (!(e instanceof z)) return;
16926
16957
  let t = e.body;
16927
16958
  if (t && !(t instanceof H)) for (let e of t.body) {
16928
16959
  if (!(e instanceof z) || !e.isKind(r.Note)) continue;
16929
- let t = JC(e);
16960
+ let t = YC(e);
16930
16961
  if (t) return {
16931
16962
  kind: dm.ELEMENT_DECLARATION,
16932
16963
  noteValueStart: t.start,
@@ -16936,18 +16967,18 @@ function KC(e) {
16936
16967
  };
16937
16968
  }
16938
16969
  let n = e.attributeList ?? (t instanceof H ? t.args.find((e) => e instanceof W) : void 0);
16939
- if (n) return YC(n);
16970
+ if (n) return XC(n);
16940
16971
  }
16941
- function qC(e) {
16972
+ function JC(e) {
16942
16973
  let t = e.body;
16943
16974
  if (!(!t || t instanceof H) && t.blockCloseBrace) return t.blockCloseBrace.start;
16944
16975
  }
16945
- function JC(e) {
16976
+ function YC(e) {
16946
16977
  let t = e.body;
16947
16978
  if (t instanceof H) return t.callee ?? void 0;
16948
16979
  if (t instanceof U && t.body[0] instanceof H) return t.body[0].callee ?? void 0;
16949
16980
  }
16950
- function YC(e) {
16981
+ function XC(e) {
16951
16982
  let t = E(e).getValue()[i.Note];
16952
16983
  if (!t?.length) return;
16953
16984
  let n = t[0];
@@ -16963,23 +16994,23 @@ function YC(e) {
16963
16994
  }
16964
16995
  //#endregion
16965
16996
  //#region src/compiler/queries/transform/syncDep.ts
16966
- function XC(e, t) {
16997
+ function ZC(e, t) {
16967
16998
  let n = this.getSource(e) ?? "", r = [];
16968
- for (let i of t) r.push(...QC(this, e, n, i));
16999
+ for (let i of t) r.push(...$C(this, e, n, i));
16969
17000
  return r.sort((e, t) => t.start - e.start), {
16970
- newDbml: aC(n, r, !0),
17001
+ newDbml: oC(n, r, !0),
16971
17002
  edits: r
16972
17003
  };
16973
17004
  }
16974
- function ZC(e, t) {
16975
- return `Dep [color: ${t}] {\n ${_C(e.upstream)} -> ${_C(e.downstream)}\n}`;
17005
+ function QC(e, t) {
17006
+ return `Dep [color: ${t}] {\n ${vC(e.upstream)} -> ${vC(e.downstream)}\n}`;
16976
17007
  }
16977
- function QC(e, t, n, r) {
16978
- let i = fC(e, t, r.edge);
17008
+ function $C(e, t, n, r) {
17009
+ let i = pC(e, t, r.edge);
16979
17010
  switch (r.operation) {
16980
- case "create": return ew(n, r, i);
16981
- case "update": return i?.kind === "block" ? $C(r, i.declaration, n) : [];
16982
- case "remove": return i?.kind === "block" ? $C({
17011
+ case "create": return tw(n, r, i);
17012
+ case "update": return i?.kind === "block" ? ew(r, i.declaration, n) : [];
17013
+ case "remove": return i?.kind === "block" ? ew({
16983
17014
  ...r,
16984
17015
  color: void 0,
16985
17016
  note: void 0
@@ -16987,24 +17018,24 @@ function QC(e, t, n, r) {
16987
17018
  default: return [];
16988
17019
  }
16989
17020
  }
16990
- function $C(e, t, n) {
17021
+ function ew(e, t, n) {
16991
17022
  let r = [];
16992
17023
  if (e.color !== void 0) {
16993
17024
  let a = Dg(t, i.Color, e.color, n);
16994
17025
  a && r.push(a);
16995
17026
  }
16996
17027
  if (e.note === null) {
16997
- let e = WC(t);
17028
+ let e = GC(t);
16998
17029
  e && r.push(e);
16999
17030
  } else if (e.note !== void 0) {
17000
- let n = UC(t, e.note) ?? GC(t, e.note);
17031
+ let n = WC(t, e.note) ?? KC(t, e.note);
17001
17032
  n && r.push(n);
17002
17033
  }
17003
17034
  return r;
17004
17035
  }
17005
- function ew(e, t, n) {
17006
- if (n?.kind === "block") return $C(t, n.declaration, e);
17007
- let r = ZC(t.edge, t.color ?? ""), i = {
17036
+ function tw(e, t, n) {
17037
+ if (n?.kind === "block") return ew(t, n.declaration, e);
17038
+ let r = QC(t.edge, t.color ?? ""), i = {
17008
17039
  start: e.length,
17009
17040
  end: e.length,
17010
17041
  newText: "\n\n" + r + "\n"
@@ -17017,25 +17048,25 @@ function ew(e, t, n) {
17017
17048
  }
17018
17049
  //#endregion
17019
17050
  //#region src/compiler/index.ts
17020
- var tw = Symbol("COMPUTING"), nw = class {
17051
+ var nw = Symbol("COMPUTING"), rw = class {
17021
17052
  constructor(e) {
17022
- this.layout = e, this.nodeIdGenerator = new um(), this.symbolIdGenerator = new Hp(), this.symbolFactory = new to(this.symbolIdGenerator), this.sourceSnapshot = /* @__PURE__ */ new Map(), this.globalCache = /* @__PURE__ */ new Map(), this.globallyQuerying = !1, this.localCache = /* @__PURE__ */ new Map(), this.parseFile = this.localQuery(YS), this.parseProject = this.globalQuery(XS), this.validateNode = this.localQuery(yy), this.validateFile = this.localQuery(NS), this.nodeFullname = this.localQuery(xy), this.nodeAlias = this.localQuery(Sy), this.nodeSettings = this.localQuery(by), this.canonicalName = this.globalQuery(mS), this.bindNode = this.globalQuery(Ev), this.bindFile = this.globalQuery(kS), this.bindProject = this.globalQuery(AS), this.interpretSymbol = this.globalQuery(Ov), this.interpretMetadata = this.globalQuery(kv), this.interpretFile = this.globalQuery(jS), this.interpretProject = this.globalQuery(MS), this.nodeSymbol = this.globalQuery(Cv), this.nodeMetadata = this.globalQuery(Dv), this.symbolMembers = this.globalQuery(wv), this.symbolMembersLookupMap = this.globalQuery(ZS), this.lookupMembers = this.globalQuery(QS), this.nodeReferee = this.globalQuery(Tv), this.resolutionIndex = this.globalQuery(eC), this.symbolReferences = this.globalQuery(nC), this.symbolParent = this.globalQuery(tC), this.symbolMetadata = this.globalQuery(rC), this.symbolAliases = this.globalQuery($S), this.symbolUses = this.globalQuery(iC), this.fileDependencies = this.localQuery(_S), this.reachableFiles = this.globalQuery(yS), this.usableMembers = this.globalQuery(l_), this.nodeAtPosition = this.localQuery(OS), this.renameTable = TC.bind(this), this.updateElementSetting = kC.bind(this), this.updateElementSettingEdit = OC.bind(this), this.syncDiagramView = RC.bind(this), this.syncDep = XC.bind(this), this.token = {
17023
- invalidStream: this.localQuery(DS),
17024
- flatStream: this.localQuery(ES)
17053
+ this.layout = e, this.nodeIdGenerator = new um(), this.symbolIdGenerator = new Hp(), this.symbolFactory = new to(this.symbolIdGenerator), this.sourceSnapshot = /* @__PURE__ */ new Map(), this.globalCache = /* @__PURE__ */ new Map(), this.globallyQuerying = !1, this.localCache = /* @__PURE__ */ new Map(), this.parseFile = this.localQuery(XS), this.parseProject = this.globalQuery(ZS), this.validateNode = this.localQuery(by), this.validateFile = this.localQuery(PS), this.nodeFullname = this.localQuery(Sy), this.nodeAlias = this.localQuery(Cy), this.nodeSettings = this.localQuery(xy), this.canonicalName = this.globalQuery(hS), this.bindNode = this.globalQuery(Ev), this.bindFile = this.globalQuery(AS), this.bindProject = this.globalQuery(jS), this.interpretSymbol = this.globalQuery(Ov), this.interpretMetadata = this.globalQuery(kv), this.interpretFile = this.globalQuery(MS), this.interpretProject = this.globalQuery(NS), this.nodeSymbol = this.globalQuery(Cv), this.nodeMetadata = this.globalQuery(Dv), this.symbolMembers = this.globalQuery(wv), this.symbolMembersLookupMap = this.globalQuery(QS), this.lookupMembers = this.globalQuery($S), this.nodeReferee = this.globalQuery(Tv), this.resolutionIndex = this.globalQuery(tC), this.symbolReferences = this.globalQuery(rC), this.symbolParent = this.globalQuery(nC), this.symbolMetadata = this.globalQuery(iC), this.symbolAliases = this.globalQuery(eC), this.symbolUses = this.globalQuery(aC), this.fileDependencies = this.localQuery(vS), this.reachableFiles = this.globalQuery(bS), this.usableMembers = this.globalQuery(l_), this.nodeAtPosition = this.localQuery(kS), this.renameTable = EC.bind(this), this.updateElementSetting = AC.bind(this), this.updateElementSettingEdit = kC.bind(this), this.syncDiagramView = zC.bind(this), this.syncDep = ZC.bind(this), this.token = {
17054
+ invalidStream: this.localQuery(OS),
17055
+ flatStream: this.localQuery(DS)
17025
17056
  }, this.parse = {
17026
17057
  source: (e) => this.getSource(e) || "",
17027
- ast: (e = Do) => bS.call(this, e),
17028
- errors: (e = Do) => xS.call(this, e),
17029
- warnings: (e = Do) => SS.call(this, e),
17030
- tokens: (e = Do) => CS.call(this, e),
17031
- rawDb: (e = Do) => wS.call(this, e),
17032
- publicSymbolTable: (e = Do) => TS.call(this, e)
17058
+ ast: (e = Do) => xS.call(this, e),
17059
+ errors: (e = Do) => SS.call(this, e),
17060
+ warnings: (e = Do) => CS.call(this, e),
17061
+ tokens: (e = Do) => wS.call(this, e),
17062
+ rawDb: (e = Do) => TS.call(this, e),
17063
+ publicSymbolTable: (e = Do) => ES.call(this, e)
17033
17064
  }, this.container = {
17034
- stack: this.localQuery(lS),
17035
- token: this.localQuery(uS),
17036
- element: this.localQuery(dS),
17037
- scope: this.localQuery(fS),
17038
- scopeKind: this.localQuery(pS)
17065
+ stack: this.localQuery(uS),
17066
+ token: this.localQuery(dS),
17067
+ element: this.localQuery(fS),
17068
+ scope: this.localQuery(pS),
17069
+ scopeKind: this.localQuery(mS)
17039
17070
  };
17040
17071
  }
17041
17072
  getSource(e) {
@@ -17048,7 +17079,7 @@ var tw = Symbol("COMPUTING"), nw = class {
17048
17079
  cleanStaleGlobalCache() {
17049
17080
  let e = this.layout.getEntrypoints(), t = !1;
17050
17081
  this.entrypointsSnapshot !== void 0 && (this.entrypointsSnapshot.length !== e.length || this.entrypointsSnapshot.some((t, n) => t.absolute !== e[n].absolute)) && (t = !0), this.entrypointsSnapshot = e;
17051
- for (let t of vS(this, e)) this.cleanStaleLocalCache(t);
17082
+ for (let t of yS(this, e)) this.cleanStaleLocalCache(t);
17052
17083
  t && this.globalCache.clear();
17053
17084
  }
17054
17085
  globalQuery(e) {
@@ -17061,10 +17092,10 @@ var tw = Symbol("COMPUTING"), nw = class {
17061
17092
  r || (r = /* @__PURE__ */ new Map(), this.globalCache.set(t, r));
17062
17093
  let i = n.length === 0 ? "" : n.length === 1 ? fh(n[0]) : n.map((e) => fh(e)).join("\0"), a = r.get(i);
17063
17094
  if (a) {
17064
- if (a === tw) throw Error(`Cycle detected in query: ${e.name}(${i})`);
17095
+ if (a === nw) throw Error(`Cycle detected in query: ${e.name}(${i})`);
17065
17096
  return a;
17066
17097
  }
17067
- r.set(i, tw);
17098
+ r.set(i, nw);
17068
17099
  try {
17069
17100
  let t = e.apply(this, n);
17070
17101
  return r.set(i, t), t;
@@ -17086,10 +17117,10 @@ var tw = Symbol("COMPUTING"), nw = class {
17086
17117
  let c = s.get(t);
17087
17118
  if (c || (c = /* @__PURE__ */ new Map(), s.set(t, c)), c.has(o)) {
17088
17119
  let t = c.get(o);
17089
- if (t === tw) throw Error(`Cycle detected in query: ${e.name}(${a}, ${o})`);
17120
+ if (t === nw) throw Error(`Cycle detected in query: ${e.name}(${a}, ${o})`);
17090
17121
  return t;
17091
17122
  }
17092
- c.set(o, tw);
17123
+ c.set(o, nw);
17093
17124
  try {
17094
17125
  let t = e.apply(this, n);
17095
17126
  return c.set(o, t), t;
@@ -17101,14 +17132,14 @@ var tw = Symbol("COMPUTING"), nw = class {
17101
17132
  initMonacoServices(e) {
17102
17133
  let t = e?.autocompletion?.triggerCharacters ?? [];
17103
17134
  return {
17104
- definitionProvider: new Mb(this),
17105
- referenceProvider: new Pb(this),
17106
- autocompletionProvider: new Dx(this, { triggerCharacters: t }),
17107
- diagnosticsProvider: new Nb(this),
17108
- codeActionProvider: new jb(this)
17135
+ definitionProvider: new Nb(this),
17136
+ referenceProvider: new Fb(this),
17137
+ autocompletionProvider: new Ox(this, { triggerCharacters: t }),
17138
+ diagnosticsProvider: new Pb(this),
17139
+ codeActionProvider: new Mb(this)
17109
17140
  };
17110
17141
  }
17111
- }, rw = class e {
17142
+ }, iw = class e {
17112
17143
  constructor(e = {}) {
17113
17144
  this.files = e instanceof Map ? new Map(e) : new Map(Object.entries(e));
17114
17145
  }
@@ -17152,4 +17183,4 @@ var tw = Symbol("COMPUTING"), nw = class {
17152
17183
  }
17153
17184
  };
17154
17185
  //#endregion
17155
- export { Om as ArrayNode, B as AttributeNode, U as BlockExpressionNode, sf as CARDINALITY_MANY, af as CARDINALITY_MAYBE, rf as CARDINALITY_ONE, of as CARDINALITY_SOME, Sm as CallExpressionNode, bm as CommaExpressionNode, T as CompileError, w as CompileErrorCode, nw as Compiler, Y as CompletionItemInsertTextRule, J as CompletionItemKind, jb as DBMLCodeActionProvider, Dx as DBMLCompletionItemProvider, Mb as DBMLDefinitionProvider, Nb as DBMLDiagnosticsProvider, Pb as DBMLReferencesProvider, Do as DEFAULT_ENTRY, z as ElementDeclarationNode, r as ElementKind, Dm as EmptyNode, Cp as FALSY_VALUES, xo as Filepath, H as FunctionApplicationNode, vm as FunctionExpressionNode, xm as GroupExpressionNode, hm as IdentifierStreamNode, gm as InfixExpressionNode, W as ListExpressionNode, Cm as LiteralNode, Ob as MarkerSeverity, rw as MemoryProjectLayout, Um as MetadataKind, _m as PostfixExpressionNode, V as PrefixExpressionNode, Em as PrimaryExpressionNode, R as ProgramNode, Q as ScopeKind, I as SymbolKind, L as SyntaxNode, um as SyntaxNodeIdGenerator, dm as SyntaxNodeKind, Ha as SyntaxToken, _ as SyntaxTokenKind, Sp as TRUTHY_VALUES, ym as TupleExpressionNode, t as UNHANDLED, _b as Uri, fm as UseDeclarationNode, mm as UseSpecifierListNode, pm as UseSpecifierNode, Tm as VariableNode, wm as WildcardNode, R_ as addDoubleQuoteIfNeeded, sS as dbmlLanguageConfig, cS as dbmlMonarchTokensProvider, V_ as escapeString, fp as extractNumericLiteral, yp as extractSignedNumber, NC as findDiagramViewBlocks, H_ as formatRecordValue, uf as getMultiplicities, Wo as getRecordValueType, gf as getRelationshipOp, Vo as isBinaryType, zo as isBooleanType, Ho as isDateTimeType, _p as isEmptyStringLiteral, ff as isEndpointManySide, df as isEndpointOneSide, pf as isEndpointOptional, mf as isEndpointRequired, Lo as isFloatType, vp as isFunctionExpression, Io as isIntegerType, gp as isNullish, Ro as isNumericType, Ba as isOp, Va as isOpToken, Uo as isSerialType, Bo as isStringType, za as isTriviaToken, L_ as isValidIdentifier, _f as makeCardinalityOptional, vf as makeCardinalityRequired, hf as makeRelationshipRequired, z_ as normalizeQualifiedName, Fo as normalizeTypeName, nf as parseCardinality, U_ as splitQualifiedIdentifier, wp as tryExtractBoolean, Ap as tryExtractDateTime, Tp as tryExtractEnum, xp as tryExtractInteger, bp as tryExtractNumeric, Ep as tryExtractString, B_ as unescapeString, bg as validateForeignKeys, ug as validatePrimaryKey, gg as validateUnique };
17186
+ export { Om as ArrayNode, B as AttributeNode, U as BlockExpressionNode, sf as CARDINALITY_MANY, af as CARDINALITY_MAYBE, rf as CARDINALITY_ONE, of as CARDINALITY_SOME, Sm as CallExpressionNode, bm as CommaExpressionNode, T as CompileError, w as CompileErrorCode, rw as Compiler, Y as CompletionItemInsertTextRule, J as CompletionItemKind, Mb as DBMLCodeActionProvider, Ox as DBMLCompletionItemProvider, Nb as DBMLDefinitionProvider, Pb as DBMLDiagnosticsProvider, Fb as DBMLReferencesProvider, Do as DEFAULT_ENTRY, z as ElementDeclarationNode, r as ElementKind, Dm as EmptyNode, Cp as FALSY_VALUES, xo as Filepath, H as FunctionApplicationNode, vm as FunctionExpressionNode, xm as GroupExpressionNode, hm as IdentifierStreamNode, gm as InfixExpressionNode, W as ListExpressionNode, Cm as LiteralNode, kb as MarkerSeverity, iw as MemoryProjectLayout, Um as MetadataKind, _m as PostfixExpressionNode, V as PrefixExpressionNode, Em as PrimaryExpressionNode, R as ProgramNode, Q as ScopeKind, I as SymbolKind, L as SyntaxNode, um as SyntaxNodeIdGenerator, dm as SyntaxNodeKind, Ha as SyntaxToken, _ as SyntaxTokenKind, Sp as TRUTHY_VALUES, ym as TupleExpressionNode, t as UNHANDLED, vb as Uri, fm as UseDeclarationNode, mm as UseSpecifierListNode, pm as UseSpecifierNode, Tm as VariableNode, wm as WildcardNode, R_ as addDoubleQuoteIfNeeded, cS as dbmlLanguageConfig, lS as dbmlMonarchTokensProvider, V_ as escapeString, fp as extractNumericLiteral, yp as extractSignedNumber, PC as findDiagramViewBlocks, H_ as formatRecordValue, uf as getMultiplicities, Wo as getRecordValueType, gf as getRelationshipOp, Vo as isBinaryType, zo as isBooleanType, Ho as isDateTimeType, _p as isEmptyStringLiteral, ff as isEndpointManySide, df as isEndpointOneSide, pf as isEndpointOptional, mf as isEndpointRequired, Lo as isFloatType, vp as isFunctionExpression, Io as isIntegerType, gp as isNullish, Ro as isNumericType, Ba as isOp, Va as isOpToken, Uo as isSerialType, Bo as isStringType, za as isTriviaToken, L_ as isValidIdentifier, _f as makeCardinalityOptional, vf as makeCardinalityRequired, hf as makeRelationshipRequired, z_ as normalizeQualifiedName, Fo as normalizeTypeName, nf as parseCardinality, U_ as splitQualifiedIdentifier, wp as tryExtractBoolean, Ap as tryExtractDateTime, Tp as tryExtractEnum, xp as tryExtractInteger, bp as tryExtractNumeric, Ep as tryExtractString, B_ as unescapeString, bg as validateForeignKeys, ug as validatePrimaryKey, gg as validateUnique };