window.define=function(){Array.prototype.slice.call(arguments).pop()(window.jQuery)};define(["jquery"],function(){(function(n,t){var i,r;n.cleanData?(i=n.cleanData,n.cleanData=function(t){for(var r=0,u;(u=t[r])!=null;r++)n(u).triggerHandler("remove");i(t)}):(r=n.fn.remove,n.fn.remove=function(t,i){return this.each(function(){return i||(!t||n.filter(t,[this]).length)&&n("*",this).add([this]).each(function(){n(this).triggerHandler("remove")}),r.call(n(this),t,i)})});n.widget=function(t,i,r){var u=t.split(".")[0],e,f;t=t.split(".")[1];e=u+"-"+t;r||(r=i,i=n.Widget);n.expr[":"][e]=function(i){return!!n.data(i,t)};n[u]=n[u]||{};n[u][t]=function(n,t){arguments.length&&this._createWidget(n,t)};f=new i;f.options=n.extend(!0,{},f.options);n[u][t].prototype=n.extend(!0,f,{namespace:u,widgetName:t,widgetEventPrefix:n[u][t].prototype.widgetEventPrefix||t,widgetBaseClass:e},r);n.widget.bridge(t,n[u][t])};n.widget.bridge=function(i,r){n.fn[i]=function(u){var f=typeof u=="string",e=Array.prototype.slice.call(arguments,1),o=this;return(u=!f&&e.length?n.extend.apply(null,[!0,u].concat(e)):u,f&&u.charAt(0)==="_")?o:(f?this.each(function(){var r=n.data(this,i),f;if(!r)throw"cannot call methods on "+i+" prior to initialization; attempted to call method '"+u+"'";if(!n.isFunction(r[u]))throw"no such method '"+u+"' for "+i+" widget instance";return f=r[u].apply(r,e),f!==r&&f!==t?(o=f,!1):void 0}):this.each(function(){var t=n.data(this,i);t?t.option(u||{})._init():n.data(this,i,new r(u,this))}),o)}};n.Widget=function(n,t){arguments.length&&this._createWidget(n,t)};n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(t,i){n.data(i,this.widgetName,this);this.element=n(i);this.options=n.extend(!0,{},this.options,this._getCreateOptions(),t);var r=this;this.element.bind("remove."+this.widgetName,function(){r.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var t={};return n.metadata&&(t=n.metadata.get(element)[this.widgetName]),t},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(i,r){var u=i;if(arguments.length===0)return n.extend({},this.options);if(typeof i=="string"){if(r===t)return this.options[i];u={};u[i]=r}return this._setOptions(u),this},_setOptions:function(t){var i=this;return n.each(t,function(n,t){i._setOption(n,t)}),this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&this.widget()[t?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",t),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(t,i,r){var e=this.options[t],u,f;if(i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),r=r||{},i.originalEvent)for(u=n.event.props.length;u;)f=n.event.props[--u],i[f]=i.originalEvent[f];return this.element.trigger(i,r),!(n.isFunction(e)&&e.call(this.element[0],i,r)===!1||i.isDefaultPrevented())}}})(jQuery)});define(["jquery","./jquery.ui.widget"],function(){(function(n,t){n.widget("mobile.widget",{_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var r=this.element,i={};return n.each(this.options,function(n){var u=r.jqmData(n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()}));u!==t&&(i[n]=u)}),i},enhanceWithin:function(t){var i=n.mobile.closestPageData(n(t)),r=i&&i.keepNativeSelector()||"";n(this.options.initSelector,t).not(r)[this.widgetName]()}})})(jQuery)});define(["jquery","./jquery.mobile.core"],function(){(function(n){var i=n(window),t=n("html");n.mobile.media=function(){var i={},r=n("<div id='jquery-mediatest'>"),u=n("<body>").append(r);return function(n){if(!(n in i)){var f=document.createElement("style"),e="@media "+n+" { #jquery-mediatest { position:absolute; } }";f.type="text/css";f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e));t.prepend(u).prepend(f);i[n]=r.css("position")==="absolute";u.add(f).remove()}return i[n]}}()})(jQuery)});define(["jquery","./jquery.mobile.media"],function(){(function(n,t){function h(){var u=location.protocol+"//"+location.host+location.pathname+"ui-dir/",t=n("head base"),i=null,f="",e,o;return t.length?f=t.attr("href"):t=i=n("<base>",{href:u}).appendTo("head"),e=n("<a href='testurl' />").prependTo(r),o=e[0].href,t[0].href=f||location.pathname,i&&i.remove(),o.indexOf(u)===0}function c(){var t="transform-3d";return o("perspective","10px","moz")||n.mobile.media("(-"+f.join("-"+t+"),(-")+"-"+t+"),("+t+")")}function o(n,t,r){var u=document.createElement("div"),e=function(n){return n.charAt(0).toUpperCase()+n.substr(1)},h=function(n){return"-"+n.charAt(0).toLowerCase()+n.substr(1)+"-"},c=function(i){var r=h(i)+n+": "+t+";",f=e(i),o=f+e(n);u.setAttribute("style",r);!u.style[o]||(s=!0)},o=r?[r]:f,s;for(i=0;i<o.length;i++)c(o[i]);return!!s}function u(n){var i=n.charAt(0).toUpperCase()+n.substr(1),r=(n+" "+f.join(i+" ")+i).split(" ");for(var u in r)if(l[r[u]]!==t)return!0}var r=n("<body>").prependTo("html"),l=r[0].style,f=["Webkit","Moz","O"],a="palmGetResource"in window,s=window.operamini&&{}.toString.call(window.operamini)==="[object OperaMini]",v=window.blackberry,e;n.extend(n.mobile,{browser:{}});n.mobile.browser.ie=function(){for(var n=3,t=document.createElement("div"),i=t.all||[];t.innerHTML="<!--[if gt IE "+ ++n+"]><br><![endif]-->",i[0];);return n>4?n:!n}();n.extend(n.support,{orientation:"orientation"in window&&"onorientationchange"in window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window||o("transition","height 100ms linear"),pushState:"pushState"in history&&"replaceState"in history,mediaquery:n.mobile.media("only all"),cssPseudoElement:!!u("content"),touchOverflow:!!u("overflowScrolling"),cssTransform3d:c(),boxShadow:!!u("boxShadow")&&!v,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in r[0])&&!a&&!s,dynamicBaseTag:h()});r.remove();e=function(){var n=window.navigator.userAgent;return n.indexOf("Nokia")>-1&&(n.indexOf("Symbian/3")>-1||n.indexOf("Series60/5")>-1)&&n.indexOf("AppleWebKit")>-1&&n.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();n.mobile.ajaxBlacklist=window.blackberry&&!window.WebKitPoint||s||e;e&&n(function(){n("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});n.support.boxShadow||n("html").addClass("ui-mobile-nosupport-boxshadow")})(jQuery)});define(["jquery"],function(){(function(n,t,i,r){function at(t){var i=t.substr(1);return{setup:function(){tt(this)||n.data(this,o,{});var r=n.data(this,o);r[t]=!0;u[t]=(u[t]||0)+1;u[t]===1&&p.bind(i,et);n(this).bind(i,nt);g&&(u.touchstart=(u.touchstart||0)+1,u.touchstart===1&&p.bind("touchstart",ft).bind("touchend",it).bind("touchmove",rt).bind("scroll",ut))},teardown:function(){--u[t];u[t]||p.unbind(i,et);g&&(--u.touchstart,u.touchstart||p.unbind("touchstart",ft).unbind("touchmove",rt).unbind("touchend",it).unbind("scroll",ut));var r=n(this),f=n.data(this,o);f&&(f[t]=!1);r.unbind(i,nt);tt(this)||r.removeData(o)}}}function nt(){}function tt(t){var i=n.data(t,o),r;if(i)for(r in i)if(i[r])return!0;return!1}function it(n){var t,i,r;l||(st(),t=v(n.target),f("vmouseup",n,t),e||(r=f("vclick",n,t),r&&r.isDefaultPrevented()&&(i=h(n).changedTouches[0],y.push({touchID:s,x:i.clientX,y:i.clientY}),d=!0)),f("vmouseout",n,t),e=!1,w())}function rt(t){if(!l){var i=h(t).touches[0],u=e,r=n.vmouse.moveDistanceThreshold;e=e||Math.abs(i.pageX-ct)>r||Math.abs(i.pageY-lt)>r;flags=v(t.target);e&&!u&&f("vmousecancel",t,flags);f("vmousemove",t,flags);w()}}function ut(n){l||(e||f("vmousecancel",n,v(n.target)),e=!0,w())}function ft(t){var o=h(t).touches,r,i,u;o&&o.length===1&&(r=t.target,i=v(r),i.hasVirtualBinding&&(s=gt++,n.data(r,b,s),ot(),vt(),e=!1,u=h(t).touches[0],ct=u.pageX,lt=u.pageY,f("vmouseover",t,i),f("vmousedown",t,i)))}function et(t){var r=n.data(t.target,b),i;d||s&&s===r||(i=f("v"+t.type,t),i&&(i.isDefaultPrevented()&&t.preventDefault(),i.isPropagationStopped()&&t.stopPropagation(),i.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function f(t,i,r){var u;return(r&&r[t]||!r&&wt(i.target,t))&&(u=bt(i,t),n(i.target).trigger(u)),u}function ot(){c&&(clearTimeout(c),c=0)}function w(){ot();c=setTimeout(function(){c=0;yt()},n.vmouse.resetTimerDuration)}function vt(){pt()}function yt(){s=0;y.length=0;d=!1;st()}function st(){l=!0}function pt(){l=!1}function wt(t,i){for(var r;t;){if(r=n.data(t,o),r&&(!i||r[i]))return t;t=t.parentNode}return null}function v(t){for(var i={},r,u;t;){r=n.data(t,o);for(u in r)r[u]&&(i[u]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function bt(t,i){var u=t.type,e,o,l,f,s,a,v,c;if(t=n.Event(t),t.type=i,e=t.originalEvent,o=n.event.props,u.search(/mouse/)>-1&&(o=dt),e)for(v=o.length,f;v;)f=o[--v],t[f]=e[f];if(u.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),u.search(/^touch/)!==-1&&(l=h(e),u=l.touches,s=l.changedTouches,a=u&&u.length?u[0]:s&&s.length?s[0]:r,a))for(c=0,len=ht.length;c<len;c++)f=ht[c],t[f]=a[f];return t}function h(n){while(n&&typeof n.originalEvent!="undefined")n=n.originalEvent;return n}var o="virtualMouseBindings",b="virtualTouchID",k="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),ht="clientX clientY pageX pageY screenX screenY".split(" "),kt=n.event.mouseHooks?n.event.mouseHooks.props:[],dt=n.event.props.concat(kt),u={},c=0,ct=0,lt=0,e=!1,y=[],d=!1,l=!1,g="addEventListener"in i,p=n(i),gt=1,s=0,a;for(n.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},a=0;a<k.length;a++)n.event.special[k[a]]=at(k[a]);g&&i.addEventListener("click",function(t){var f=y.length,e=t.target,o,s,i,r,u,h;if(f)for(o=t.clientX,s=t.clientY,threshold=n.vmouse.clickDistanceThreshold,i=e;i;){for(r=0;r<f;r++)if(u=y[r],h=0,i===e&&Math.abs(u.x-o)<threshold&&Math.abs(u.y-s)<threshold||n.data(i,b)===u.touchID){t.preventDefault();t.stopPropagation();return}i=i.parentNode}},!0)})(jQuery,window,document)});define(["jquery","./jquery.mobile.core","./jquery.mobile.media","./jquery.mobile.support","./jquery.mobile.vmouse"],function(){(function(n,t,i){function r(t,i,r){var u=r.type;r.type=i;n.event.handle.call(t,r);r.type=u}n.each("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){n.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};n.attrFn[i]=!0});var u=n.support.touch,e="touchmove scroll",o=u?"touchstart":"mousedown",s=u?"touchend":"mouseup",f=u?"touchmove":"mousemove";n.event.special.scrollstart={enabled:!0,setup:function(){function i(n,i){t=i;r(u,t?"scrollstart":"scrollstop",n)}var u=this,o=n(u),t,f;o.bind(e,function(r){n.event.special.scrollstart.enabled&&(t||i(r,!0),clearTimeout(f),f=setTimeout(function(){i(r,!1)},50))})}};n.event.special.tap={setup:function(){var t=this,i=n(t);i.bind("vmousedown",function(u){function o(n){f();h==n.target&&r(t,"tap",n)}function f(){e();i.unbind("vclick",o).unbind("vmouseup",e);n(document).unbind("vmousecancel",f)}function e(){clearTimeout(s)}if(u.which&&u.which!==1)return!1;var h=u.target,c=u.originalEvent,s;i.bind("vmouseup",e).bind("vclick",o);n(document).bind("vmousecancel",f);s=setTimeout(function(){r(t,"taphold",n.Event("taphold"))},750)})}};n.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var r=this,t=n(r);t.bind(o,function(r){function o(t){if(u){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;e={time:(new Date).getTime(),coords:[i.pageX,i.pageY]};Math.abs(u.coords[0]-e.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}}var h=r.originalEvent.touches?r.originalEvent.touches[0]:r,u={time:(new Date).getTime(),coords:[h.pageX,h.pageY],origin:n(r.target)},e;t.bind(f,o).one(s,function(){t.unbind(f,o);u&&e&&e.time-u.time<n.event.special.swipe.durationThreshold&&Math.abs(u.coords[0]-e.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(u.coords[1]-e.coords[1])<n.event.special.swipe.verticalDistanceThreshold&&u.origin.trigger("swipe").trigger(u.coords[0]>e.coords[0]?"swipeleft":"swiperight");u=e=i})})}},function(n,t){function s(){var n=i();n!==u&&(u=n,r.trigger("orientationchange"))}var r=n(t),h,i,u,f,e,o={0:!0,180:!0};n.support.orientation&&(f=n.mobile.media("all and (orientation: landscape)"),e=o[t.orientation],(f&&e||!f&&!e)&&(o={"-90":!0,90:!0}));n.event.special.orientationchange=h={setup:function(){if(n.support.orientation&&n.mobile.orientationChangeEnabled)return!1;u=i();r.bind("throttledresize",s)},teardown:function(){if(n.support.orientation&&n.mobile.orientationChangeEnabled)return!1;r.unbind("throttledresize",s)},add:function(n){var t=n.handler;n.handler=function(n){return n.orientation=i(),t.apply(this,arguments)}}};n.event.special.orientationchange.orientation=i=function(){var r=!0,i=document.documentElement;return r=n.support.orientation?o[t.orientation]:i&&i.clientWidth/i.clientHeight<1.1,r?"portrait":"landscape"}}(jQuery,t),function(){n.event.special.throttledresize={setup:function(){n(this).bind("resize",t)},teardown:function(){n(this).unbind("resize",t)}};var f=250,t=function(){r=(new Date).getTime();u=r-e;u>=f?(e=r,n(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(t,f-u))},e=0,i,r,u}();n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,i){n.event.special[t]={setup:function(){n(this).bind(i,n.noop)}}})})(jQuery,this)});define(["jquery","../external/requirejs/text!../version.txt","./jquery.mobile.widget"],function(n,t){(function(n,i){var r={},u,f;n.mobile=n.extend({},{version:t,ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:10,touchOverflowEnabled:!1,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",loadingMessageTextVisible:!1,loadingMessageTheme:"a",pageLoadErrorMessageTheme:"e",autoInitializePage:!0,pushStateEnabled:!0,orientationChangeEnabled:!0,gradeA:function(){return n.support.mediaquery||n.mobile.browser.ie&&n.mobile.browser.ie>=7},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(t){n.type(t)!=="number"&&(t=n.mobile.defaultHomeScroll);n.event.special.scrollstart.enabled=!1;setTimeout(function(){i.scrollTo(0,t);n(document).trigger("silentscroll",{x:0,y:t})},20);setTimeout(function(){n.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:r,nsNormalize:function(t){if(t)return r[t]||(r[t]=n.camelCase(n.mobile.ns+t))},getInheritedTheme:function(n,t){for(var i=n[0],r="",f,u;i;){if(u=i.className||"",(f=/ui-(bar|body)-([a-z])\b/.exec(u))&&(r=f[2]))break;i=i.parentNode}return r||t||"a"},closestPageData:function(n){return n.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")}},n.mobile);n.fn.jqmData=function(t,i){var r;return typeof t!="undefined"&&(r=this.data(t?n.mobile.nsNormalize(t):t,i)),r};n.jqmData=function(t,i,r){var u;return typeof i!="undefined"&&(u=n.data(t,i?n.mobile.nsNormalize(i):i,r)),u};n.fn.jqmRemoveData=function(t){return this.removeData(n.mobile.nsNormalize(t))};n.jqmRemoveData=function(t,i){return n.removeData(t,n.mobile.nsNormalize(i))};n.fn.removeWithDependents=function(){n.removeWithDependents(this)};n.removeWithDependents=function(t){var i=n(t);(i.jqmData("dependents")||n()).remove();i.remove()};n.fn.addDependents=function(t){n.addDependents(n(this),t)};n.addDependents=function(t,i){var r=n(t).jqmData("dependents")||n();n(t).jqmData("dependents",n.merge(r,i))};n.fn.getEncodedText=function(){return n("<div/>").text(n(this).text()).html()};u=n.find;f=/:jqmData\(([^)]*)\)/g;n.find=function(t,i,r,e){return t=t.replace(f,"[data-"+(n.mobile.ns||"")+"$1]"),u.call(this,t,i,r,e)};n.extend(n.find,u);n.find.matches=function(t,i){return n.find(t,null,null,i)};n.find.matchesSelector=function(t,i){return n.find(i,null,null,[t]).length>0}})(jQuery,this)});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){function h(n,i,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;u<s;u++)if(f=e.eq(u),n.append(f),r&&n.append(r),t(n,i)){f.remove();o=!0;break}else r&&r.remove();return o}function e(i,r,u,f,s){var v=i.contents(),h=!1,y,c,p,l,a,w;for(i.empty(),y="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, select, optgroup, option, textarea, script, style",c=0,p=v.length;c<p;c++){if(h)break;(l=v[c],a=n(l),typeof l!="undefined")&&(i.append(a),s&&(w=i.is(y)?"after":"append",i[w](s)),l.nodeType==3?t(u,f)&&(h=o(a,r,u,f,s)):h=e(a,r,u,f,s),h||s&&s.remove())}return h}function o(i,r,u,f,e){var v=!1,a=i[0],d,h,g;if(typeof a=="undefined")return!1;for(var y=f.wrap=="letter"?"":" ",p=c(a).split(y),w=-1,l=-1,b=0,k=p.length-1;b<=k;){if(d=Math.floor((b+k)/2),d==l)break;l=d;s(a,p.slice(0,l+1).join(y)+f.ellipsis);t(u,f)?k=l:(w=l,b=l)}if(w!=-1){for(h=p.slice(0,w+1).join(y),v=!0;n.inArray(h.slice(-1),f.lastCharacter.remove)>-1;)h=h.slice(0,-1);n.inArray(h.slice(-1),f.lastCharacter.noEllipsis)<0&&(h+=f.ellipsis);s(a,h)}else g=i.parent(),i.remove(),$n=g.contents().eq(-1),v=o($n,r,u,f,e);return v}function t(n,t){return n.innerHeight()>t.maxHeight}function i(n){return{width:n.innerWidth(),height:n.innerHeight()}}function s(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function c(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function a(t,i){return typeof t=="undefined"?!1:t?typeof t=="string"?(t=n(t,i),t.length?t:!1):typeof t=="object"?typeof t.jquery=="undefined"?!1:t:!1:!1}function v(n){var i=n.innerHeight(),r=["paddingTop","paddingBottom"],t;for(z=0,l=r.length;z<l;z++)t=parseInt(n.css(r[z]),10),isNaN(t)&&(t=0),i-=t;return i}function y(n,t){return n?(t=typeof t=="string"?"dotdotdot: "+t:["dotdotdot:",t],window.console&&window.console.log&&window.console.log(t),!1):!1}var f,r,u;n.fn.dotdotdot||(n.fn.dotdotdot=function(r){var u;if(this.length==0)return y(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(r)});u=this;u.data("dotdotdot")&&u.trigger("destroy.dot");u.bind_events=function(){return u.bind("update.dot",function(i,r){i.preventDefault();i.stopPropagation();o.maxHeight=typeof o.height=="number"?o.height:v(u);o.maxHeight+=o.tolerance;typeof r!="undefined"&&((typeof r=="string"||r instanceof HTMLElement)&&(r=n("<div />").append(r).contents()),r instanceof n&&(l=r));c=u.wrapInner('<div class="dotdotdot" />').children();c.empty().append(l.clone(!0)).css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var a=!1,f=!1;return s.afterElement&&(a=s.afterElement.clone(!0),s.afterElement.remove()),t(c,o)&&(f=o.wrap=="children"?h(c,o,a):e(c,u,c,o,a)),c.replaceWith(c.contents()),c=null,n.isFunction(o.callback)&&o.callback.call(u[0],f,l),s.isTruncated=f,f}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(u[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(u[0],l),l}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();u.unwatch().unbind_events().empty().append(l).data("dotdotdot",!1)}),u};u.unbind_events=function(){return u.unbind(".dot"),u};u.watch=function(){if(u.unwatch(),o.watch=="window"){var t=n(window),r=t.width(),f=t.height();t.bind("resize.dot"+s.dotId,function(){r==t.width()&&f==t.height()&&o.windowResizeFix||(r=t.width(),f=t.height(),p&&clearInterval(p),p=setTimeout(function(){u.trigger("update.dot")},10))})}else w=i(u),p=setInterval(function(){var n=i(u);(w.width!=n.width||w.height!=n.height)&&(u.trigger("update.dot"),w=i(u))},100);return u};u.unwatch=function(){return n(window).unbind("resize.dot"+s.dotId),p&&clearInterval(p),u};var l=u.contents(),o=n.extend(!0,{},n.fn.dotdotdot.defaults,r),s={},w={},p=null,c=null;return s.afterElement=a(o.after,u),s.isTruncated=!1,s.dotId=f++,u.data("dotdotdot",!0).bind_events().trigger("update.dot"),o.watch&&u.watch(),u},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",lastCharacter:{remove:[" ",",",";",".","!","?"],noEllipsis:[]},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0,debug:!1},f=1,r=n.fn.html,n.fn.html=function(n){return typeof n!="undefined"?this.data("dotdotdot")&&typeof n!="function"?this.trigger("update",[n]):r.call(this,n):r.call(this)},u=n.fn.text,n.fn.text=function(t){if(typeof t!="undefined"){if(this.data("dotdotdot")){var i=n("<div />");return i.text(t),t=i.html(),i.remove(),this.trigger("update",[t])}return u.call(this,t)}return u.call(this)})}(jQuery)