text: !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.rtlCSSJSCore={})}(this,function(e){"use strict";function r(e){return"number"==typeof e}function t(e,r){return-1!==e.indexOf(r)}function n(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function o(e,r,t,o){return r+n(t)+o}function a(e){var r=e.indexOf(".");if(-1===r)e=100-parseFloat(e)+"%";else{var t=e.length-r-2;e=(e=100-parseFloat(e)).toFixed(t)+"%"}return e}function i(e){return e.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var t=e.list,n=e.state,o=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?t[t.length-1]=t[t.length-1]+" "+r:t.push(r),n.parensDepth+=o-a,{list:t,state:n}},{list:[],state:{parensDepth:0}}).list}function u(e){var r=i(e);if(r.length<=3||r.length>4)return e;var t=l(r,4),n=t[0],o=t[1],a=t[2];return[n,t[3],a,o].join(" ")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,r){var t=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(t.push(i.value),!r||t.length!==r);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c={padding:function(e){var t=e.value;return r(t)?t:u(t)},textShadow:function(e){return e.value.replace(/(-*)([.|\d]+)/,function(e,r,t){return"0"===t?e:""+(""===r?"-":"")+t})},borderColor:function(e){return u(e.value)},borderRadius:function(e){var n=e.value;if(r(n))return n;if(t(n,"/")){var o=n.split("/"),a=l(o,2),u=a[0],s=a[1];return c.borderRadius({value:u.trim()})+" / "+c.borderRadius({value:s.trim()})}var d=i(n);switch(d.length){case 2:return d.reverse().join(" ");case 4:var f=l(d,4),g=f[0],b=f[1],p=f[2];return[b,g,f[3],p].join(" ");default:return n}},background:function(e){var r=e.value,t=e.valuesToConvert,n=e.isRtl,o=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex,i=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(i,c.backgroundPosition({value:i,valuesToConvert:t,isRtl:n,bgPosDirectionRegex:a})),c.backgroundImage({value:r,valuesToConvert:t,bgImgDirectionRegex:o})},backgroundImage:function(e){var r=e.value,n=e.valuesToConvert,o=e.bgImgDirectionRegex;return t(r,"url(")||t(r,"linear-gradient(")?r.replace(o,function(e,r,t){return e.replace(t,n[t])}):r},backgroundPosition:function(e){var r=e.value,t=e.valuesToConvert,n=e.isRtl,o=e.bgPosDirectionRegex;return r.replace(n?/^((-|\d|\.)+%)/:null,function(e,r){return a(r)}).replace(o,function(e){return t[e]})},backgroundPositionX:function(e){var t=e.value,n=e.valuesToConvert,o=e.isRtl,a=e.bgPosDirectionRegex;return r(t)?t:c.backgroundPosition({value:t,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:a})},transform:function(e){var r=e.value,t="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+t+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+t+")*)?)|(?:inherit|auto))",a=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi");return r.replace(a,o).replace(i,o).replace(u,o)}};c.margin=c.padding,c.borderWidth=c.padding,c.boxShadow=c.textShadow,c.webkitBoxShadow=c.textShadow,c.mozBoxShadow=c.textShadow,c.borderStyle=c.borderColor,c.webkitTransform=c.transform,c.mozTransform=c.transform,c["text-shadow"]=c.textShadow,c["border-color"]=c.borderColor,c["border-radius"]=c.borderRadius,c["background-image"]=c.backgroundImage,c["background-position"]=c.backgroundPosition,c["background-position-x"]=c.backgroundPositionX,c["border-width"]=c.padding,c["box-shadow"]=c.textShadow,c["-webkit-box-shadow"]=c.textShadow,c["-moz-box-shadow"]=c.textShadow,c["border-style"]=c.borderColor,c["-webkit-transform"]=c.transform,c["-moz-transform"]=c.transform,e.propertyValueConverters=c,e.arrayToObject=function(e){return e.reduce(function(e,r){var t=l(r,2),n=t[0],o=t[1];return e[n]=o,e[o]=n,e},{})},e.calculateNewBackgroundPosition=a,e.calculateNewTranslate=o,e.flipSign=n,e.handleQuartetValues=u,e.includes=t,e.isBoolean=function(e){return"boolean"==typeof e},e.isNullOrUndefined=function(e){return null===e||void 0===e},e.isNumber=r,e.isObject=function(e){return e&&"object"===(void 0===e?"undefined":s(e))},e.isString=function(e){return"string"==typeof e},e.getValuesAsList=i,Object.defineProperty(e,"__esModule",{value:!0})});
  