{"ast":null,"code":"'use strict';\n\nlet Container = require('./container');\nlet LazyResult, Processor;\nclass Root extends Container {\n  constructor(defaults) {\n    super(defaults);\n    this.type = 'root';\n    if (!this.nodes) this.nodes = [];\n  }\n  normalize(child, sample, type) {\n    let nodes = super.normalize(child);\n    if (sample) {\n      if (type === 'prepend') {\n        if (this.nodes.length > 1) {\n          sample.raws.before = this.nodes[1].raws.before;\n        } else {\n          delete sample.raws.before;\n        }\n      } else if (this.first !== sample) {\n        for (let node of nodes) {\n          node.raws.before = sample.raws.before;\n        }\n      }\n    }\n    return nodes;\n  }\n  removeChild(child, ignore) {\n    let index = this.index(child);\n    if (!ignore && index === 0 && this.nodes.length > 1) {\n      this.nodes[1].raws.before = this.nodes[index].raws.before;\n    }\n    return super.removeChild(child);\n  }\n  toResult(opts = {}) {\n    let lazy = new LazyResult(new Processor(), this, opts);\n    return lazy.stringify();\n  }\n}\nRoot.registerLazyResult = dependant => {\n  LazyResult = dependant;\n};\nRoot.registerProcessor = dependant => {\n  Processor = dependant;\n};\nmodule.exports = Root;\nRoot.default = Root;\nContainer.registerRoot(Root);","map":{"version":3,"names":["Container","require","LazyResult","Processor","Root","constructor","defaults","type","nodes","normalize","child","sample","length","raws","before","first","node","removeChild","ignore","index","toResult","opts","lazy","stringify","registerLazyResult","dependant","registerProcessor","module","exports","default","registerRoot"],"sources":["C:/Users/user/Desktop/000newport/node_modules/postcss/lib/root.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Root extends Container {\n  constructor(defaults) {\n    super(defaults)\n    this.type = 'root'\n    if (!this.nodes) this.nodes = []\n  }\n\n  normalize(child, sample, type) {\n    let nodes = super.normalize(child)\n\n    if (sample) {\n      if (type === 'prepend') {\n        if (this.nodes.length > 1) {\n          sample.raws.before = this.nodes[1].raws.before\n        } else {\n          delete sample.raws.before\n        }\n      } else if (this.first !== sample) {\n        for (let node of nodes) {\n          node.raws.before = sample.raws.before\n        }\n      }\n    }\n\n    return nodes\n  }\n\n  removeChild(child, ignore) {\n    let index = this.index(child)\n\n    if (!ignore && index === 0 && this.nodes.length > 1) {\n      this.nodes[1].raws.before = this.nodes[index].raws.before\n    }\n\n    return super.removeChild(child)\n  }\n\n  toResult(opts = {}) {\n    let lazy = new LazyResult(new Processor(), this, opts)\n    return lazy.stringify()\n  }\n}\n\nRoot.registerLazyResult = dependant => {\n  LazyResult = dependant\n}\n\nRoot.registerProcessor = dependant => {\n  Processor = dependant\n}\n\nmodule.exports = Root\nRoot.default = Root\n\nContainer.registerRoot(Root)\n"],"mappings":"AAAA,YAAY;;AAEZ,IAAIA,SAAS,GAAGC,OAAO,CAAC,aAAa,CAAC;AAEtC,IAAIC,UAAU,EAAEC,SAAS;AAEzB,MAAMC,IAAI,SAASJ,SAAS,CAAC;EAC3BK,WAAWA,CAACC,QAAQ,EAAE;IACpB,KAAK,CAACA,QAAQ,CAAC;IACf,IAAI,CAACC,IAAI,GAAG,MAAM;IAClB,IAAI,CAAC,IAAI,CAACC,KAAK,EAAE,IAAI,CAACA,KAAK,GAAG,EAAE;EAClC;EAEAC,SAASA,CAACC,KAAK,EAAEC,MAAM,EAAEJ,IAAI,EAAE;IAC7B,IAAIC,KAAK,GAAG,KAAK,CAACC,SAAS,CAACC,KAAK,CAAC;IAElC,IAAIC,MAAM,EAAE;MACV,IAAIJ,IAAI,KAAK,SAAS,EAAE;QACtB,IAAI,IAAI,CAACC,KAAK,CAACI,MAAM,GAAG,CAAC,EAAE;UACzBD,MAAM,CAACE,IAAI,CAACC,MAAM,GAAG,IAAI,CAACN,KAAK,CAAC,CAAC,CAAC,CAACK,IAAI,CAACC,MAAM;QAChD,CAAC,MAAM;UACL,OAAOH,MAAM,CAACE,IAAI,CAACC,MAAM;QAC3B;MACF,CAAC,MAAM,IAAI,IAAI,CAACC,KAAK,KAAKJ,MAAM,EAAE;QAChC,KAAK,IAAIK,IAAI,IAAIR,KAAK,EAAE;UACtBQ,IAAI,CAACH,IAAI,CAACC,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