!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(r=r||self).RtlCssJs=t()}(this,(function(){"use strict";function r(r){return r.reduce((function(r,t){var e=t[0],o=t[1];return r[e]=o,r[o]=e,r}),{})}function t(r){return"number"==typeof r}function e(r,t){return-1!==r.indexOf(t)}function o(r,t,e,o){return t+(n=e,0===parseFloat(n)?n:"-"===n[0]?n.slice(1):"-"+n)+o;var n}function n(r){return r.replace(/ +/g," ").split(" ").map((function(r){return r.trim()})).filter(Boolean).reduce((function(r,t){var e=r.list,o=r.state,n=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return o.parensDepth>0?e[e.length-1]=e[e.length-1]+" "+t:e.push(t),o.parensDepth+=n-i,{list:e,state:o}}),{list:[],state:{parensDepth:0}}).list}function i(r){var t=n(r);if(t.length<=3||t.length>4)return r;var e=t[0],o=t[1],i=t[2];return[e,t[3],i,o].join(" ")}var a={padding:function(r){var e=r.value;return t(e)?e:i(e)},textShadow:function(r){return function(r){for(var t=[],e=0,o=0,n=!1;o