var e,r;function t(){return r?e:(r=1,e=function(e){const r=[];let t={};const s=[{mode:"normal",character:null}];let n=null,c=0;for(let a=0;a<e.length;a++){const o=e[a],i=a>0?e[a-1]:null,u=a+1<e.length?e[a+1]:null,l=s.length-1,h=s[l]&&s[l].mode;switch(o){case'"':case"'":if("comment"===h)break;"string"===h&&s[l].character===o&&"\\"!==i?s.pop():s.push({mode:"string",character:o});break;case"(":{if("comment"===h||"string"===h)break;const r=/(?:^|[\n\r]|\s-|[:\s,.(){}*+/%])([\w-]*)$/.exec(e.substring(0,a));if(!r){s.push({mode:"parens",character:"("});break}const t=r[1];s.push({mode:"url"===t?"url":"parens",character:"("});break}case")":if("comment"===h||"string"===h)break;s.pop();break;case"/":if("comment"===h||"string"===h)break;if("*"===u)s.push({mode:"comment",character:"/*"}),t={type:"css",source:{start:a+c},inlineAfter:a>0&&-1===e.substring(0,a).search(/\n\s*$/)},n=a,a++;else if("/"===u){if("url"===h)break;s.push({mode:"comment",character:"//"}),t={type:"double-slash",source:{start:a+c},inlineAfter:a>0&&-1===e.substring(0,a).search(/\n\s*$/)},n=a,a++}break;case"*":if("comment"===h&&"/*"===s[l].character&&"/"===u){t.source.end=a+1+c;const o=e.substring(n,a+2),i=/^(\/\*+[!#]?)(\s*)([\s\S]*?)(\s*)(\*+\/)$/.exec(o);s.pop(),t.raws={startToken:i[1],left:i[2],text:o,right:i[4],endToken:i[5]},t.text=i[3],t.inlineBefore=-1!==e.substring(a+2).search(/^\s*\S+\s*?\n/),r.push(Object.assign({},t)),t={},a++}break;default:{const i="\r"===o&&"\n"===e[a+1]||"\n"===o&&"\r"!==e[a-1];if((i||a===e.length-1)&&"comment"===h&&"//"===s[l].character){t.source.end=(i?a-1:a)+c;const o=e.substring(n,i?a:a+1),u=/^(\/+)(\s*)(.*?)(\s*)$/.exec(o);s.pop(),t.raws={startToken:u[1],left:u[2],text:o,right:u[4]},t.text=u[3],t.inlineBefore=!1,r.push(Object.assign({},t)),t={},c+=2}break}}}return r})}export{t as __require};