import { __require as d } from "./map-generator.js";
import { __require as q } from "./parse.js";
import { __require as S } from "./result.js";
import { __require as w } from "./stringify.js";
import { __require as y } from "./warn-once.js";
var o, a;
function M() {
  if (a) return o;
  a = 1;
  let l = d(), c = q();
  const p = S();
  let f = w(), _ = y();
  class s {
    get content() {
      return this.result.css;
    }
    get css() {
      return this.result.css;
    }
    get map() {
      return this.result.map;
    }
    get messages() {
      return [];
    }
    get opts() {
      return this.result.opts;
    }
    get processor() {
      return this.result.processor;
    }
    get root() {
      if (this._root)
        return this._root;
      let r, t = c;
      try {
        r = t(this._css, this._opts);
      } catch (i) {
        this.error = i;
      }
      if (this.error)
        throw this.error;
      return this._root = r, r;
    }
    get [Symbol.toStringTag]() {
      return "NoWorkResult";
    }
    constructor(r, t, i) {
      t = t.toString(), this.stringified = !1, this._processor = r, this._css = t, this._opts = i, this._map = void 0;
      let n, g = f;
      this.result = new p(this._processor, n, this._opts), this.result.css = t;
      let m = this;
      Object.defineProperty(this.result, "root", {
        get() {
          return m.root;
        }
      });
      let e = new l(g, n, this._opts, t);
      if (e.isMap()) {
        let [u, h] = e.generate();
        u && (this.result.css = u), h && (this.result.map = h);
      } else
        e.clearAnnotation(), this.result.css = e.css;
    }
    async() {
      return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
    }
    catch(r) {
      return this.async().catch(r);
    }
    finally(r) {
      return this.async().then(r, r);
    }
    sync() {
      if (this.error) throw this.error;
      return this.result;
    }
    then(r, t) {
      return process.env.NODE_ENV !== "production" && ("from" in this._opts || _(
        "Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
      )), this.async().then(r, t);
    }
    toString() {
      return this._css;
    }
    warnings() {
      return [];
    }
  }
  return o = s, s.default = s, o;
}
export {
  M as __require
};
//# sourceMappingURL=no-work-result.js.map
