import { n as c } from "../../../../../../../_virtual/namespace.js";
import v from "../../../../../cssesc@3.0.0/node_modules/cssesc/cssesc.js";
import "../util/index.js";
import "./node.js";
import { __exports as d } from "../../../../../../../_virtual/index41.js";
import { n as w } from "../../../../../../../_virtual/node.js";
(function(p, a) {
  a.__esModule = !0, a.default = void 0;
  var l = f(v), m = d, _ = f(w.exports);
  function f(e) {
    return e && e.__esModule ? e : { default: e };
  }
  function s(e, n) {
    for (var i = 0; i < n.length; i++) {
      var t = n[i];
      t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t);
    }
  }
  function h(e, n, i) {
    return n && s(e.prototype, n), i && s(e, i), e;
  }
  function y(e, n) {
    e.prototype = Object.create(n.prototype), e.prototype.constructor = e, u(e, n);
  }
  function u(e, n) {
    return u = Object.setPrototypeOf || function(t, r) {
      return t.__proto__ = r, t;
    }, u(e, n);
  }
  var g = /* @__PURE__ */ function(e) {
    y(n, e);
    function n() {
      return e.apply(this, arguments) || this;
    }
    var i = n.prototype;
    return i.qualifiedName = function(r) {
      return this.namespace ? this.namespaceString + "|" + r : r;
    }, i.valueToString = function() {
      return this.qualifiedName(e.prototype.valueToString.call(this));
    }, h(n, [{
      key: "namespace",
      get: function() {
        return this._namespace;
      },
      set: function(r) {
        if (r === !0 || r === "*" || r === "&") {
          this._namespace = r, this.raws && delete this.raws.namespace;
          return;
        }
        var o = (0, l.default)(r, {
          isIdentifier: !0
        });
        this._namespace = r, o !== r ? ((0, m.ensureObject)(this, "raws"), this.raws.namespace = o) : this.raws && delete this.raws.namespace;
      }
    }, {
      key: "ns",
      get: function() {
        return this._namespace;
      },
      set: function(r) {
        this.namespace = r;
      }
    }, {
      key: "namespaceString",
      get: function() {
        if (this.namespace) {
          var r = this.stringifyProperty("namespace");
          return r === !0 ? "" : r;
        } else
          return "";
      }
    }]), n;
  }(_.default);
  a.default = g, p.exports = a.default;
})(c, c.exports);
//# sourceMappingURL=namespace.js.map
