var A = Object.defineProperty;
var y = (e, t) => A(e, "name", { value: t, configurable: !0 });
import { ContextTracker as I, ExternalTokenizer as Y, styleTags as j, tags as g, LRParser as U, LRLanguage as z, indentNodeProp as q, foldNodeProp as D, bracketMatchingHandle as M, LanguageSupport as B, syntaxTree as F } from "../../../editor.js";
const b = 1, J = 2, H = 3, K = 4, L = 5, ee = 35, te = 36, Oe = 37, ne = 11, ae = 13;
function re(e) {
  return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
}
y(re, "nameChar");
function le(e) {
  return e == 9 || e == 10 || e == 13 || e == 32;
}
y(le, "isSpace");
let x = null, E = null, G = 0;
function W(e, t) {
  let n = e.pos + t;
  if (E == e && G == n) return x;
  for (; le(e.peek(t)); ) t++;
  let O = "";
  for (; ; ) {
    let a = e.peek(t);
    if (!re(a)) break;
    O += String.fromCharCode(a), t++;
  }
  return E = e, G = n, x = O || null;
}
y(W, "tagNameAfter");
function R(e, t) {
  this.name = e, this.parent = t, this.hash = t ? t.hash : 0;
  for (let n = 0; n < e.length; n++) this.hash += (this.hash << 4) + e.charCodeAt(n) + (e.charCodeAt(n) << 8);
}
y(R, "ElementContext");
const oe = new I({
  start: null,
  shift(e, t, n, O) {
    return t == b ? new R(W(O, 1) || "", e) : e;
  },
  reduce(e, t) {
    return t == ne && e ? e.parent : e;
  },
  reuse(e, t, n, O) {
    let a = t.type.id;
    return a == b || a == ae ? new R(W(O, 1) || "", e) : e;
  },
  hash(e) {
    return e ? e.hash : 0;
  },
  strict: !1
}), se = new Y((e, t) => {
  if (e.next == 60) {
    if (e.advance(), e.next == 47) {
      e.advance();
      let n = W(e, 0);
      if (!n) return e.acceptToken(L);
      if (t.context && n == t.context.name) return e.acceptToken(J);
      for (let O = t.context; O; O = O.parent) if (O.name == n) return e.acceptToken(H, -2);
      e.acceptToken(K);
    } else if (e.next != 33 && e.next != 63)
      return e.acceptToken(b);
  }
}, { contextual: !0 });
function X(e, t) {
  return new Y((n) => {
    let O = 0, a = t.charCodeAt(0);
    e: for (; !(n.next < 0); n.advance(), O++)
      if (n.next == a) {
        for (let r = 1; r < t.length; r++)
          if (n.peek(r) != t.charCodeAt(r)) continue e;
        break;
      }
    O && n.acceptToken(e);
  });
}
y(X, "scanTo");
const ie = X(ee, "-->"), ye = X(te, "?>"), $e = X(Oe, "]]>"), ge = j({
  Text: g.content,
  "StartTag StartCloseTag EndTag SelfCloseEndTag": g.angleBracket,
  TagName: g.tagName,
  "MismatchedCloseTag/Tagname": [g.tagName, g.invalid],
  AttributeName: g.attributeName,
  AttributeValue: g.attributeValue,
  Is: g.definitionOperator,
  "EntityReference CharacterReference": g.character,
  Comment: g.blockComment,
  ProcessingInst: g.processingInstruction,
  DoctypeDecl: g.documentMeta,
  Cdata: g.special(g.string)
}), me = U.deserialize({
  version: 14,
  states: ",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$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!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",
  nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
  maxTerm: 47,
  context: oe,
  nodeProps: [
    ["closedBy", 1, "SelfCloseEndTag EndTag", 13, "CloseTag MissingCloseTag"],
    ["openedBy", 12, "StartTag StartCloseTag", 19, "OpenTag", 20, "StartTag"],
    ["isolate", -6, 13, 18, 19, 21, 22, 24, ""]
  ],
  propSources: [ge],
  skippedNodes: [0],
  repeatNodeCount: 8,
  tokenData: "Jy~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O,^!O!P$n!P!Q.m!Q![$n![!]0V!]!^$n!^!_3h!_!`El!`!aF_!a!bGQ!b!c$n!c!}0V!}#P$n#P#QHj#Q#R$n#R#S0V#S#T$n#T#o0V#o%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U$n4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^ast)c![!]*g!c!}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T%y#T#U@l#U;'S%y;'S;=`&_<%lO%yX@qV{WOr%ysv%yw#h%y#h#iAW#i;'S%y;'S;=`&_<%lO%yXA]V{WOr%ysv%yw#T%y#T#U>d#U;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#c%y#c#dB^#d;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#V%y#V#WBx#W;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#h%y#h#iCd#i;'S%y;'S;=`&_<%lO%yXCiV{WOr%ysv%yw#m%y#m#nDO#n;'S%y;'S;=`&_<%lO%yXDTV{WOr%ysv%yw#d%y#d#eDj#e;'S%y;'S;=`&_<%lO%yXDoV{WOr%ysv%yw#X%y#X#Y9i#Y;'S%y;'S;=`&_<%lO%yXE]T!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZEuWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",
  tokenizers: [se, ie, ye, $e, 0, 1, 2, 3],
  topRules: { Document: [0, 6] },
  tokenPrec: 0
});
function P(e, t) {
  let n = t && t.getChild("TagName");
  return n ? e.sliceString(n.from, n.to) : "";
}
y(P, "tagName");
function _(e, t) {
  let n = t && t.firstChild;
  return !n || n.name != "OpenTag" ? "" : P(e, n);
}
y(_, "elementName");
function ce(e, t, n) {
  let O = t && t.getChildren("Attribute").find((r) => r.from <= n && r.to >= n), a = O && O.getChild("AttributeName");
  return a ? e.sliceString(a.from, a.to) : "";
}
y(ce, "attrName");
function v(e) {
  for (let t = e && e.parent; t; t = t.parent)
    if (t.name == "Element")
      return t;
  return null;
}
y(v, "findParentElement");
function Se(e, t) {
  var n;
  let O = F(e).resolveInner(t, -1), a = null;
  for (let r = O; !a && r.parent; r = r.parent)
    (r.name == "OpenTag" || r.name == "CloseTag" || r.name == "SelfClosingTag" || r.name == "MismatchedCloseTag") && (a = r);
  if (a && (a.to > t || a.lastChild.type.isError)) {
    let r = a.parent;
    if (O.name == "TagName")
      return a.name == "CloseTag" || a.name == "MismatchedCloseTag" ? { type: "closeTag", from: O.from, context: r } : { type: "openTag", from: O.from, context: v(r) };
    if (O.name == "AttributeName")
      return { type: "attrName", from: O.from, context: a };
    if (O.name == "AttributeValue")
      return { type: "attrValue", from: O.from, context: a };
    let i = O == a || O.name == "Attribute" ? O.childBefore(t) : O;
    return (i == null ? void 0 : i.name) == "StartTag" ? { type: "openTag", from: t, context: v(r) } : (i == null ? void 0 : i.name) == "StartCloseTag" && i.to <= t ? { type: "closeTag", from: t, context: r } : (i == null ? void 0 : i.name) == "Is" ? { type: "attrValue", from: t, context: a } : i ? { type: "attrName", from: t, context: a } : null;
  } else if (O.name == "StartCloseTag")
    return { type: "closeTag", from: t, context: O.parent };
  for (; O.parent && O.to == t && !(!((n = O.lastChild) === null || n === void 0) && n.type.isError); )
    O = O.parent;
  return O.name == "Element" || O.name == "Text" || O.name == "Document" ? { type: "tag", from: t, context: O.name == "Element" ? O : v(O) } : null;
}
y(Se, "findLocation");
const Q = class Q {
  constructor(t, n, O) {
    this.attrs = n, this.attrValues = O, this.children = [], this.name = t.name, this.completion = Object.assign(Object.assign({ type: "type" }, t.completion || {}), { label: this.name }), this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name }), this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 }), this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" }), this.text = t.textContent ? t.textContent.map((a) => ({ label: a, type: "text" })) : [];
  }
};
y(Q, "Element");
let w = Q;
const C = /^[:\-\.\w\u00b7-\uffff]*$/;
function k(e) {
  return Object.assign(Object.assign({ type: "property" }, e.completion || {}), { label: e.name });
}
y(k, "attrCompletion");
function Z(e) {
  return typeof e == "string" ? { label: `"${e}"`, type: "constant" } : /^"/.test(e.label) ? e : Object.assign(Object.assign({}, e), { label: `"${e.label}"` });
}
y(Z, "valueCompletion");
function ue(e, t) {
  let n = [], O = [], a = /* @__PURE__ */ Object.create(null);
  for (let l of t) {
    let m = k(l);
    n.push(m), l.global && O.push(m), l.values && (a[l.name] = l.values.map(Z));
  }
  let r = [], i = [], f = /* @__PURE__ */ Object.create(null);
  for (let l of e) {
    let m = O, o = a;
    l.attributes && (m = m.concat(l.attributes.map((c) => typeof c == "string" ? n.find((d) => d.label == c) || { label: c, type: "property" } : (c.values && (o == a && (o = Object.create(o)), o[c.name] = c.values.map(Z)), k(c)))));
    let u = new w(l, m, o);
    f[u.name] = u, r.push(u), l.top && i.push(u);
  }
  i.length || (i = r);
  for (let l = 0; l < r.length; l++) {
    let m = e[l], o = r[l];
    if (m.children)
      for (let u of m.children)
        f[u] && o.children.push(f[u]);
    else
      o.children = r;
  }
  return (l) => {
    var m;
    let { doc: o } = l.state, u = Se(l.state, l.pos);
    if (!u || u.type == "tag" && !l.explicit)
      return null;
    let { type: c, from: d, context: p } = u;
    if (c == "openTag") {
      let s = i, $ = _(o, p);
      if ($) {
        let S = f[$];
        s = (S == null ? void 0 : S.children) || r;
      }
      return {
        from: d,
        options: s.map((S) => S.completion),
        validFor: C
      };
    } else if (c == "closeTag") {
      let s = _(o, p);
      return s ? {
        from: d,
        to: l.pos + (o.sliceString(l.pos, l.pos + 1) == ">" ? 1 : 0),
        options: [((m = f[s]) === null || m === void 0 ? void 0 : m.closeNameCompletion) || { label: s + ">", type: "type" }],
        validFor: C
      } : null;
    } else if (c == "attrName") {
      let s = f[P(o, p)];
      return {
        from: d,
        options: (s == null ? void 0 : s.attrs) || O,
        validFor: C
      };
    } else if (c == "attrValue") {
      let s = ce(o, p, d);
      if (!s)
        return null;
      let $ = f[P(o, p)], S = (($ == null ? void 0 : $.attrValues) || a)[s];
      return !S || !S.length ? null : {
        from: d,
        to: l.pos + (o.sliceString(l.pos, l.pos + 1) == '"' ? 1 : 0),
        options: S,
        validFor: /^"[^"]*"?$/
      };
    } else if (c == "tag") {
      let s = _(o, p), $ = f[s], S = [], V = p && p.lastChild;
      s && (!V || V.name != "CloseTag" || P(o, V) != s) && S.push($ ? $.closeCompletion : { label: "</" + s + ">", type: "type", boost: 2 });
      let h = S.concat((($ == null ? void 0 : $.children) || (p ? r : i)).map((T) => T.openCompletion));
      if (p && ($ != null && $.text.length)) {
        let T = p.firstChild;
        T.to > l.pos - 20 && !/\S/.test(l.state.sliceDoc(T.to, l.pos)) && (h = h.concat($.text));
      }
      return {
        from: d,
        options: h,
        validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
      };
    } else
      return null;
  };
}
y(ue, "completeFromSchema");
const N = /* @__PURE__ */ z.define({
  name: "xml",
  parser: /* @__PURE__ */ me.configure({
    props: [
      /* @__PURE__ */ q.add({
        Element(e) {
          let t = /^\s*<\//.test(e.textAfter);
          return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
        },
        "OpenTag CloseTag SelfClosingTag"(e) {
          return e.column(e.node.from) + e.unit;
        }
      }),
      /* @__PURE__ */ D.add({
        Element(e) {
          let t = e.firstChild, n = e.lastChild;
          return !t || t.name != "OpenTag" ? null : { from: t.to, to: n.name == "CloseTag" ? n.from : e.to };
        }
      }),
      /* @__PURE__ */ M.add({
        "OpenTag CloseTag": /* @__PURE__ */ y((e) => e.getChild("TagName"), "OpenTag CloseTag")
      })
    ]
  }),
  languageData: {
    commentTokens: { block: { open: "<!--", close: "-->" } },
    indentOnInput: /^\s*<\/$/
  }
});
function de(e = {}) {
  return new B(N, N.data.of({
    autocomplete: ue(e.elements || [], e.attributes || [])
  }));
}
y(de, "xml");
export {
  ue as completeFromSchema,
  de as xml,
  N as xmlLanguage
};
