"use strict";const h=require("../../../../../../../_virtual/node.js");require("../util/index.js");const v=require("../../../../../../../_virtual/index41.js");(function(p,a){a.__esModule=!0,a.default=void 0;var u=v.__exports;function c(i,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}function l(i,r,t){return r&&c(i.prototype,r),t&&c(i,t),i}var d=function i(r,t){if(typeof r!="object"||r===null)return r;var e=new r.constructor;for(var s in r)if(!!r.hasOwnProperty(s)){var n=r[s],f=typeof n;s==="parent"&&f==="object"?t&&(e[s]=t):n instanceof Array?e[s]=n.map(function(o){return i(o,e)}):e[s]=i(n,e)}return e},w=function(){function i(t){t===void 0&&(t={}),Object.assign(this,t),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var r=i.prototype;return r.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},r.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},r.next=function(){return this.parent.at(this.parent.index(this)+1)},r.prev=function(){return this.parent.at(this.parent.index(this)-1)},r.clone=function(e){e===void 0&&(e={});var s=d(this);for(var n in e)s[n]=e[n];return s},r.appendToPropertyAndEscape=function(e,s,n){this.raws||(this.raws={});var f=this[e],o=this.raws[e];this[e]=f+s,o||n!==s?this.raws[e]=(o||f)+n:delete this.raws[e]},r.setPropertyAndEscape=function(e,s,n){this.raws||(this.raws={}),this[e]=s,this.raws[e]=n},r.setPropertyWithoutEscape=function(e,s){this[e]=s,this.raws&&delete this.raws[e]},r.isAtPosition=function(e,s){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e||this.source.end.line<e||this.source.start.line===e&&this.source.start.column>s||this.source.end.line===e&&this.source.end.column<s)},r.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},r.valueToString=function(){return String(this.stringifyProperty("value"))},r.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},l(i,[{key:"rawSpaceBefore",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return e===void 0&&(e=this.spaces&&this.spaces.before),e||""},set:function(e){(0,u.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=e}},{key:"rawSpaceAfter",get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return e===void 0&&(e=this.spaces.after),e||""},set:function(e){(0,u.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=e}}]),i}();a.default=w,p.exports=a.default})(h.node,h.node.exports);
//# sourceMappingURL=node.js.map
