text: /*! asGradient - v0.2.1 - 2014-08-27
  * https://github.com/amazingSurge/asGradient
  * Copyright (c) 2014 amazingSurge; Licensed GPL */
  !function(a,b,c,d,e){"use strict";function f(){var b=a.navigator.userAgent,c="";return/MSIE/g.test(b)?c="-ms-":/Firefox/g.test(b)?c="-moz-":/(WebKit)/i.test(b)?c="-webkit-":/Opera/g.test(b)&&(c="-o-"),c}function g(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[a[c]]=c);return b}function h(a){var b={top:"bottom",right:"left",bottom:"top",left:"right","right top":"left bottom","top right":"bottom left","bottom right":"top left","right bottom":"left top","left bottom":"right top","bottom left":"top right","top left":"bottom right","left top":"right bottom"};return b.hasOwnProperty(a)?b[a]:a}function i(a){var b=/^(top|left|right|bottom)$/i;return b.test(a)}var j=function(){var a=/(?:rgba|rgb|hsla|hsl)\s*\([\s\d\.,%]+\)|#[a-z0-9]{3,6}|[a-z]+/i,b=/\d{1,3}%/i,c=/(?:to ){0,1}(?:(?:top|left|right|bottom)\s*){1,2}|\d+deg/i,d=new RegExp("("+a.source+")\\s*("+b.source+"){0,1}","i"),e=new RegExp(d.source,"gi"),f=new RegExp("(?:("+c.source+")){0,1}\\s*,{0,1}\\s*(.*?)\\s*","i"),g=new RegExp("^(-webkit-|-moz-|-ms-|-o-){0,1}(linear|radial|repeating-linear)-gradient\\s*\\(\\s*("+f.source+")\\s*\\)$","i");return{FULL:g,ANGLE:c,COLOR:a,POSITION:b,STOP:d,STOPS:e,PARAMETERS:new RegExp("^"+f.source+"$","i")}}(),k={LINEAR:{parse:function(a){return{r:"%"===a[1].substr(-1)?parseInt(2.55*a[1].slice(0,-1),10):parseInt(a[1],10),g:"%"===a[2].substr(-1)?parseInt(2.55*a[2].slice(0,-1),10):parseInt(a[2],10),b:"%"===a[3].substr(-1)?parseInt(2.55*a[3].slice(0,-1),10):parseInt(a[3],10),a:1}},to:function(a,b,d){if(0===a.stops.length)return b.options.emptyString;if(1===a.stops.length)return a.stops[0].color.to(b.options.degradationFormat);var e=b.options.forceStandard,f=b._prefix;f||(e=!0),d&&-1!==c.inArray(d,b.options.prefixes)&&(e=!1,f=d);var g=l.formatAngle(a.angle,e,b.options.angleUseKeyword),h=l.formatStops(a.stops,b.options.cleanPosition),i="linear-gradient("+g+", "+h+")";return e?i:f+i}}},l=c.asGradient=function(a,b){"object"==typeof a&&"undefined"==typeof b&&(b=a,a=e),this.value={angle:0,stops:[]},this.options=c.extend(!0,{},l.defaults,b),this._type="LINEAR",this._prefix=null,this.length=this.value.stops.length,this.current=0,this._stop_id_count=0,this.init(a)};l.prototype={constructor:l,init:function(a){a&&this.fromString(a)},val:function(a){return"undefined"==typeof a?this.toString():(this.fromString(a),this)},angle:function(a){return"undefined"==typeof a?this.value.angle:void(this.value.angle=l.parseAngle(a))},append:function(a,b){return this.insert(a,b,this.length)},reorder:function(){this.length<2||(this.value.stops=this.value.stops.sort(function(a,b){return a.position-b.position}))},insert:function(a,b,c){"undefined"==typeof c&&(c=this.current);var e;this.options.forceColorFormat&&(e=this.options.forceColorFormat);var f=this,g=function(a,b){this.color=new d(a,e,f.options.color),this.position=l.parsePosition(b),this.id=++f._stop_id_count};g.prototype={constructor:g,setPosition:function(a){var b=l.parsePosition(a);this.position!==b&&(this.position=b,f.reorder())},setColor:function(a){this.color.fromString(a)},remove:function(){f.removeById(this.id)}};var h=new g(a,b);return this.value.stops.splice(c,0,h),this.length=this.length+1,this.current=c,h},getById:function(a){if(this.length>0)for(var b in this.value.stops)if(a===this.value.stops[b].id)return this.value.stops[b];return!1},removeById:function(a){var b=this.getIndexById(a);b&&this.remove(b)},getIndexById:function(a){var b=0;for(var c in this.value.stops){if(a===this.value.stops[c].id)return b;b++}return!1},getCurrent:function(){return this.value.stops[this.current]},setCurrentById:function(a){var b=0;for(var c in this.value.stops)this.value.stops[c].id!==a?b++:this.current=b},get:function(a){return"undefined"==typeof a&&(a=this.current),a>=0&&a<this.length?(this.current=a,this.value.stops[a]):!1},remove:function(a){"undefined"==typeof a&&(a=this.current),a>=0&&a<this.length&&(this.value.stops.splice(a,1),this.length=this.length-1,this.current=a-1)},empty:function(){this.value.stops=[],this.length=0,this.current=0},reset:function(){this.value._angle=0,this.empty(),this._prefix=null,this._type="LINEAR"},type:function(a){return"string"==typeof a&&(a=a.toUpperCase())&&"undefined"!=typeof k[a]?void(this._type=a):this._type},fromString:function(a){this.reset();var b=l.parseString(a);if(b&&(this._prefix=b.prefix,this.type(b.type),b.value)){this.value.angle=l.parseAngle(b.value.angle,null!==this._prefix);var d=this;c.each(b.value.stops,function(a,b){d.append(b.color,b.position)})}},toString:function(a){return a===!0&&(a=f()),k[this.type()].to(this.value,this,a)},matchString:function(a){return l.matchString(a)},toStringWithAngle:function(a,b){var d=c.extend(!0,{},this.value);return d.angle=l.parseAngle(a),b===!0&&(b=f()),k[this.type()].to(d,this,b)},getPrefixedStrings:function(){var a=[];for(var b in this.options.prefixes)a.push(this.toString(this.options.prefixes[b]));return a}},l.matchString=function(a){var b=l.parseString(a);return b&&b.value&&b.value.stops&&b.value.stops.length>1?!0:!1},l.parseString=function(a){a=c.trim(a);var b;return null!=(b=j.FULL.exec(a))?{prefix:"undefined"==typeof b[1]?null:b[1],type:b[2],value:l.parseParameters(b[3])}:!1},l.parseParameters=function(a){var b;return null!=(b=j.PARAMETERS.exec(a))?{angle:"undefined"==typeof b[1]?0:b[1],stops:l.parseStops(b[2])}:!1},l.parseStops=function(a){var b,d=[];return null!=(b=a.match(j.STOPS))?(c.each(b,function(a,b){var c=l.parseStop(b);c&&d.push(c)}),d):!1},l.formatStops=function(a,b){for(var c,d,f=[],g=[],h=[],i=0;i<a.length;i++)c=a[i],d="undefined"==typeof c.position?0===i?0:i===a.length-1?1:e:c.position,g.push(d),h.push(c.color.toString());g=function(a){for(var b,c=null,d=0;d<a.length;d++)if(isNaN(a[d])){if(null===c){c=d;continue}}else if(c){b=(a[d]-a[c-1])/(d-c+1);for(var e=c;d>e;e++)a[e]=a[c-1]+(e-c+1)*b;c=null}return a}(g);for(var j=0;j<a.length;j++)d=b&&(0===j&&0===g[j]||j===a.length-1&&1===g[j])?"":" "+l.formatPosition(g[j]),f.push(h[j]+d);return f.join(", ")},l.parseStop=function(a){var b;return null!=(b=j.STOP.exec(a))?{color:b[1],position:l.parsePosition(b[2])}:!1},l.parsePosition=function(a){return"string"==typeof a&&"%"===a.substr(-1)&&(a=parseFloat(a.slice(0,-1)/100)),a},l.formatPosition=function(a){return parseInt(100*a,10)+"%"},l.parseAngle=function(a,b){if("string"==typeof a&&-1!==a.indexOf("deg")&&(a=a.replace("deg","")),isNaN(a)||b&&(a=l.fixOldAngle(a)),"string"==typeof a){var c=a.split(" "),d=[];for(var e in c)i(c[e])&&d.push(c[e].toLowerCase());var f=d.join(" ");-1===a.indexOf("to ")&&(f=h(f)),f="to "+f,l.keywordAngleMap.hasOwnProperty(f)&&(a=l.keywordAngleMap[f])}var g=parseFloat(a,10);return g>360?g%=360:0>g&&(g%=-360,0!==g&&(g=360+g)),g},l.fixOldAngle=function(a){return a=parseFloat(a),a=Math.abs(450-a)%360,a=parseFloat(a.toFixed(3))},l.formatAngle=function(a,b,c){return a=parseInt(a,10),c&&l.angleKeywordMap.hasOwnProperty(a)?(a=l.angleKeywordMap[a],b||(a=h(a.substr(3)))):(b||(a=l.fixOldAngle(a)),a+="deg"),a},l.defaults={prefixes:["-webkit-","-moz-","-ms-","-o-"],forceStandard:!0,angleUseKeyword:!0,emptyString:"",degradationFormat:!1,cleanPosition:!0,forceColorFormat:!1,color:{hexUseName:!1,reduceAlpha:!0,shortenHex:!0,zeroAlphaAsTransparent:!1,invalidValue:{r:0,g:0,b:0,a:1}}},l.keywordAngleMap={"to top":0,"to right":90,"to bottom":180,"to left":270,"to right top":45,"to top right":45,"to bottom right":135,"to right bottom":135,"to left bottom":225,"to bottom left":225,"to top left":315,"to left top":315},l.angleKeywordMap=g(l.keywordAngleMap)}(window,document,jQuery,function(a){"use strict";return void 0===a.asColor?!1:a.asColor}(jQuery));