import{__require as r}from"./at-rule.mjs";import{__require as e}from"./comment.mjs";import{__require as t}from"./declaration.mjs";import{__require as o}from"./input.mjs";import{__require as u}from"./previous-map.mjs";import{__require as i}from"./root.mjs";import{__require as n}from"./rule.mjs";var p,m;function s(){if(m)return p;m=1;let s=r(),_=e(),a=t(),f=o(),l=u(),y=i(),c=n();function d(r,e){if(Array.isArray(r))return r.map(r=>d(r));let{inputs:t,...o}=r;if(t){e=[];for(let r of t){let t={...r,__proto__:f.prototype};t.map&&(t.map={...t.map,__proto__:l.prototype}),e.push(t)}}if(o.nodes&&(o.nodes=r.nodes.map(r=>d(r,e))),o.source){let{inputId:r,...t}=o.source;o.source=t,null!=r&&(o.source.input=e[r])}if("root"===o.type)return new y(o);if("decl"===o.type)return new a(o);if("rule"===o.type)return new c(o);if("comment"===o.type)return new _(o);if("atrule"===o.type)return new s(o);throw new Error("Unknown node type: "+r.type)}return p=d,d.default=d,p}export{s as __require};