import{__module as e}from"../../../../_virtual/namespace.mjs";import{__require as t}from"../../../cssesc/cssesc.mjs";import{__require as r}from"../util/index.mjs";import{__require as n}from"./node.mjs";var a;function i(){return a||(a=1,function(e,a){a.__esModule=!0,a.default=void 0;var i=o(t()),s=r();function o(e){return e&&e.__esModule?e:{default:e}}function u(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}var p=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,c(t,r);var a=n.prototype;return a.qualifiedName=function(e){return this.namespace?this.namespaceString+"|"+e:e},a.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},u(n,[{key:"namespace",get:function(){return this._namespace},set:function(e){if(!0===e||"*"===e||"&"===e)return this._namespace=e,void(this.raws&&delete this.raws.namespace);var t=(0,i.default)(e,{isIdentifier:!0});this._namespace=e,t!==e?((0,s.ensureObject)(this,"raws"),this.raws.namespace=t):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:"namespaceString",get:function(){if(this.namespace){var e=this.stringifyProperty("namespace");return!0===e?"":e}return""}}]),n}(o(n()).default);a.default=p,e.exports=a.default}(e,e.exports)),e.exports}export{i as __require};