(function(f,h,c){var e=/\s+/;c.unwhite=function(j){j=c.trim(j);return j.length?j.split(e):[];};c.eventProxy=function(){var j=c.proxy.apply(null,arguments);return function(){return j.apply(null,Array.prototype.slice.call(arguments,1));};};c.eventDataProxy=function(){var j=c.proxy.apply(null,arguments);return function(k){return j.call(null,k.data);};};function a(j){return function(l){var k=Array.prototype.slice.call(arguments,1);return function(){Array.prototype[j].apply(arguments,k);return l.apply(null,arguments);};};}c.curry=a("unshift");c.rcurry=a("push");c.forkArray=function(k,m){var p=[],j=[],l=0,o=k.length;for(;l<o;++l){(m(k[l],l)?p:j).push(k[l]);}return[p,j];};var g=/\[(\d+)\]/g,d=/^\./;c.deep=function(o,j,m){var s=j.replace(g,".$1").replace(d,"").split("."),t,q=0,l,k,r;if(arguments.length>2){t=o;l=s.length-1;while(q<l){k=s[q++];o=o[k]=(o[k] instanceof Object)?o[k]:{};}o[s[q]]=m;r=t;}else{l=s.length;while(typeof(o=o[s[q]])!=="undefined"&&++q<l){}r=o;}return r;};c.namespace=function(o,l){var k=(l||o).split("."),j=0,q=k.length,m;o=(l&&o)||f;while(j<q){m=k[j++];o=o[m]=(o[m] instanceof Object)?o[m]:{};}return o;};c.ensureArray=function(j){return c.isArray(j)?j:typeof j!=="undefined"?[j]:[];};c.ensureDate=function(j){return j?j instanceof Date?j:new Date(j):new Date();};c.ensureTime=function(j){if(typeof j==="string"){j=new Date(j);}if(j instanceof Date){j=j.getTime();}if(typeof j!=="number"||isNaN(j)){throw"jQuery.ensureTime: Invalid date: "+j;}return j;};c.floorDate=function(k){var l=(arguments[2]===true),j=(typeof arguments[1]!=="undefined")?arguments[1]:new Date();if(l||!(j instanceof Date)){j=new Date(j);}switch(k){case"year":j.setMonth(0);case"month":j.setDate(1);case"day":j.setHours(0);case"hour":j.setMinutes(0);case"minute":j.setSeconds(0);default:j.setMilliseconds(0);}return j;};c.rehash=function(o,n,k,m){var p=m?o:{},l,q,j;for(l in o){if(o.hasOwnProperty(l)){q=o[l];j=""+c.deep(q,n);if(j){if(j in p){(p[j]=c.ensureArray(p[j])).push(q);}else{p[j]=q;}if(m&&!k){delete p[l];}else{if(k&&!m){p[l]=q;}}}}}return p;};c.truncate=function(j,k){return j.length<k?j:(new RegExp("^(.{0,"+(k-1)+"}\\S)(\\s|jQuery)")).exec(j)[1]+"...";};var b="th st nd rd".split(" ");c.ordinal=function(j){return b[(j=j<0?-j:j)>10&&j<14||!(j=~~j%10)||j>3?0:j];};var i="m r d r t t t m v n".split(" ");c.ordinal_es=function(k,j){return i[(k<0?-k:k)>10&&k<13?0:~~k%10]+j;};c.support.nativeEnum=(function(){var l={valueOf:function(){return false;}},k={valueOf:function(){return true;}},j;for(j in k){if(k.hasOwnProperty(j)){l[j]=k[j];}}return l.valueOf();})();c.IENativeEnumFix=function(k,j){c.each(["toString","valueOf"],function(m,l){var n=j[l];if(c.isFunction(n)&&n!==Object.prototype[l]){k[l]=n;}});};c.inherit=function(n,k,m){if(!c.isFunction(k)||!c.isFunction(n)){throw new Error("jQuery.inherit failed, please check that all dependencies are included.");}var j;function l(){}l.prototype=k.prototype;n.prototype=new l();n.prototype.constructor=n;n.superclass=k.prototype;if(k.prototype.constructor===Object.prototype.constructor){k.prototype.constructor=k;}if(m){for(j in m){if(m.hasOwnProperty(j)){n.prototype[j]=m[j];}}if(!c.support.nativeEnum){c.IENativeEnumFix(n.prototype,m);}}};})(this,this.document,this.jQuery);
