!function(){function r(r){if(-1===r.indexOf("\\f"))return r;for(var t in s)if(r.indexOf(t)>-1)return r.replace(t,s[t]);return r}function t(r,t){return(t=r.trim().split(/\s+/))&&4==t.length?[t[0],t[3],t[2],t[1]].join(" "):r}function e(r){var t=r.trim().split(/\s+/);return t&&4==t.length?[t[1],t[0],t[3],t[2]].join(" "):t&&3==t.length?[t[1],t[0],t[1],t[2]].join(" "):r}function n(r){return r.match(/ltr/)?"rtl":r.match(/rtl/)?"ltr":r}function i(r){var t=0,e=0;arr=[];for(var n=0;n<r.length;++n){var i=r[n];t+="("==i?1:")"==i?-1:0,(","==i&&0===t||n==r.length-1)&&(arr.push(r.substr(e,n-e+1).trim().trimComma().trim()),e=n+1)}return arr}function f(r){return r.match(/left/)?"right":r.match(/right/)?"left":r}function o(r){r.match(/\bleft\b/)?r=r.replace(/\bleft\b/,"right"):r.match(/\bright\b/)&&(r=r.replace(/\bright\b/,"left"));var t=r.trim().split(/\s+/);if(t&&1==t.length&&r.match(/(\d+)([a-z]{2}|%)/)&&(r="right "+r),t&&2==t.length&&t[0].match(/\d+%/)&&(r=100-parseInt(t[0],10)+"% "+t[1]),pxmatch=t[0].match(/(\-?\d+)px/),t&&2==t.length&&pxmatch){var e=pxmatch[1],n="0"==e?"0":parseInt(e,10)<0?e.substr(1)+"px":"-"+e+"px";r=n+" "+t[1]}return r}function a(r){var t=function(r){var t=!1,e=r.split(" ");return e.forEach(function(r,e,n){!t&&r.match(/\d/)&&(t=!0,n[e]="0"==r[0]?0:"-"==r[0]?r.substr(1):"-"+r)}),e.join(" ")};return r=i(r).map(t).join(",")}function d(r){var t=function(r){return"url("==r.substr(0,4)?r:(-1!=r.indexOf("gradient")&&(r=r.replace(/(left|right)/g,function(r){return"left"===r?"right":"left"}),r=r.replace(/(\d+deg)/,function(r){var t=parseInt(r.replace("deg",""),10);return 180-t+"deg"})),r)};return i(r).map(t).join(",")}function l(r){var t=function(r){return r=r.replace(/url\((.*?)\)|none|([^\s]*?gradient.*?\(.+\))/i,d),r=r.replace(/\s(left|right|center|top|bottom|-?\d+([a-zA-Z]{2}|%?))\s(left|right|center|top|bottom|-?\d+([a-zA-Z]{2}|%?))[;\s]?/i,function(r){var t=r.indexOf(";")>=0;return r=r.trimSemicolon()," "+o(r)+(t?";":" ")})};return i(r).map(t).join(",")}function u(r){var t,e=function(r){return"0"==r[0]?0:"-"==r[0]?r.substr(1):"-"+r},n="";if(t=r.match(/(translate(X|x|3D|3d)?)\(([^,\)]*)([^\)]*)\)/)){var i=t[3].trim(),f=t[4];n=t[1]+"("+e(i)+(f?f:"")+")",r=r.replace(t[0],n)}if(t=r.match(/rotate\(\s*(\d+)\s*deg\s*\)/)){var o=parseInt(t[1],10),a=180-o;n=" rotate("+a+"deg)",r=r.replace(t[0],n)}return r}function c(r){var t=r.split(" ");return t=t.map(function(r){return p[r]||r}),t.join(" ")}function g(r){return r.trim().replace(/\/\*[\s\S]+?\*\//g,"").replace(/[\n\r]/g,"").replace(/\s*([:;,{}])\s*/g,"$1").replace(/\s+/g," ").replace(/([^;:\{\}]+?)\:([^;:\{\}]+?)([;}])/gi,function(r,t,e,n){var i=/!important/,f=e.match(i);return t&&e?(t=p[t]||t,e=m[t]?m[t](e):e,!e.match(i)&&f&&(e+="!important"),t+":"+e+n):""})}String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimComma||(String.prototype.trimComma=function(){return this.replace(/^,+|,+$/g,"")}),String.prototype.trimSemicolon||(String.prototype.trimSemicolon=function(){return this.replace(/^;+|;+$/g,"")});var p={"margin-left":"margin-right","margin-right":"margin-left","padding-left":"padding-right","padding-right":"padding-left","border-left":"border-right","border-right":"border-left","border-left-color":"border-right-color","border-right-color":"border-left-color","border-left-width":"border-right-width","border-right-width":"border-left-width","border-left-style":"border-right-style","border-right-style":"border-left-style","border-bottom-right-radius":"border-bottom-left-radius","border-bottom-left-radius":"border-bottom-right-radius","border-top-right-radius":"border-top-left-radius","border-top-left-radius":"border-top-right-radius",left:"right",right:"left"},m={padding:t,margin:t,"text-align":f,"float":f,clear:f,direction:n,"border-radius":e,"border-color":t,"border-width":t,"border-style":t,"background-position":o,"box-shadow":a,background:l,"background-image":d,"-webkit-transform":u,"-ms-transform":u,transform:u,"-webkit-transition":c,transition:c,content:r},s={"\\f04e":"\\f04a","\\f04a":"\\f04e","\\f050":"\\f049","\\f049":"\\f050","\\f051":"\\f048","\\f048":"\\f051","\\f064":"\\f112","\\f112":"\\f064","\\f0e2":"\\f01e","\\f01e":"\\f0e2","\\f036":"\\f038","\\f038":"\\f036","\\f053":"\\f054","\\f054":"\\f053","\\f060":"\\f061","\\f061":"\\f060","\\f0a5":"\\f0a4","\\f0a4":"\\f0a5","\\f0a8":"\\f0a9","\\f0a9":"\\f0a8","\\f0d9":"\\f0da","\\f0da":"\\f0d9","\\f100":"\\f101","\\f101":"\\f100","\\f104":"\\f105","\\f105":"\\f104","\\f10d":"\\f10e","\\f10e":"\\f10d","\\f137":"\\f138","\\f138":"\\f137","\\f177":"\\f178","\\f178":"\\f177","\\f190":"\\f18e","\\f18e":"\\f190","\\f191":"\\f152","\\f152":"\\f191"};"function"==typeof define&&define.amd?define(function(){return g}):"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=g),exports.convert2RTL=g):jQuery.rtl=jQuery.rtl||function(){return{convert2RTL:g}}()}();