"use strict";const v=require("../../../../../../../_virtual/stringifier.js");require("./reducer.js");const p=require("../../../../../../../_virtual/reducer.js");(function(c,l){Object.defineProperty(l,"__esModule",{value:!0}),l.default=function(r,e,t){var a=u(e,t);return e.type==="MathExpression"&&(a=r+"("+a+")"),a};var o=p.__exports,s={"*":0,"/":0,"+":1,"-":1};function n(r,e){if(e!==!1){var t=Math.pow(10,e);return Math.round(r*t)/t}return r}function u(r,e){switch(r.type){case"MathExpression":{var t=r.left,a=r.right,f=r.operator,i="";return t.type==="MathExpression"&&s[f]<s[t.operator]?i+="("+u(t,e)+")":i+=u(t,e),i+=" "+r.operator+" ",a.type==="MathExpression"&&s[f]<s[a.operator]?i+="("+u(a,e)+")":(a.type==="MathExpression"&&f==="-"&&["+","-"].includes(a.operator)&&(a.operator=(0,o.flip)(a.operator)),i+=u(a,e)),i}case"Value":return n(r.value,e);case"CssVariable":return r.fallback?"var("+r.value+", "+u(r.fallback,e)+")":"var("+r.value+")";case"Calc":return r.prefix?"-"+r.prefix+"-calc("+u(r.value,e)+")":"calc("+u(r.value,e)+")";default:return n(r.value,e)+r.unit}}c.exports=l.default})(v.stringifier,v.stringifier.exports);
//# sourceMappingURL=stringifier.js.map
