<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[GlotPress] [464] trunk: Upgrade jQuery and jQuery UI</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>464</dd>
<dt>Author</dt> <dd>nbachiyski</dd>
<dt>Date</dt> <dd>2010-04-08 11:06:43 +0000 (Thu, 08 Apr 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Upgrade jQuery and jQuery UI</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkgpincludesassetsloaderphp">trunk/gp-includes/assets-loader.php</a></li>
<li><a href="#trunkjsjqueryjqueryjs">trunk/js/jquery/jquery.js</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkjsjqueryjqueryuijs">trunk/js/jquery/jquery-ui.js</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkjsjqueryuiaccordionjs">trunk/js/jquery/ui.accordion.js</a></li>
<li><a href="#trunkjsjqueryuicorejs">trunk/js/jquery/ui.core.js</a></li>
<li><a href="#trunkjsjqueryuidatepickerjs">trunk/js/jquery/ui.datepicker.js</a></li>
<li><a href="#trunkjsjqueryuidialogjs">trunk/js/jquery/ui.dialog.js</a></li>
<li><a href="#trunkjsjqueryuidraggablejs">trunk/js/jquery/ui.draggable.js</a></li>
<li><a href="#trunkjsjqueryuidroppablejs">trunk/js/jquery/ui.droppable.js</a></li>
<li><a href="#trunkjsjqueryuiprogressbarjs">trunk/js/jquery/ui.progressbar.js</a></li>
<li><a href="#trunkjsjqueryuiresizablejs">trunk/js/jquery/ui.resizable.js</a></li>
<li><a href="#trunkjsjqueryuiselectablejs">trunk/js/jquery/ui.selectable.js</a></li>
<li><a href="#trunkjsjqueryuisliderjs">trunk/js/jquery/ui.slider.js</a></li>
<li><a href="#trunkjsjqueryuisortablejs">trunk/js/jquery/ui.sortable.js</a></li>
<li><a href="#trunkjsjqueryuitabsjs">trunk/js/jquery/ui.tabs.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkgpincludesassetsloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/gp-includes/assets-loader.php (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/gp-includes/assets-loader.php        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/gp-includes/assets-loader.php        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -19,11 +19,11 @@
</span><span class="cx">         $scripts-&gt;base_url = gp_url_base( 'js' );
</span><span class="cx">     $scripts-&gt;default_version = gp_get_option( 'version' );
</span><span class="cx">         
</span><del>-        $scripts-&gt;add( 'jquery', '/jquery/jquery.js', array(), '1.3.2-min' );
-        $scripts-&gt;add( 'jquery-ui-core', '/jquery/ui.core.js', array('jquery'), '1.7.2' );
-        $scripts-&gt;add( 'jquery-ui-tabs', '/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.2' );
-        $scripts-&gt;add( 'jquery-ui-tabs', '/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.2' );
-        $scripts-&gt;add( 'jquery-ui-selectable', '/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.2' );
</del><ins>+        $scripts-&gt;add( 'jquery', '/jquery/jquery.js', array(), '1.4.2-min' );
+        $scripts-&gt;add( 'jquery-ui', '/jquery/jquery-ui.js', array('jquery'), '1.8-0' );
+        $scripts-&gt;add( 'jquery-ui-autocomplete', null, array('jquery-ui'), '1.8' );
+        $scripts-&gt;add( 'jquery-ui-selectable', null, array('jquery-ui'), '1.8' );
+        $scripts-&gt;add( 'jquery-ui-tabs', null, array('jquery-ui'), '1.8' );
</ins><span class="cx">         $scripts-&gt;add( 'common', '/common.js', array( 'jquery' ) );
</span><span class="cx">         $scripts-&gt;add( 'editor', '/editor.js', array( 'common', 'google-js-api' ) );
</span><span class="cx">         $scripts-&gt;add( 'translations-page', '/translations-page.js', array( 'common' ) );
</span></span></pre></div>
<a id="trunkjsjqueryjqueryuijs"></a>
<div class="addfile"><h4>Added: trunk/js/jquery/jquery-ui.js (0 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/jquery-ui.js                                (rev 0)
+++ trunk/js/jquery/jquery-ui.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -0,0 +1,111 @@
</span><ins>+/*!
+ * jQuery UI 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ */ +/*
+ * jQuery UI 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ */
+jQuery.ui||(function(a){a.ui={version:&quot;1.8&quot;,plugin:{add:function(c,d,f){var e=a.ui[c].prototype;for(var b in f){e.plugins[b]=e.plugins[b]||[];e.plugins[b].push([d,f[b]])}},call:function(b,d,c){var f=b.plugins[d];if(!f||!b.element[0].parentNode){return}for(var e=0;e&lt;f.length;e++){if(b.options[f[e][0]]){f[e][1].apply(b.element,c)}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&amp;16:d!==c&amp;&amp;d.contains(c)},hasScroll:function(e,c){if(a(e).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var b=(c&amp;&amp;c==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,d=false;if(e[b]&gt;0){return true}e[b]=1;d=(e[b]&gt;0);e[b]=0;return d},isOverAxis:function(c,b,d){return(c&gt;b)&amp;&amp;(c&lt;(b+d))},isOver:function(g,c,f,e,b,d){return a.ui.isOverAxis(g,f,b)&amp;&amp;a.ui.isOverAxis(c,e,d)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b===&quot;number&quot;?this.each(function(){var d=this;setTimeout(function(){a(d).focus();(c&amp;&amp;c.call(d))},b)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var b;if((a.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){b=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(a.curCSS(this,&quot;overflow&quot;,1)+a.curCSS(this,&quot;overflow-y&quot;,1)+a.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{b=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,&quot;overflow&quot;,1)+a.curCSS(this,&quot;overflow-y&quot;,1)+a.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!b.length?a(document):b},zIndex:function(e){if(e!==undefined){return this.css(&quot;zIndex&quot;,e)}if(this.length){var c=a(this[0]),b,d;while(c.length&amp;&amp;c[0]!==document){b=c.css(&quot;position&quot;);if(b==&quot;absolute&quot;||b==&quot;relative&quot;||b==&quot;fixed&quot;){d=parseInt(c.css(&quot;zIndex&quot;));if(!isNaN(d)&amp;&amp;d!=0){return d}}c=c.parent()}}return 0}});a.extend(a.expr[&quot;:&quot;],{data:function(d,c,b){return !!a.data(d,b[3])},focusable:function(c){var d=c.nodeName.toLowerCase(),b=a.attr(c,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(d)?!c.disabled:&quot;a&quot;==d||&quot;area&quot;==d?c.href||!isNaN(b):!isNaN(b))&amp;&amp;!a(c)[&quot;area&quot;==d?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(c){var b=a.attr(c,&quot;tabindex&quot;);return(isNaN(b)||b&gt;=0)&amp;&amp;a(c).is(&quot;:focusable&quot;)}})})(jQuery);;/*!
+ * jQuery UI Widget 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Widget
+ */ +/*
+ * jQuery UI Widget 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b){var a=b.fn.remove;b.fn.remove=function(c,d){return this.each(function(){if(!d){if(!c||b.filter(c,[this]).length){b(&quot;*&quot;,this).add(this).each(function(){b(this).triggerHandler(&quot;remove&quot;)})}}return a.call(b(this),c,d)})};b.widget=function(d,f,c){var e=d.split(&quot;.&quot;)[0],h;d=d.split(&quot;.&quot;)[1];h=e+&quot;-&quot;+d;if(!c){c=f;f=b.Widget}b.expr[&quot;:&quot;][h]=function(i){return !!b.data(i,d)};b[e]=b[e]||{};b[e][d]=function(i,j){if(arguments.length){this._createWidget(i,j)}};var g=new f();g.options=b.extend({},g.options);b[e][d].prototype=b.extend(true,g,{namespace:e,widgetName:d,widgetEventPrefix:b[e][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},c);b.widget.bridge(d,b[e][d])};b.widget.bridge=function(d,c){b.fn[d]=function(g){var e=typeof g===&quot;string&quot;,f=Array.prototype.slice.call(arguments,1),h=this;g=!e&amp;&amp;f.length?b.extend.apply(null,[true,g].concat(f)):g;if(e&amp;&amp;g.substring(0,1)===&quot;_&quot;){return h}if(e){this.each(function(){var i=b.data(this,d),j=i&amp;&amp;b.isFunction(i[g])?i[g].apply(i,f):i;if(j!==i&amp;&amp;j!==undefined){h=j;return false}})}else{this.each(function(){var i=b.data(this,d);if(i){if(g){i.option(g)}i._init()}else{b.data(this,d,new c(g,this))}})}return h}};b.Widget=function(c,d){if(arguments.length){this._createWidget(c,d)}};b.Widget.prototype={widgetName:&quot;widget&quot;,widgetEventPrefix:&quot;&quot;,options:{disabled:false},_createWidget:function(d,e){this.element=b(e).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&amp;&amp;b.metadata.get(e)[this.widgetName],d);var c=this;this.element.bind(&quot;remove.&quot;+this.widgetName,function(){c.destroy()});this._create();this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName).removeData(this.widgetName);this.widget().unbind(&quot;.&quot;+this.widgetName).removeAttr(&quot;aria-disabled&quot;).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;)},widget:function(){return this.element},option:function(e,f){var d=e,c=this;if(arguments.length===0){return b.extend({},c.options)}if(typeof e===&quot;string&quot;){if(f===undefined){return this.options[e]}d={};d[e]=f}b.each(d,function(g,h){c._setOption(g,h)});return c},_setOption:function(c,d){this.options[c]=d;if(c===&quot;disabled&quot;){this.widget()[d?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,d)}return this},enable:function(){return this._setOption(&quot;disabled&quot;,false)},disable:function(){return this._setOption(&quot;disabled&quot;,true)},_trigger:function(d,e,f){var h=this.options[d];e=b.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();f=f||{};if(e.originalEvent){for(var c=b.event.props.length,g;c;){g=b.event.props[--c];e[g]=e.originalEvent[g]}}this.element.trigger(e,f);return !(b.isFunction(h)&amp;&amp;h.call(this.element[0],e,f)===false||e.isDefaultPrevented())}}})(jQuery);;/*!
+ * jQuery UI Mouse 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ *        jquery.ui.widget.js
+ */ +/*
+ * jQuery UI Mouse 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ *        jquery.ui.widget.js
+ */
+(function(a){a.widget(&quot;ui.mouse&quot;,{options:{cancel:&quot;:input,option&quot;,distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(c){return b._mouseDown(c)}).bind(&quot;click.&quot;+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName)},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};if(d.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(d));this._mouseDownEvent=d;var c=this,e=(d.which==1),b=(typeof this.options.cancel==&quot;string&quot;?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false);if(!e||b||!this._mouseCapture(d)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(d)&amp;&amp;this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(d)!==false);if(!this._mouseStarted){d.preventDefault();return true}}this._mouseMoveDelegate=function(f){return c._mouseMove(f)};this._mouseUpDelegate=function(f){return c._mouseUp(f)};a(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(a.browser.safari||d.preventDefault());d.originalEvent.mouseHandled=true;return true},_mouseMove:function(b){if(a.browser.msie&amp;&amp;!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&amp;&amp;this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,b)!==false);(this._mouseStarted?this._mouseDrag(b):this._mouseUp(b))}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(b.target==this._mouseDownEvent.target);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(b){return this.mouseDelayMet},_mouseStart:function(b){},_mouseDrag:function(b){},_mouseStop:function(b){},_mouseCapture:function(b){return true}})})(jQuery);;/*
+ * jQuery UI Position 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Position
+ */ +(function(f){f.ui=f.ui||{};var c=/left|center|right/,e=&quot;center&quot;,d=/top|center|bottom/,g=&quot;center&quot;,a=f.fn.position,b=f.fn.offset;f.fn.position=function(i){if(!i||!i.of){return a.apply(this,arguments)}i=f.extend({},i);var l=f(i.of),n=(i.collision||&quot;flip&quot;).split(&quot; &quot;),m=i.offset?i.offset.split(&quot; &quot;):[0,0],k,h,j;if(i.of.nodeType===9){k=l.width();h=l.height();j={top:0,left:0}}else{if(i.of.scrollTo&amp;&amp;i.of.document){k=l.width();h=l.height();j={top:l.scrollTop(),left:l.scrollLeft()}}else{if(i.of.preventDefault){i.at=&quot;left top&quot;;k=h=0;j={top:i.of.pageY,left:i.of.pageX}}else{k=l.outerWidth();h=l.outerHeight();j=l.offset()}}}f.each([&quot;my&quot;,&quot;at&quot;],function(){var o=(i[this]||&quot;&quot;).split(&quot; &quot;);if(o.length===1){o=c.test(o[0])?o.concat([g]):d.test(o[0])?[e].concat(o):[e,g]}o[0]=c.test(o[0])?o[0]:e;o[1]=d.test(o[1])?o[1]:g;i[this]=o});if(n.length===1){n[1]=n[0]}m[0]=parseInt(m[0],10)||0;if(m.length===1){m[1]=m[0]}m[1]=parseInt(m[1],10)||0;if(i.at[0]===&quot;right&quot;){j.left+=k}else{if(i.at[0]===e){j.left+=k/2}}if(i.at[1]===&quot;bottom&quot;){j.top+=h}else{if(i.at[1]===g){j.top+=h/2}}j.left+=m[0];j.top+=m[1];return this.each(function(){var r=f(this),q=r.outerWidth(),p=r.outerHeight(),o=f.extend({},j);if(i.my[0]===&quot;right&quot;){o.left-=q}else{if(i.my[0]===e){o.left-=q/2}}if(i.my[1]===&quot;bottom&quot;){o.top-=p}else{if(i.my[1]===g){o.top-=p/2}}f.each([&quot;left&quot;,&quot;top&quot;],function(t,s){if(f.ui.position[n[t]]){f.ui.position[n[t]][s](o,{targetWidth:k,targetHeight:h,elemWidth:q,elemHeight:p,offset:m,my:i.my,at:i.at})}});if(f.fn.bgiframe){r.bgiframe()}r.offset(f.extend(o,{using:i.using}))})};f.ui.position={fit:{left:function(h,i){var k=f(window),j=h.left+i.elemWidth-k.width()-k.scrollLeft();h.left=j&gt;0?h.left-j:Math.max(0,h.left)},top:function(h,i){var k=f(window),j=h.top+i.elemHeight-k.height()-k.scrollTop();h.top=j&gt;0?h.top-j:Math.max(0,h.top)}},flip:{left:function(i,j){if(j.at[0]===&quot;center&quot;){return}var l=f(window),k=i.left+j.elemWidth-l.width()-l.scrollLeft(),h=j.my[0]===&quot;left&quot;?-j.elemWidth:j.my[0]===&quot;right&quot;?j.elemWidth:0,m=-2*j.offset[0];i.left+=i.left&lt;0?h+j.targetWidth+m:k&gt;0?h-j.targetWidth+m:0},top:function(i,k){if(k.at[1]===&quot;center&quot;){return}var m=f(window),l=i.top+k.elemHeight-m.height()-m.scrollTop(),h=k.my[1]===&quot;top&quot;?-k.elemHeight:k.my[1]===&quot;bottom&quot;?k.elemHeight:0,j=k.at[1]===&quot;top&quot;?k.targetHeight:-k.targetHeight,n=-2*k.offset[1];i.top+=i.top&lt;0?h+k.targetHeight+n:l&gt;0?h+j+n:0}}};if(!f.offset.setOffset){f.offset.setOffset=function(l,i){if(/static/.test(f.curCSS(l,&quot;position&quot;))){l.style.position=&quot;relative&quot;}var k=f(l),n=k.offset(),h=parseInt(f.curCSS(l,&quot;top&quot;,true),10)||0,m=parseInt(f.curCSS(l,&quot;left&quot;,true),10)||0,j={top:(i.top-n.top)+h,left:(i.left-n.left)+m};if(&quot;using&quot; in i){i.using.call(l,j)}else{k.css(j)}};f.fn.offset=function(h){var i=this[0];if(!i||!i.ownerDocument){return null}if(h){return this.each(function(){f.offset.setOffset(this,h)})}return b.call(this)}}}(jQuery));;/*
+ * jQuery UI Selectable 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ *        jquery.ui.core.js
+ *        jquery.ui.mouse.js
+ *        jquery.ui.widget.js
+ */ +(function(a){a.widget(&quot;ui.selectable&quot;,a.ui.mouse,{options:{appendTo:&quot;body&quot;,autoRefresh:true,distance:0,filter:&quot;*&quot;,tolerance:&quot;touch&quot;},_create:function(){var b=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,&quot;selectable-item&quot;,{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass(&quot;ui-selected&quot;),selecting:d.hasClass(&quot;ui-selecting&quot;),unselecting:d.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=c.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=a(document.createElement(&quot;div&quot;)).css({border:&quot;1px dotted black&quot;}).addClass(&quot;ui-selectable-helper&quot;)},destroy:function(){this.selectees.removeClass(&quot;ui-selectee&quot;).removeData(&quot;selectable-item&quot;);this.element.removeClass(&quot;ui-selectable ui-selectable-disabled&quot;).removeData(&quot;selectable&quot;).unbind(&quot;.selectable&quot;);this._mouseDestroy();return this},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger(&quot;start&quot;,d);a(c.appendTo).append(this.helper);this.helper.css({&quot;z-index&quot;:100,position:&quot;absolute&quot;,left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.startselected=true;if(!d.metaKey){e.$element.removeClass(&quot;ui-selected&quot;);e.selected=false;e.$element.addClass(&quot;ui-unselecting&quot;);e.unselecting=true;b._trigger(&quot;unselecting&quot;,d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,&quot;selectable-item&quot;);if(e){e.$element.removeClass(&quot;ui-unselecting&quot;).addClass(&quot;ui-selecting&quot;);e.unselecting=false;e.selecting=true;e.selected=true;b._trigger(&quot;selecting&quot;,d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d&gt;b){var f=b;b=d;d=f}if(h&gt;g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,&quot;selectable-item&quot;);if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance==&quot;touch&quot;){k=(!(j.left&gt;b||j.right&lt;d||j.top&gt;g||j.bottom&lt;h))}else{if(e.tolerance==&quot;fit&quot;){k=(j.left&gt;d&amp;&amp;j.right&lt;b&amp;&amp;j.top&gt;h&amp;&amp;j.bottom&lt;g)}}if(k){if(j.selected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false}if(j.unselecting){j.$element.removeClass(&quot;ui-unselecting&quot;);j.unselecting=false}if(!j.selecting){j.$element.addClass(&quot;ui-selecting&quot;);j.selecting=true;c._trigger(&quot;selecting&quot;,i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&amp;&amp;j.startselected){j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;j.$element.addClass(&quot;ui-selected&quot;);j.selected=true}else{j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;if(j.startselected){j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true}c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&amp;&amp;!j.startselected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false;j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true;c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-unselecting&quot;);e.unselecting=false;e.startselected=false;b._trigger(&quot;unselected&quot;,d,{unselected:e.element})});a(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);e.selecting=false;e.selected=true;e.startselected=true;b._trigger(&quot;selected&quot;,d,{selected:e.element})});this._trigger(&quot;stop&quot;,d);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:&quot;1.8&quot;})})(jQuery);;/*
+ * jQuery UI Autocomplete 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Autocomplete
+ *
+ * Depends:
+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
+ *        jquery.ui.position.js
+ */ +(function(a){a.widget(&quot;ui.autocomplete&quot;,{options:{minLength:1,delay:300},_create:function(){var b=this,c=this.element[0].ownerDocument;this.element.addClass(&quot;ui-autocomplete-input&quot;).attr(&quot;autocomplete&quot;,&quot;off&quot;).attr({role:&quot;textbox&quot;,&quot;aria-autocomplete&quot;:&quot;list&quot;,&quot;aria-haspopup&quot;:&quot;true&quot;}).bind(&quot;keydown.autocomplete&quot;,function(d){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:b._move(&quot;previousPage&quot;,d);break;case e.PAGE_DOWN:b._move(&quot;nextPage&quot;,d);break;case e.UP:b._move(&quot;previous&quot;,d);d.preventDefault();break;case e.DOWN:b._move(&quot;next&quot;,d);d.preventDefault();break;case e.ENTER:if(b.menu.active){d.preventDefault()}case e.TAB:if(!b.menu.active){return}b.menu.select();break;case e.ESCAPE:b.element.val(b.term);b.close(d);break;case e.SHIFT:case e.CONTROL:case 18:break;default:clearTimeout(b.searching);b.searching=setTimeout(function(){b.search(null,d)},b.options.delay);break}}).bind(&quot;focus.autocomplete&quot;,function(){b.previous=b.element.val()}).bind(&quot;blur.autocomplete&quot;,function(d){clearTimeout(b.searching);b.closing=setTimeout(function(){b.close(d)},150)});this._initSource();this.response=function(){return b._response.apply(b,arguments)};this.menu=a(&quot;&lt;ul&gt;&lt;/ul&gt;&quot;).addClass(&quot;ui-autocomplete&quot;).appendTo(&quot;body&quot;,c).menu({focus:function(e,f){var d=f.item.data(&quot;item.autocomplete&quot;);if(false!==b._trigger(&quot;focus&quot;,null,{item:d})){b.element.val(d.value)}},selected:function(e,f){var d=f.item.data(&quot;item.autocomplete&quot;);if(false!==b._trigger(&quot;select&quot;,e,{item:d})){b.element.val(d.value)}b.close(e);b.previous=b.element.val();if(b.element[0]!==c.activeElement){b.element.focus()}},blur:function(d,e){if(b.menu.element.is(&quot;:visible&quot;)){b.element.val(b.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data(&quot;menu&quot;);if(a.fn.bgiframe){this.menu.element.bgiframe()}},destroy:function(){this.element.removeClass(&quot;ui-autocomplete-input ui-widget ui-widget-content&quot;).removeAttr(&quot;autocomplete&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-autocomplete&quot;).removeAttr(&quot;aria-haspopup&quot;);this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(b){a.Widget.prototype._setOption.apply(this,arguments);if(b===&quot;source&quot;){this._initSource()}},_initSource:function(){var c,b;if(a.isArray(this.options.source)){c=this.options.source;this.source=function(e,d){var f=new RegExp(a.ui.autocomplete.escapeRegex(e.term),&quot;i&quot;);d(a.grep(c,function(g){return f.test(g.label||g.value||g)}))}}else{if(typeof this.options.source===&quot;string&quot;){b=this.options.source;this.source=function(e,d){a.getJSON(b,e,d)}}else{this.source=this.options.source}}},search:function(c,b){c=c!=null?c:this.element.val();if(c.length&lt;this.options.minLength){return this.close(b)}clearTimeout(this.closing);if(this._trigger(&quot;search&quot;)===false){return}return this._search(c)},_search:function(b){this.term=this.element.addClass(&quot;ui-autocomplete-loading&quot;).val();this.source({term:b},this.response)},_response:function(b){if(b.length){b=this._normalize(b);this._suggest(b);this._trigger(&quot;open&quot;)}else{this.close()}this.element.removeClass(&quot;ui-autocomplete-loading&quot;)},close:function(b){clearTimeout(this.closing);if(this.menu.element.is(&quot;:visible&quot;)){this._trigger(&quot;close&quot;,b);this.menu.element.hide();this.menu.deactivate()}if(this.previous!==this.element.val()){this._trigger(&quot;change&quot;,b)}},_normalize:function(b){if(b.length&amp;&amp;b[0].label&amp;&amp;b[0].value){return b}return a.map(b,function(c){if(typeof c===&quot;string&quot;){return{label:c,value:c}}return a.extend({label:c.label||c.value,value:c.value||c.label},c)})},_suggest:function(b){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1),d,e;this._renderMenu(c,b);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:&quot;left top&quot;,at:&quot;left bottom&quot;,of:this.element,collision:&quot;none&quot;});d=c.width(&quot;&quot;).width();e=this.element.width();c.width(Math.max(d,e))},_renderMenu:function(d,c){var b=this;a.each(c,function(e,f){b._renderItem(d,f)})},_renderItem:function(b,c){return a(&quot;&lt;li&gt;&lt;/li&gt;&quot;).data(&quot;item.autocomplete&quot;,c).append(&quot;&lt;a&gt;&quot;+c.label+&quot;&lt;/a&gt;&quot;).appendTo(b)},_move:function(c,b){if(!this.menu.element.is(&quot;:visible&quot;)){this.search(null,b);return}if(this.menu.first()&amp;&amp;/^previous/.test(c)||this.menu.last()&amp;&amp;/^next/.test(c)){this.element.val(this.term);this.menu.deactivate();return}this.menu[c]()},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(b){return b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,&quot;\\$1&quot;)}})}(jQuery));(function(a){a.widget(&quot;ui.menu&quot;,{_create:function(){var b=this;this.element.addClass(&quot;ui-menu ui-widget ui-widget-content ui-corner-all&quot;).attr({role:&quot;listbox&quot;,&quot;aria-activedescendant&quot;:&quot;ui-active-menuitem&quot;}).click(function(c){c.preventDefault();b.select()});this.refresh()},refresh:function(){var c=this;var b=this.element.children(&quot;li:not(.ui-menu-item):has(a)&quot;).addClass(&quot;ui-menu-item&quot;).attr(&quot;role&quot;,&quot;menuitem&quot;);b.children(&quot;a&quot;).addClass(&quot;ui-corner-all&quot;).attr(&quot;tabindex&quot;,-1).mouseenter(function(){c.activate(a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(d){this.deactivate();if(this.hasScroll()){var e=d.offset().top-this.element.offset().top,b=this.element.attr(&quot;scrollTop&quot;),c=this.element.height();if(e&lt;0){this.element.attr(&quot;scrollTop&quot;,b+e)}else{if(e&gt;c){this.element.attr(&quot;scrollTop&quot;,b+e-c+d.height())}}}this.active=d.eq(0).children(&quot;a&quot;).addClass(&quot;ui-state-hover&quot;).attr(&quot;id&quot;,&quot;ui-active-menuitem&quot;).end();this._trigger(&quot;focus&quot;,null,{item:d})},deactivate:function(){if(!this.active){return}this.active.children(&quot;a&quot;).removeClass(&quot;ui-state-hover&quot;).removeAttr(&quot;id&quot;);this._trigger(&quot;blur&quot;);this.active=null},next:function(){this.move(&quot;next&quot;,&quot;li:first&quot;)},previous:function(){this.move(&quot;prev&quot;,&quot;li:last&quot;)},first:function(){return this.active&amp;&amp;!this.active.prev().length},last:function(){return this.active&amp;&amp;!this.active.next().length},move:function(d,c){if(!this.active){this.activate(this.element.children(c));return}var b=this.active[d]();if(b.length){this.activate(b)}else{this.activate(this.element.children(c))}},nextPage:function(){if(this.hasScroll()){if(!this.active||this.last()){this.activate(this.element.children(&quot;:first&quot;));return}var d=this.active.offset().top,c=this.element.height(),b=this.element.children(&quot;li&quot;).filter(function(){var e=a(this).offset().top-d-c+a(this).height();return e&lt;10&amp;&amp;e&gt;-10});if(!b.length){b=this.element.children(&quot;:last&quot;)}this.activate(b)}else{this.activate(this.element.children(!this.active||this.last()?&quot;:first&quot;:&quot;:last&quot;))}},previousPage:function(){if(this.hasScroll()){if(!this.active||this.first()){this.activate(this.element.children(&quot;:last&quot;));return}var c=this.active.offset().top,b=this.element.height();result=this.element.children(&quot;li&quot;).filter(function(){var d=a(this).offset().top-c+b-a(this).height();return d&lt;10&amp;&amp;d&gt;-10});if(!result.length){result=this.element.children(&quot;:first&quot;)}this.activate(result)}else{this.activate(this.element.children(!this.active||this.first()?&quot;:last&quot;:&quot;:first&quot;))}},hasScroll:function(){return this.element.height()&lt;this.element.attr(&quot;scrollHeight&quot;)},select:function(){this._trigger(&quot;selected&quot;,null,{item:this.active})}})}(jQuery));;/*
+ * jQuery UI Tabs 1.8
+ *
+ * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ *        jquery.ui.core.js
+ *        jquery.ui.widget.js
+ */ +(function(c){var b=0,a=0;c.widget(&quot;ui.tabs&quot;,{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,load:null,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,remove:null,select:null,show:null,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'},_create:function(){this._tabify(true)},_setOption:function(d,e){if(d==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;e==this.options.selected){return}this.select(e)}else{this.options[d]=e;this._tabify()}},_tabId:function(d){return d.title&amp;&amp;d.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+(++b)},_sanitizeSelector:function(d){return d.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+(++a));return c.cookie.apply(null,[d].concat(c.makeArray(arguments)))},_ui:function(e,d){return{tab:e,panel:d,index:this.anchors.index(e)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var d=c(this);d.html(d.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(q){this.list=this.element.find(&quot;ol,ul&quot;).eq(0);this.lis=c(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return c(&quot;a&quot;,this)[0]});this.panels=c([]);var r=this,f=this.options;var e=/^#.+/;this.anchors.each(function(u,o){var s=c(o).attr(&quot;href&quot;);var v=s.split(&quot;#&quot;)[0],w;if(v&amp;&amp;(v===location.toString().split(&quot;#&quot;)[0]||(w=c(&quot;base&quot;)[0])&amp;&amp;v===w.href)){s=o.hash;o.href=s}if(e.test(s)){r.panels=r.panels.add(r._sanitizeSelector(s))}else{if(s!=&quot;#&quot;){c.data(o,&quot;href.tabs&quot;,s);c.data(o,&quot;load.tabs&quot;,s.replace(/#.*$/,&quot;&quot;));var y=r._tabId(o);o.href=&quot;#&quot;+y;var x=c(&quot;#&quot;+y);if(!x.length){x=c(f.panelTemplate).attr(&quot;id&quot;,y).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(r.panels[u-1]||r.list);x.data(&quot;destroy.tabs&quot;,true)}r.panels=r.panels.add(x)}else{f.disabled.push(u)}}});if(q){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(f.selected===undefined){if(location.hash){this.anchors.each(function(s,o){if(o.hash==location.hash){f.selected=s;return false}})}if(typeof f.selected!=&quot;number&quot;&amp;&amp;f.cookie){f.selected=parseInt(r._cookie(),10)}if(typeof f.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){f.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}f.selected=f.selected||(this.lis.length?0:-1)}else{if(f.selected===null){f.selected=-1}}f.selected=((f.selected&gt;=0&amp;&amp;this.anchors[f.selected])||f.selected&lt;0)?f.selected:0;f.disabled=c.unique(f.disabled.concat(c.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(s,o){return r.lis.index(s)}))).sort();if(c.inArray(f.selected,f.disabled)!=-1){f.disabled.splice(c.inArray(f.selected,f.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(f.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(f.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(f.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);r.element.queue(&quot;tabs&quot;,function(){r._trigger(&quot;show&quot;,null,r._ui(r.anchors[f.selected],r.panels[f.selected]))});this.load(f.selected)}c(window).bind(&quot;unload&quot;,function(){r.lis.add(r.anchors).unbind(&quot;.tabs&quot;);r.lis=r.anchors=r.panels=null})}else{f.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[f.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(f.cookie){this._cookie(f.selected,f.cookie)}for(var j=0,p;(p=this.lis[j]);j++){c(p)[c.inArray(j,f.disabled)!=-1&amp;&amp;!c(p).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(f.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(f.event!=&quot;mouseover&quot;){var h=function(o,i){if(i.is(&quot;:not(.ui-state-disabled)&quot;)){i.addClass(&quot;ui-state-&quot;+o)}};var l=function(o,i){i.removeClass(&quot;ui-state-&quot;+o)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){h(&quot;hover&quot;,c(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){l(&quot;hover&quot;,c(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){h(&quot;focus&quot;,c(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){l(&quot;focus&quot;,c(this).closest(&quot;li&quot;))})}var d,k;if(f.fx){if(c.isArray(f.fx)){d=f.fx[0];k=f.fx[1]}else{d=k=f.fx}}function g(i,o){i.css({display:&quot;&quot;});if(!c.support.opacity&amp;&amp;o.opacity){i[0].style.removeAttribute(&quot;filter&quot;)}}var m=k?function(i,o){c(i).closest(&quot;li&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(k,k.duration||&quot;normal&quot;,function(){g(o,k);r._trigger(&quot;show&quot;,null,r._ui(i,o[0]))})}:function(i,o){c(i).closest(&quot;li&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.removeClass(&quot;ui-tabs-hide&quot;);r._trigger(&quot;show&quot;,null,r._ui(i,o[0]))};var n=d?function(o,i){i.animate(d,d.duration||&quot;normal&quot;,function(){r.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);i.addClass(&quot;ui-tabs-hide&quot;);g(i,d);r.element.dequeue(&quot;tabs&quot;)})}:function(o,i,s){r.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);i.addClass(&quot;ui-tabs-hide&quot;);r.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(f.event+&quot;.tabs&quot;,function(){var o=this,u=c(this).closest(&quot;li&quot;),i=r.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),s=c(r._sanitizeSelector(this.hash));if((u.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!f.collapsible)||u.hasClass(&quot;ui-state-disabled&quot;)||u.hasClass(&quot;ui-state-processing&quot;)||r._trigger(&quot;select&quot;,null,r._ui(this,s[0]))===false){this.blur();return false}f.selected=r.anchors.index(this);r.abort();if(f.collapsible){if(u.hasClass(&quot;ui-tabs-selected&quot;)){f.selected=-1;if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue(&quot;tabs&quot;,function(){n(o,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!i.length){if(f.cookie){r._cookie(f.selected,f.cookie)}r.element.queue(&quot;tabs&quot;,function(){m(o,s)});r.load(r.anchors.index(this));this.blur();return false}}}if(f.cookie){r._cookie(f.selected,f.cookie)}if(s.length){if(i.length){r.element.queue(&quot;tabs&quot;,function(){n(o,i)})}r.element.queue(&quot;tabs&quot;,function(){m(o,s)});r.load(r.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(c.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var d=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var e=c.data(this,&quot;href.tabs&quot;);if(e){this.href=e}var f=c(this).unbind(&quot;.tabs&quot;);c.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(g,h){f.removeData(h+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(c.data(this,&quot;destroy.tabs&quot;)){c(this).remove()}else{c(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(d.cookie){this._cookie(null,d.cookie)}return this},add:function(g,f,e){if(e===undefined){e=this.anchors.length}var d=this,i=this.options,k=c(i.tabTemplate.replace(/#\{href\}/g,g).replace(/#\{label\}/g,f)),j=!g.indexOf(&quot;#&quot;)?g.replace(&quot;#&quot;,&quot;&quot;):this._tabId(c(&quot;a&quot;,k)[0]);k.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var h=c(&quot;#&quot;+j);if(!h.length){h=c(i.panelTemplate).attr(&quot;id&quot;,j).data(&quot;destroy.tabs&quot;,true)}h.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(e&gt;=this.lis.length){k.appendTo(this.list);h.appendTo(this.list[0].parentNode)}else{k.insertBefore(this.lis[e]);h.insertBefore(this.panels[e])}i.disabled=c.map(i.disabled,function(m,l){return m&gt;=e?++m:m});this._tabify();if(this.anchors.length==1){i.selected=0;k.addClass(&quot;ui-tabs-selected ui-state-active&quot;);h.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){d._trigger(&quot;show&quot;,null,d._ui(d.anchors[0],d.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[e],this.panels[e]));return this},remove:function(d){var f=this.options,g=this.lis.eq(d).remove(),e=this.panels.eq(d).remove();if(g.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(d+(d+1&lt;this.anchors.length?1:-1))}f.disabled=c.map(c.grep(f.disabled,function(j,h){return j!=d}),function(j,h){return j&gt;=d?--j:j});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(g.find(&quot;a&quot;)[0],e[0]));return this},enable:function(d){var e=this.options;if(c.inArray(d,e.disabled)==-1){return}this.lis.eq(d).removeClass(&quot;ui-state-disabled&quot;);e.disabled=c.grep(e.disabled,function(g,f){return g!=d});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[d],this.panels[d]));return this},disable:function(e){var d=this,f=this.options;if(e!=f.selected){this.lis.eq(e).addClass(&quot;ui-state-disabled&quot;);f.disabled.push(e);f.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[e],this.panels[e]))}return this},select:function(d){if(typeof d==&quot;string&quot;){d=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+d+&quot;]&quot;))}else{if(d===null){d=-1}}if(d==-1&amp;&amp;this.options.collapsible){d=this.options.selected}this.anchors.eq(d).trigger(this.options.event+&quot;.tabs&quot;);return this},load:function(g){var e=this,i=this.options,d=this.anchors.eq(g)[0],f=c.data(d,&quot;load.tabs&quot;);this.abort();if(!f||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;c.data(d,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(g).addClass(&quot;ui-state-processing&quot;);if(i.spinner){var h=c(&quot;span&quot;,d);h.data(&quot;label.tabs&quot;,h.html()).html(i.spinner)}this.xhr=c.ajax(c.extend({},i.ajaxOptions,{url:f,success:function(k,j){c(e._sanitizeSelector(d.hash)).html(k);e._cleanup();if(i.cache){c.data(d,&quot;cache.tabs&quot;,true)}e._trigger(&quot;load&quot;,null,e._ui(e.anchors[g],e.panels[g]));try{i.ajaxOptions.success(k,j)}catch(l){}},error:function(l,j,k){e._cleanup();e._trigger(&quot;load&quot;,null,e._ui(e.anchors[g],e.panels[g]));try{i.ajaxOptions.error(l,j,g,d)}catch(k){}}}));e.element.dequeue(&quot;tabs&quot;);return this},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue(&quot;tabs&quot;,this.element.queue(&quot;tabs&quot;).splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(e,d){this.anchors.eq(e).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,d);return this},length:function(){return this.anchors.length}});c.extend(c.ui.tabs,{version:&quot;1.8&quot;});c.extend(c.ui.tabs.prototype,{rotation:null,rotate:function(f,h){var d=this,i=this.options;var e=d._rotate||(d._rotate=function(j){clearTimeout(d.rotation);d.rotation=setTimeout(function(){var k=i.selected;d.select(++k&lt;d.anchors.length?k:0)},f);if(j){j.stopPropagation()}});var g=d._unrotate||(d._unrotate=!h?function(j){if(j.clientX){d.rotate(null)}}:function(j){t=i.selected;e()});if(f){this.element.bind(&quot;tabsshow&quot;,e);this.anchors.bind(i.event+&quot;.tabs&quot;,g);e()}else{clearTimeout(d.rotation);this.element.unbind(&quot;tabsshow&quot;,e);this.anchors.unbind(i.event+&quot;.tabs&quot;,g);delete this._rotate;delete this._unrotate}return this}})})(jQuery);;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryjqueryjs"></a>
<div class="modfile"><h4>Modified: trunk/js/jquery/jquery.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/jquery.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/jquery.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1,19 +1,154 @@
</span><del>-/*
- * jQuery JavaScript Library v1.3.2
</del><ins>+/*!
+ * jQuery JavaScript Library v1.4.2
</ins><span class="cx">  * http://jquery.com/
</span><span class="cx">  *
</span><del>- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
</del><ins>+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
</ins><span class="cx">  *
</span><del>- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
</del><ins>+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Sat Feb 13 22:33:48 2010 -0500
</ins><span class="cx">  */
</span><del>-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^&lt;]*(&lt;(.|\s)+&gt;)[^&gt;]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E===&quot;string&quot;){var G=D.exec(E);if(G&amp;&amp;(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&amp;&amp;I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&amp;&amp;E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:&quot;&quot;,jquery:&quot;1.3.2&quot;,size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H===&quot;find&quot;){G.selector=this.selector+(this.selector?&quot; &quot;:&quot;&quot;)+E}else{if(H){G.selector=this.selector+&quot;.&quot;+H+&quot;(&quot;+E+&quot;)&quot;}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&amp;&amp;E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F===&quot;string&quot;){if(H===g){return this[0]&amp;&amp;o[G||&quot;attr&quot;](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E==&quot;width&quot;||E==&quot;height&quot;)&amp;&amp;parseFloat(F)&lt;0){F=g}return this.attr(E,F,&quot;curCSS&quot;)},text:function(F){if(typeof F!==&quot;object&quot;&amp;&amp;F!=null){return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||document).createTextNode(F))}var E=&quot;&quot;;o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],&quot;find&quot;,E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),&quot;find&quot;,E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&amp;&amp;!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement(&quot;div&quot;);J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;).replace(/^\s*/,&quot;&quot;)])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find(&quot;*&quot;).andSelf(),F=0;E.find(&quot;*&quot;).andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],&quot;events&quot;);for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&amp;&amp;o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),&quot;filter&quot;,E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&amp;&amp;H.ownerDocument){if(G?G.index(H)&gt;-1:o(H).is(E)){o.data(H,&quot;closest&quot;,F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E===&quot;string&quot;){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),&quot;not&quot;,E)}else{E=o.multiFilter(E,this)}}var F=E.length&amp;&amp;E[E.length-1]!==g&amp;&amp;!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)&lt;0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E===&quot;string&quot;?o(E):o.makeArray(E))))},is:function(E){return !!E&amp;&amp;o.multiFilter(E,this).length&gt;0},hasClass:function(E){return !!E&amp;&amp;this.is(&quot;.&quot;+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,&quot;option&quot;)){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,&quot;select&quot;)){var I=E.selectedIndex,L=[],M=E.options,H=E.type==&quot;select-one&quot;;if(I&lt;0){return null}for(var F=H?I:0,J=H?I+1:M.length;F&lt;J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||&quot;&quot;).replace(/\r/g,&quot;&quot;)}return g}if(typeof K===&quot;number&quot;){K+=&quot;&quot;}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&amp;&amp;/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)&gt;=0||o.inArray(this.name,K)&gt;=0)}else{if(o.nodeName(this,&quot;select&quot;)){var N=o.makeArray(K);o(&quot;option&quot;,this).each(function(){this.selected=(o.inArray(this.value,N)&gt;=0||o.inArray(this.text,N)&gt;=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,&quot;&quot;):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),&quot;slice&quot;,Array.prototype.slice.call(arguments).join(&quot;,&quot;))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G&lt;E;G++){L.call(K(this[G],H),this.length&gt;1||G&gt;0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&amp;&amp;o.nodeName(N,&quot;table&quot;)&amp;&amp;o.nodeName(O,&quot;tr&quot;)?(N.getElementsByTagName(&quot;tbody&quot;)[0]||N.appendChild(N.ownerDocument.createElement(&quot;tbody&quot;))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:&quot;script&quot;})}else{o.globalEval(F.text||F.textContent||F.innerHTML||&quot;&quot;)}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J===&quot;boolean&quot;){E=J;J=arguments[1]||{};H=2}if(typeof J!==&quot;object&quot;&amp;&amp;!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H&lt;I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&amp;&amp;L&amp;&amp;typeof L===&quot;object&quot;&amp;&amp;!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)===&quot;[object Function]&quot;},isArray:function(E){return s.call(E)===&quot;[object Array]&quot;},isXMLDoc:function(E){return E.nodeType===9&amp;&amp;E.documentElement.nodeName!==&quot;HTML&quot;||!!E.ownerDocument&amp;&amp;o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&amp;&amp;/\S/.test(G)){var F=document.getElementsByTagName(&quot;head&quot;)[0]||document.documentElement,E=document.createElement(&quot;script&quot;);E.type=&quot;text/javascript&quot;;if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&amp;&amp;F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H&lt;I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H&lt;I&amp;&amp;K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I===&quot;number&quot;&amp;&amp;G==&quot;curCSS&quot;&amp;&amp;!b.test(E)?I+&quot;px&quot;:I},className:{add:function(E,F){o.each((F||&quot;&quot;).split(/\s+/),function(G,H){if(E.nodeType==1&amp;&amp;!o.className.has(E.className,H)){E.className+=(E.className?&quot; &quot;:&quot;&quot;)+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(&quot; &quot;):&quot;&quot;}},has:function(F,E){return F&amp;&amp;o.inArray(E,(F.className||F).toString().split(/\s+/))&gt;-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F==&quot;width&quot;||F==&quot;height&quot;){var L,G={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},K=F==&quot;width&quot;?[&quot;Left&quot;,&quot;Right&quot;]:[&quot;Top&quot;,&quot;Bottom&quot;];function I(){L=F==&quot;width&quot;?H.offsetWidth:H.offsetHeight;if(E===&quot;border&quot;){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,&quot;padding&quot;+this,true))||0}if(E===&quot;margin&quot;){L+=parseFloat(o.curCSS(H,&quot;margin&quot;+this,true))||0}else{L-=parseFloat(o.curCSS(H,&quot;border&quot;+this+&quot;Width&quot;,true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F==&quot;opacity&quot;&amp;&amp;!o.support.opacity){L=o.attr(E,&quot;opacity&quot;);return L==&quot;&quot;?&quot;1&quot;:L}if(F.match(/float/i)){F=w}if(!G&amp;&amp;E&amp;&amp;E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F=&quot;float&quot;}F=F.replace(/([A-Z])/g,&quot;-$1&quot;).toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F==&quot;opacity&quot;&amp;&amp;L==&quot;&quot;){L=&quot;1&quot;}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&amp;&amp;/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+&quot;px&quot;;E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement===&quot;undefined&quot;){K=K.ownerDocument||K[0]&amp;&amp;K[0].ownerDocument||document}if(!I&amp;&amp;F.length===1&amp;&amp;typeof F[0]===&quot;string&quot;){var H=/^&lt;(\w+)\s*\/?&gt;$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement(&quot;div&quot;);o.each(F,function(P,S){if(typeof S===&quot;number&quot;){S+=&quot;&quot;}if(!S){return}if(typeof S===&quot;string&quot;){S=S.replace(/(&lt;(\w+)[^&gt;]*?)\/&gt;/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+&quot;&gt;&lt;/&quot;+T+&quot;&gt;&quot;});var O=S.replace(/^\s+/,&quot;&quot;).substring(0,10).toLowerCase();var Q=!O.indexOf(&quot;&lt;opt&quot;)&amp;&amp;[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;]||!O.indexOf(&quot;&lt;leg&quot;)&amp;&amp;[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;]||O.match(/^&lt;(thead|tbody|tfoot|colg|cap)/)&amp;&amp;[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;]||!O.indexOf(&quot;&lt;tr&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;]||(!O.indexOf(&quot;&lt;td&quot;)||!O.indexOf(&quot;&lt;th&quot;))&amp;&amp;[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;]||!O.indexOf(&quot;&lt;col&quot;)&amp;&amp;[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;]||!o.support.htmlSerialize&amp;&amp;[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;]||[0,&quot;&quot;,&quot;&quot;];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/&lt;tbody/i.test(S),N=!O.indexOf(&quot;&lt;table&quot;)&amp;&amp;!R?L.firstChild&amp;&amp;L.firstChild.childNodes:Q[1]==&quot;&lt;table&gt;&quot;&amp;&amp;!R?L.childNodes:[];for(var M=N.length-1;M&gt;=0;--M){if(o.nodeName(N[M],&quot;tbody&quot;)&amp;&amp;!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&amp;&amp;/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],&quot;script&quot;)&amp;&amp;(!G[J].type||G[J].type.toLowerCase()===&quot;text/javascript&quot;)){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName(&quot;script&quot;))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&amp;&amp;o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G==&quot;selected&quot;&amp;&amp;J.parentNode){J.parentNode.selectedIndex}if(G in J&amp;&amp;H&amp;&amp;!F){if(L){if(G==&quot;type&quot;&amp;&amp;o.nodeName(J,&quot;input&quot;)&amp;&amp;J.parentNode){throw&quot;type property can't be changed&quot;}J[G]=K}if(o.nodeName(J,&quot;form&quot;)&amp;&amp;J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G==&quot;tabIndex&quot;){var I=J.getAttributeNode(&quot;tabIndex&quot;);return I&amp;&amp;I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&amp;&amp;J.href?0:g}return J[G]}if(!o.support.style&amp;&amp;H&amp;&amp;G==&quot;style&quot;){return o.attr(J.style,&quot;cssText&quot;,K)}if(L){J.setAttribute(G,&quot;&quot;+K)}var E=!o.support.hrefNormalized&amp;&amp;H&amp;&amp;F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&amp;&amp;G==&quot;opacity&quot;){if(L){J.zoom=1;J.filter=(J.filter||&quot;&quot;).replace(/alpha\([^)]*\)/,&quot;&quot;)+(parseInt(K)+&quot;&quot;==&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+K*100+&quot;)&quot;)}return J.filter&amp;&amp;J.filter.indexOf(&quot;opacity=&quot;)&gt;=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+&quot;&quot;:&quot;&quot;}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||&quot;&quot;).replace(/^\s+|\s+$/g,&quot;&quot;)},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G===&quot;string&quot;||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E&lt;F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G&lt;H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H&lt;I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G&lt;H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,&quot;0&quot;])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&amp;&amp;!/opera/.test(C),mozilla:/mozilla/.test(C)&amp;&amp;!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,&quot;parentNode&quot;)},next:function(E){return o.nth(E,2,&quot;nextSibling&quot;)},prev:function(E){return o.nth(E,2,&quot;previousSibling&quot;)},nextAll:function(E){return o.dir(E,&quot;nextSibling&quot;)},prevAll:function(E){return o.dir(E,&quot;previousSibling&quot;)},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,&quot;iframe&quot;)?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&amp;&amp;typeof G==&quot;string&quot;){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K&lt;H;K++){var I=(K&gt;0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,&quot;&quot;);if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!==&quot;boolean&quot;){E=!o.className.has(this,F)}o.className[E?&quot;add&quot;:&quot;remove&quot;](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o(&quot;*&quot;,this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&amp;&amp;parseInt(o.curCSS(E[0],F,true),10)||0}var h=&quot;jQuery&quot;+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&amp;&amp;!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E=&quot;&quot;;for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||&quot;fx&quot;)+&quot;queue&quot;;var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G===&quot;fx&quot;){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(&quot;.&quot;);H[1]=H[1]?&quot;.&quot;+H[1]:&quot;&quot;;if(G===g){var F=this.triggerHandler(&quot;getData&quot;+H[1]+&quot;!&quot;,[H[0]]);if(F===g&amp;&amp;this.length){F=o.data(this[0],E)}return F===g&amp;&amp;H[1]?this.data(H[0]):F}else{return this.trigger(&quot;setData&quot;+H[1]+&quot;!&quot;,[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!==&quot;string&quot;){F=E;E=&quot;fx&quot;}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E==&quot;fx&quot;&amp;&amp;G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- *  Copyright 2009, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['&quot;][^'&quot;]*['&quot;]|[^[\]'&quot;]+)+\]|\\.|[^ &gt;+~,(\[\\]+)+|[&gt;+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&amp;&amp;U.nodeType!==9){return[]}if(!Y||typeof Y!==&quot;string&quot;){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length&gt;1&amp;&amp;M.exec(Y)){if(Z.length===2&amp;&amp;I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&amp;&amp;U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length&gt;0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=&quot;&quot;}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw&quot;Syntax error, unrecognized expression: &quot;+(ah||Y)}if(H.call(ai)===&quot;[object Array]&quot;){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&amp;&amp;(ai[aa]===true||ai[aa].nodeType===1&amp;&amp;K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&amp;&amp;ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa&lt;ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W&lt;V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!==&quot;\\&quot;){X[1]=(X[1]||&quot;&quot;).replace(/\\/g,&quot;&quot;);Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],&quot;&quot;);break}}}}if(!Z){Z=T.getElementsByTagName(&quot;*&quot;)}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&amp;&amp;ac[0]&amp;&amp;Q(ac[0]);while(ad&amp;&amp;ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&amp;&amp;ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],&quot;&quot;);if(!T){return[]}break}}}if(ad==V){if(T==null){throw&quot;Syntax error, unrecognized expression: &quot;+ad}else{break}}V=ad}return aa};var I=F.selectors={order:[&quot;ID&quot;,&quot;NAME&quot;,&quot;TAG&quot;],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['&quot;]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['&quot;]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['&quot;]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['&quot;]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{&quot;class&quot;:&quot;className&quot;,&quot;for&quot;:&quot;htmlFor&quot;},attrHandle:{href:function(T){return T.getAttribute(&quot;href&quot;)}},relative:{&quot;+&quot;:function(aa,T,Z){var X=typeof T===&quot;string&quot;,ab=X&amp;&amp;!/\W/.test(T),Y=X&amp;&amp;!ab;if(ab&amp;&amp;!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W&lt;V;W++){if((U=aa[W])){while((U=U.previousSibling)&amp;&amp;U.nodeType!==1){}aa[W]=Y||U&amp;&amp;U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},&quot;&gt;&quot;:function(Z,U,aa){var X=typeof U===&quot;string&quot;;if(X&amp;&amp;!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V&lt;T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V&lt;T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},&quot;&quot;:function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T(&quot;parentNode&quot;,U,V,W,X,Y)},&quot;~&quot;:function(W,U,Y){var V=L++,T=S;if(typeof U===&quot;string&quot;&amp;&amp;!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T(&quot;previousSibling&quot;,U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!==&quot;undefined&quot;&amp;&amp;!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!==&quot;undefined&quot;){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W&lt;T;W++){if(X[W].getAttribute(&quot;name&quot;)===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=&quot; &quot;+W[1].replace(/\\/g,&quot;&quot;)+&quot; &quot;;if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&amp;&amp;(&quot; &quot;+Y.className+&quot; &quot;).indexOf(W)&gt;=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,&quot;&quot;)},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&amp;&amp;Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]==&quot;nth&quot;){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]==&quot;even&quot;&amp;&amp;&quot;2n&quot;||T[2]==&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(T[2])&amp;&amp;&quot;0n+&quot;+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,&quot;&quot;);if(!Z&amp;&amp;I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]===&quot;~=&quot;){X[4]=&quot; &quot;+X[4]+&quot; &quot;}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]===&quot;not&quot;){if(X[3].match(R).length&gt;1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&amp;&amp;T.type!==&quot;hidden&quot;},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return&quot;text&quot;===T.type},radio:function(T){return&quot;radio&quot;===T.type},checkbox:function(T){return&quot;checkbox&quot;===T.type},file:function(T){return&quot;file&quot;===T.type},password:function(T){return&quot;password&quot;===T.type},submit:function(T){return&quot;submit&quot;===T.type},image:function(T){return&quot;image&quot;===T.type},reset:function(T){return&quot;reset&quot;===T.type},button:function(T){return&quot;button&quot;===T.type||T.nodeName.toUpperCase()===&quot;BUTTON&quot;},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U&lt;T[3]-0},gt:function(V,U,T){return U&gt;T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U===&quot;contains&quot;){return(Z.textContent||Z.innerText||&quot;&quot;).indexOf(V[3])&gt;=0}else{if(U===&quot;not&quot;){var Y=V[3];for(var W=0,T=Y.length;W&lt;T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case&quot;only&quot;:case&quot;first&quot;:while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z==&quot;first&quot;){return true}U=T;case&quot;last&quot;:while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case&quot;nth&quot;:var V=W[2],ac=W[3];if(V==1&amp;&amp;ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&amp;&amp;(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&amp;&amp;aa/V&gt;=0)}}},ID:function(U,T){return U.nodeType===1&amp;&amp;U.getAttribute(&quot;id&quot;)===T},TAG:function(U,T){return(T===&quot;*&quot;&amp;&amp;U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(&quot; &quot;+(U.className||U.getAttribute(&quot;class&quot;))+&quot; &quot;).indexOf(T)&gt;-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+&quot;&quot;,X=W[2],U=W[4];return T==null?X===&quot;!=&quot;:X===&quot;=&quot;?Z===U:X===&quot;*=&quot;?Z.indexOf(U)&gt;=0:X===&quot;~=&quot;?(&quot; &quot;+Z+&quot; &quot;).indexOf(U)&gt;=0:!U?Z&amp;&amp;T!==false:X===&quot;!=&quot;?Z!=U:X===&quot;^=&quot;?Z.indexOf(U)===0:X===&quot;$=&quot;?Z.substr(Z.length-U.length)===U:X===&quot;|=&quot;?Z===U||Z.substr(0,U.length+1)===U+&quot;-&quot;:false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)===&quot;[object Array]&quot;){Array.prototype.push.apply(U,X)}else{if(typeof X.length===&quot;number&quot;){for(var V=0,T=X.length;V&lt;T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&amp;4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if(&quot;sourceIndex&quot; in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement(&quot;form&quot;),V=&quot;script&quot;+(new Date).getTime();U.innerHTML=&quot;&lt;input name='&quot;+V+&quot;'/&gt;&quot;;var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!==&quot;undefined&quot;&amp;&amp;!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!==&quot;undefined&quot;&amp;&amp;W.getAttributeNode(&quot;id&quot;).nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!==&quot;undefined&quot;&amp;&amp;Y.getAttributeNode(&quot;id&quot;);return Y.nodeType===1&amp;&amp;X&amp;&amp;X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement(&quot;div&quot;);T.appendChild(document.createComment(&quot;&quot;));if(T.getElementsByTagName(&quot;*&quot;).length&gt;0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]===&quot;*&quot;){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML=&quot;&lt;a href='#'&gt;&lt;/a&gt;&quot;;if(T.firstChild&amp;&amp;typeof T.firstChild.getAttribute!==&quot;undefined&quot;&amp;&amp;T.firstChild.getAttribute(&quot;href&quot;)!==&quot;#&quot;){I.attrHandle.href=function(U){return U.getAttribute(&quot;href&quot;,2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement(&quot;div&quot;);U.innerHTML=&quot;&lt;p class='TEST'&gt;&lt;/p&gt;&quot;;if(U.querySelectorAll&amp;&amp;U.querySelectorAll(&quot;.TEST&quot;).length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&amp;&amp;X.nodeType===9&amp;&amp;!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&amp;&amp;document.documentElement.getElementsByClassName){(function(){var T=document.createElement(&quot;div&quot;);T.innerHTML=&quot;&lt;div class='test e'&gt;&lt;/div&gt;&lt;div class='test'&gt;&lt;/div&gt;&quot;;if(T.getElementsByClassName(&quot;e&quot;).length===0){return}T.lastChild.className=&quot;e&quot;;if(T.getElementsByClassName(&quot;e&quot;).length===1){return}I.order.splice(1,0,&quot;CLASS&quot;);I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!==&quot;undefined&quot;&amp;&amp;!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U==&quot;previousSibling&quot;&amp;&amp;!ac;for(var W=0,V=ad.length;W&lt;V;W++){var T=ad[W];if(T){if(ab&amp;&amp;T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&amp;&amp;!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U==&quot;previousSibling&quot;&amp;&amp;!ac;for(var W=0,V=ad.length;W&lt;V;W++){var T=ad[W];if(T){if(ab&amp;&amp;T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!==&quot;string&quot;){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length&gt;0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&amp;16}:function(U,T){return U!==T&amp;&amp;(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&amp;&amp;T.documentElement.nodeName!==&quot;HTML&quot;||!!T.ownerDocument&amp;&amp;Q(T.ownerDocument)};var J=function(T,aa){var W=[],X=&quot;&quot;,Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,&quot;&quot;)}T=I.relative[T]?T+&quot;*&quot;:T;for(var Z=0,U=V.length;Z&lt;U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[&quot;:&quot;]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth&gt;0||T.offsetHeight&gt;0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=&quot;:not(&quot;+V+&quot;)&quot;}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&amp;&amp;W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&amp;&amp;++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&amp;&amp;V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&amp;&amp;I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,&quot;events&quot;)||o.data(I,&quot;events&quot;,{}),J=o.data(I,&quot;handle&quot;)||o.data(I,&quot;handle&quot;,function(){return typeof o!==&quot;undefined&quot;&amp;&amp;!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(&quot;.&quot;);N=O.shift();H.type=O.slice().sort().join(&quot;.&quot;);var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent(&quot;on&quot;+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,&quot;events&quot;),F,E;if(G){if(H===g||(typeof H===&quot;string&quot;&amp;&amp;H.charAt(0)==&quot;.&quot;)){for(var I in G){this.remove(K,I+(H||&quot;&quot;))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(&quot;.&quot;);O=Q.shift();var N=RegExp(&quot;(^|\\.)&quot;+Q.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,&quot;handle&quot;),false)}else{if(K.detachEvent){K.detachEvent(&quot;on&quot;+O,o.data(K,&quot;handle&quot;))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,&quot;handle&quot;);if(L){L.elem=null}o.removeData(K,&quot;events&quot;);o.removeData(K,&quot;handle&quot;)}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I===&quot;object&quot;?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf(&quot;!&quot;)&gt;=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&amp;&amp;this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,&quot;handle&quot;);if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,&quot;a&quot;)&amp;&amp;G==&quot;click&quot;))&amp;&amp;H[&quot;on&quot;+G]&amp;&amp;H[&quot;on&quot;+G].apply(H,K)===false){I.result=false}if(!E&amp;&amp;H[G]&amp;&amp;!I.isDefaultPrevented()&amp;&amp;!(o.nodeName(H,&quot;a&quot;)&amp;&amp;G==&quot;click&quot;)){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(&quot;.&quot;);K.type=L.shift();J=!L.length&amp;&amp;!K.exclusive;var I=RegExp(&quot;(^|\\.)&quot;+L.slice().sort().join(&quot;.*\\.&quot;)+&quot;(\\.|$)&quot;);E=(o.data(this,&quot;events&quot;)||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which&quot;.split(&quot; &quot;),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&amp;&amp;H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&amp;&amp;H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&amp;&amp;I.scrollLeft||E&amp;&amp;E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&amp;&amp;I.scrollTop||E&amp;&amp;E.scrollTop||0)-(I.clientTop||0)}if(!H.which&amp;&amp;((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&amp;&amp;H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&amp;&amp;H.button){H.which=(H.button&amp;1?1:(H.button&amp;2?3:(H.button&amp;4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp(&quot;(^|\\.)&quot;+G[0]+&quot;(\\.|$)&quot;);o.each((o.data(this,&quot;events&quot;).live||{}),function(){if(F.test(this.type)){E++}});if(E&lt;1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&amp;&amp;E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&amp;&amp;E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:&quot;mouseenter&quot;,mouseout:&quot;mouseleave&quot;},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F==&quot;unload&quot;?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&amp;&amp;G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&amp;&amp;H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F&lt;E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp(&quot;(^|\\.)&quot;+H.type+&quot;(\\.|$)&quot;),G=true,F=[];o.each(o.data(this,&quot;events&quot;).live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,&quot;closest&quot;)-o.data(I.elem,&quot;closest&quot;)});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return[&quot;live&quot;,F,E.replace(/\./g,&quot;`&quot;).replace(/ /g,&quot;|&quot;)].join(&quot;.&quot;)}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler(&quot;ready&quot;)}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener(&quot;DOMContentLoaded&quot;,function(){document.removeEventListener(&quot;DOMContentLoaded&quot;,arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent(&quot;onreadystatechange&quot;,function(){if(document.readyState===&quot;complete&quot;){document.detachEvent(&quot;onreadystatechange&quot;,arguments.callee);o.ready()}});if(document.documentElement.doScroll&amp;&amp;l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll(&quot;left&quot;)}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,&quot;load&quot;,o.ready)}o.each((&quot;blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error&quot;).split(&quot;,&quot;),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind(&quot;unload&quot;,function(){for(var E in o.cache){if(E!=1&amp;&amp;o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement(&quot;script&quot;),K=document.createElement(&quot;div&quot;),J=&quot;script&quot;+(new Date).getTime();K.style.display=&quot;none&quot;;K.innerHTML='   &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href=&quot;/a&quot; style=&quot;color:red;float:left;opacity:.5;&quot;&gt;a&lt;/a&gt;&lt;select&gt;&lt;option&gt;text&lt;/option&gt;&lt;/select&gt;&lt;object&gt;&lt;param/&gt;&lt;/object&gt;';var H=K.getElementsByTagName(&quot;*&quot;),E=K.getElementsByTagName(&quot;a&quot;)[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName(&quot;tbody&quot;).length,objectAll:!!K.getElementsByTagName(&quot;object&quot;)[0].getElementsByTagName(&quot;*&quot;).length,htmlSerialize:!!K.getElementsByTagName(&quot;link&quot;).length,style:/red/.test(E.getAttribute(&quot;style&quot;)),hrefNormalized:E.getAttribute(&quot;href&quot;)===&quot;/a&quot;,opacity:E.style.opacity===&quot;0.5&quot;,cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type=&quot;text/javascript&quot;;try{G.appendChild(document.createTextNode(&quot;window.&quot;+J+&quot;=1;&quot;))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&amp;&amp;K.fireEvent){K.attachEvent(&quot;onclick&quot;,function(){o.support.noCloneEvent=false;K.detachEvent(&quot;onclick&quot;,arguments.callee)});K.cloneNode(true).fireEvent(&quot;onclick&quot;)}o(function(){var L=document.createElement(&quot;div&quot;);L.style.width=L.style.paddingLeft=&quot;1px&quot;;document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display=&quot;none&quot;})})();var w=o.support.cssFloat?&quot;cssFloat&quot;:&quot;styleFloat&quot;;o.props={&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,&quot;float&quot;:w,cssFloat:w,styleFloat:w,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;,rowspan:&quot;rowSpan&quot;,tabindex:&quot;tabIndex&quot;};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!==&quot;string&quot;){return this._load(G)}var I=G.indexOf(&quot; &quot;);if(I&gt;=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H=&quot;GET&quot;;if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J===&quot;object&quot;){J=o.param(J);H=&quot;POST&quot;}}}var F=this;o.ajax({url:G,type:H,dataType:&quot;html&quot;,data:J,complete:function(M,L){if(L==&quot;success&quot;||L==&quot;notmodified&quot;){F.html(E?o(&quot;&lt;div/&gt;&quot;).append(M.responseText.replace(/&lt;script(.|\s)*?\/script&gt;/g,&quot;&quot;)).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each(&quot;ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend&quot;.split(&quot;,&quot;),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:&quot;GET&quot;,url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,&quot;script&quot;)},getJSON:function(E,F,G){return o.get(E,F,G,&quot;json&quot;)},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:&quot;POST&quot;,url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:&quot;GET&quot;,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;):new XMLHttpRequest()},accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&amp;|$)/g,R,V,G=M.type.toUpperCase();if(M.data&amp;&amp;M.processData&amp;&amp;typeof M.data!==&quot;string&quot;){M.data=o.param(M.data)}if(M.dataType==&quot;jsonp&quot;){if(G==&quot;GET&quot;){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+(M.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+&quot;&amp;&quot;:&quot;&quot;)+(M.jsonp||&quot;callback&quot;)+&quot;=?&quot;}}M.dataType=&quot;json&quot;}if(M.dataType==&quot;json&quot;&amp;&amp;(M.data&amp;&amp;M.data.match(F)||M.url.match(F))){W=&quot;jsonp&quot;+r++;if(M.data){M.data=(M.data+&quot;&quot;).replace(F,&quot;=&quot;+W+&quot;$1&quot;)}M.url=M.url.replace(F,&quot;=&quot;+W+&quot;$1&quot;);M.dataType=&quot;script&quot;;l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType==&quot;script&quot;&amp;&amp;M.cache==null){M.cache=false}if(M.cache===false&amp;&amp;G==&quot;GET&quot;){var E=e();var U=M.url.replace(/(\?|&amp;)_=.*?(&amp;|$)/,&quot;$1_=&quot;+E+&quot;$2&quot;);M.url=U+((U==M.url)?(M.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+E:&quot;&quot;)}if(M.data&amp;&amp;G==&quot;GET&quot;){M.url+=(M.url.match(/\?/)?&quot;&amp;&quot;:&quot;?&quot;)+M.data;M.data=null}if(M.global&amp;&amp;!o.active++){o.event.trigger(&quot;ajaxStart&quot;)}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType==&quot;script&quot;&amp;&amp;G==&quot;GET&quot;&amp;&amp;Q&amp;&amp;(Q[1]&amp;&amp;Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName(&quot;head&quot;)[0];var T=document.createElement(&quot;script&quot;);T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&amp;&amp;(!this.readyState||this.readyState==&quot;loaded&quot;||this.readyState==&quot;complete&quot;)){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader(&quot;Content-Type&quot;,M.contentType)}if(M.ifModified){J.setRequestHeader(&quot;If-Modified-Since&quot;,o.lastModified[M.url]||&quot;Thu, 01 Jan 1970 00:00:00 GMT&quot;)}J.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);J.setRequestHeader(&quot;Accept&quot;,M.dataType&amp;&amp;M.accepts[M.dataType]?M.accepts[M.dataType]+&quot;, */*&quot;:M.accepts._default)}catch(S){}if(M.beforeSend&amp;&amp;M.beforeSend(J,M)===false){if(M.global&amp;&amp;!--o.active){o.event.trigger(&quot;ajaxStop&quot;)}J.abort();return false}if(M.global){o.event.trigger(&quot;ajaxSend&quot;,[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&amp;&amp;!--o.active){o.event.trigger(&quot;ajaxStop&quot;)}}}else{if(!K&amp;&amp;J&amp;&amp;(J.readyState==4||X==&quot;timeout&quot;)){K=true;if(P){clearInterval(P);P=null}R=X==&quot;timeout&quot;?&quot;timeout&quot;:!o.httpSuccess(J)?&quot;error&quot;:M.ifModified&amp;&amp;o.httpNotModified(J,M.url)?&quot;notmodified&quot;:&quot;success&quot;;if(R==&quot;success&quot;){try{V=o.httpData(J,M.dataType,M)}catch(Z){R=&quot;parsererror&quot;}}if(R==&quot;success&quot;){var Y;try{Y=J.getResponseHeader(&quot;Last-Modified&quot;)}catch(Z){}if(M.ifModified&amp;&amp;Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout&gt;0){setTimeout(function(){if(J&amp;&amp;!K){N(&quot;timeout&quot;)}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger(&quot;ajaxSuccess&quot;,[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger(&quot;ajaxComplete&quot;,[J,M])}if(M.global&amp;&amp;!--o.active){o.event.trigger(&quot;ajaxStop&quot;)}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger(&quot;ajaxError&quot;,[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&amp;&amp;location.protocol==&quot;file:&quot;||(F.status&gt;=200&amp;&amp;F.status&lt;300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader(&quot;Last-Modified&quot;);return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader(&quot;content-type&quot;),E=H==&quot;xml&quot;||!H&amp;&amp;F&amp;&amp;F.indexOf(&quot;xml&quot;)&gt;=0,I=E?J.responseXML:J.responseText;if(E&amp;&amp;I.documentElement.tagName==&quot;parsererror&quot;){throw&quot;parsererror&quot;}if(G&amp;&amp;G.dataFilter){I=G.dataFilter(I,H)}if(typeof I===&quot;string&quot;){if(H==&quot;script&quot;){o.globalEval(I)}if(H==&quot;json&quot;){I=l[&quot;eval&quot;](&quot;(&quot;+I+&quot;)&quot;)}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+&quot;=&quot;+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join(&quot;&amp;&quot;).replace(/%20/g,&quot;+&quot;)}});var m={},n,d=[[&quot;height&quot;,&quot;marginTop&quot;,&quot;marginBottom&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],[&quot;width&quot;,&quot;marginLeft&quot;,&quot;marginRight&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;],[&quot;opacity&quot;]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t(&quot;show&quot;,3),J,L)}else{for(var H=0,F=this.length;H&lt;F;H++){var E=o.data(this[H],&quot;olddisplay&quot;);this[H].style.display=E||&quot;&quot;;if(o.css(this[H],&quot;display&quot;)===&quot;none&quot;){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o(&quot;&lt;&quot;+G+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);K=I.css(&quot;display&quot;);if(K===&quot;none&quot;){K=&quot;block&quot;}I.remove();m[G]=K}o.data(this[H],&quot;olddisplay&quot;,K)}}for(var H=0,F=this.length;H&lt;F;H++){this[H].style.display=o.data(this[H],&quot;olddisplay&quot;)||&quot;&quot;}return this}},hide:function(H,I){if(H){return this.animate(t(&quot;hide&quot;,3),H,I)}else{for(var G=0,F=this.length;G&lt;F;G++){var E=o.data(this[G],&quot;olddisplay&quot;);if(!E&amp;&amp;E!==&quot;none&quot;){o.data(this[G],&quot;olddisplay&quot;,o.css(this[G],&quot;display&quot;))}}for(var G=0,F=this.length;G&lt;F;G++){this[G].style.display=&quot;none&quot;}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G===&quot;boolean&quot;;return o.isFunction(G)&amp;&amp;o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(&quot;:hidden&quot;);o(this)[H?&quot;show&quot;:&quot;hide&quot;]()}):this.animate(t(&quot;toggle&quot;,3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){var K=o.extend({},E),M,L=this.nodeType==1&amp;&amp;o(this).is(&quot;:hidden&quot;),J=this;for(M in I){if(I[M]==&quot;hide&quot;&amp;&amp;L||I[M]==&quot;show&quot;&amp;&amp;!L){return K.complete.call(this)}if((M==&quot;height&quot;||M==&quot;width&quot;)&amp;&amp;this.style){K.display=o.css(this,&quot;display&quot;);K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow=&quot;hidden&quot;}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S==&quot;toggle&quot;?L?&quot;show&quot;:&quot;hide&quot;:S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||&quot;px&quot;;if(P!=&quot;px&quot;){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]==&quot;-=&quot;?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,&quot;&quot;)}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H&gt;=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t(&quot;show&quot;,1),slideUp:t(&quot;hide&quot;,1),slideToggle:t(&quot;toggle&quot;,1),fadeIn:{opacity:&quot;show&quot;},fadeOut:{opacity:&quot;hide&quot;}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G===&quot;object&quot;?G:{complete:F||!F&amp;&amp;H||o.isFunction(G)&amp;&amp;G,duration:G,easing:F&amp;&amp;H||H&amp;&amp;!o.isFunction(H)&amp;&amp;H};E.duration=o.fx.off?0:typeof E.duration===&quot;number&quot;?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop==&quot;height&quot;||this.prop==&quot;width&quot;)&amp;&amp;this.elem.style){this.elem.style.display=&quot;block&quot;}},cur:function(F){if(this.elem[this.prop]!=null&amp;&amp;(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&amp;&amp;E&gt;-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||&quot;px&quot;;this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&amp;&amp;o.timers.push(F)&amp;&amp;!n){n=setInterval(function(){var K=o.timers;for(var J=0;J&lt;K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop==&quot;width&quot;||this.prop==&quot;height&quot;?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G&gt;=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,&quot;display&quot;)==&quot;none&quot;){this.elem.style.display=&quot;block&quot;}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?&quot;swing&quot;:&quot;linear&quot;)](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,&quot;opacity&quot;,E.now)},_default:function(E){if(E.elem.style&amp;&amp;E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&amp;&amp;E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&amp;&amp;E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&amp;&amp;J!==K&amp;&amp;J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&amp;&amp;!(o.offset.doesAddBorderForTableAndCells&amp;&amp;/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&amp;&amp;M.overflow!==&quot;visible&quot;){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position===&quot;relative&quot;||E.position===&quot;static&quot;){N+=K.offsetTop,I+=K.offsetLeft}if(E.position===&quot;fixed&quot;){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement(&quot;div&quot;),H,G,N,I,M,E,J=L.style.marginTop,K='&lt;div style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table style=&quot;position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';M={position:&quot;absolute&quot;,top:0,left:0,margin:0,border:0,width:&quot;1px&quot;,height:&quot;1px&quot;,visibility:&quot;hidden&quot;};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow=&quot;hidden&quot;,H.style.position=&quot;relative&quot;;this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop=&quot;1px&quot;;this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,&quot;marginTop&quot;,true),10)||0,F+=parseInt(o.curCSS(E,&quot;marginLeft&quot;,true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,&quot;marginTop&quot;);J.left-=j(this,&quot;marginLeft&quot;);E.top+=j(G,&quot;borderTopWidth&quot;);E.left+=j(G,&quot;borderLeftWidth&quot;);F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&amp;&amp;(!/^body|html$/i.test(E.tagName)&amp;&amp;o.css(E,&quot;position&quot;)==&quot;static&quot;)){E=E.offsetParent}return o(E)}});o.each([&quot;Left&quot;,&quot;Top&quot;],function(F,E){var G=&quot;scroll&quot;+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?&quot;pageYOffset&quot;:&quot;pageXOffset&quot;]||o.boxModel&amp;&amp;document.documentElement[G]||document.body[G]:this[0][G]}});o.each([&quot;Height&quot;,&quot;Width&quot;],function(I,G){var E=I?&quot;Left&quot;:&quot;Top&quot;,H=I?&quot;Right&quot;:&quot;Bottom&quot;,F=G.toLowerCase();o.fn[&quot;inner&quot;+G]=function(){return this[0]?o.css(this[0],F,false,&quot;padding&quot;):null};o.fn[&quot;outer&quot;+G]=function(K){return this[0]?o.css(this[0],F,false,K?&quot;margin&quot;:&quot;border&quot;):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode==&quot;CSS1Compat&quot;&amp;&amp;document.documentElement[&quot;client&quot;+G]||document.body[&quot;client&quot;+G]:this[0]==document?Math.max(document.documentElement[&quot;client&quot;+G],document.body[&quot;scroll&quot;+G],document.documentElement[&quot;scroll&quot;+G],document.body[&quot;offset&quot;+G],document.documentElement[&quot;offset&quot;+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K===&quot;string&quot;?K:K+&quot;px&quot;)}})})();
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll(&quot;left&quot;)}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:&quot;script&quot;}):c.globalEval(b.text||b.textContent||b.innerHTML||&quot;&quot;);b.parentNode&amp;&amp;b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b===&quot;object&quot;){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&amp;&amp;f&amp;&amp;c.isFunction(d);for(o=0;o&lt;i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
+e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,&quot;events&quot;);if(!(a.liveFired===this||!i||!i.live||a.button&amp;&amp;a.type===&quot;click&quot;)){a.liveFired=this;var u=i.live.slice(0);for(k=0;k&lt;u.length;k++){i=u[k];i.origType.replace(O,&quot;&quot;)===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
+j.length;n&lt;r;n++)for(k=0;k&lt;u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType===&quot;mouseenter&quot;||i.preType===&quot;mouseleave&quot;)f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n&lt;r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return&quot;live.&quot;+(a&amp;&amp;a!==&quot;*&quot;?a+&quot;.&quot;:&quot;&quot;)+b.replace(/\./g,&quot;`&quot;).replace(/ /g,
+&quot;&amp;&quot;)}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&amp;&amp;a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&amp;&amp;f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&amp;&amp;b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&amp;&amp;typeof a[0]===&quot;string&quot;&amp;&amp;a[0].length&lt;512&amp;&amp;b===s&amp;&amp;!ta.test(a[0])&amp;&amp;(c.support.checkClone||!ua.test(a[0]))){e=
+true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return&quot;scrollTo&quot;in a&amp;&amp;a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^&lt;]*(&lt;[\w\W]+&gt;)[^&gt;]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
+Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^&lt;(\w+)\s*\/?&gt;(?:&lt;\/\1&gt;)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a===&quot;body&quot;&amp;&amp;!b){this.context=s;this[0]=s.body;this.selector=&quot;body&quot;;this.length=1;return this}if(typeof a===&quot;string&quot;)if((d=Ta.exec(a))&amp;&amp;
+(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&amp;&amp;/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
+a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:&quot;&quot;,jquery:&quot;1.4.2&quot;,length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a&lt;0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
+&quot;find&quot;)f.selector=this.selector+(this.selector?&quot; &quot;:&quot;&quot;)+d;else if(b)f.selector=this.selector+&quot;.&quot;+b+&quot;(&quot;+d+&quot;)&quot;;return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&amp;&amp;Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),&quot;slice&quot;,R.call(arguments).join(&quot;,&quot;))},map:function(a){return this.pushStack(c.map(this,
+function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a===&quot;boolean&quot;){f=a;a=arguments[1]||{};b=2}if(typeof a!==&quot;object&quot;&amp;&amp;!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b&lt;d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&amp;&amp;o&amp;&amp;(c.isPlainObject(o)||c.isArray(o))){i=i&amp;&amp;(c.isPlainObject(i)||
+c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&amp;&amp;c(s).triggerHandler(&quot;ready&quot;)}},bindReady:function(){if(!xa){xa=true;if(s.readyState===&quot;complete&quot;)return c.ready();if(s.addEventListener){s.addEventListener(&quot;DOMContentLoaded&quot;,
+L,false);A.addEventListener(&quot;load&quot;,c.ready,false)}else if(s.attachEvent){s.attachEvent(&quot;onreadystatechange&quot;,L);A.attachEvent(&quot;onload&quot;,c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&amp;&amp;a&amp;&amp;ma()}}},isFunction:function(a){return $.call(a)===&quot;[object Function]&quot;},isArray:function(a){return $.call(a)===&quot;[object Array]&quot;},isPlainObject:function(a){if(!a||$.call(a)!==&quot;[object Object]&quot;||a.nodeType||a.setInterval)return false;if(a.constructor&amp;&amp;!aa.call(a,&quot;constructor&quot;)&amp;&amp;!aa.call(a.constructor.prototype,
+&quot;isPrototypeOf&quot;))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!==&quot;string&quot;||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]{4})/g,&quot;@&quot;).replace(/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,&quot;]&quot;).replace(/(?:^|:|,)(?:\s*\[)+/g,&quot;&quot;)))return A.JSON&amp;&amp;A.JSON.parse?A.JSON.parse(a):(new Function(&quot;return &quot;+
+a))();else c.error(&quot;Invalid JSON: &quot;+a)},noop:function(){},globalEval:function(a){if(a&amp;&amp;Va.test(a)){var b=s.getElementsByTagName(&quot;head&quot;)[0]||s.documentElement,d=s.createElement(&quot;script&quot;);d.type=&quot;text/javascript&quot;;if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&amp;&amp;a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
+d)===false)break}else for(;e&lt;j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e&lt;j&amp;&amp;b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||&quot;&quot;).replace(Wa,&quot;&quot;)},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a===&quot;string&quot;||c.isFunction(a)||typeof a!==&quot;function&quot;&amp;&amp;a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d&lt;f;d++)if(b[d]===
+a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length===&quot;number&quot;)for(var e=b.length;f&lt;e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e&lt;j;e++)!d!==!b(a[e],e)&amp;&amp;f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j&lt;i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b===&quot;string&quot;){d=a;a=d[b];b=w}else if(b&amp;&amp;
+!c.isFunction(b)){d=b;b=w}if(!b&amp;&amp;a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&amp;&amp;/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||&quot;&quot;,version:a[2]||&quot;0&quot;}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
+true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener(&quot;DOMContentLoaded&quot;,L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState===&quot;complete&quot;){s.detachEvent(&quot;onreadystatechange&quot;,L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement(&quot;script&quot;),d=s.createElement(&quot;div&quot;),f=&quot;script&quot;+J();d.style.display=&quot;none&quot;;d.innerHTML=&quot;   &lt;link/&gt;&lt;table&gt;&lt;/table&gt;&lt;a href='/a' style='color:red;float:left;opacity:.55;'&gt;a&lt;/a&gt;&lt;input type='checkbox'/&gt;&quot;;
+var e=d.getElementsByTagName(&quot;*&quot;),j=d.getElementsByTagName(&quot;a&quot;)[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName(&quot;tbody&quot;).length,htmlSerialize:!!d.getElementsByTagName(&quot;link&quot;).length,style:/red/.test(j.getAttribute(&quot;style&quot;)),hrefNormalized:j.getAttribute(&quot;href&quot;)===&quot;/a&quot;,opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName(&quot;input&quot;)[0].value===&quot;on&quot;,optSelected:s.createElement(&quot;select&quot;).appendChild(s.createElement(&quot;option&quot;)).selected,
+parentNode:d.removeChild(d.appendChild(s.createElement(&quot;div&quot;))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type=&quot;text/javascript&quot;;try{b.appendChild(s.createTextNode(&quot;window.&quot;+f+&quot;=1;&quot;))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&amp;&amp;d.fireEvent){d.attachEvent(&quot;onclick&quot;,function k(){c.support.noCloneEvent=
+false;d.detachEvent(&quot;onclick&quot;,k)});d.cloneNode(true).fireEvent(&quot;onclick&quot;)}d=s.createElement(&quot;div&quot;);d.innerHTML=&quot;&lt;input type='radio' name='radiotest' checked='checked'/&gt;&quot;;a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement(&quot;div&quot;);k.style.width=k.style.paddingLeft=&quot;1px&quot;;s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display=&quot;none&quot;});a=function(k){var n=
+s.createElement(&quot;div&quot;);k=&quot;on&quot;+k;var r=k in n;if(!r){n.setAttribute(k,&quot;return;&quot;);r=typeof n[k]===&quot;function&quot;}return r};c.support.submitBubbles=a(&quot;submit&quot;);c.support.changeBubbles=a(&quot;change&quot;);a=b=d=e=j=null}})();c.props={&quot;for&quot;:&quot;htmlFor&quot;,&quot;class&quot;:&quot;className&quot;,readonly:&quot;readOnly&quot;,maxlength:&quot;maxLength&quot;,cellspacing:&quot;cellSpacing&quot;,rowspan:&quot;rowSpan&quot;,colspan:&quot;colSpan&quot;,tabindex:&quot;tabIndex&quot;,usemap:&quot;useMap&quot;,frameborder:&quot;frameBorder&quot;};var G=&quot;jQuery&quot;+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
+applet:true},data:function(a,b,d){if(!(a.nodeName&amp;&amp;c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&amp;&amp;typeof b===&quot;string&quot;&amp;&amp;d===w)return null;f||(f=++Ya);if(typeof b===&quot;object&quot;){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b===&quot;string&quot;?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&amp;&amp;c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&amp;&amp;c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
+else a.removeAttribute&amp;&amp;a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a===&quot;undefined&quot;&amp;&amp;this.length)return c.data(this[0]);else if(typeof a===&quot;object&quot;)return this.each(function(){c.data(this,a)});var d=a.split(&quot;.&quot;);d[1]=d[1]?&quot;.&quot;+d[1]:&quot;&quot;;if(b===w){var f=this.triggerHandler(&quot;getData&quot;+d[1]+&quot;!&quot;,[d[0]]);if(f===w&amp;&amp;this.length)f=c.data(this[0],a);return f===w&amp;&amp;d[1]?this.data(d[0]):f}else return this.trigger(&quot;setData&quot;+d[1]+&quot;!&quot;,[d[0],b]).each(function(){c.data(this,
+a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||&quot;fx&quot;)+&quot;queue&quot;;var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||&quot;fx&quot;;var d=c.queue(a,b),f=d.shift();if(f===&quot;inprogress&quot;)f=d.shift();if(f){b===&quot;fx&quot;&amp;&amp;d.unshift(&quot;inprogress&quot;);f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!==&quot;string&quot;){b=a;a=&quot;fx&quot;}if(b===
+w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a===&quot;fx&quot;&amp;&amp;d[0]!==&quot;inprogress&quot;&amp;&amp;c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||&quot;fx&quot;;return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||&quot;fx&quot;,[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
+cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,&quot;&quot;);this.nodeType===1&amp;&amp;this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr(&quot;class&quot;)))});if(a&amp;&amp;typeof a===&quot;string&quot;)for(var b=(a||&quot;&quot;).split(ca),d=0,f=this.length;d&lt;f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=&quot; &quot;+e.className+&quot; &quot;,
+i=e.className,o=0,k=b.length;o&lt;k;o++)if(j.indexOf(&quot; &quot;+b[o]+&quot; &quot;)&lt;0)i+=&quot; &quot;+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr(&quot;class&quot;)))});if(a&amp;&amp;typeof a===&quot;string&quot;||a===w)for(var b=(a||&quot;&quot;).split(ca),d=0,f=this.length;d&lt;f;d++){var e=this[d];if(e.nodeType===1&amp;&amp;e.className)if(a){for(var j=(&quot; &quot;+e.className+&quot; &quot;).replace(Aa,&quot; &quot;),i=0,o=b.length;i&lt;o;i++)j=j.replace(&quot; &quot;+b[i]+&quot; &quot;,
+&quot; &quot;);e.className=c.trim(j)}else e.className=&quot;&quot;}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b===&quot;boolean&quot;;if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr(&quot;class&quot;),b),b)});return this.each(function(){if(d===&quot;string&quot;)for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?&quot;addClass&quot;:&quot;removeClass&quot;](e)}else if(d===&quot;undefined&quot;||d===&quot;boolean&quot;){this.className&amp;&amp;c.data(this,&quot;__className__&quot;,this.className);this.className=
+this.className||a===false?&quot;&quot;:c.data(this,&quot;__className__&quot;)||&quot;&quot;}})},hasClass:function(a){a=&quot; &quot;+a+&quot; &quot;;for(var b=0,d=this.length;b&lt;d;b++)if((&quot; &quot;+this[b].className+&quot; &quot;).replace(Aa,&quot; &quot;).indexOf(a)&gt;-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,&quot;option&quot;))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,&quot;select&quot;)){var d=b.selectedIndex,f=[],e=b.options;b=b.type===&quot;select-one&quot;;if(d&lt;0)return null;var j=b?d:0;for(d=b?d+1:e.length;j&lt;d;j++){var i=
+e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&amp;&amp;!c.support.checkOn)return b.getAttribute(&quot;value&quot;)===null?&quot;on&quot;:b.value;return(b.value||&quot;&quot;).replace(Za,&quot;&quot;)}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r===&quot;number&quot;)r+=&quot;&quot;;if(c.isArray(r)&amp;&amp;Ba.test(this.type))this.checked=c.inArray(n.val(),r)&gt;=0;else if(c.nodeName(this,&quot;select&quot;)){var u=c.makeArray(r);c(&quot;option&quot;,this).each(function(){this.selected=
+c.inArray(c(this).val(),u)&gt;=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&amp;&amp;b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&amp;&amp;c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&amp;&amp;f&amp;&amp;!j){if(e){b===&quot;type&quot;&amp;&amp;ab.test(a.nodeName)&amp;&amp;a.parentNode&amp;&amp;c.error(&quot;type property can't be changed&quot;);
+a[b]=d}if(c.nodeName(a,&quot;form&quot;)&amp;&amp;a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b===&quot;tabIndex&quot;)return(b=a.getAttributeNode(&quot;tabIndex&quot;))&amp;&amp;b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&amp;&amp;a.href?0:w;return a[b]}if(!c.support.style&amp;&amp;f&amp;&amp;b===&quot;style&quot;){if(e)a.style.cssText=&quot;&quot;+d;return a.style.cssText}e&amp;&amp;a.setAttribute(b,&quot;&quot;+d);a=!c.support.hrefNormalized&amp;&amp;f&amp;&amp;j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
+function(b){return&quot;\\&quot;+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&amp;&amp;a!==A&amp;&amp;!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!==&quot;undefined&quot;&amp;&amp;!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(&quot; &quot;);for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(&quot;.&quot;)&gt;-1){r=k.split(&quot;.&quot;);
+k=r.shift();j.namespace=r.slice(0).sort().join(&quot;.&quot;)}else{r=[];j.namespace=&quot;&quot;}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&amp;&amp;a.attachEvent(&quot;on&quot;+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
+C=z&amp;&amp;z.events;if(z&amp;&amp;C){if(b&amp;&amp;b.type){d=b.handler;b=b.type}if(!b||typeof b===&quot;string&quot;&amp;&amp;b.charAt(0)===&quot;.&quot;){b=b||&quot;&quot;;for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(&quot; &quot;);e=b[j++];){n=e;i=e.indexOf(&quot;.&quot;)&lt;0;o=[];if(!i){o=e.split(&quot;.&quot;);e=o.shift();k=new RegExp(&quot;(^|\\.)&quot;+c.map(o.slice(0).sort(),db).join(&quot;\\.(?:.*\\.)?&quot;)+&quot;(\\.|$)&quot;)}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B&lt;r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&amp;&amp;r.splice(B--,1);n.remove&amp;&amp;n.remove.call(a,u)}if(f!=
+null)break}}if(r.length===0||f!=null&amp;&amp;r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B&lt;r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&amp;&amp;c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a===&quot;object&quot;?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf(&quot;!&quot;)&gt;=0){a.type=
+e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&amp;&amp;c.each(c.cache,function(){this.events&amp;&amp;this.events[e]&amp;&amp;c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,&quot;handle&quot;))&amp;&amp;f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&amp;&amp;d.nodeName&amp;&amp;c.noData[d.nodeName.toLowerCase()]))if(d[&quot;on&quot;+e]&amp;&amp;d[&quot;on&quot;+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&amp;&amp;
+f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,&quot;a&quot;)&amp;&amp;e===&quot;click&quot;,k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&amp;&amp;!o&amp;&amp;!(f&amp;&amp;f.nodeName&amp;&amp;c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f[&quot;on&quot;+e])f[&quot;on&quot;+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f[&quot;on&quot;+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(&quot;.&quot;)&lt;0&amp;&amp;!a.exclusive;
+if(!b){d=a.type.split(&quot;.&quot;);a.type=d.shift();f=new RegExp(&quot;(^|\\.)&quot;+d.slice(0).sort().join(&quot;\\.(?:.*\\.)?&quot;)+&quot;(\\.|$)&quot;)}e=c.data(this,&quot;events&quot;);d=e[a.type];if(e&amp;&amp;d){d=d.slice(0);e=0;for(var j=d.length;e&lt;j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:&quot;altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which&quot;.split(&quot; &quot;),
+fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&amp;&amp;a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&amp;&amp;a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&amp;&amp;b.scrollLeft||d&amp;&amp;d.scrollLeft||0)-(b&amp;&amp;b.clientLeft||d&amp;&amp;d.clientLeft||0);a.pageY=a.clientY+(b&amp;&amp;b.scrollTop||
+d&amp;&amp;d.scrollTop||0)-(b&amp;&amp;b.clientTop||d&amp;&amp;d.clientTop||0)}if(!a.which&amp;&amp;(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&amp;&amp;a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&amp;&amp;a.button!==w)a.which=a.button&amp;1?1:a.button&amp;2?3:a.button&amp;4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,&quot;&quot;);c.each(c.data(this,
+&quot;events&quot;).live||[],function(){if(d===this.origType.replace(O,&quot;&quot;))return b=false});b&amp;&amp;c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent(&quot;on&quot;+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&amp;&amp;a.type){this.originalEvent=
+a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&amp;&amp;a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&amp;&amp;a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
+isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&amp;&amp;b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&amp;&amp;d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&amp;&amp;d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
+{setup:function(){if(this.nodeName.toLowerCase()!==&quot;form&quot;){c.event.add(this,&quot;click.specialSubmit&quot;,function(a){var b=a.target,d=b.type;if((d===&quot;submit&quot;||d===&quot;image&quot;)&amp;&amp;c(b).closest(&quot;form&quot;).length)return na(&quot;submit&quot;,this,arguments)});c.event.add(this,&quot;keypress.specialSubmit&quot;,function(a){var b=a.target,d=b.type;if((d===&quot;text&quot;||d===&quot;password&quot;)&amp;&amp;c(b).closest(&quot;form&quot;).length&amp;&amp;a.keyCode===13)return na(&quot;submit&quot;,this,arguments)})}else return false},teardown:function(){c.event.remove(this,&quot;.specialSubmit&quot;)}};
+if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b===&quot;radio&quot;||b===&quot;checkbox&quot;)d=a.checked;else if(b===&quot;select-multiple&quot;)d=a.selectedIndex&gt;-1?c.map(a.options,function(f){return f.selected}).join(&quot;-&quot;):&quot;&quot;;else if(a.nodeName.toLowerCase()===&quot;select&quot;)d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,&quot;_change_data&quot;);e=Fa(d);if(a.type!==&quot;focusout&quot;||d.type!==&quot;radio&quot;)c.data(d,&quot;_change_data&quot;,
+e);if(!(f===w||e===f))if(f!=null||e){a.type=&quot;change&quot;;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d===&quot;radio&quot;||d===&quot;checkbox&quot;||b.nodeName.toLowerCase()===&quot;select&quot;)return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&amp;&amp;b.nodeName.toLowerCase()!==&quot;textarea&quot;||a.keyCode===32&amp;&amp;(d===&quot;checkbox&quot;||d===&quot;radio&quot;)||d===&quot;select-multiple&quot;)return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
+&quot;_change_data&quot;,Fa(a))}},setup:function(){if(this.type===&quot;file&quot;)return false;for(var a in ea)c.event.add(this,a+&quot;.specialChange&quot;,ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,&quot;.specialChange&quot;);return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&amp;&amp;c.each({focus:&quot;focusin&quot;,blur:&quot;focusout&quot;},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
+d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each([&quot;bind&quot;,&quot;one&quot;],function(a,b){c.fn[b]=function(d,f,e){if(typeof d===&quot;object&quot;){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b===&quot;one&quot;?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d===&quot;unload&quot;&amp;&amp;b!==&quot;one&quot;)this.one(d,f,e);else{j=0;for(var o=this.length;j&lt;o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a===&quot;object&quot;&amp;&amp;
+!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d&lt;f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind(&quot;live&quot;):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
+toggle:function(a){for(var b=arguments,d=1;d&lt;b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,&quot;lastToggle&quot;+a.guid)||0)%d;c.data(this,&quot;lastToggle&quot;+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:&quot;focusin&quot;,blur:&quot;focusout&quot;,mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;};c.each([&quot;live&quot;,&quot;die&quot;],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
+u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||&quot;&quot;).split(&quot; &quot;);(i=d[o++])!=null;){j=O.exec(i);k=&quot;&quot;;if(j){k=j[0];i=i.replace(O,&quot;&quot;)}if(i===&quot;hover&quot;)d.push(&quot;mouseenter&quot;+k,&quot;mouseleave&quot;+k);else{n=i;if(i===&quot;focus&quot;||i===&quot;blur&quot;){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b===&quot;live&quot;?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each(&quot;blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error&quot;.split(&quot; &quot;),
+function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&amp;&amp;!A.addEventListener&amp;&amp;A.attachEvent(&quot;onunload&quot;,function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h=&quot;&quot;,l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q&lt;v;q++){var t=m[q];
+if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&amp;&amp;!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q&lt;v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!==&quot;string&quot;){if(t===h){y=true;break}}else if(k.filter(h,[t]).length&gt;0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['&quot;][^'&quot;]*['&quot;]|[^[\]'&quot;]+)+\]|\\.|[^ &gt;+~,(\[\\]+)+|[&gt;+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&amp;&amp;h.nodeType!==9)return[];if(!g||typeof g!==&quot;string&quot;)return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(&quot;&quot;),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length&gt;1&amp;&amp;r.exec(g))if(p.length===2&amp;&amp;n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
+t=ga(g,t)}else{if(!m&amp;&amp;p.length&gt;1&amp;&amp;h.nodeType===9&amp;&amp;!M&amp;&amp;n.match.ID.test(p[0])&amp;&amp;!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&amp;&amp;(p[0]===&quot;~&quot;||p[0]===&quot;+&quot;)&amp;&amp;h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length&gt;0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D=&quot;&quot;;if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
+g);if(j.call(y)===&quot;[object Array]&quot;)if(H)if(h&amp;&amp;h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&amp;&amp;(y[g]===true||y[g].nodeType===1&amp;&amp;E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&amp;&amp;y[g].nodeType===1&amp;&amp;l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h&lt;g.length;h++)g[h]===g[h-1]&amp;&amp;g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
+for(var p=0,v=n.order.length;p&lt;v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!==&quot;\\&quot;){q[1]=(q[1]||&quot;&quot;).replace(/\\/g,&quot;&quot;);m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],&quot;&quot;);break}}}}m||(m=h.getElementsByTagName(&quot;*&quot;));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&amp;&amp;h[0]&amp;&amp;x(h[0]);g&amp;&amp;h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&amp;&amp;t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
+1)!==&quot;\\&quot;){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&amp;&amp;I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],&quot;&quot;);if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw&quot;Syntax error, unrecognized expression: &quot;+g;};var n=k.selectors={order:[&quot;ID&quot;,&quot;NAME&quot;,&quot;TAG&quot;],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
+CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['&quot;]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['&quot;]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['&quot;]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['&quot;]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{&quot;class&quot;:&quot;className&quot;,&quot;for&quot;:&quot;htmlFor&quot;},attrHandle:{href:function(g){return g.getAttribute(&quot;href&quot;)}},
+relative:{&quot;+&quot;:function(g,h){var l=typeof h===&quot;string&quot;,m=l&amp;&amp;!/\W/.test(h);l=l&amp;&amp;!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m&lt;q;m++)if(p=g[m]){for(;(p=p.previousSibling)&amp;&amp;p.nodeType!==1;);g[m]=l||p&amp;&amp;p.nodeName.toLowerCase()===h?p||false:p===h}l&amp;&amp;k.filter(h,g,true)},&quot;&gt;&quot;:function(g,h){var l=typeof h===&quot;string&quot;;if(l&amp;&amp;!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m&lt;q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m&lt;q;m++)if(p=g[m])g[m]=
+l?p.parentNode:p.parentNode===h;l&amp;&amp;k.filter(h,g,true)}},&quot;&quot;:function(g,h,l){var m=e++,q=d;if(typeof h===&quot;string&quot;&amp;&amp;!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q(&quot;parentNode&quot;,h,m,g,p,l)},&quot;~&quot;:function(g,h,l){var m=e++,q=d;if(typeof h===&quot;string&quot;&amp;&amp;!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q(&quot;previousSibling&quot;,h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!==&quot;undefined&quot;&amp;&amp;!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!==&quot;undefined&quot;){var l=[];
+h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m&lt;q;m++)h[m].getAttribute(&quot;name&quot;)===g[1]&amp;&amp;l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=&quot; &quot;+g[1].replace(/\\/g,&quot;&quot;)+&quot; &quot;;if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&amp;&amp;(&quot; &quot;+v.className+&quot; &quot;).replace(/[\t\n]/g,&quot; &quot;).indexOf(g)&gt;=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,&quot;&quot;)},TAG:function(g){return g[1].toLowerCase()},
+CHILD:function(g){if(g[1]===&quot;nth&quot;){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]===&quot;even&quot;&amp;&amp;&quot;2n&quot;||g[2]===&quot;odd&quot;&amp;&amp;&quot;2n+1&quot;||!/\D/.test(g[2])&amp;&amp;&quot;0n+&quot;+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,&quot;&quot;);if(!p&amp;&amp;n.attrMap[h])g[1]=n.attrMap[h];if(g[2]===&quot;~=&quot;)g[4]=&quot; &quot;+g[4]+&quot; &quot;;return g},PSEUDO:function(g,h,l,m,q){if(g[1]===&quot;not&quot;)if((f.exec(g[3])||&quot;&quot;).length&gt;1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
+g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&amp;&amp;g.type!==&quot;hidden&quot;},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
+text:function(g){return&quot;text&quot;===g.type},radio:function(g){return&quot;radio&quot;===g.type},checkbox:function(g){return&quot;checkbox&quot;===g.type},file:function(g){return&quot;file&quot;===g.type},password:function(g){return&quot;password&quot;===g.type},submit:function(g){return&quot;submit&quot;===g.type},image:function(g){return&quot;image&quot;===g.type},reset:function(g){return&quot;reset&quot;===g.type},button:function(g){return&quot;button&quot;===g.type||g.nodeName.toLowerCase()===&quot;button&quot;},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
+setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h&lt;l[3]-0},gt:function(g,h,l){return h&gt;l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q===&quot;contains&quot;)return(g.textContent||g.innerText||a([g])||&quot;&quot;).indexOf(h[3])&gt;=0;else if(q===&quot;not&quot;){h=
+h[3];l=0;for(m=h.length;l&lt;m;l++)if(h[l]===g)return false;return true}else k.error(&quot;Syntax error, unrecognized expression: &quot;+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case &quot;only&quot;:case &quot;first&quot;:for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l===&quot;first&quot;)return true;m=g;case &quot;last&quot;:for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case &quot;nth&quot;:l=h[2];var q=h[3];if(l===1&amp;&amp;q===0)return true;h=h[0];var p=g.parentNode;if(p&amp;&amp;(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
+m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&amp;&amp;g/l&gt;=0}},ID:function(g,h){return g.nodeType===1&amp;&amp;g.getAttribute(&quot;id&quot;)===h},TAG:function(g,h){return h===&quot;*&quot;&amp;&amp;g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(&quot; &quot;+(g.className||g.getAttribute(&quot;class&quot;))+&quot; &quot;).indexOf(h)&gt;-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+&quot;&quot;;var m=h[2];h=h[4];return g==null?m===&quot;!=&quot;:m===
+&quot;=&quot;?l===h:m===&quot;*=&quot;?l.indexOf(h)&gt;=0:m===&quot;~=&quot;?(&quot; &quot;+l+&quot; &quot;).indexOf(h)&gt;=0:!h?l&amp;&amp;g!==false:m===&quot;!=&quot;?l!==h:m===&quot;^=&quot;?l.indexOf(h)===0:m===&quot;$=&quot;?l.substr(l.length-h.length)===h:m===&quot;|=&quot;?l===h||l.substr(0,h.length+1)===h+&quot;-&quot;:false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
+h){return&quot;\\&quot;+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)===&quot;[object Array]&quot;)Array.prototype.push.apply(h,g);else if(typeof g.length===&quot;number&quot;)for(var l=0,m=g.length;l&lt;m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
+!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&amp;4?-1:g===h?0:1;if(g===0)i=true;return g};else if(&quot;sourceIndex&quot;in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
+h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement(&quot;div&quot;),h=&quot;script&quot;+(new Date).getTime();g.innerHTML=&quot;&lt;a name='&quot;+h+&quot;'/&gt;&quot;;var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!==&quot;undefined&quot;&amp;&amp;!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!==&quot;undefined&quot;&amp;&amp;
+q.getAttributeNode(&quot;id&quot;).nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!==&quot;undefined&quot;&amp;&amp;m.getAttributeNode(&quot;id&quot;);return m.nodeType===1&amp;&amp;p&amp;&amp;p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement(&quot;div&quot;);g.appendChild(s.createComment(&quot;&quot;));if(g.getElementsByTagName(&quot;*&quot;).length&gt;0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]===&quot;*&quot;){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&amp;&amp;h.push(l[m]);l=h}return l};g.innerHTML=&quot;&lt;a href='#'&gt;&lt;/a&gt;&quot;;
+if(g.firstChild&amp;&amp;typeof g.firstChild.getAttribute!==&quot;undefined&quot;&amp;&amp;g.firstChild.getAttribute(&quot;href&quot;)!==&quot;#&quot;)n.attrHandle.href=function(h){return h.getAttribute(&quot;href&quot;,2)};g=null})();s.querySelectorAll&amp;&amp;function(){var g=k,h=s.createElement(&quot;div&quot;);h.innerHTML=&quot;&lt;p class='TEST'&gt;&lt;/p&gt;&quot;;if(!(h.querySelectorAll&amp;&amp;h.querySelectorAll(&quot;.TEST&quot;).length===0)){k=function(m,q,p,v){q=q||s;if(!v&amp;&amp;q.nodeType===9&amp;&amp;!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
+(function(){var g=s.createElement(&quot;div&quot;);g.innerHTML=&quot;&lt;div class='test e'&gt;&lt;/div&gt;&lt;div class='test'&gt;&lt;/div&gt;&quot;;if(!(!g.getElementsByClassName||g.getElementsByClassName(&quot;e&quot;).length===0)){g.lastChild.className=&quot;e&quot;;if(g.getElementsByClassName(&quot;e&quot;).length!==1){n.order.splice(1,0,&quot;CLASS&quot;);n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!==&quot;undefined&quot;&amp;&amp;!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&amp;16)}:
+function(g,h){return g!==h&amp;&amp;(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!==&quot;HTML&quot;:false},ga=function(g,h){var l=[],m=&quot;&quot;,q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,&quot;&quot;)}g=n.relative[g]?g+&quot;*&quot;:g;q=0;for(var p=h.length;q&lt;p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[&quot;:&quot;]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
+gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b===&quot;string&quot;){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)&gt;=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack(&quot;&quot;,&quot;find&quot;,a),d=0,f=0,e=this.length;f&lt;e;f++){d=b.length;
+c.find(a,this[f],b);if(f&gt;0)for(var j=d;j&lt;b.length;j++)for(var i=0;i&lt;d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d&lt;f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),&quot;not&quot;,a)},filter:function(a){return this.pushStack(Ia(this,a,true),&quot;filter&quot;,a)},is:function(a){return!!a&amp;&amp;c.filter(a,this).length&gt;0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
+{},i;if(f&amp;&amp;a.length){e=0;for(var o=a.length;e&lt;o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&amp;&amp;f.ownerDocument&amp;&amp;f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)&gt;-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&amp;&amp;r.ownerDocument&amp;&amp;r!==b;){if(k?k.index(r)&gt;-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
+&quot;string&quot;)return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a===&quot;string&quot;?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&amp;&amp;a.nodeType!==11?a:null},parents:function(a){return c.dir(a,&quot;parentNode&quot;)},parentsUntil:function(a,b,d){return c.dir(a,&quot;parentNode&quot;,
+d)},next:function(a){return c.nth(a,2,&quot;nextSibling&quot;)},prev:function(a){return c.nth(a,2,&quot;previousSibling&quot;)},nextAll:function(a){return c.dir(a,&quot;nextSibling&quot;)},prevAll:function(a){return c.dir(a,&quot;previousSibling&quot;)},nextUntil:function(a,b,d){return c.dir(a,&quot;nextSibling&quot;,d)},prevUntil:function(a,b,d){return c.dir(a,&quot;previousSibling&quot;,d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,&quot;iframe&quot;)?
+a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&amp;&amp;typeof f===&quot;string&quot;)e=c.filter(f,e);e=this.length&gt;1?c.unique(e):e;if((this.length&gt;1||gb.test(f))&amp;&amp;fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(&quot;,&quot;))}});c.extend({filter:function(a,b,d){if(d)a=&quot;:not(&quot;+a+&quot;)&quot;;return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&amp;&amp;a.nodeType!==9&amp;&amp;(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
+1&amp;&amp;f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&amp;&amp;++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&amp;&amp;a!==b&amp;&amp;d.push(a);return d}});var Ja=/ jQuery\d+=&quot;(?:\d+|null)&quot;/g,V=/^\s+/,Ka=/(&lt;([\w:]+)[^&gt;]*?)\/&gt;/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/&lt;([\w:]+)/,ib=/&lt;tbody/i,jb=/&lt;|&amp;#?\w+;/,ta=/&lt;script|&lt;object|&lt;embed|&lt;option|&lt;style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
+a:b+&quot;&gt;&lt;/&quot;+d+&quot;&gt;&quot;},F={option:[1,&quot;&lt;select multiple='multiple'&gt;&quot;,&quot;&lt;/select&gt;&quot;],legend:[1,&quot;&lt;fieldset&gt;&quot;,&quot;&lt;/fieldset&gt;&quot;],thead:[1,&quot;&lt;table&gt;&quot;,&quot;&lt;/table&gt;&quot;],tr:[2,&quot;&lt;table&gt;&lt;tbody&gt;&quot;,&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;],td:[3,&quot;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&quot;,&quot;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&quot;],col:[2,&quot;&lt;table&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;colgroup&gt;&quot;,&quot;&lt;/colgroup&gt;&lt;/table&gt;&quot;],area:[1,&quot;&lt;map&gt;&quot;,&quot;&lt;/map&gt;&quot;],_default:[0,&quot;&quot;,&quot;&quot;]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,&quot;div&lt;div&gt;&quot;,&quot;&lt;/div&gt;&quot;];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
+c(this);d.text(a.call(this,b,d.text()))});if(typeof a!==&quot;object&quot;&amp;&amp;a!==w)return this.empty().append((this[0]&amp;&amp;this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&amp;&amp;b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&amp;&amp;d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
+wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,&quot;body&quot;)||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&amp;&amp;this.appendChild(a)})},
+prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&amp;&amp;this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&amp;&amp;this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,&quot;before&quot;,arguments)}},after:function(){if(this[0]&amp;&amp;this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
+this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,&quot;after&quot;,arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&amp;&amp;f.nodeType===1){c.cleanData(f.getElementsByTagName(&quot;*&quot;));c.cleanData([f])}f.parentNode&amp;&amp;f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&amp;&amp;c.cleanData(b.getElementsByTagName(&quot;*&quot;));b.firstChild;)b.removeChild(b.firstChild);
+return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&amp;&amp;!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement(&quot;div&quot;);d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,&quot;&quot;).replace(/=([^=&quot;'&gt;\s]+\/)&gt;/g,'=&quot;$1&quot;&gt;').replace(V,&quot;&quot;)],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find(&quot;*&quot;),b.find(&quot;*&quot;))}return b},html:function(a){if(a===w)return this[0]&amp;&amp;this[0].nodeType===1?this[0].innerHTML.replace(Ja,
+&quot;&quot;):null;else if(typeof a===&quot;string&quot;&amp;&amp;!ta.test(a)&amp;&amp;(c.support.leadingWhitespace||!V.test(a))&amp;&amp;!F[(La.exec(a)||[&quot;&quot;,&quot;&quot;])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b&lt;d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName(&quot;*&quot;));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&amp;&amp;
+this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!==&quot;string&quot;)a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),&quot;replaceWith&quot;,a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,&quot;table&quot;)?u.getElementsByTagName(&quot;tbody&quot;)[0]||
+u.appendChild(u.ownerDocument.createElement(&quot;tbody&quot;)):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&amp;&amp;arguments.length===3&amp;&amp;typeof i===&quot;string&quot;&amp;&amp;ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&amp;&amp;i.parentNode;e=c.support.parentNode&amp;&amp;e&amp;&amp;e.nodeType===11&amp;&amp;e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
+1?(k=k.firstChild):k.firstChild){b=b&amp;&amp;c.nodeName(j,&quot;tr&quot;);for(var n=0,r=this.length;n&lt;r;n++)d.call(b?f(this[n],j):this[n],n&gt;0||e.cacheable||this.length&gt;1?k.cloneNode(true):k)}o.length&amp;&amp;c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:&quot;append&quot;,prependTo:&quot;prepend&quot;,insertBefore:&quot;before&quot;,insertAfter:&quot;after&quot;,replaceAll:&quot;replaceWith&quot;},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&amp;&amp;this[0].parentNode;if(e&amp;&amp;e.nodeType===11&amp;&amp;e.childNodes.length===1&amp;&amp;d.length===1){d[b](this[0]);
+return this}else{e=0;for(var j=d.length;e&lt;j;e++){var i=(e&gt;0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement===&quot;undefined&quot;)b=b.ownerDocument||b[0]&amp;&amp;b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i===&quot;number&quot;)i+=&quot;&quot;;if(i){if(typeof i===&quot;string&quot;&amp;&amp;!jb.test(i))i=b.createTextNode(i);else if(typeof i===&quot;string&quot;){i=i.replace(Ka,Ma);var o=(La.exec(i)||[&quot;&quot;,
+&quot;&quot;])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement(&quot;div&quot;);for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o===&quot;table&quot;&amp;&amp;!n?r.firstChild&amp;&amp;r.firstChild.childNodes:k[1]===&quot;&lt;table&gt;&quot;&amp;&amp;!n?r.childNodes:[];for(k=o.length-1;k&gt;=0;--k)c.nodeName(o[k],&quot;tbody&quot;)&amp;&amp;!o[k].childNodes.length&amp;&amp;o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&amp;&amp;V.test(i)&amp;&amp;r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
+c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&amp;&amp;c.nodeName(e[j],&quot;script&quot;)&amp;&amp;(!e[j].type||e[j].type.toLowerCase()===&quot;text/javascript&quot;))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&amp;&amp;e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName(&quot;script&quot;))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
+c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&amp;&amp;o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:&quot;absolute&quot;,visibility:&quot;hidden&quot;,display:&quot;block&quot;},pb=[&quot;Left&quot;,&quot;Right&quot;],qb=[&quot;Top&quot;,&quot;Bottom&quot;],rb=s.defaultView&amp;&amp;s.defaultView.getComputedStyle,Pa=c.support.cssFloat?&quot;cssFloat&quot;:&quot;styleFloat&quot;,ja=
+function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e===&quot;number&quot;&amp;&amp;!kb.test(f))e+=&quot;px&quot;;c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b===&quot;width&quot;||b===&quot;height&quot;)&amp;&amp;parseFloat(d)&lt;0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&amp;&amp;b===&quot;opacity&quot;){if(e){f.zoom=1;b=parseInt(d,10)+&quot;&quot;===&quot;NaN&quot;?&quot;&quot;:&quot;alpha(opacity=&quot;+d*100+&quot;)&quot;;a=f.filter||c.curCSS(a,&quot;filter&quot;)||&quot;&quot;;f.filter=
+Na.test(a)?a.replace(Na,b):b}return f.filter&amp;&amp;f.filter.indexOf(&quot;opacity=&quot;)&gt;=0?parseFloat(Oa.exec(f.filter)[1])/100+&quot;&quot;:&quot;&quot;}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b===&quot;width&quot;||b===&quot;height&quot;){var e,j=b===&quot;width&quot;?pb:qb;function i(){e=b===&quot;width&quot;?a.offsetWidth:a.offsetHeight;f!==&quot;border&quot;&amp;&amp;c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,&quot;padding&quot;+this,true))||0);if(f===&quot;margin&quot;)e+=parseFloat(c.curCSS(a,&quot;margin&quot;+this,true))||0;else e-=parseFloat(c.curCSS(a,
+&quot;border&quot;+this+&quot;Width&quot;,true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&amp;&amp;b===&quot;opacity&quot;&amp;&amp;a.currentStyle){f=Oa.test(a.currentStyle.filter||&quot;&quot;)?parseFloat(RegExp.$1)/100+&quot;&quot;:&quot;&quot;;return f===&quot;&quot;?&quot;1&quot;:f}if(ha.test(b))b=Pa;if(!d&amp;&amp;e&amp;&amp;e[b])f=e[b];else if(rb){if(ha.test(b))b=&quot;float&quot;;b=b.replace(lb,&quot;-$1&quot;).toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
+a.getPropertyValue(b);if(b===&quot;opacity&quot;&amp;&amp;f===&quot;&quot;)f=&quot;1&quot;}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&amp;&amp;nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d===&quot;fontSize&quot;?&quot;1em&quot;:f||0;f=e.pixelLeft+&quot;px&quot;;e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&amp;&amp;c.expr.filters){c.expr.filters.hidden=function(a){var b=
+a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()===&quot;tr&quot;;return b===0&amp;&amp;d===0&amp;&amp;!f?true:b&gt;0&amp;&amp;d&gt;0&amp;&amp;!f?false:c.curCSS(a,&quot;display&quot;)===&quot;none&quot;};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/&lt;script(.|\s)*?\/script&gt;/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&amp;|$)/,ka=/\?/,wb=/(\?|&amp;)_=.*?(&amp;|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
+&quot;string&quot;)return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(&quot; &quot;);if(f&gt;=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f=&quot;GET&quot;;if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===&quot;object&quot;){b=c.param(b,c.ajaxSettings.traditional);f=&quot;POST&quot;}var j=this;c.ajax({url:a,type:f,dataType:&quot;html&quot;,data:b,complete:function(i,o){if(o===&quot;success&quot;||o===&quot;notmodified&quot;)j.html(e?c(&quot;&lt;div /&gt;&quot;).append(i.responseText.replace(tb,&quot;&quot;)).find(e):i.responseText);d&amp;&amp;j.each(d,[i.responseText,o,i])}});return this},
+serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&amp;&amp;!this.disabled&amp;&amp;(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each(&quot;ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend&quot;.split(&quot; &quot;),
+function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:&quot;GET&quot;,url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,&quot;script&quot;)},getJSON:function(a,b,d){return c.get(a,b,d,&quot;json&quot;)},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:&quot;POST&quot;,url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
+global:true,type:&quot;GET&quot;,contentType:&quot;application/x-www-form-urlencoded&quot;,processData:true,async:true,xhr:A.XMLHttpRequest&amp;&amp;(A.location.protocol!==&quot;file:&quot;||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)}catch(a){}},accepts:{xml:&quot;application/xml, text/xml&quot;,html:&quot;text/html&quot;,script:&quot;text/javascript, application/javascript&quot;,json:&quot;application/json, text/javascript&quot;,text:&quot;text/plain&quot;,_default:&quot;*/*&quot;}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&amp;&amp;
+e.success.call(k,o,i,x);e.global&amp;&amp;f(&quot;ajaxSuccess&quot;,[x,e])}function d(){e.complete&amp;&amp;e.complete.call(k,x,i);e.global&amp;&amp;f(&quot;ajaxComplete&quot;,[x,e]);e.global&amp;&amp;!--c.active&amp;&amp;c.event.trigger(&quot;ajaxStop&quot;)}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&amp;&amp;a.context||e,n=e.type.toUpperCase();if(e.data&amp;&amp;e.processData&amp;&amp;typeof e.data!==&quot;string&quot;)e.data=c.param(e.data,e.traditional);if(e.dataType===&quot;jsonp&quot;){if(n===&quot;GET&quot;)N.test(e.url)||(e.url+=(ka.test(e.url)?
+&quot;&amp;&quot;:&quot;?&quot;)+(e.jsonp||&quot;callback&quot;)+&quot;=?&quot;);else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+&quot;&amp;&quot;:&quot;&quot;)+(e.jsonp||&quot;callback&quot;)+&quot;=?&quot;;e.dataType=&quot;json&quot;}if(e.dataType===&quot;json&quot;&amp;&amp;(e.data&amp;&amp;N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||&quot;jsonp&quot;+sb++;if(e.data)e.data=(e.data+&quot;&quot;).replace(N,&quot;=&quot;+j+&quot;$1&quot;);e.url=e.url.replace(N,&quot;=&quot;+j+&quot;$1&quot;);e.dataType=&quot;script&quot;;A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&amp;&amp;z.removeChild(C)}}if(e.dataType===&quot;script&quot;&amp;&amp;e.cache===null)e.cache=false;if(e.cache===
+false&amp;&amp;n===&quot;GET&quot;){var r=J(),u=e.url.replace(wb,&quot;$1_=&quot;+r+&quot;$2&quot;);e.url=u+(u===e.url?(ka.test(e.url)?&quot;&amp;&quot;:&quot;?&quot;)+&quot;_=&quot;+r:&quot;&quot;)}if(e.data&amp;&amp;n===&quot;GET&quot;)e.url+=(ka.test(e.url)?&quot;&amp;&quot;:&quot;?&quot;)+e.data;e.global&amp;&amp;!c.active++&amp;&amp;c.event.trigger(&quot;ajaxStart&quot;);r=(r=xb.exec(e.url))&amp;&amp;(r[1]&amp;&amp;r[1]!==location.protocol||r[2]!==location.host);if(e.dataType===&quot;script&quot;&amp;&amp;n===&quot;GET&quot;&amp;&amp;r){var z=s.getElementsByTagName(&quot;head&quot;)[0]||s.documentElement,C=s.createElement(&quot;script&quot;);C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
+false;C.onload=C.onreadystatechange=function(){if(!B&amp;&amp;(!this.readyState||this.readyState===&quot;loaded&quot;||this.readyState===&quot;complete&quot;)){B=true;b();d();C.onload=C.onreadystatechange=null;z&amp;&amp;C.parentNode&amp;&amp;z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&amp;&amp;a.contentType)x.setRequestHeader(&quot;Content-Type&quot;,e.contentType);if(e.ifModified){c.lastModified[e.url]&amp;&amp;x.setRequestHeader(&quot;If-Modified-Since&quot;,
+c.lastModified[e.url]);c.etag[e.url]&amp;&amp;x.setRequestHeader(&quot;If-None-Match&quot;,c.etag[e.url])}r||x.setRequestHeader(&quot;X-Requested-With&quot;,&quot;XMLHttpRequest&quot;);x.setRequestHeader(&quot;Accept&quot;,e.dataType&amp;&amp;e.accepts[e.dataType]?e.accepts[e.dataType]+&quot;, */*&quot;:e.accepts._default)}catch(ga){}if(e.beforeSend&amp;&amp;e.beforeSend.call(k,x,e)===false){e.global&amp;&amp;!--c.active&amp;&amp;c.event.trigger(&quot;ajaxStop&quot;);x.abort();return false}e.global&amp;&amp;f(&quot;ajaxSend&quot;,[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q===&quot;abort&quot;){E||
+d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&amp;&amp;x&amp;&amp;(x.readyState===4||q===&quot;timeout&quot;)){E=true;x.onreadystatechange=c.noop;i=q===&quot;timeout&quot;?&quot;timeout&quot;:!c.httpSuccess(x)?&quot;error&quot;:e.ifModified&amp;&amp;c.httpNotModified(x,e.url)?&quot;notmodified&quot;:&quot;success&quot;;var p;if(i===&quot;success&quot;)try{o=c.httpData(x,e.dataType,e)}catch(v){i=&quot;parsererror&quot;;p=v}if(i===&quot;success&quot;||i===&quot;notmodified&quot;)j||b();else c.handleError(e,x,i,p);d();q===&quot;timeout&quot;&amp;&amp;x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&amp;&amp;h.call(x);
+g(&quot;abort&quot;)}}catch(l){}e.async&amp;&amp;e.timeout&gt;0&amp;&amp;setTimeout(function(){x&amp;&amp;!E&amp;&amp;g(&quot;timeout&quot;)},e.timeout);try{x.send(n===&quot;POST&quot;||n===&quot;PUT&quot;||n===&quot;DELETE&quot;?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger(&quot;ajaxError&quot;,[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&amp;&amp;location.protocol===&quot;file:&quot;||a.status&gt;=200&amp;&amp;a.status&lt;300||a.status===304||a.status===
+1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader(&quot;Last-Modified&quot;),f=a.getResponseHeader(&quot;Etag&quot;);if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader(&quot;content-type&quot;)||&quot;&quot;,e=b===&quot;xml&quot;||!b&amp;&amp;f.indexOf(&quot;xml&quot;)&gt;=0;a=e?a.responseXML:a.responseText;e&amp;&amp;a.documentElement.nodeName===&quot;parsererror&quot;&amp;&amp;c.error(&quot;parsererror&quot;);if(d&amp;&amp;d.dataFilter)a=d.dataFilter(a,b);if(typeof a===&quot;string&quot;)if(b===
+&quot;json&quot;||!b&amp;&amp;f.indexOf(&quot;json&quot;)&gt;=0)a=c.parseJSON(a);else if(b===&quot;script&quot;||!b&amp;&amp;f.indexOf(&quot;javascript&quot;)&gt;=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+&quot;[&quot;+(typeof n===&quot;object&quot;||c.isArray(n)?k:&quot;&quot;)+&quot;]&quot;,n)});else!b&amp;&amp;o!=null&amp;&amp;typeof o===&quot;object&quot;?c.each(o,function(k,n){d(i+&quot;[&quot;+k+&quot;]&quot;,n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+&quot;=&quot;+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
+if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join(&quot;&amp;&quot;).replace(yb,&quot;+&quot;)}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[[&quot;height&quot;,&quot;marginTop&quot;,&quot;marginBottom&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],[&quot;width&quot;,&quot;marginLeft&quot;,&quot;marginRight&quot;,&quot;paddingLeft&quot;,&quot;paddingRight&quot;],[&quot;opacity&quot;]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K(&quot;show&quot;,3),a,b);else{a=0;for(b=this.length;a&lt;b;a++){var d=c.data(this[a],&quot;olddisplay&quot;);
+this[a].style.display=d||&quot;&quot;;if(c.css(this[a],&quot;display&quot;)===&quot;none&quot;){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c(&quot;&lt;&quot;+d+&quot; /&gt;&quot;).appendTo(&quot;body&quot;);f=e.css(&quot;display&quot;);if(f===&quot;none&quot;)f=&quot;block&quot;;e.remove();la[d]=f}c.data(this[a],&quot;olddisplay&quot;,f)}}a=0;for(b=this.length;a&lt;b;a++)this[a].style.display=c.data(this[a],&quot;olddisplay&quot;)||&quot;&quot;;return this}},hide:function(a,b){if(a||a===0)return this.animate(K(&quot;hide&quot;,3),a,b);else{a=0;for(b=this.length;a&lt;b;a++){var d=c.data(this[a],&quot;olddisplay&quot;);!d&amp;&amp;d!==&quot;none&quot;&amp;&amp;c.data(this[a],
+&quot;olddisplay&quot;,c.css(this[a],&quot;display&quot;))}a=0;for(b=this.length;a&lt;b;a++)this[a].style.display=&quot;none&quot;;return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a===&quot;boolean&quot;;if(c.isFunction(a)&amp;&amp;c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(&quot;:hidden&quot;);c(this)[f?&quot;show&quot;:&quot;hide&quot;]()}):this.animate(K(&quot;toggle&quot;,3),a,b);return this},fadeTo:function(a,b,d){return this.filter(&quot;:hidden&quot;).css(&quot;opacity&quot;,0).show().end().animate({opacity:b},a,d)},
+animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?&quot;each&quot;:&quot;queue&quot;](function(){var j=c.extend({},e),i,o=this.nodeType===1&amp;&amp;c(this).is(&quot;:hidden&quot;),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]===&quot;hide&quot;&amp;&amp;o||a[i]===&quot;show&quot;&amp;&amp;!o)return j.complete.call(this);if((i===&quot;height&quot;||i===&quot;width&quot;)&amp;&amp;this.style){j.display=c.css(this,&quot;display&quot;);j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
+j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow=&quot;hidden&quot;;j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u===&quot;toggle&quot;?o?&quot;show&quot;:&quot;hide&quot;:u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||&quot;px&quot;;if(E!==&quot;px&quot;){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]===&quot;-=&quot;?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,&quot;&quot;)}});return true})},stop:function(a,b){var d=c.timers;a&amp;&amp;this.queue([]);
+this.each(function(){for(var f=d.length-1;f&gt;=0;f--)if(d[f].elem===this){b&amp;&amp;d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K(&quot;show&quot;,1),slideUp:K(&quot;hide&quot;,1),slideToggle:K(&quot;toggle&quot;,1),fadeIn:{opacity:&quot;show&quot;},fadeOut:{opacity:&quot;hide&quot;}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&amp;&amp;typeof a===&quot;object&quot;?a:{complete:d||!d&amp;&amp;b||c.isFunction(a)&amp;&amp;a,duration:a,easing:d&amp;&amp;b||b&amp;&amp;!c.isFunction(b)&amp;&amp;b};f.duration=c.fx.off?0:typeof f.duration===
+&quot;number&quot;?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&amp;&amp;c(this).dequeue();c.isFunction(f.old)&amp;&amp;f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&amp;&amp;this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
+c.fx.step._default)(this);if((this.prop===&quot;height&quot;||this.prop===&quot;width&quot;)&amp;&amp;this.elem.style)this.elem.style.display=&quot;block&quot;},cur:function(a){if(this.elem[this.prop]!=null&amp;&amp;(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&amp;&amp;a&gt;-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||&quot;px&quot;;this.now=this.start;
+this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&amp;&amp;c.timers.push(f)&amp;&amp;!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop===&quot;width&quot;||this.prop===&quot;height&quot;?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b&gt;=this.options.duration+this.startTime){this.now=
+this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,&quot;olddisplay&quot;);this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,&quot;display&quot;)===&quot;none&quot;)this.elem.style.display=&quot;block&quot;}this.options.hide&amp;&amp;c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
+e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?&quot;swing&quot;:&quot;linear&quot;);this.pos=c.easing[this.options.specialEasing&amp;&amp;this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b&lt;a.length;b++)a[b]()||a.splice(b--,1);a.length||
+c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,&quot;opacity&quot;,a.now)},_default:function(a){if(a.elem.style&amp;&amp;a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop===&quot;width&quot;||a.prop===&quot;height&quot;?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&amp;&amp;c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset=&quot;getBoundingClientRect&quot;in s.documentElement?
+function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&amp;&amp;f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&amp;&amp;f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
+this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&amp;&amp;b!==o&amp;&amp;b!==i;){if(c.offset.supportsFixedPosition&amp;&amp;f.position===&quot;fixed&quot;)break;j=e?e.getComputedStyle(b,null):b.currentStyle;
+k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&amp;&amp;!(c.offset.doesAddBorderForTableAndCells&amp;&amp;/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&amp;&amp;j.overflow!==&quot;visible&quot;){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position===&quot;relative&quot;||f.position===&quot;static&quot;){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&amp;&amp;
+f.position===&quot;fixed&quot;){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement(&quot;div&quot;),d,f,e,j=parseFloat(c.curCSS(a,&quot;marginTop&quot;,true))||0;c.extend(b.style,{position:&quot;absolute&quot;,top:0,left:0,margin:0,border:0,width:&quot;1px&quot;,height:&quot;1px&quot;,visibility:&quot;hidden&quot;});b.innerHTML=&quot;&lt;div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;;
+a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position=&quot;fixed&quot;;f.style.top=&quot;20px&quot;;this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top=&quot;&quot;;d.style.overflow=&quot;hidden&quot;;d.style.position=&quot;relative&quot;;this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
+c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,&quot;marginTop&quot;,true))||0;d+=parseFloat(c.curCSS(a,&quot;marginLeft&quot;,true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,&quot;position&quot;)))a.style.position=&quot;relative&quot;;var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,&quot;top&quot;,true),10)||0,i=parseInt(c.curCSS(a,&quot;left&quot;,true),10)||0;if(c.isFunction(b))b=b.call(a,
+d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};&quot;using&quot;in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,&quot;marginTop&quot;,true))||0;d.left-=parseFloat(c.curCSS(a,&quot;marginLeft&quot;,true))||0;f.top+=parseFloat(c.curCSS(b[0],&quot;borderTopWidth&quot;,true))||0;f.left+=parseFloat(c.curCSS(b[0],&quot;borderLeftWidth&quot;,true))||0;return{top:d.top-
+f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&amp;&amp;!/^body|html$/i.test(a.nodeName)&amp;&amp;c.css(a,&quot;position&quot;)===&quot;static&quot;;)a=a.offsetParent;return a})}});c.each([&quot;Left&quot;,&quot;Top&quot;],function(a,b){var d=&quot;scroll&quot;+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?&quot;pageXOffset&quot;in j?j[a?&quot;pageYOffset&quot;:
+&quot;pageXOffset&quot;]:c.support.boxModel&amp;&amp;j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each([&quot;Height&quot;,&quot;Width&quot;],function(a,b){var d=b.toLowerCase();c.fn[&quot;inner&quot;+b]=function(){return this[0]?c.css(this[0],d,false,&quot;padding&quot;):null};c.fn[&quot;outer&quot;+b]=function(f){return this[0]?c.css(this[0],d,false,f?&quot;margin&quot;:&quot;border&quot;):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return&quot;scrollTo&quot;in
+e&amp;&amp;e.document?e.document.compatMode===&quot;CSS1Compat&quot;&amp;&amp;e.document.documentElement[&quot;client&quot;+b]||e.document.body[&quot;client&quot;+b]:e.nodeType===9?Math.max(e.documentElement[&quot;client&quot;+b],e.body[&quot;scroll&quot;+b],e.documentElement[&quot;scroll&quot;+b],e.body[&quot;offset&quot;+b],e.documentElement[&quot;offset&quot;+b]):f===w?c.css(e,d):this.css(d,typeof f===&quot;string&quot;?f:f+&quot;px&quot;)}});A.jQuery=A.$=c})(window);
</ins></span></pre></div>
<a id="trunkjsjqueryuiaccordionjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.accordion.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.accordion.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.accordion.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.accordion&quot;,{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&amp;&amp;d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find(&quot;a&quot;).filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass(&quot;ui-accordion-content-active&quot;)}}}this.element.addClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;);if(this.element[0].nodeName==&quot;UL&quot;){this.element.children(&quot;li&quot;).addClass(&quot;ui-accordion-li-fix&quot;)}this.headers=this.element.find(d.header).addClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all&quot;).bind(&quot;mouseenter.accordion&quot;,function(){a(this).addClass(&quot;ui-state-hover&quot;)}).bind(&quot;mouseleave.accordion&quot;,function(){a(this).removeClass(&quot;ui-state-hover&quot;)}).bind(&quot;focus.accordion&quot;,function(){a(this).addClass(&quot;ui-state-focus&quot;)}).bind(&quot;blur.accordion&quot;,function(){a(this).removeClass(&quot;ui-state-focus&quot;)});this.headers.next().addClass(&quot;ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom&quot;);this.active=this._findActive(this.active||d.active).toggleClass(&quot;ui-state-default&quot;).toggleClass(&quot;ui-state-active&quot;).toggleClass(&quot;ui-corner-all&quot;).toggleClass(&quot;ui-corner-top&quot;);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);a(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-icon &quot;+d.icons.header).prependTo(this.headers);this.active.find(&quot;.ui-icon&quot;).toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find(&quot;a&quot;).css(&quot;zoom&quot;,&quot;1&quot;)}this.resize();this.element.attr(&quot;role&quot;,&quot;tablist&quot;);this.headers.attr(&quot;role&quot;,&quot;tab&quot;).bind(&quot;keydown&quot;,function(e){return b._keydown(e)}).next().attr(&quot;role&quot;,&quot;tabpanel&quot;);this.headers.not(this.active||&quot;&quot;).attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).next().hide();if(!this.active.length){this.headers.eq(0).attr(&quot;tabIndex&quot;,&quot;0&quot;)}else{this.active.attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;)}if(!a.browser.safari){this.headers.find(&quot;a&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;)}if(d.event){this.headers.bind((d.event)+&quot;.accordion&quot;,function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass(&quot;ui-accordion ui-widget ui-helper-reset&quot;).removeAttr(&quot;role&quot;).unbind(&quot;.accordion&quot;).removeData(&quot;accordion&quot;);this.headers.unbind(&quot;.accordion&quot;).removeClass(&quot;ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-expanded&quot;).removeAttr(&quot;tabindex&quot;);this.headers.find(&quot;a&quot;).removeAttr(&quot;tabindex&quot;);this.headers.children(&quot;.ui-icon&quot;).remove();var b=this.headers.next().css(&quot;display&quot;,&quot;&quot;).removeAttr(&quot;role&quot;).removeClass(&quot;ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active&quot;);if(c.autoHeight||c.fillHeight){b.css(&quot;height&quot;,&quot;&quot;)}},_setData:function(b,c){if(b==&quot;alwaysOpen&quot;){b=&quot;collapsible&quot;;c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr(&quot;tabIndex&quot;,&quot;-1&quot;);a(c).attr(&quot;tabIndex&quot;,&quot;0&quot;);c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css(&quot;overflow&quot;);this.element.parent().css(&quot;overflow&quot;,&quot;hidden&quot;)}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css(&quot;overflow&quot;,b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css(&quot;overflow&quot;,&quot;auto&quot;)}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b==&quot;number&quot;?this.headers.filter(&quot;:eq(&quot;+b+&quot;)&quot;):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(&quot;:eq(0)&quot;)},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&amp;&amp;d.collapsible){this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&amp;&amp;i)){return false}this.active.removeClass(&quot;ui-state-active ui-corner-top&quot;).addClass(&quot;ui-state-default ui-corner-all&quot;).find(&quot;.ui-icon&quot;).removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass(&quot;ui-accordion-content-active&quot;);if(!i){g.removeClass(&quot;ui-state-default ui-corner-all&quot;).addClass(&quot;ui-state-active ui-corner-top&quot;).find(&quot;.ui-icon&quot;).removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass(&quot;ui-accordion-content-active&quot;)}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&amp;&amp;d.collapsible?a([]):g,oldHeader:this.active,newContent:i&amp;&amp;d.collapsible?a([]):c.find(&quot;&gt; *&quot;),oldContent:h.find(&quot;&gt; *&quot;)},j=this.headers.index(this.active[0])&gt;this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger(&quot;changestart&quot;,null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&amp;&amp;j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&amp;&amp;j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr(&quot;aria-expanded&quot;,&quot;false&quot;).attr(&quot;tabIndex&quot;,&quot;-1&quot;).blur();b.prev().attr(&quot;aria-expanded&quot;,&quot;true&quot;).attr(&quot;tabIndex&quot;,&quot;0&quot;).focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:&quot;&quot;,overflow:&quot;&quot;})}this._trigger(&quot;change&quot;,null,this.data)}});a.extend(a.ui.accordion,{version:&quot;1.7.2&quot;,defaults:{active:null,alwaysOpen:true,animated:&quot;slide&quot;,autoHeight:true,clearStyle:false,collapsible:false,event:&quot;click&quot;,fillSpace:false,header:&quot;&gt; li &gt; :first-child,&gt; :not(li):even&quot;,icons:{header:&quot;ui-icon-triangle-1-e&quot;,headerSelected:&quot;ui-icon-triangle-1-s&quot;},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:&quot;swing&quot;,duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:&quot;show&quot;},j);return}if(!j.toShow.size()){j.toHide.animate({height:&quot;hide&quot;},j);return}var c=j.toShow.css(&quot;overflow&quot;),g,d={},f={},e=[&quot;height&quot;,&quot;paddingTop&quot;,&quot;paddingBottom&quot;],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css(&quot;paddingLeft&quot;),10)-parseInt(i.css(&quot;paddingRight&quot;),10)-(parseInt(i.css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(i.css(&quot;borderRightWidth&quot;),10)||0));a.each(e,function(k,m){f[m]=&quot;hide&quot;;var l=(&quot;&quot;+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||&quot;px&quot;}});j.toShow.css({height:0,overflow:&quot;hidden&quot;}).show();j.toHide.filter(&quot;:hidden&quot;).each(j.complete).end().filter(&quot;:visible&quot;).animate(f,{step:function(k,l){if(l.prop==&quot;height&quot;){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css(&quot;height&quot;,&quot;&quot;)}j.toShow.css(&quot;width&quot;,b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?&quot;easeOutBounce&quot;:&quot;swing&quot;,duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:&quot;easeinout&quot;,duration:700})}}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuicorejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.core.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.core.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.core.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&amp;&amp;(parseFloat(c.browser.version)&lt;1.9);c.ui={version:&quot;1.7.2&quot;,plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m&lt;n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&amp;16:k!==j&amp;&amp;k.contains(j)},hasScroll:function(m,k){if(c(m).css(&quot;overflow&quot;)==&quot;hidden&quot;){return false}var j=(k&amp;&amp;k==&quot;left&quot;)?&quot;scrollLeft&quot;:&quot;scrollTop&quot;,l=false;if(m[j]&gt;0){return true}m[j]=1;l=(m[j]&gt;0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k&gt;j)&amp;&amp;(k&lt;(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&amp;&amp;c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};if(d){var f=c.attr,e=c.fn.removeAttr,h=&quot;http://www.w3.org/2005/07/aaa&quot;,a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j==&quot;role&quot;?(m?f.call(this,k,j,&quot;wairole:&quot;+l):(f.apply(this,arguments)||&quot;&quot;).replace(b,&quot;&quot;)):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,&quot;aaa:&quot;),l):f.call(this,k,j.replace(a,&quot;aaa:&quot;))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,&quot;&quot;))}):e.call(this,j))}}c.fn.extend({remove:function(){c(&quot;*&quot;,this).add(this).each(function(){c(this).triggerHandler(&quot;remove&quot;)});return i.apply(this,arguments)},enableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;off&quot;).css(&quot;MozUserSelect&quot;,&quot;&quot;).unbind(&quot;selectstart.ui&quot;)},disableSelection:function(){return this.attr(&quot;unselectable&quot;,&quot;on&quot;).css(&quot;MozUserSelect&quot;,&quot;none&quot;).bind(&quot;selectstart.ui&quot;,function(){return false})},scrollParent:function(){var j;if((c.browser.msie&amp;&amp;(/(static|relative)/).test(this.css(&quot;position&quot;)))||(/absolute/).test(this.css(&quot;position&quot;))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,&quot;position&quot;,1))&amp;&amp;(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,&quot;overflow&quot;,1)+c.curCSS(this,&quot;overflow-y&quot;,1)+c.curCSS(this,&quot;overflow-x&quot;,1))}).eq(0)}return(/fixed/).test(this.css(&quot;position&quot;))||!j.length?c(document):j}});c.extend(c.expr[&quot;:&quot;],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,&quot;tabindex&quot;);return(/input|select|textarea|button|object/.test(l)?!k.disabled:&quot;a&quot;==l||&quot;area&quot;==l?k.href||!isNaN(j):!isNaN(j))&amp;&amp;!c(k)[&quot;area&quot;==l?&quot;parents&quot;:&quot;closest&quot;](&quot;:hidden&quot;).length},tabbable:function(k){var j=c.attr(k,&quot;tabindex&quot;);return(isNaN(j)||j&gt;=0)&amp;&amp;c(k).is(&quot;:focusable&quot;)}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p==&quot;string&quot;?p.split(/,?\s+/):p)}var j=k(&quot;getter&quot;);if(l.length==1&amp;&amp;typeof l[0]==&quot;string&quot;){j=j.concat(k(&quot;getterSetter&quot;))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(&quot;.&quot;)[0];k=k.split(&quot;.&quot;)[1];c.fn[k]=function(p){var n=(typeof p==&quot;string&quot;),o=Array.prototype.slice.call(arguments,1);if(n&amp;&amp;p.substring(0,1)==&quot;_&quot;){return this}if(n&amp;&amp;g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&amp;&amp;!n&amp;&amp;c.data(this,k,new c[l][k](this,p))._init());(q&amp;&amp;n&amp;&amp;c.isFunction(q[p])&amp;&amp;q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+&quot;-&quot;+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&amp;&amp;c.metadata.get(o)[k],n);this.element=c(o).bind(&quot;setData.&quot;+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind(&quot;getData.&quot;+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind(&quot;remove&quot;,function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter=&quot;option&quot;};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).removeAttr(&quot;aria-disabled&quot;)},option:function(l,m){var k=l,j=this;if(typeof l==&quot;string&quot;){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j==&quot;disabled&quot;){this.element[k?&quot;addClass&quot;:&quot;removeClass&quot;](this.widgetBaseClass+&quot;-disabled &quot;+this.namespace+&quot;-state-disabled&quot;).attr(&quot;aria-disabled&quot;,k)}},enable:function(){this._setData(&quot;disabled&quot;,false)},disable:function(){this._setData(&quot;disabled&quot;,true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&amp;&amp;p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind(&quot;mousedown.&quot;+this.widgetName,function(k){return j._mouseDown(k)}).bind(&quot;click.&quot;+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr(&quot;unselectable&quot;);this.element.attr(&quot;unselectable&quot;,&quot;on&quot;)}this.started=false},_mouseDestroy:function(){this.element.unbind(&quot;.&quot;+this.widgetName);(c.browser.msie&amp;&amp;this.element.attr(&quot;unselectable&quot;,this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&amp;&amp;this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel==&quot;string&quot;?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&amp;&amp;this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).bind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&amp;&amp;!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&amp;&amp;this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind(&quot;mousemove.&quot;+this.widgetName,this._mouseMoveDelegate).unbind(&quot;mouseup.&quot;+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))&gt;=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuidatepickerjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.datepicker.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.datepicker.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.datepicker.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function($){$.extend($.ui,{datepicker:{version:&quot;1.7.2&quot;}});var PROP_NAME=&quot;datepicker&quot;;function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId=&quot;ui-datepicker-div&quot;;this._inlineClass=&quot;ui-datepicker-inline&quot;;this._appendClass=&quot;ui-datepicker-append&quot;;this._triggerClass=&quot;ui-datepicker-trigger&quot;;this._dialogClass=&quot;ui-datepicker-dialog&quot;;this._disableClass=&quot;ui-datepicker-disabled&quot;;this._unselectableClass=&quot;ui-datepicker-unselectable&quot;;this._currentClass=&quot;ui-datepicker-current-day&quot;;this._dayOverClass=&quot;ui-datepicker-days-cell-over&quot;;this.regional=[];this.regional[&quot;&quot;]={closeText:&quot;Done&quot;,prevText:&quot;Prev&quot;,nextText:&quot;Next&quot;,currentText:&quot;Today&quot;,monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],dateFormat:&quot;mm/dd/yy&quot;,firstDay:0,isRTL:false};this._defaults={showOn:&quot;focus&quot;,showAnim:&quot;show&quot;,showOptions:{},defaultDate:null,appendText:&quot;&quot;,buttonText:&quot;...&quot;,buttonImage:&quot;&quot;,buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:&quot;-10:+10&quot;,showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:&quot;+10&quot;,minDate:null,maxDate:null,duration:&quot;normal&quot;,beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:&quot;&quot;,altFormat:&quot;&quot;,constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[&quot;&quot;]);this.dpDiv=$('&lt;div id=&quot;'+this._mainDivId+'&quot; class=&quot;ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible&quot;&gt;&lt;/div&gt;')}$.extend(Datepicker.prototype,{markerClassName:&quot;hasDatepicker&quot;,log:function(){if(this.debug){console.log.apply(&quot;&quot;,arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute(&quot;date:&quot;+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;);if(!target.id){target.id=&quot;dp&quot;+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName==&quot;input&quot;){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,&quot;\\\\$1&quot;);return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('&lt;div class=&quot;'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all&quot;&gt;&lt;/div&gt;'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,&quot;appendText&quot;);var isRTL=this._get(inst,&quot;isRTL&quot;);if(appendText){inst.append=$('&lt;span class=&quot;'+this._appendClass+'&quot;&gt;'+appendText+&quot;&lt;/span&gt;&quot;);input[isRTL?&quot;before&quot;:&quot;after&quot;](inst.append)}var showOn=this._get(inst,&quot;showOn&quot;);if(showOn==&quot;focus&quot;||showOn==&quot;both&quot;){input.focus(this._showDatepicker)}if(showOn==&quot;button&quot;||showOn==&quot;both&quot;){var buttonText=this._get(inst,&quot;buttonText&quot;);var buttonImage=this._get(inst,&quot;buttonImage&quot;);inst.trigger=$(this._get(inst,&quot;buttonImageOnly&quot;)?$(&quot;&lt;img/&gt;&quot;).addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(this._triggerClass).html(buttonImage==&quot;&quot;?buttonText:$(&quot;&lt;img/&gt;&quot;).attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?&quot;before&quot;:&quot;after&quot;](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&amp;&amp;$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind(&quot;setData.datepicker&quot;,function(event,key,value){inst.settings[key]=value}).bind(&quot;getData.datepicker&quot;,function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id=&quot;dp&quot;+(++this.uuid);this._dialogInput=$('&lt;input type=&quot;text&quot; id=&quot;'+id+'&quot; size=&quot;1&quot; style=&quot;position: absolute; top: -100px;&quot;/&gt;');this._dialogInput.keydown(this._doKeyDown);$(&quot;body&quot;).append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css(&quot;left&quot;,this._pos[0]+&quot;px&quot;).css(&quot;top&quot;,this._pos[1]+&quot;px&quot;);inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName==&quot;input&quot;){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind(&quot;focus&quot;,this._showDatepicker).unbind(&quot;keydown&quot;,this._doKeyDown).unbind(&quot;keypress&quot;,this._doKeyPress)}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=false;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=false}).end().filter(&quot;img&quot;).css({opacity:&quot;1.0&quot;,cursor:&quot;&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().removeClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName==&quot;input&quot;){target.disabled=true;inst.trigger.filter(&quot;button&quot;).each(function(){this.disabled=true}).end().filter(&quot;img&quot;).css({opacity:&quot;0.5&quot;,cursor:&quot;default&quot;})}else{if(nodeName==&quot;div&quot;||nodeName==&quot;span&quot;){var inline=$target.children(&quot;.&quot;+this._inlineClass);inline.children().addClass(&quot;ui-state-disabled&quot;)}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i&lt;this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw&quot;Missing instance data for this datepicker&quot;}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&amp;&amp;typeof name==&quot;string&quot;){return(name==&quot;defaults&quot;?$.extend({},$.datepicker._defaults):(inst?(name==&quot;all&quot;?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name==&quot;string&quot;){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&amp;&amp;!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(&quot;.ui-datepicker-rtl&quot;);inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,&quot;&quot;);break;case 13:var sel=$(&quot;td.&quot;+$.datepicker._dayOverClass+&quot;, td.&quot;+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,&quot;duration&quot;));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;);break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,&quot;stepBigMonths&quot;):-$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,&quot;stepBigMonths&quot;):+$.datepicker._get(inst,&quot;stepMonths&quot;)),&quot;M&quot;)}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,&quot;D&quot;)}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&amp;&amp;event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,&quot;constrainInput&quot;)){var chars=$.datepicker._possibleChars($.datepicker._get(inst,&quot;dateFormat&quot;));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr&lt;&quot; &quot;||!chars||chars.indexOf(chr)&gt;-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!=&quot;input&quot;){input=$(&quot;input&quot;,input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,&quot;beforeShow&quot;);extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,&quot;&quot;);$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=&quot;&quot;}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css(&quot;position&quot;)==&quot;fixed&quot;;return !isFixed});if(isFixed&amp;&amp;$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:&quot;absolute&quot;,display:&quot;block&quot;,top:&quot;-1000px&quot;});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&amp;&amp;$.blockUI?&quot;static&quot;:(isFixed?&quot;fixed&quot;:&quot;absolute&quot;)),display:&quot;none&quot;,left:offset.left+&quot;px&quot;,top:offset.top+&quot;px&quot;});if(!inst.inline){var showAnim=$.datepicker._get(inst,&quot;showAnim&quot;)||&quot;show&quot;;var duration=$.datepicker._get(inst,&quot;duration&quot;);var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7){$(&quot;iframe.ui-datepicker-cover&quot;).css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==&quot;&quot;){postProcess()}if(inst.input[0].type!=&quot;hidden&quot;){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find(&quot;iframe.ui-datepicker-cover&quot;).css({width:dims.width,height:dims.height}).end().find(&quot;button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a&quot;).bind(&quot;mouseout&quot;,function(){$(this).removeClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).removeClass(&quot;ui-datepicker-next-hover&quot;)}}).bind(&quot;mouseover&quot;,function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(&quot;.ui-datepicker-calendar&quot;).find(&quot;a&quot;).removeClass(&quot;ui-state-hover&quot;);$(this).addClass(&quot;ui-state-hover&quot;);if(this.className.indexOf(&quot;ui-datepicker-prev&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-prev-hover&quot;)}if(this.className.indexOf(&quot;ui-datepicker-next&quot;)!=-1){$(this).addClass(&quot;ui-datepicker-next-hover&quot;)}}}).end().find(&quot;.&quot;+this._dayOverClass+&quot; a&quot;).trigger(&quot;mouseover&quot;).end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols&gt;1){inst.dpDiv.addClass(&quot;ui-datepicker-multi-&quot;+cols).css(&quot;width&quot;,(width*cols)+&quot;em&quot;)}else{inst.dpDiv.removeClass(&quot;ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4&quot;).width(&quot;&quot;)}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-multi&quot;);inst.dpDiv[(this._get(inst,&quot;isRTL&quot;)?&quot;add&quot;:&quot;remove&quot;)+&quot;Class&quot;](&quot;ui-datepicker-rtl&quot;);if(inst.input&amp;&amp;inst.input[0].type!=&quot;hidden&quot;&amp;&amp;inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,&quot;isRTL&quot;)?(dpWidth-inputWidth):0);offset.left-=(isFixed&amp;&amp;offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&amp;&amp;offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth&gt;viewWidth&amp;&amp;viewWidth&gt;dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight&gt;viewHeight&amp;&amp;viewHeight&gt;dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&amp;&amp;(obj.type==&quot;hidden&quot;||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&amp;&amp;inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate(&quot;#&quot;+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,&quot;duration&quot;));var showAnim=this._get(inst,&quot;showAnim&quot;);var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=&quot;&quot;&amp;&amp;$.effects&amp;&amp;$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,&quot;showOptions&quot;),duration,postProcess)}else{inst.dpDiv[(duration==&quot;&quot;?&quot;hide&quot;:(showAnim==&quot;slideDown&quot;?&quot;slideUp&quot;:(showAnim==&quot;fadeIn&quot;?&quot;fadeOut&quot;:&quot;hide&quot;)))](duration,postProcess)}if(duration==&quot;&quot;){this._tidyDialog(inst)}var onClose=this._get(inst,&quot;onClose&quot;);if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():&quot;&quot;),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:&quot;absolute&quot;,left:&quot;0&quot;,top:&quot;-100px&quot;});if($.blockUI){$.unblockUI();$(&quot;body&quot;).append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(&quot;.ui-datepicker-calendar&quot;)},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents(&quot;#&quot;+$.datepicker._mainDivId).length==0)&amp;&amp;!$target.hasClass($.datepicker.markerClassName)&amp;&amp;!$target.hasClass($.datepicker._triggerClass)&amp;&amp;$.datepicker._datepickerShowing&amp;&amp;!($.datepicker._inDialog&amp;&amp;$.blockUI)){$.datepicker._hideDatepicker(null,&quot;&quot;)}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period==&quot;M&quot;?this._get(inst,&quot;showCurrentAtPos&quot;):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst[&quot;selected&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=inst[&quot;draw&quot;+(period==&quot;M&quot;?&quot;Month&quot;:&quot;Year&quot;)]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&amp;&amp;inst._selectingMonthYear&amp;&amp;!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$(&quot;a&quot;,td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,&quot;&quot;)},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,&quot;onSelect&quot;);if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger(&quot;change&quot;)}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,&quot;duration&quot;));this._lastInput=inst.input[0];if(typeof(inst.input[0])!=&quot;object&quot;){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,&quot;altField&quot;);if(altField){var altFormat=this._get(inst,&quot;altFormat&quot;)||this._get(inst,&quot;dateFormat&quot;);var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day&gt;0&amp;&amp;day&lt;6),&quot;&quot;]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay&lt;4&amp;&amp;checkDate&lt;firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate&gt;new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay&gt;4&amp;&amp;(checkDate.getDay()||7)&lt;firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw&quot;Invalid arguments&quot;}value=(typeof value==&quot;object&quot;?value.toString():value+&quot;&quot;);if(value==&quot;&quot;){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match==&quot;@&quot;?14:(match==&quot;y&quot;?4:(match==&quot;o&quot;?3:2)));var size=origSize;var num=0;while(size&gt;0&amp;&amp;iValue&lt;value.length&amp;&amp;value.charAt(iValue)&gt;=&quot;0&quot;&amp;&amp;value.charAt(iValue)&lt;=&quot;9&quot;){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw&quot;Missing number at position &quot;+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j&lt;names.length;j++){size=Math.max(size,names[j].length)}var name=&quot;&quot;;var iInit=iValue;while(size&gt;0&amp;&amp;iValue&lt;value.length){name+=value.charAt(iValue++);for(var i=0;i&lt;names.length;i++){if(name==names[i]){return i+1}}size--}throw&quot;Unknown name at position &quot;+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw&quot;Unexpected literal at position &quot;+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:day=getNumber(&quot;d&quot;);break;case&quot;D&quot;:getName(&quot;D&quot;,dayNamesShort,dayNames);break;case&quot;o&quot;:doy=getNumber(&quot;o&quot;);break;case&quot;m&quot;:month=getNumber(&quot;m&quot;);break;case&quot;M&quot;:month=getName(&quot;M&quot;,monthNamesShort,monthNames);break;case&quot;y&quot;:year=getNumber(&quot;y&quot;);break;case&quot;@&quot;:var date=new Date(getNumber(&quot;@&quot;));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year&lt;100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year&lt;=shortYearCutoff?0:-100)}}if(doy&gt;-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day&lt;=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw&quot;Invalid date&quot;}return date},ATOM:&quot;yy-mm-dd&quot;,COOKIE:&quot;D, dd M yy&quot;,ISO_8601:&quot;yy-mm-dd&quot;,RFC_822:&quot;D, d M y&quot;,RFC_850:&quot;DD, dd-M-y&quot;,RFC_1036:&quot;D, d M y&quot;,RFC_1123:&quot;D, d M yy&quot;,RFC_2822:&quot;D, d M yy&quot;,RSS:&quot;D, d M y&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yy-mm-dd&quot;,formatDate:function(format,date,settings){if(!date){return&quot;&quot;}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1&lt;format.length&amp;&amp;format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=&quot;&quot;+value;if(lookAhead(match)){while(num.length&lt;len){num=&quot;0&quot;+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output=&quot;&quot;;var literal=false;if(date){for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:output+=formatNumber(&quot;d&quot;,date.getDate(),2);break;case&quot;D&quot;:output+=formatName(&quot;D&quot;,date.getDay(),dayNamesShort,dayNames);break;case&quot;o&quot;:var doy=date.getDate();for(var m=date.getMonth()-1;m&gt;=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber(&quot;o&quot;,doy,3);break;case&quot;m&quot;:output+=formatNumber(&quot;m&quot;,date.getMonth()+1,2);break;case&quot;M&quot;:output+=formatName(&quot;M&quot;,date.getMonth(),monthNamesShort,monthNames);break;case&quot;y&quot;:output+=(lookAhead(&quot;y&quot;)?date.getFullYear():(date.getYear()%100&lt;10?&quot;0&quot;:&quot;&quot;)+date.getYear()%100);break;case&quot;@&quot;:output+=date.getTime();break;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){output+=&quot;'&quot;}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars=&quot;&quot;;var literal=false;for(var iFormat=0;iFormat&lt;format.length;iFormat++){if(literal){if(format.charAt(iFormat)==&quot;'&quot;&amp;&amp;!lookAhead(&quot;'&quot;)){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case&quot;d&quot;:case&quot;m&quot;:case&quot;y&quot;:case&quot;@&quot;:chars+=&quot;0123456789&quot;;break;case&quot;D&quot;:case&quot;M&quot;:return null;case&quot;'&quot;:if(lookAhead(&quot;'&quot;)){chars+=&quot;'&quot;}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,&quot;dateFormat&quot;);var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,&quot;defaultDate&quot;),new Date());var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||&quot;d&quot;){case&quot;d&quot;:case&quot;D&quot;:day+=parseInt(matches[1],10);break;case&quot;w&quot;:case&quot;W&quot;:day+=parseInt(matches[1],10)*7;break;case&quot;m&quot;:case&quot;M&quot;:month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case&quot;y&quot;:case&quot;Y&quot;:year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date==&quot;string&quot;?offsetString(date,this._getDaysInMonth):(typeof date==&quot;number&quot;?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&amp;&amp;date.toString()==&quot;Invalid Date&quot;?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()&gt;12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?&quot;&quot;:this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&amp;&amp;inst.input.val()==&quot;&quot;)?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,&quot;isRTL&quot;);var showButtonPanel=this._get(inst,&quot;showButtonPanel&quot;);var hideIfNoPrevNext=this._get(inst,&quot;hideIfNoPrevNext&quot;);var navigationAsDateFormat=this._get(inst,&quot;navigationAsDateFormat&quot;);var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,&quot;showCurrentAtPos&quot;);var stepMonths=this._get(inst,&quot;stepMonths&quot;);var stepBigMonths=this._get(inst,&quot;stepBigMonths&quot;);var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth&lt;0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&amp;&amp;maxDraw&lt;minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))&gt;maxDraw){drawMonth--;if(drawMonth&lt;0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,&quot;prevText&quot;);prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-prev ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', -&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-prev ui-corner-all ui-state-disabled&quot; title=&quot;'+prevText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;e&quot;:&quot;w&quot;)+'&quot;&gt;'+prevText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var nextText=this._get(inst,&quot;nextText&quot;);nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'&lt;a class=&quot;ui-datepicker-next ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._adjustDate(\'#'+inst.id+&quot;', +&quot;+stepMonths+&quot;, 'M');\&quot; title=\&quot;&quot;+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;:(hideIfNoPrevNext?&quot;&quot;:'&lt;a class=&quot;ui-datepicker-next ui-corner-all ui-state-disabled&quot; title=&quot;'+nextText+'&quot;&gt;&lt;span class=&quot;ui-icon ui-icon-circle-triangle-'+(isRTL?&quot;w&quot;:&quot;e&quot;)+'&quot;&gt;'+nextText+&quot;&lt;/span&gt;&lt;/a&gt;&quot;));var currentText=this._get(inst,&quot;currentText&quot;);var gotoDate=(this._get(inst,&quot;gotoCurrent&quot;)&amp;&amp;inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._hideDatepicker();&quot;&gt;'+this._get(inst,&quot;closeText&quot;)+&quot;&lt;/button&gt;&quot;:&quot;&quot;);var buttonPanel=(showButtonPanel)?'&lt;div class=&quot;ui-datepicker-buttonpane ui-widget-content&quot;&gt;'+(isRTL?controls:&quot;&quot;)+(this._isInRange(inst,gotoDate)?'&lt;button type=&quot;button&quot; class=&quot;ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all&quot; onclick=&quot;DP_jQuery.datepicker._gotoToday(\'#'+inst.id+&quot;');\&quot;&gt;&quot;+currentText+&quot;&lt;/button&gt;&quot;:&quot;&quot;)+(isRTL?&quot;&quot;:controls)+&quot;&lt;/div&gt;&quot;:&quot;&quot;;var firstDay=parseInt(this._get(inst,&quot;firstDay&quot;),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,&quot;dayNames&quot;);var dayNamesShort=this._get(inst,&quot;dayNamesShort&quot;);var dayNamesMin=this._get(inst,&quot;dayNamesMin&quot;);var monthNames=this._get(inst,&quot;monthNames&quot;);var monthNamesShort=this._get(inst,&quot;monthNamesShort&quot;);var beforeShowDay=this._get(inst,&quot;beforeShowDay&quot;);var showOtherMonths=this._get(inst,&quot;showOtherMonths&quot;);var calculateWeek=this._get(inst,&quot;calculateWeek&quot;)||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html=&quot;&quot;;for(var row=0;row&lt;numMonths[0];row++){var group=&quot;&quot;;for(var col=0;col&lt;numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=&quot; ui-corner-all&quot;;var calender=&quot;&quot;;if(isMultiMonth){calender+='&lt;div class=&quot;ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+=&quot;first&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;right&quot;:&quot;left&quot;);break;case numMonths[1]-1:calender+=&quot;last&quot;;cornerClass=&quot; ui-corner-&quot;+(isRTL?&quot;left&quot;:&quot;right&quot;);break;default:calender+=&quot;middle&quot;;cornerClass=&quot;&quot;;break}calender+='&quot;&gt;'}calender+='&lt;div class=&quot;ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'&quot;&gt;'+(/all|left/.test(cornerClass)&amp;&amp;row==0?(isRTL?next:prev):&quot;&quot;)+(/all|right/.test(cornerClass)&amp;&amp;row==0?(isRTL?prev:next):&quot;&quot;)+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row&gt;0||col&gt;0,monthNames,monthNamesShort)+'&lt;/div&gt;&lt;table class=&quot;ui-datepicker-calendar&quot;&gt;&lt;thead&gt;&lt;tr&gt;';var thead=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var day=(dow+firstDay)%7;thead+=&quot;&lt;th&quot;+((dow+firstDay+6)%7&gt;=5?' class=&quot;ui-datepicker-week-end&quot;':&quot;&quot;)+'&gt;&lt;span title=&quot;'+dayNames[day]+'&quot;&gt;'+dayNamesMin[day]+&quot;&lt;/span&gt;&lt;/th&gt;&quot;}calender+=thead+&quot;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&quot;;var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&amp;&amp;drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow&lt;numRows;dRow++){calender+=&quot;&lt;tr&gt;&quot;;var tbody=&quot;&quot;;for(var dow=0;dow&lt;7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,&quot;&quot;]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&amp;&amp;printDate&lt;minDate)||(maxDate&amp;&amp;printDate&gt;maxDate);tbody+='&lt;td class=&quot;'+((dow+firstDay+6)%7&gt;=5?&quot; ui-datepicker-week-end&quot;:&quot;&quot;)+(otherMonth?&quot; ui-datepicker-other-month&quot;:&quot;&quot;)+((printDate.getTime()==selectedDate.getTime()&amp;&amp;drawMonth==inst.selectedMonth&amp;&amp;inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&amp;&amp;defaultDate.getTime()==selectedDate.getTime())?&quot; &quot;+this._dayOverClass:&quot;&quot;)+(unselectable?&quot; &quot;+this._unselectableClass+&quot; ui-state-disabled&quot;:&quot;&quot;)+(otherMonth&amp;&amp;!showOtherMonths?&quot;&quot;:&quot; &quot;+daySettings[1]+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; &quot;+this._currentClass:&quot;&quot;)+(printDate.getTime()==today.getTime()?&quot; ui-datepicker-today&quot;:&quot;&quot;))+'&quot;'+((!otherMonth||showOtherMonths)&amp;&amp;daySettings[2]?' title=&quot;'+daySettings[2]+'&quot;':&quot;&quot;)+(unselectable?&quot;&quot;:&quot; onclick=\&quot;DP_jQuery.datepicker._selectDay('#&quot;+inst.id+&quot;',&quot;+drawMonth+&quot;,&quot;+drawYear+', this);return false;&quot;')+&quot;&gt;&quot;+(otherMonth?(showOtherMonths?printDate.getDate():&quot;&amp;#xa0;&quot;):(unselectable?'&lt;span class=&quot;ui-state-default&quot;&gt;'+printDate.getDate()+&quot;&lt;/span&gt;&quot;:'&lt;a class=&quot;ui-state-default'+(printDate.getTime()==today.getTime()?&quot; ui-state-highlight&quot;:&quot;&quot;)+(printDate.getTime()&gt;=currentDate.getTime()&amp;&amp;printDate.getTime()&lt;=endDate.getTime()?&quot; ui-state-active&quot;:&quot;&quot;)+'&quot; href=&quot;#&quot;&gt;'+printDate.getDate()+&quot;&lt;/a&gt;&quot;))+&quot;&lt;/td&gt;&quot;;printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+&quot;&lt;/tr&gt;&quot;}drawMonth++;if(drawMonth&gt;11){drawMonth=0;drawYear++}calender+=&quot;&lt;/tbody&gt;&lt;/table&gt;&quot;+(isMultiMonth?&quot;&lt;/div&gt;&quot;+((numMonths[0]&gt;0&amp;&amp;col==numMonths[1]-1)?'&lt;div class=&quot;ui-datepicker-row-break&quot;&gt;&lt;/div&gt;':&quot;&quot;):&quot;&quot;);group+=calender}html+=group}html+=buttonPanel+($.browser.msie&amp;&amp;parseInt($.browser.version,10)&lt;7&amp;&amp;!inst.inline?'&lt;iframe src=&quot;javascript:false;&quot; class=&quot;ui-datepicker-cover&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;':&quot;&quot;);inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&amp;&amp;minDate&amp;&amp;selectedDate&lt;minDate?selectedDate:minDate);var changeMonth=this._get(inst,&quot;changeMonth&quot;);var changeYear=this._get(inst,&quot;changeYear&quot;);var showMonthAfterYear=this._get(inst,&quot;showMonthAfterYear&quot;);var html='&lt;div class=&quot;ui-datepicker-title&quot;&gt;';var monthHtml=&quot;&quot;;if(secondary||!changeMonth){monthHtml+='&lt;span class=&quot;ui-datepicker-month&quot;&gt;'+monthNames[drawMonth]+&quot;&lt;/span&gt; &quot;}else{var inMinYear=(minDate&amp;&amp;minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&amp;&amp;maxDate.getFullYear()==drawYear);monthHtml+='&lt;select class=&quot;ui-datepicker-month&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'M');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(var month=0;month&lt;12;month++){if((!inMinYear||month&gt;=minDate.getMonth())&amp;&amp;(!inMaxYear||month&lt;=maxDate.getMonth())){monthHtml+='&lt;option value=&quot;'+month+'&quot;'+(month==drawMonth?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+monthNamesShort[month]+&quot;&lt;/option&gt;&quot;}}monthHtml+=&quot;&lt;/select&gt;&quot;}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&amp;&amp;(!(changeMonth&amp;&amp;changeYear))?&quot;&amp;#xa0;&quot;:&quot;&quot;)}if(secondary||!changeYear){html+='&lt;span class=&quot;ui-datepicker-year&quot;&gt;'+drawYear+&quot;&lt;/span&gt;&quot;}else{var years=this._get(inst,&quot;yearRange&quot;).split(&quot;:&quot;);var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)==&quot;+&quot;||years[0].charAt(0)==&quot;-&quot;){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='&lt;select class=&quot;ui-datepicker-year&quot; onchange=&quot;DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+&quot;', this, 'Y');\&quot; onclick=\&quot;DP_jQuery.datepicker._clickMonthYear('#&quot;+inst.id+&quot;');\&quot;&gt;&quot;;for(;year&lt;=endYear;year++){html+='&lt;option value=&quot;'+year+'&quot;'+(year==drawYear?' selected=&quot;selected&quot;':&quot;&quot;)+&quot;&gt;&quot;+year+&quot;&lt;/option&gt;&quot;}html+=&quot;&lt;/select&gt;&quot;}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?&quot;&amp;#xa0;&quot;:&quot;&quot;)+monthHtml}html+=&quot;&lt;/div&gt;&quot;;return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==&quot;Y&quot;?offset:0);var month=inst.drawMonth+(period==&quot;M&quot;?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==&quot;D&quot;?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,&quot;min&quot;,true);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);date=(minDate&amp;&amp;date&lt;minDate?minDate:date);date=(maxDate&amp;&amp;date&gt;maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==&quot;M&quot;||period==&quot;Y&quot;){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,&quot;onChangeMonthYear&quot;);if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,&quot;numberOfMonths&quot;);return(numMonths==null?[1,1]:(typeof numMonths==&quot;number&quot;?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+&quot;Date&quot;),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart&gt;date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset&lt;0?offset:numMonths[1]),1));if(offset&lt;0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&amp;&amp;inst.rangeStart&lt;newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,&quot;min&quot;);var maxDate=this._getMinMaxDate(inst,&quot;max&quot;);return((!minDate||date&gt;=minDate)&amp;&amp;(!maxDate||date&lt;=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,&quot;shortYearCutoff&quot;);shortYearCutoff=(typeof shortYearCutoff!=&quot;string&quot;?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,&quot;dayNamesShort&quot;),dayNames:this._get(inst,&quot;dayNames&quot;),monthNamesShort:this._get(inst,&quot;monthNamesShort&quot;),monthNames:this._get(inst,&quot;monthNames&quot;)}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day==&quot;object&quot;?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,&quot;dateFormat&quot;),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&amp;&amp;(($.browser.safari&amp;&amp;typeof a==&quot;object&quot;&amp;&amp;a.length)||(a.constructor&amp;&amp;a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find(&quot;body&quot;).append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==&quot;string&quot;&amp;&amp;(options==&quot;isDisabled&quot;||options==&quot;getDate&quot;)){return $.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this[0]].concat(otherArgs))}if(options==&quot;option&quot;&amp;&amp;arguments.length==2&amp;&amp;typeof arguments[1]==&quot;string&quot;){return $.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==&quot;string&quot;?$.datepicker[&quot;_&quot;+options+&quot;Datepicker&quot;].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version=&quot;1.7.2&quot;;window.DP_jQuery=$})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuidialogjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.dialog.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.dialog.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.dialog.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(c){var b={dragStart:&quot;start.draggable&quot;,drag:&quot;drag.draggable&quot;,dragStop:&quot;stop.draggable&quot;,maxHeight:&quot;maxHeight.resizable&quot;,minHeight:&quot;minHeight.resizable&quot;,maxWidth:&quot;maxWidth.resizable&quot;,minWidth:&quot;minWidth.resizable&quot;,resizeStart:&quot;start.resizable&quot;,resize:&quot;drag.resizable&quot;,resizeStop:&quot;stop.resizable&quot;},a=&quot;ui-dialog ui-widget ui-widget-content ui-corner-all &quot;;c.widget(&quot;ui.dialog&quot;,{_init:function(){this.originalTitle=this.element.attr(&quot;title&quot;);var l=this,m=this.options,j=m.title||this.originalTitle||&quot;&amp;nbsp;&quot;,e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c(&quot;&lt;div/&gt;&quot;)).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,zIndex:m.zIndex}).attr(&quot;tabIndex&quot;,-1).css(&quot;outline&quot;,0).keydown(function(n){(m.closeOnEscape&amp;&amp;n.keyCode&amp;&amp;n.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;l.close(n))}).attr({role:&quot;dialog&quot;,&quot;aria-labelledby&quot;:e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr(&quot;title&quot;).addClass(&quot;ui-dialog-content ui-widget-content&quot;).appendTo(k),f=(this.uiDialogTitlebar=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;)).addClass(&quot;ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix&quot;).prependTo(k),i=c('&lt;a href=&quot;#&quot;/&gt;').addClass(&quot;ui-dialog-titlebar-close ui-corner-all&quot;).attr(&quot;role&quot;,&quot;button&quot;).hover(function(){i.addClass(&quot;ui-state-hover&quot;)},function(){i.removeClass(&quot;ui-state-hover&quot;)}).focus(function(){i.addClass(&quot;ui-state-focus&quot;)}).blur(function(){i.removeClass(&quot;ui-state-focus&quot;)}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c(&quot;&lt;span/&gt;&quot;)).addClass(&quot;ui-icon ui-icon-closethick&quot;).text(m.closeText).appendTo(i),d=c(&quot;&lt;span/&gt;&quot;).addClass(&quot;ui-dialog-title&quot;).attr(&quot;id&quot;,e).html(j).prependTo(f);f.find(&quot;*&quot;).add(f).disableSelection();(m.draggable&amp;&amp;c.fn.draggable&amp;&amp;this._makeDraggable());(m.resizable&amp;&amp;c.fn.resizable&amp;&amp;this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;k.bgiframe());(m.autoOpen&amp;&amp;this.open())},destroy:function(){(this.overlay&amp;&amp;this.overlay.destroy());this.uiDialog.hide();this.element.unbind(&quot;.dialog&quot;).removeData(&quot;dialog&quot;).removeClass(&quot;ui-dialog-content ui-widget-content&quot;).hide().appendTo(&quot;body&quot;);this.uiDialog.remove();(this.originalTitle&amp;&amp;this.element.attr(&quot;title&quot;,this.originalTitle))},close:function(f){var d=this;if(false===d._trigger(&quot;beforeclose&quot;,f)){return}(d.overlay&amp;&amp;d.overlay.destroy());d.uiDialog.unbind(&quot;keypress.ui-dialog&quot;);(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger(&quot;close&quot;,f)}):d.uiDialog.hide()&amp;&amp;d._trigger(&quot;close&quot;,f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(&quot;.ui-dialog&quot;).each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css(&quot;z-index&quot;))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&amp;&amp;!f)||(!this.options.stack&amp;&amp;!this.options.modal)){return this._trigger(&quot;focus&quot;,e)}if(this.options.zIndex&gt;c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&amp;&amp;this.overlay.$el.css(&quot;z-index&quot;,c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr(&quot;scrollTop&quot;),scrollLeft:this.element.attr(&quot;scrollLeft&quot;)};this.uiDialog.css(&quot;z-index&quot;,++c.ui.dialog.maxZ);this.element.attr(d);this._trigger(&quot;focus&quot;,e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&amp;&amp;d.appendTo(&quot;body&quot;));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&amp;&amp;d.bind(&quot;keypress.ui-dialog&quot;,function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(&quot;:tabbable&quot;,this),i=g.filter(&quot;:first&quot;)[0],f=g.filter(&quot;:last&quot;)[0];if(h.target==f&amp;&amp;!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&amp;&amp;h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(&quot;.ui-dialog-content :tabbable:first&quot;)).add(d.find(&quot;.ui-dialog-buttonpane :tabbable:first&quot;)).add(d).filter(&quot;:first&quot;).focus();this._trigger(&quot;open&quot;);this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).addClass(&quot;ui-dialog-buttonpane ui-widget-content ui-helper-clearfix&quot;);this.uiDialog.find(&quot;.ui-dialog-buttonpane&quot;).remove();(typeof g==&quot;object&quot;&amp;&amp;g!==null&amp;&amp;c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('&lt;button type=&quot;button&quot;&gt;&lt;/button&gt;').addClass(&quot;ui-state-default ui-corner-all&quot;).text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass(&quot;ui-state-hover&quot;)},function(){c(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){c(this).addClass(&quot;ui-state-focus&quot;)}).blur(function(){c(this).removeClass(&quot;ui-state-focus&quot;)}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:&quot;.ui-dialog-content&quot;,handle:&quot;.ui-dialog-titlebar&quot;,containment:&quot;document&quot;,start:function(){e=f.height;c(this).height(c(this).height()).addClass(&quot;ui-dialog-dragging&quot;);(f.dragStart&amp;&amp;f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&amp;&amp;f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass(&quot;ui-dialog-dragging&quot;).height(e);(f.dragStop&amp;&amp;f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g==&quot;string&quot;?g:&quot;n,e,s,w,se,sw,ne,nw&quot;;this.uiDialog.resizable({cancel:&quot;.ui-dialog-content&quot;,alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass(&quot;ui-dialog-resizing&quot;);(f.resizeStart&amp;&amp;f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&amp;&amp;f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass(&quot;ui-dialog-resizing&quot;);f.height=c(this).height();f.width=c(this).width();(f.resizeStop&amp;&amp;f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(&quot;.ui-resizable-se&quot;).addClass(&quot;ui-icon ui-icon-grip-diagonal-se&quot;)},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,[&quot;center&quot;,&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;])&gt;=0){i=[i==&quot;right&quot;||i==&quot;left&quot;?i:&quot;center&quot;,i==&quot;top&quot;||i==&quot;bottom&quot;?i:&quot;middle&quot;]}if(i.constructor!=Array){i=[&quot;center&quot;,&quot;middle&quot;]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case&quot;left&quot;:d+=0;break;case&quot;right&quot;:d+=e.width()-this.uiDialog.outerWidth();break;default:case&quot;center&quot;:d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case&quot;top&quot;:g+=0;break;case&quot;bottom&quot;:g+=e.height()-this.uiDialog.outerHeight();break;default:case&quot;middle&quot;:g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&amp;&amp;this.uiDialog.data(b[e],f));switch(e){case&quot;buttons&quot;:this._createButtons(f);break;case&quot;closeText&quot;:this.uiDialogTitlebarCloseText.text(f);break;case&quot;dialogClass&quot;:this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case&quot;draggable&quot;:(f?this._makeDraggable():this.uiDialog.draggable(&quot;destroy&quot;));break;case&quot;height&quot;:this.uiDialog.height(f);break;case&quot;position&quot;:this._position(f);break;case&quot;resizable&quot;:var d=this.uiDialog,g=this.uiDialog.is(&quot;:data(resizable)&quot;);(g&amp;&amp;!f&amp;&amp;d.resizable(&quot;destroy&quot;));(g&amp;&amp;typeof f==&quot;string&quot;&amp;&amp;d.resizable(&quot;option&quot;,&quot;handles&quot;,f));(g||this._makeResizable(f));break;case&quot;title&quot;:c(&quot;.ui-dialog-title&quot;,this.uiDialogTitlebar).html(f||&quot;&amp;nbsp;&quot;);break;case&quot;width&quot;:this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:&quot;auto&quot;});var d=this.uiDialog.css({height:&quot;auto&quot;,width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height==&quot;auto&quot;?&quot;auto&quot;:Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:&quot;1.7.2&quot;,defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:&quot;close&quot;,dialogClass:&quot;&quot;,draggable:true,hide:null,height:&quot;auto&quot;,maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:&quot;center&quot;,resizable:true,show:null,stack:true,title:&quot;&quot;,width:300,zIndex:1000},getter:&quot;isOpen&quot;,uuid:0,maxZ:0,getTitleId:function(d){return&quot;ui-dialog-title-&quot;+(d.attr(&quot;id&quot;)||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map(&quot;focus,mousedown,mouseup,keydown,keypress,click&quot;.split(&quot;,&quot;),function(d){return d+&quot;.dialog-overlay&quot;}).join(&quot; &quot;),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(&quot;.ui-dialog&quot;).css(&quot;zIndex&quot;)||0;return(g&gt;c.ui.dialog.overlay.maxZ)})}},1);c(document).bind(&quot;keydown.dialog-overlay&quot;,function(f){(e.options.closeOnEscape&amp;&amp;f.keyCode&amp;&amp;f.keyCode==c.ui.keyCode.ESCAPE&amp;&amp;e.close(f))});c(window).bind(&quot;resize.dialog-overlay&quot;,c.ui.dialog.overlay.resize)}var d=c(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(document.body).addClass(&quot;ui-widget-overlay&quot;).css({width:this.width(),height:this.height()});(e.options.bgiframe&amp;&amp;c.fn.bgiframe&amp;&amp;d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(&quot;.dialog-overlay&quot;)}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css(&quot;z-index&quot;))});this.maxZ=e},height:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e&lt;d){return c(window).height()+&quot;px&quot;}else{return e+&quot;px&quot;}}else{return c(document).height()+&quot;px&quot;}},width:function(){if(c.browser.msie&amp;&amp;c.browser.version&lt;7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d&lt;e){return c(window).width()+&quot;px&quot;}else{return d+&quot;px&quot;}}else{return c(document).width()+&quot;px&quot;}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuidraggablejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.draggable.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.draggable.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.draggable.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.draggable&quot;,a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper==&quot;original&quot;&amp;&amp;!(/^(?:r|a|f)/).test(this.element.css(&quot;position&quot;))){this.element[0].style.position=&quot;relative&quot;}(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-draggable&quot;));(this.options.disabled&amp;&amp;this.element.addClass(&quot;ui-draggable-disabled&quot;));this._mouseInit()},destroy:function(){if(!this.element.data(&quot;draggable&quot;)){return}this.element.removeData(&quot;draggable&quot;).unbind(&quot;.draggable&quot;).removeClass(&quot;ui-draggable ui-draggable-dragging ui-draggable-disabled&quot;);this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(&quot;.ui-resizable-handle&quot;)){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css(&quot;position&quot;);this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger(&quot;start&quot;,b);this._cacheHelperProportions();if(a.ui.ddmanager&amp;&amp;!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass(&quot;ui-draggable-dragging&quot;);this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!d){var c=this._uiHash();this._trigger(&quot;drag&quot;,b,c);this.position=c.position}if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert==&quot;invalid&quot;&amp;&amp;!d)||(this.options.revert==&quot;valid&quot;&amp;&amp;d)||this.options.revert===true||(a.isFunction(this.options.revert)&amp;&amp;this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger(&quot;stop&quot;,c);b._clear()})}else{this._trigger(&quot;stop&quot;,c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find(&quot;*&quot;).andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper==&quot;clone&quot;?this.element.clone():this.element);if(!b.parents(&quot;body&quot;).length){b.appendTo((d.appendTo==&quot;parent&quot;?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&amp;&amp;!(/(fixed|absolute)/).test(b.css(&quot;position&quot;))){b.css(&quot;position&quot;,&quot;absolute&quot;)}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.element.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&amp;&amp;e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_clear:function(){this.helper.removeClass(&quot;ui-draggable-dragging&quot;);if(this.helper[0]!=this.element[0]&amp;&amp;!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d]);if(b==&quot;drag&quot;){this.positionAbs=this._convertPositionTo(&quot;absolute&quot;)}return a.widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(b){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));a.extend(a.ui.draggable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;drag&quot;,defaults:{addClasses:true,appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectToSortable:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:&quot;original&quot;,iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:&quot;default&quot;,scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:&quot;both&quot;,snapTolerance:20,stack:false,zIndex:false}});a.ui.plugin.add(&quot;draggable&quot;,&quot;connectToSortable&quot;,{start:function(c,e){var d=a(this).data(&quot;draggable&quot;),f=d.options,b=a.extend({},e,{item:d.element});d.sortables=[];a(f.connectToSortable).each(function(){var g=a.data(this,&quot;sortable&quot;);if(g&amp;&amp;!g.options.disabled){d.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger(&quot;activate&quot;,c,b)}})},stop:function(c,e){var d=a(this).data(&quot;draggable&quot;),b=a.extend({},e,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;if(d.options.helper==&quot;original&quot;){this.instance.currentItem.css({top:&quot;auto&quot;,left:&quot;auto&quot;})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger(&quot;deactivate&quot;,c,b)}})},drag:function(c,f){var e=a(this).data(&quot;draggable&quot;),b=this;var d=function(i){var n=this.offset.click.top,m=this.offset.click.left;var g=this.positionAbs.top,k=this.positionAbs.left;var j=i.height,l=i.width;var p=i.top,h=i.left;return a.ui.isOver(g+n,k+m,p,h,j,l)};a.each(e.sortables,function(g){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(b).clone().appendTo(this.instance.element).data(&quot;sortable-item&quot;,true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger(&quot;toSortable&quot;,c);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}if(this.instance.currentItem){this.instance._mouseDrag(c)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger(&quot;out&quot;,c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}e._trigger(&quot;fromSortable&quot;,c);e.dropped=false}}})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;cursor&quot;,{start:function(c,d){var b=a(&quot;body&quot;),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;cursor&quot;)){e._cursor=b.css(&quot;cursor&quot;)}b.css(&quot;cursor&quot;,e.cursor)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._cursor){a(&quot;body&quot;).css(&quot;cursor&quot;,d._cursor)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;iframeFix&quot;,{start:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;a(d.iframeFix===true?&quot;iframe&quot;:d.iframeFix).each(function(){a('&lt;div class=&quot;ui-draggable-iframeFix&quot; style=&quot;background: #fff;&quot;&gt;&lt;/div&gt;').css({width:this.offsetWidth+&quot;px&quot;,height:this.offsetHeight+&quot;px&quot;,position:&quot;absolute&quot;,opacity:&quot;0.001&quot;,zIndex:1000}).css(a(this).offset()).appendTo(&quot;body&quot;)})},stop:function(b,c){a(&quot;div.ui-draggable-iframeFix&quot;).each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add(&quot;draggable&quot;,&quot;opacity&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;opacity&quot;)){e._opacity=b.css(&quot;opacity&quot;)}b.css(&quot;opacity&quot;,e.opacity)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._opacity){a(c.helper).css(&quot;opacity&quot;,d._opacity)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;scroll&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;);if(b.scrollParent[0]!=document&amp;&amp;b.scrollParent[0].tagName!=&quot;HTML&quot;){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data(&quot;draggable&quot;),f=c.options,b=false;if(c.scrollParent[0]!=document&amp;&amp;c.scrollParent[0].tagName!=&quot;HTML&quot;){if(!f.axis||f.axis!=&quot;x&quot;){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop+f.scrollSpeed}else{if(d.pageY-c.overflowOffset.top&lt;f.scrollSensitivity){c.scrollParent[0].scrollTop=b=c.scrollParent[0].scrollTop-f.scrollSpeed}}}if(!f.axis||f.axis!=&quot;y&quot;){if((c.overflowOffset.left+c.scrollParent[0].offsetWidth)-d.pageX&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft+f.scrollSpeed}else{if(d.pageX-c.overflowOffset.left&lt;f.scrollSensitivity){c.scrollParent[0].scrollLeft=b=c.scrollParent[0].scrollLeft-f.scrollSpeed}}}}else{if(!f.axis||f.axis!=&quot;x&quot;){if(d.pageY-a(document).scrollTop()&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-f.scrollSpeed)}else{if(a(window).height()-(d.pageY-a(document).scrollTop())&lt;f.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+f.scrollSpeed)}}}if(!f.axis||f.axis!=&quot;y&quot;){if(d.pageX-a(document).scrollLeft()&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-f.scrollSpeed)}else{if(a(window).width()-(d.pageX-a(document).scrollLeft())&lt;f.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+f.scrollSpeed)}}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!f.dropBehaviour){a.ui.ddmanager.prepareOffsets(c,d)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;snap&quot;,{start:function(c,d){var b=a(this).data(&quot;draggable&quot;),e=b.options;b.snapElements=[];a(e.snap.constructor!=String?(e.snap.items||&quot;:data(draggable)&quot;):e.snap).each(function(){var g=a(this);var f=g.offset();if(this!=b.element[0]){b.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:f.top,left:f.left})}})},drag:function(u,p){var g=a(this).data(&quot;draggable&quot;),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v&gt;=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;x&amp;&amp;x&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;f&amp;&amp;f&lt;A+y)||(s-y&lt;w&amp;&amp;w&lt;n+y&amp;&amp;m-y&lt;e&amp;&amp;e&lt;A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&amp;&amp;g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!=&quot;inner&quot;){var c=Math.abs(m-e)&lt;=y;var z=Math.abs(A-f)&lt;=y;var j=Math.abs(s-w)&lt;=y;var k=Math.abs(n-x)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!=&quot;outer&quot;){var c=Math.abs(m-f)&lt;=y;var z=Math.abs(A-e)&lt;=y;var j=Math.abs(s-x)&lt;=y;var k=Math.abs(n-w)&lt;=y;if(c){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo(&quot;relative&quot;,{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo(&quot;relative&quot;,{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&amp;&amp;(c||z||j||k||h)){(g.options.snap.snap&amp;&amp;g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add(&quot;draggable&quot;,&quot;stack&quot;,{start:function(b,c){var e=a(this).data(&quot;draggable&quot;).options;var d=a.makeArray(a(e.stack.group)).sort(function(g,f){return(parseInt(a(g).css(&quot;zIndex&quot;),10)||e.stack.min)-(parseInt(a(f).css(&quot;zIndex&quot;),10)||e.stack.min)});a(d).each(function(f){this.style.zIndex=e.stack.min+f});this[0].style.zIndex=e.stack.min+d.length}});a.ui.plugin.add(&quot;draggable&quot;,&quot;zIndex&quot;,{start:function(c,d){var b=a(d.helper),e=a(this).data(&quot;draggable&quot;).options;if(b.css(&quot;zIndex&quot;)){e._zIndex=b.css(&quot;zIndex&quot;)}b.css(&quot;zIndex&quot;,e.zIndex)},stop:function(b,c){var d=a(this).data(&quot;draggable&quot;).options;if(d._zIndex){a(c.helper).css(&quot;zIndex&quot;,d._zIndex)}}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuidroppablejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.droppable.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.droppable.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.droppable.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.droppable&quot;,{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&amp;&amp;a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&amp;&amp;this.element.addClass(&quot;ui-droppable&quot;))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c&lt;b.length;c++){if(b[c]==this){b.splice(c,1)}}this.element.removeClass(&quot;ui-droppable ui-droppable-disabled&quot;).removeData(&quot;droppable&quot;).unbind(&quot;.droppable&quot;)},_setData:function(b,c){if(b==&quot;accept&quot;){this.options.accept=c&amp;&amp;a.isFunction(c)?c:function(e){return e.is(c)}}else{a.widget.prototype._setData.apply(this,arguments)}},_activate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;activate&quot;,c,this.ui(b)))},_deactivate:function(c){var b=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(b&amp;&amp;this._trigger(&quot;deactivate&quot;,c,this.ui(b)))},_over:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger(&quot;over&quot;,c,this.ui(b))}},_out:function(c){var b=a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;out&quot;,c,this.ui(b))}},_drop:function(c,d){var b=d||a.ui.ddmanager.current;if(!b||(b.currentItem||b.element)[0]==this.element[0]){return false}var e=false;this.element.find(&quot;:data(droppable)&quot;).not(&quot;.ui-draggable-dragging&quot;).each(function(){var f=a.data(this,&quot;droppable&quot;);if(f.options.greedy&amp;&amp;a.ui.intersect(b,a.extend(f,{offset:f.element.offset()}),f.options.tolerance)){e=true;return false}});if(e){return false}if(this.options.accept.call(this.element[0],(b.currentItem||b.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger(&quot;drop&quot;,c,this.ui(b));return this.element}return false},ui:function(b){return{draggable:(b.currentItem||b.element),helper:b.helper,position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;drop&quot;,defaults:{accept:&quot;*&quot;,activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;}});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case&quot;fit&quot;:return(g&lt;e&amp;&amp;d&lt;c&amp;&amp;p&lt;n&amp;&amp;m&lt;k);break;case&quot;intersect&quot;:return(g&lt;e+(q.helperProportions.width/2)&amp;&amp;d-(q.helperProportions.width/2)&lt;c&amp;&amp;p&lt;n+(q.helperProportions.height/2)&amp;&amp;m-(q.helperProportions.height/2)&lt;k);break;case&quot;pointer&quot;:var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case&quot;touch&quot;:return((n&gt;=p&amp;&amp;n&lt;=k)||(m&gt;=p&amp;&amp;m&lt;=k)||(n&lt;p&amp;&amp;m&gt;k))&amp;&amp;((e&gt;=g&amp;&amp;e&lt;=c)||(d&gt;=g&amp;&amp;d&lt;=c)||(e&lt;g&amp;&amp;d&gt;c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{&quot;default&quot;:[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(&quot;:data(droppable)&quot;).andSelf();droppablesLoop:for(var d=0;d&lt;b.length;d++){if(b[d].options.disabled||(e&amp;&amp;!b[d].options.accept.call(b[d].element[0],(e.currentItem||e.element)))){continue}for(var c=0;c&lt;h.length;c++){if(h[c]==b[d].element[0]){b[d].proportions.height=0;continue droppablesLoop}}b[d].visible=b[d].element.css(&quot;display&quot;)!=&quot;none&quot;;if(!b[d].visible){continue}b[d].offset=b[d].element.offset();b[d].proportions={width:b[d].element[0].offsetWidth,height:b[d].element[0].offsetHeight};if(f==&quot;mousedown&quot;){b[d]._activate.call(b[d],g)}}},drop:function(b,c){var d=false;a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(!this.options){return}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;a.ui.intersect(b,this,this.options.tolerance)){d=this._drop.call(this,c)}if(!this.options.disabled&amp;&amp;this.visible&amp;&amp;this.options.accept.call(this.element[0],(b.currentItem||b.element))){this.isout=1;this.isover=0;this._deactivate.call(this,c)}});return d},drag:function(b,c){if(b.options.refreshPositions){a.ui.ddmanager.prepareOffsets(b,c)}a.each(a.ui.ddmanager.droppables[b.options.scope],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e=a.ui.intersect(b,this,this.options.tolerance);var g=!e&amp;&amp;this.isover==1?&quot;isout&quot;:(e&amp;&amp;this.isover==0?&quot;isover&quot;:null);if(!g){return}var f;if(this.options.greedy){var d=this.element.parents(&quot;:data(droppable):eq(0)&quot;);if(d.length){f=a.data(d[0],&quot;droppable&quot;);f.greedyChild=(g==&quot;isover&quot;?1:0)}}if(f&amp;&amp;g==&quot;isover&quot;){f.isover=0;f.isout=1;f._out.call(f,c)}this[g]=1;this[g==&quot;isout&quot;?&quot;isover&quot;:&quot;isout&quot;]=0;this[g==&quot;isover&quot;?&quot;_over&quot;:&quot;_out&quot;].call(this,c);if(f&amp;&amp;g==&quot;isout&quot;){f.isout=0;f.isover=1;f._over.call(f,c)}})}}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuiprogressbarjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.progressbar.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.progressbar.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.progressbar.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.progressbar&quot;,{_init:function(){this.element.addClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).attr({role:&quot;progressbar&quot;,&quot;aria-valuemin&quot;:this._valueMin(),&quot;aria-valuemax&quot;:this._valueMax(),&quot;aria-valuenow&quot;:this._value()});this.valueDiv=a('&lt;div class=&quot;ui-progressbar-value ui-widget-header ui-corner-left&quot;&gt;&lt;/div&gt;').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass(&quot;ui-progressbar ui-widget ui-widget-content ui-corner-all&quot;).removeAttr(&quot;role&quot;).removeAttr(&quot;aria-valuemin&quot;).removeAttr(&quot;aria-valuemax&quot;).removeAttr(&quot;aria-valuenow&quot;).removeData(&quot;progressbar&quot;).unbind(&quot;.progressbar&quot;);this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setData(&quot;value&quot;,b);return this},_setData:function(b,c){switch(b){case&quot;value&quot;:this.options.value=c;this._refreshValue();this._trigger(&quot;change&quot;,null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(b&lt;this._valueMin()){b=this._valueMin()}if(b&gt;this._valueMax()){b=this._valueMax()}return b},_valueMin:function(){var b=0;return b},_valueMax:function(){var b=100;return b},_refreshValue:function(){var b=this.value();this.valueDiv[b==this._valueMax()?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-corner-right&quot;);this.valueDiv.width(b+&quot;%&quot;);this.element.attr(&quot;aria-valuenow&quot;,b)}});a.extend(a.ui.progressbar,{version:&quot;1.7.2&quot;,defaults:{value:0}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuiresizablejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.resizable.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.resizable.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.resizable.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(c){c.widget(&quot;ui.resizable&quot;,c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass(&quot;ui-resizable&quot;);c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||&quot;ui-resizable-helper&quot;:null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css(&quot;position&quot;))&amp;&amp;c.browser.opera){this.element.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this.element.wrap(c('&lt;div class=&quot;ui-wrapper&quot; style=&quot;overflow: hidden;&quot;&gt;&lt;/div&gt;').css({position:this.element.css(&quot;position&quot;),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css(&quot;top&quot;),left:this.element.css(&quot;left&quot;)}));this.element=this.element.parent().data(&quot;resizable&quot;,this.element.data(&quot;resizable&quot;));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css(&quot;marginLeft&quot;),marginTop:this.originalElement.css(&quot;marginTop&quot;),marginRight:this.originalElement.css(&quot;marginRight&quot;),marginBottom:this.originalElement.css(&quot;marginBottom&quot;)});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css(&quot;resize&quot;);this.originalElement.css(&quot;resize&quot;,&quot;none&quot;);this._proportionallyResizeElements.push(this.originalElement.css({position:&quot;static&quot;,zoom:1,display:&quot;block&quot;}));this.originalElement.css({margin:this.originalElement.css(&quot;margin&quot;)});this._proportionallyResize()}this.handles=j.handles||(!c(&quot;.ui-resizable-handle&quot;,this.element).length?&quot;e,s,se&quot;:{n:&quot;.ui-resizable-n&quot;,e:&quot;.ui-resizable-e&quot;,s:&quot;.ui-resizable-s&quot;,w:&quot;.ui-resizable-w&quot;,se:&quot;.ui-resizable-se&quot;,sw:&quot;.ui-resizable-sw&quot;,ne:&quot;.ui-resizable-ne&quot;,nw:&quot;.ui-resizable-nw&quot;});if(this.handles.constructor==String){if(this.handles==&quot;all&quot;){this.handles=&quot;n,e,s,w,se,sw,ne,nw&quot;}var k=this.handles.split(&quot;,&quot;);this.handles={};for(var f=0;f&lt;k.length;f++){var h=c.trim(k[f]),d=&quot;ui-resizable-&quot;+h;var g=c('&lt;div class=&quot;ui-resizable-handle '+d+'&quot;&gt;&lt;/div&gt;');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if(&quot;se&quot;==h){g.addClass(&quot;ui-icon ui-icon-gripsmall-diagonal-se&quot;)}this.handles[h]=&quot;.ui-resizable-&quot;+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&amp;&amp;this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=[&quot;padding&quot;,/ne|nw|n/.test(m)?&quot;Top&quot;:/se|sw|s/.test(m)?&quot;Bottom&quot;:/^e$/.test(m)?&quot;Right&quot;:&quot;Left&quot;].join(&quot;&quot;);p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(&quot;.ui-resizable-handle&quot;,this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&amp;&amp;i[1]?i[1]:&quot;se&quot;}});if(j.autoHide){this._handles.hide();c(this.element).addClass(&quot;ui-resizable-autohide&quot;).hover(function(){c(this).removeClass(&quot;ui-resizable-autohide&quot;);e._handles.show()},function(){if(!e.resizing){c(this).addClass(&quot;ui-resizable-autohide&quot;);e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass(&quot;ui-resizable ui-resizable-disabled ui-resizable-resizing&quot;).removeData(&quot;resizable&quot;).unbind(&quot;.resizable&quot;).find(&quot;.ui-resizable-handle&quot;).remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css(&quot;position&quot;),width:e.outerWidth(),height:e.outerHeight(),top:e.css(&quot;top&quot;),left:e.css(&quot;left&quot;)})).end().remove()}this.originalElement.css(&quot;resize&quot;,this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(&quot;.ui-draggable&quot;)||(/absolute/).test(d.css(&quot;position&quot;))){d.css({position:&quot;absolute&quot;,top:e.top,left:e.left})}if(c.browser.opera&amp;&amp;(/relative/).test(d.css(&quot;position&quot;))){d.css({position:&quot;relative&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}this._renderProxy();var j=b(this.helper.css(&quot;left&quot;)),g=b(this.helper.css(&quot;top&quot;));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio==&quot;number&quot;)?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(&quot;.ui-resizable-&quot;+this.axis).css(&quot;cursor&quot;);c(&quot;body&quot;).css(&quot;cursor&quot;,h==&quot;auto&quot;?this.axis+&quot;-resize&quot;:h);d.addClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;start&quot;,f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&amp;&amp;c.browser.version&lt;7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate(&quot;resize&quot;,d);g.css({top:this.position.top+&quot;px&quot;,left:this.position.left+&quot;px&quot;,width:this.size.width+&quot;px&quot;,height:this.size.height+&quot;px&quot;});if(!this._helper&amp;&amp;this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger(&quot;resize&quot;,d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&amp;&amp;(/textarea/i).test(f[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(f[0],&quot;left&quot;)?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css(&quot;left&quot;),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css(&quot;top&quot;),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&amp;&amp;!h.animate){this._proportionallyResize()}}c(&quot;body&quot;).css(&quot;cursor&quot;,&quot;auto&quot;);this.element.removeClass(&quot;ui-resizable-resizing&quot;);this._propagate(&quot;stop&quot;,g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d==&quot;sw&quot;){g.left=i.left+(e.width-g.width);g.top=null}if(d==&quot;nw&quot;){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&amp;&amp;h.maxWidth&amp;&amp;(h.maxWidth&lt;k.width),l=a(k.height)&amp;&amp;h.maxHeight&amp;&amp;(h.maxHeight&lt;k.height),g=a(k.width)&amp;&amp;h.minWidth&amp;&amp;(h.minWidth&gt;k.width),r=a(k.height)&amp;&amp;h.minHeight&amp;&amp;(h.minHeight&gt;k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&amp;&amp;j){k.left=e-h.minWidth}if(s&amp;&amp;j){k.left=e-h.maxWidth}if(r&amp;&amp;d){k.top=n-h.minHeight}if(l&amp;&amp;d){k.top=n-h.maxHeight}var m=!k.width&amp;&amp;!k.height;if(m&amp;&amp;!k.left&amp;&amp;k.top){k.top=null}else{if(m&amp;&amp;!k.top&amp;&amp;k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e&lt;this._proportionallyResizeElements.length;e++){var g=this._proportionallyResizeElements[e];if(!this.borderDif){var d=[g.css(&quot;borderTopWidth&quot;),g.css(&quot;borderRightWidth&quot;),g.css(&quot;borderBottomWidth&quot;),g.css(&quot;borderLeftWidth&quot;)],h=[g.css(&quot;paddingTop&quot;),g.css(&quot;paddingRight&quot;),g.css(&quot;paddingBottom&quot;),g.css(&quot;paddingLeft&quot;)];this.borderDif=c.map(d,function(k,m){var l=parseInt(k,10)||0,n=parseInt(h[m],10)||0;return l+n})}if(c.browser.msie&amp;&amp;!(!(c(f).is(&quot;:hidden&quot;)||c(f).parents(&quot;:hidden&quot;).length))){continue}g.css({height:(f.height()-this.borderDif[0]-this.borderDif[2])||0,width:(f.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var e=this.element,h=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||c('&lt;div style=&quot;overflow:hidden;&quot;&gt;&lt;/div&gt;');var d=c.browser.msie&amp;&amp;c.browser.version&lt;7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:&quot;absolute&quot;,left:this.elementOffset.left-f+&quot;px&quot;,top:this.elementOffset.top-f+&quot;px&quot;,zIndex:++h.zIndex});this.helper.appendTo(&quot;body&quot;).disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!=&quot;resize&quot;&amp;&amp;this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:&quot;1.7.2&quot;,eventPrefix:&quot;resize&quot;,defaults:{alsoResize:false,animate:false,animateDuration:&quot;slow&quot;,animateEasing:&quot;swing&quot;,aspectRatio:false,autoHide:false,cancel:&quot;:input,option&quot;,containment:false,delay:0,distance:1,ghost:false,grid:false,handles:&quot;e,s,se&quot;,helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add(&quot;resizable&quot;,&quot;alsoResize&quot;,{start:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;_store=function(h){c(h).each(function(){c(this).data(&quot;resizable-alsoresize&quot;,{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css(&quot;left&quot;),10),top:parseInt(c(this).css(&quot;top&quot;),10)})})};if(typeof(g.alsoResize)==&quot;object&quot;&amp;&amp;!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data(&quot;resizable&quot;),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data(&quot;resizable-alsoresize&quot;),o={},n=m&amp;&amp;m.length?m:[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;];c.each(n||[&quot;width&quot;,&quot;height&quot;,&quot;top&quot;,&quot;left&quot;],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&amp;&amp;s&gt;=0){o[t]=s||null}});if(/relative/.test(p.css(&quot;position&quot;))&amp;&amp;c.browser.opera){e._revertToRelativePosition=true;p.css({position:&quot;absolute&quot;,top:&quot;auto&quot;,left:&quot;auto&quot;})}p.css(o)})};if(typeof(i.alsoResize)==&quot;object&quot;&amp;&amp;!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;);if(d._revertToRelativePosition&amp;&amp;c.browser.opera){d._revertToRelativePosition=false;el.css({position:&quot;relative&quot;})}c(this).removeData(&quot;resizable-alsoresize-start&quot;)}});c.ui.plugin.add(&quot;resizable&quot;,&quot;animate&quot;,{stop:function(h,m){var n=c(this).data(&quot;resizable&quot;),i=n.options;var g=n._proportionallyResizeElements,d=g.length&amp;&amp;(/textarea/i).test(g[0].nodeName),e=d&amp;&amp;c.ui.hasScroll(g[0],&quot;left&quot;)?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css(&quot;left&quot;),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css(&quot;top&quot;),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&amp;&amp;j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css(&quot;width&quot;),10),height:parseInt(n.element.css(&quot;height&quot;),10),top:parseInt(n.element.css(&quot;top&quot;),10),left:parseInt(n.element.css(&quot;left&quot;),10)};if(g&amp;&amp;g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate(&quot;resize&quot;,h)}})}});c.ui.plugin.add(&quot;resizable&quot;,&quot;containment&quot;,{start:function(e,q){var s=c(this).data(&quot;resizable&quot;),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c([&quot;Top&quot;,&quot;Right&quot;,&quot;Left&quot;,&quot;Bottom&quot;]).each(function(p,o){h[p]=b(m.css(&quot;padding&quot;+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,&quot;left&quot;)?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data(&quot;resizable&quot;),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){d=n}if(m.left&lt;(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top&lt;(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css(&quot;position&quot;));if(j&amp;&amp;i){k-=s.parentData.left}if(k+s.size.width&gt;=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height&gt;=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data(&quot;resizable&quot;),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&amp;&amp;!f.animate&amp;&amp;(/relative/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&amp;&amp;!f.animate&amp;&amp;(/static/).test(g.css(&quot;position&quot;))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;ghost&quot;,{start:function(f,g){var d=c(this).data(&quot;resizable&quot;),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:&quot;block&quot;,position:&quot;relative&quot;,height:e.height,width:e.width,margin:0,left:0,top:0}).addClass(&quot;ui-resizable-ghost&quot;).addClass(typeof h.ghost==&quot;string&quot;?h.ghost:&quot;&quot;);d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost){d.ghost.css({position:&quot;relative&quot;,height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data(&quot;resizable&quot;),g=d.options;if(d.ghost&amp;&amp;d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add(&quot;resizable&quot;,&quot;grid&quot;,{resize:function(d,l){var n=c(this).data(&quot;resizable&quot;),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid==&quot;number&quot;?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuiselectablejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.selectable.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.selectable.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.selectable.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.selectable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass(&quot;ui-selectable&quot;);this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,&quot;selectable-item&quot;,{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass(&quot;ui-selected&quot;),selecting:d.hasClass(&quot;ui-selecting&quot;),unselecting:d.hasClass(&quot;ui-unselecting&quot;)})})};this.refresh();this.selectees=c.addClass(&quot;ui-selectee&quot;);this._mouseInit();this.helper=a(document.createElement(&quot;div&quot;)).css({border:&quot;1px dotted black&quot;}).addClass(&quot;ui-selectable-helper&quot;)},destroy:function(){this.element.removeClass(&quot;ui-selectable ui-selectable-disabled&quot;).removeData(&quot;selectable&quot;).unbind(&quot;.selectable&quot;);this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger(&quot;start&quot;,d);a(c.appendTo).append(this.helper);this.helper.css({&quot;z-index&quot;:100,position:&quot;absolute&quot;,left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(&quot;.ui-selected&quot;).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.startselected=true;if(!d.metaKey){e.$element.removeClass(&quot;ui-selected&quot;);e.selected=false;e.$element.addClass(&quot;ui-unselecting&quot;);e.unselecting=true;b._trigger(&quot;unselecting&quot;,d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,&quot;selectable-item&quot;);if(e){e.$element.removeClass(&quot;ui-unselecting&quot;).addClass(&quot;ui-selecting&quot;);e.unselecting=false;e.selecting=true;e.selected=true;b._trigger(&quot;selecting&quot;,d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d&gt;b){var f=b;b=d;d=f}if(h&gt;g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,&quot;selectable-item&quot;);if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance==&quot;touch&quot;){k=(!(j.left&gt;b||j.right&lt;d||j.top&gt;g||j.bottom&lt;h))}else{if(e.tolerance==&quot;fit&quot;){k=(j.left&gt;d&amp;&amp;j.right&lt;b&amp;&amp;j.top&gt;h&amp;&amp;j.bottom&lt;g)}}if(k){if(j.selected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false}if(j.unselecting){j.$element.removeClass(&quot;ui-unselecting&quot;);j.unselecting=false}if(!j.selecting){j.$element.addClass(&quot;ui-selecting&quot;);j.selecting=true;c._trigger(&quot;selecting&quot;,i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&amp;&amp;j.startselected){j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;j.$element.addClass(&quot;ui-selected&quot;);j.selected=true}else{j.$element.removeClass(&quot;ui-selecting&quot;);j.selecting=false;if(j.startselected){j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true}c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&amp;&amp;!j.startselected){j.$element.removeClass(&quot;ui-selected&quot;);j.selected=false;j.$element.addClass(&quot;ui-unselecting&quot;);j.unselecting=true;c._trigger(&quot;unselecting&quot;,i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(&quot;.ui-unselecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-unselecting&quot;);e.unselecting=false;e.startselected=false;b._trigger(&quot;unselected&quot;,d,{unselected:e.element})});a(&quot;.ui-selecting&quot;,this.element[0]).each(function(){var e=a.data(this,&quot;selectable-item&quot;);e.$element.removeClass(&quot;ui-selecting&quot;).addClass(&quot;ui-selected&quot;);e.selecting=false;e.selected=true;e.startselected=true;b._trigger(&quot;selected&quot;,d,{selected:e.element})});this._trigger(&quot;stop&quot;,d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:&quot;1.7.2&quot;,defaults:{appendTo:&quot;body&quot;,autoRefresh:true,cancel:&quot;:input,option&quot;,delay:0,distance:0,filter:&quot;*&quot;,tolerance:&quot;touch&quot;}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuisliderjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.slider.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.slider.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.slider.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.slider&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this,c=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass(&quot;ui-slider ui-slider-&quot;+this.orientation+&quot; ui-widget ui-widget-content ui-corner-all&quot;);this.range=a([]);if(c.range){if(c.range===true){this.range=a(&quot;&lt;div&gt;&lt;/div&gt;&quot;);if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&amp;&amp;c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a(&quot;&lt;div&gt;&lt;/div&gt;&quot;)}this.range.appendTo(this.element).addClass(&quot;ui-slider-range&quot;);if(c.range==&quot;min&quot;||c.range==&quot;max&quot;){this.range.addClass(&quot;ui-slider-range-&quot;+c.range)}this.range.addClass(&quot;ui-widget-header&quot;)}if(a(&quot;.ui-slider-handle&quot;,this.element).length==0){a('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}if(c.values&amp;&amp;c.values.length){while(a(&quot;.ui-slider-handle&quot;,this.element).length&lt;c.values.length){a('&lt;a href=&quot;#&quot;&gt;&lt;/a&gt;').appendTo(this.element).addClass(&quot;ui-slider-handle&quot;)}}this.handles=a(&quot;.ui-slider-handle&quot;,this.element).addClass(&quot;ui-state-default ui-corner-all&quot;);this.handle=this.handles.eq(0);this.handles.add(this.range).filter(&quot;a&quot;).click(function(d){d.preventDefault()}).hover(function(){if(!c.disabled){a(this).addClass(&quot;ui-state-hover&quot;)}},function(){a(this).removeClass(&quot;ui-state-hover&quot;)}).focus(function(){if(!c.disabled){a(&quot;.ui-slider .ui-state-focus&quot;).removeClass(&quot;ui-state-focus&quot;);a(this).addClass(&quot;ui-state-focus&quot;)}else{a(this).blur()}}).blur(function(){a(this).removeClass(&quot;ui-state-focus&quot;)});this.handles.each(function(d){a(this).data(&quot;index.ui-slider-handle&quot;,d)});this.handles.keydown(function(i){var f=true;var e=a(this).data(&quot;index.ui-slider-handle&quot;);if(b.options.disabled){return}switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:f=false;if(!b._keySliding){b._keySliding=true;a(this).addClass(&quot;ui-state-active&quot;);b._start(i,e)}break}var g,d,h=b._step();if(b.options.values&amp;&amp;b.options.values.length){g=d=b.values(e)}else{g=d=b.value()}switch(i.keyCode){case a.ui.keyCode.HOME:d=b._valueMin();break;case a.ui.keyCode.END:d=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g==b._valueMax()){return}d=g+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g==b._valueMin()){return}d=g-h;break}b._slide(i,e,d);return f}).keyup(function(e){var d=a(this).data(&quot;index.ui-slider-handle&quot;);if(b._keySliding){b._stop(e,d);b._change(e,d);b._keySliding=false;a(this).removeClass(&quot;ui-state-active&quot;)}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass(&quot;ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all&quot;).removeData(&quot;slider&quot;).unbind(&quot;.slider&quot;);this._mouseDestroy()},_mouseCapture:function(d){var e=this.options;if(e.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var h={x:d.pageX,y:d.pageY};var j=this._normValueFromMouse(h);var c=this._valueMax()-this._valueMin()+1,f;var k=this,i;this.handles.each(function(l){var m=Math.abs(j-k.values(l));if(c&gt;m){c=m;f=a(this);i=l}});if(e.range==true&amp;&amp;this.values(1)==e.min){f=a(this.handles[++i])}this._start(d,i);k._handleIndex=i;f.addClass(&quot;ui-state-active&quot;).focus();var g=f.offset();var b=!a(d.target).parents().andSelf().is(&quot;.ui-slider-handle&quot;);this._clickOffset=b?{left:0,top:0}:{left:d.pageX-g.left-(f.width()/2),top:d.pageY-g.top-(f.height()/2)-(parseInt(f.css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(f.css(&quot;borderBottomWidth&quot;),10)||0)+(parseInt(f.css(&quot;marginTop&quot;),10)||0)};j=this._normValueFromMouse(h);this._slide(d,i,j);return true},_mouseStart:function(b){return true},_mouseDrag:function(d){var b={x:d.pageX,y:d.pageY};var c=this._normValueFromMouse(b);this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass(&quot;ui-state-active&quot;);this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation==&quot;vertical&quot;?&quot;vertical&quot;:&quot;horizontal&quot;},_normValueFromMouse:function(d){var c,h;if(&quot;horizontal&quot;==this.orientation){c=this.elementSize.width;h=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;h=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var f=(h/c);if(f&gt;1){f=1}if(f&lt;0){f=0}if(&quot;vertical&quot;==this.orientation){f=1-f}var e=this._valueMax()-this._valueMin(),i=f*e,b=i%this.options.step,g=this._valueMin()+i-b;if(b&gt;(this.options.step/2)){g+=this.options.step}return parseFloat(g.toFixed(5))},_start:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger(&quot;start&quot;,d,b)},_slide:function(f,e,d){var g=this.handles[e];if(this.options.values&amp;&amp;this.options.values.length){var b=this.values(e?0:1);if((this.options.values.length==2&amp;&amp;this.options.range===true)&amp;&amp;((e==0&amp;&amp;d&gt;b)||(e==1&amp;&amp;d&lt;b))){d=b}if(d!=this.values(e)){var c=this.values();c[e]=d;var h=this._trigger(&quot;slide&quot;,f,{handle:this.handles[e],value:d,values:c});var b=this.values(e?0:1);if(h!==false){this.values(e,d,(f.type==&quot;mousedown&quot;&amp;&amp;this.options.animate),true)}}}else{if(d!=this.value()){var h=this._trigger(&quot;slide&quot;,f,{handle:this.handles[e],value:d});if(h!==false){this._setData(&quot;value&quot;,d,(f.type==&quot;mousedown&quot;&amp;&amp;this.options.animate))}}}},_stop:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger(&quot;stop&quot;,d,b)},_change:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&amp;&amp;this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger(&quot;change&quot;,d,b)},value:function(b){if(arguments.length){this._setData(&quot;value&quot;,b);this._change(null,0)}return this._value()},values:function(b,e,c,d){if(arguments.length&gt;1){this.options.values[b]=e;this._refreshValue(c);if(!d){this._change(null,b)}}if(arguments.length){if(this.options.values&amp;&amp;this.options.values.length){return this._values(b)}else{return this.value()}}else{return this._values()}},_setData:function(b,d,c){a.widget.prototype._setData.apply(this,arguments);switch(b){case&quot;disabled&quot;:if(d){this.handles.filter(&quot;.ui-state-focus&quot;).blur();this.handles.removeClass(&quot;ui-state-hover&quot;);this.handles.attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{this.handles.removeAttr(&quot;disabled&quot;)}case&quot;orientation&quot;:this._detectOrientation();this.element.removeClass(&quot;ui-slider-horizontal ui-slider-vertical&quot;).addClass(&quot;ui-slider-&quot;+this.orientation);this._refreshValue(c);break;case&quot;value&quot;:this._refreshValue(c);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(b&lt;this._valueMin()){b=this._valueMin()}if(b&gt;this._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(c&lt;this._valueMin()){c=this._valueMin()}if(c&gt;this._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(c){var f=this.options.range,d=this.options,l=this;if(this.options.values&amp;&amp;this.options.values.length){var i,h;this.handles.each(function(p,n){var o=(l.values(p)-l._valueMin())/(l._valueMax()-l._valueMin())*100;var m={};m[l.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=o+&quot;%&quot;;a(this).stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;](m,d.animate);if(l.options.range===true){if(l.orientation==&quot;horizontal&quot;){(p==0)&amp;&amp;l.range.stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;]({left:o+&quot;%&quot;},d.animate);(p==1)&amp;&amp;l.range[c?&quot;animate&quot;:&quot;css&quot;]({width:(o-lastValPercent)+&quot;%&quot;},{queue:false,duration:d.animate})}else{(p==0)&amp;&amp;l.range.stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;]({bottom:(o)+&quot;%&quot;},d.animate);(p==1)&amp;&amp;l.range[c?&quot;animate&quot;:&quot;css&quot;]({height:(o-lastValPercent)+&quot;%&quot;},{queue:false,duration:d.animate})}}lastValPercent=o})}else{var j=this.value(),g=this._valueMin(),k=this._valueMax(),e=k!=g?(j-g)/(k-g)*100:0;var b={};b[l.orientation==&quot;horizontal&quot;?&quot;left&quot;:&quot;bottom&quot;]=e+&quot;%&quot;;this.handle.stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;](b,d.animate);(f==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range.stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;]({width:e+&quot;%&quot;},d.animate);(f==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;horizontal&quot;)&amp;&amp;this.range[c?&quot;animate&quot;:&quot;css&quot;]({width:(100-e)+&quot;%&quot;},{queue:false,duration:d.animate});(f==&quot;min&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range.stop(1,1)[c?&quot;animate&quot;:&quot;css&quot;]({height:e+&quot;%&quot;},d.animate);(f==&quot;max&quot;)&amp;&amp;(this.orientation==&quot;vertical&quot;)&amp;&amp;this.range[c?&quot;animate&quot;:&quot;css&quot;]({height:(100-e)+&quot;%&quot;},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:&quot;value values&quot;,version:&quot;1.7.2&quot;,eventPrefix:&quot;slide&quot;,defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:&quot;horizontal&quot;,range:false,step:1,value:0,values:null}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuisortablejs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.sortable.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.sortable.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.sortable.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.sortable&quot;,a.extend({},a.ui.mouse,{_init:function(){var b=this.options;this.containerCache={};this.element.addClass(&quot;ui-sortable&quot;);this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css(&quot;float&quot;)):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass(&quot;ui-sortable ui-sortable-disabled&quot;).removeData(&quot;sortable&quot;).unbind(&quot;.sortable&quot;);this._mouseDestroy();for(var b=this.items.length-1;b&gt;=0;b--){this.items[b].item.removeData(&quot;sortable-item&quot;)}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type==&quot;static&quot;){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,&quot;sortable-item&quot;)==c){d=a(this);return false}});if(a.data(e.target,&quot;sortable-item&quot;)==c){d=a(e.target)}if(!d){return false}if(this.options.handle&amp;&amp;!f){var g=false;a(this.options.handle,d).find(&quot;*&quot;).andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css(&quot;position&quot;,&quot;absolute&quot;);this.cssPosition=this.helper.css(&quot;position&quot;);a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a(&quot;body&quot;).css(&quot;cursor&quot;)){this._storedCursor=a(&quot;body&quot;).css(&quot;cursor&quot;)}a(&quot;body&quot;).css(&quot;cursor&quot;,g.cursor)}if(g.opacity){if(this.helper.css(&quot;opacity&quot;)){this._storedOpacity=this.helper.css(&quot;opacity&quot;)}this.helper.css(&quot;opacity&quot;,g.opacity)}if(g.zIndex){if(this.helper.css(&quot;zIndex&quot;)){this._storedZIndex=this.helper.css(&quot;zIndex&quot;)}this.helper.css(&quot;zIndex&quot;,g.zIndex)}if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){this.overflowOffset=this.scrollParent.offset()}this._trigger(&quot;start&quot;,e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d&gt;=0;d--){this.containers[d]._trigger(&quot;activate&quot;,e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass(&quot;ui-sortable-helper&quot;);this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0].tagName!=&quot;HTML&quot;){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(f.pageY-this.overflowOffset.top&lt;g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(f.pageX-this.overflowOffset.left&lt;g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(f.pageY-a(document).scrollTop()&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(f.pageY-a(document).scrollTop())&lt;g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(f.pageX-a(document).scrollLeft()&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())&lt;g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(b!==false&amp;&amp;a.ui.ddmanager&amp;&amp;!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}}this.positionAbs=this._convertPositionTo(&quot;absolute&quot;);if(!this.options.axis||this.options.axis!=&quot;y&quot;){this.helper[0].style.left=this.position.left+&quot;px&quot;}if(!this.options.axis||this.options.axis!=&quot;x&quot;){this.helper[0].style.top=this.position.top+&quot;px&quot;}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&amp;&amp;this.placeholder[h==1?&quot;next&quot;:&quot;prev&quot;]()[0]!=c&amp;&amp;!a.ui.contains(this.placeholder[0],c)&amp;&amp;(this.options.type==&quot;semi-dynamic&quot;?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?&quot;down&quot;:&quot;up&quot;;if(this.options.tolerance==&quot;pointer&quot;||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger(&quot;change&quot;,f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger(&quot;sort&quot;,f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&amp;&amp;!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper==&quot;original&quot;){this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}for(var c=this.containers.length-1;c&gt;=0;c--){this.containers[c]._trigger(&quot;deactivate&quot;,null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=&quot;original&quot;&amp;&amp;this.helper&amp;&amp;this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;).match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+&quot;[]&quot;)+&quot;=&quot;+(d.key&amp;&amp;d.expression?e[1]:e[2]))}});return c.join(&quot;&amp;&quot;)},toArray:function(d){var b=this._getItemsAsjQuery(d&amp;&amp;d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||&quot;id&quot;)||&quot;&quot;)});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)&gt;n&amp;&amp;(k+o)&lt;i&amp;&amp;(e+h)&gt;f&amp;&amp;(e+h)&lt;c;if(this.options.tolerance==&quot;pointer&quot;||this.options.forcePointerForContainers||(this.options.tolerance!=&quot;pointer&quot;&amp;&amp;this.helperProportions[this.floating?&quot;width&quot;:&quot;height&quot;]&gt;m[this.floating?&quot;width&quot;:&quot;height&quot;])){return g}else{return(f&lt;e+(this.helperProportions.width/2)&amp;&amp;d-(this.helperProportions.width/2)&lt;c&amp;&amp;n&lt;k+(this.helperProportions.height/2)&amp;&amp;j-(this.helperProportions.height/2)&lt;i)}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&amp;&amp;c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!g){return false}return this.floating?(((f&amp;&amp;f==&quot;right&quot;)||b==&quot;down&quot;)?2:1):(b&amp;&amp;(b==&quot;down&quot;?2:1))},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(this.floating&amp;&amp;f){return((f==&quot;right&quot;&amp;&amp;d)||(f==&quot;left&quot;&amp;&amp;!d))}else{return b&amp;&amp;((b==&quot;down&quot;&amp;&amp;c)||(b==&quot;up&quot;&amp;&amp;!c))}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&amp;&amp;(b&gt;0?&quot;down&quot;:&quot;up&quot;)},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&amp;&amp;(b&gt;0?&quot;right&quot;:&quot;left&quot;)},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&amp;&amp;b){for(var d=h.length-1;d&gt;=0;d--){var k=a(h[d]);for(var c=k.length-1;c&gt;=0;c--){var f=a.data(k[c],&quot;sortable&quot;);if(f&amp;&amp;f!=this&amp;&amp;!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(&quot;.ui-sortable-helper&quot;),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(&quot;.ui-sortable-helper&quot;),this]);for(var d=e.length-1;d&gt;=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(&quot;:data(sortable-item)&quot;);for(var c=0;c&lt;this.items.length;c++){for(var b=0;b&lt;d.length;b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)}}}},_refreshItems:function(b){this.items=[];this.containers=[this];var h=this.items;var p=this;var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];var l=this._connectWith();if(l){for(var e=l.length-1;e&gt;=0;e--){var m=a(l[e]);for(var d=m.length-1;d&gt;=0;d--){var g=a.data(m[d],&quot;sortable&quot;);if(g&amp;&amp;g!=this&amp;&amp;!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e&gt;=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d&lt;n;d++){var o=a(c[d]);o.data(&quot;sortable-item&quot;,k);h.push({item:o,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&amp;&amp;this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d&gt;=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&amp;&amp;this.currentContainer&amp;&amp;e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&amp;&amp;this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d&gt;=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+&quot; ui-sortable-placeholder&quot;).removeClass(&quot;ui-sortable-helper&quot;)[0];if(!c){f.style.visibility=&quot;hidden&quot;}return f},update:function(f,g){if(c&amp;&amp;!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css(&quot;paddingTop&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingBottom&quot;)||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css(&quot;paddingLeft&quot;)||0,10)-parseInt(b.currentItem.css(&quot;paddingRight&quot;)||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c&gt;=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];for(var b=this.items.length-1;b&gt;=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?&quot;left&quot;:&quot;top&quot;];if(Math.abs(f-e)&lt;h){h=Math.abs(f-e);g=this.items[b]}}if(!g&amp;&amp;!this.options.dropOnEmpty){continue}this.currentContainer=this.containers[c];g?this._rearrange(d,g,null,true):this._rearrange(d,null,this.containers[c].element,true);this._trigger(&quot;change&quot;,d,this._uiHash());this.containers[c]._trigger(&quot;change&quot;,d,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[c]._trigger(&quot;over&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=1}}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger(&quot;out&quot;,d,this._uiHash(this));this.containers[c].containerCache.over=0}}}},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper==&quot;clone&quot;?this.currentItem.clone():this.currentItem);if(!b.parents(&quot;body&quot;).length){a(d.appendTo!=&quot;parent&quot;?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css(&quot;position&quot;),top:this.currentItem.css(&quot;top&quot;),left:this.currentItem.css(&quot;left&quot;)}}if(b[0].style.width==&quot;&quot;||d.forceHelperSize){b.width(this.currentItem.width())}if(b[0].style.height==&quot;&quot;||d.forceHelperSize){b.height(this.currentItem.height())}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==&quot;absolute&quot;&amp;&amp;this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&amp;&amp;this.offsetParent[0].tagName.toLowerCase()==&quot;html&quot;&amp;&amp;a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css(&quot;borderTopWidth&quot;),10)||0),left:b.left+(parseInt(this.offsetParent.css(&quot;borderLeftWidth&quot;),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==&quot;relative&quot;){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css(&quot;top&quot;),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css(&quot;left&quot;),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css(&quot;marginLeft&quot;),10)||0),top:(parseInt(this.currentItem.css(&quot;marginTop&quot;),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment==&quot;parent&quot;){e.containment=this.helper[0].parentNode}if(e.containment==&quot;document&quot;||e.containment==&quot;window&quot;){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==&quot;document&quot;?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==&quot;document&quot;?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];var d=a(e.containment).offset();var b=(a(c).css(&quot;overflow&quot;)!=&quot;hidden&quot;);this.containment=[d.left+(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingLeft&quot;),10)||0)-this.margins.left,d.top+(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)+(parseInt(a(c).css(&quot;paddingTop&quot;),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css(&quot;borderLeftWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingRight&quot;),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css(&quot;borderTopWidth&quot;),10)||0)-(parseInt(a(c).css(&quot;paddingBottom&quot;),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f==&quot;absolute&quot;?1:-1;var e=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition==&quot;absolute&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition==&quot;relative&quot;&amp;&amp;!(this.scrollParent[0]!=document&amp;&amp;this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left&lt;this.containment[0]){d=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top&lt;this.containment[1]){c=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left&gt;this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top&gt;this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.top&lt;this.containment[1]||g-this.offset.click.top&gt;this.containment[3])?g:(!(g-this.offset.click.top&lt;this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];d=this.containment?(!(f-this.offset.click.left&lt;this.containment[0]||f-this.offset.click.left&gt;this.containment[2])?f:(!(f-this.offset.click.left&lt;this.containment[0])?f-h.grid[0]:f+h.grid[0])):f}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollTop():(i?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&amp;&amp;this.cssPosition==&quot;fixed&quot;?0:(this.cssPosition==&quot;fixed&quot;?-this.scrollParent.scrollLeft():i?0:b.scrollLeft())))}},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==&quot;down&quot;?f.item[0]:f.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var d=this,b=this.counter;window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)}},0)},_clear:function(d,e){this.reverting=false;var f=[],b=this;if(!this._noFinalSort&amp;&amp;this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]==&quot;auto&quot;||this._storedCSS[c]==&quot;static&quot;){this._storedCSS[c]=&quot;&quot;}}this.currentItem.css(this._storedCSS).removeClass(&quot;ui-sortable-helper&quot;)}else{this.currentItem.show()}if(this.fromOutside&amp;&amp;!e){f.push(function(g){this._trigger(&quot;receive&quot;,g,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(&quot;.ui-sortable-helper&quot;)[0]||this.domPosition.parent!=this.currentItem.parent()[0])&amp;&amp;!e){f.push(function(g){this._trigger(&quot;update&quot;,g,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger(&quot;remove&quot;,g,this._uiHash())})}for(var c=this.containers.length-1;c&gt;=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&amp;&amp;!e){f.push((function(g){return function(h){g._trigger(&quot;receive&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger(&quot;update&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c&gt;=0;c--){if(!e){f.push((function(g){return function(h){g._trigger(&quot;deactivate&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger(&quot;out&quot;,h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a(&quot;body&quot;).css(&quot;cursor&quot;,this._storedCursor)}if(this._storedOpacity){this.helper.css(&quot;opacity&quot;,this._storedOpacity)}if(this._storedZIndex){this.helper.css(&quot;zIndex&quot;,this._storedZIndex==&quot;auto&quot;?&quot;&quot;:this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash());for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}return false}if(!e){this._trigger(&quot;beforeStop&quot;,d,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!e){for(var c=0;c&lt;f.length;c++){f[c].call(this,d)}this._trigger(&quot;stop&quot;,d,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(c){var b=c||this;return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,absolutePosition:b.positionAbs,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}}}));a.extend(a.ui.sortable,{getter:&quot;serialize toArray&quot;,version:&quot;1.7.2&quot;,eventPrefix:&quot;sort&quot;,defaults:{appendTo:&quot;parent&quot;,axis:false,cancel:&quot;:input,option&quot;,connectWith:false,containment:false,cursor:&quot;auto&quot;,cursorAt:false,delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:&quot;original&quot;,items:&quot;&gt; *&quot;,opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:&quot;default&quot;,tolerance:&quot;intersect&quot;,zIndex:1000}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkjsjqueryuitabsjs"></a>
<div class="delfile"><h4>Deleted: trunk/js/jquery/ui.tabs.js (463 => 464)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/js/jquery/ui.tabs.js        2010-04-07 10:20:51 UTC (rev 463)
+++ trunk/js/jquery/ui.tabs.js        2010-04-08 11:06:43 UTC (rev 464)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-(function(a){a.widget(&quot;ui.tabs&quot;,{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b==&quot;selected&quot;){if(this.options.collapsible&amp;&amp;c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b==&quot;deselectable&quot;){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&amp;&amp;b.title.replace(/\s/g,&quot;_&quot;).replace(/[^A-Za-z0-9\-_:\.]/g,&quot;&quot;)||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,&quot;\\:&quot;)},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||&quot;ui-tabs-&quot;+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(&quot;.ui-state-processing&quot;).removeClass(&quot;ui-state-processing&quot;).find(&quot;span:data(label.tabs)&quot;).each(function(){var b=a(this);b.html(b.data(&quot;label.tabs&quot;)).removeData(&quot;label.tabs&quot;)})},_tabify:function(n){this.list=this.element.children(&quot;ul:first&quot;);this.lis=a(&quot;li:has(a[href])&quot;,this.list);this.anchors=this.lis.map(function(){return a(&quot;a&quot;,this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr(&quot;href&quot;);var s=q.split(&quot;#&quot;)[0],u;if(s&amp;&amp;(s===location.toString().split(&quot;#&quot;)[0]||(u=a(&quot;base&quot;)[0])&amp;&amp;s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!=&quot;#&quot;){a.data(o,&quot;href.tabs&quot;,q);a.data(o,&quot;load.tabs&quot;,q.replace(/#.*$/,&quot;&quot;));var w=p._tabId(o);o.href=&quot;#&quot;+w;var v=a(&quot;#&quot;+w);if(!v.length){v=a(d.panelTemplate).attr(&quot;id&quot;,w).addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;).insertAfter(p.panels[r-1]||p.list);v.data(&quot;destroy.tabs&quot;,true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all&quot;);this.list.addClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.lis.addClass(&quot;ui-state-default ui-corner-top&quot;);this.panels.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom&quot;);if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!=&quot;number&quot;&amp;&amp;d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!=&quot;number&quot;&amp;&amp;this.lis.filter(&quot;.ui-tabs-selected&quot;).length){d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected&gt;=0&amp;&amp;this.anchors[d.selected])||d.selected&lt;0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(&quot;.ui-state-disabled&quot;),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass(&quot;ui-tabs-hide&quot;);this.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;);if(d.selected&gt;=0&amp;&amp;this.anchors.length){this.panels.eq(d.selected).removeClass(&quot;ui-tabs-hide&quot;);this.lis.eq(d.selected).addClass(&quot;ui-tabs-selected ui-state-active&quot;);p.element.queue(&quot;tabs&quot;,function(){p._trigger(&quot;show&quot;,null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind(&quot;unload&quot;,function(){p.lis.add(p.anchors).unbind(&quot;.tabs&quot;);p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(&quot;.ui-tabs-selected&quot;))}this.element[d.collapsible?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-tabs-collapsible&quot;);if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&amp;&amp;!a(m).hasClass(&quot;ui-tabs-selected&quot;)?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;ui-state-disabled&quot;)}if(d.cache===false){this.anchors.removeData(&quot;cache.tabs&quot;)}this.lis.add(this.anchors).unbind(&quot;.tabs&quot;);if(d.event!=&quot;mouseover&quot;){var f=function(o,i){if(i.is(&quot;:not(.ui-state-disabled)&quot;)){i.addClass(&quot;ui-state-&quot;+o)}};var j=function(o,i){i.removeClass(&quot;ui-state-&quot;+o)};this.lis.bind(&quot;mouseover.tabs&quot;,function(){f(&quot;hover&quot;,a(this))});this.lis.bind(&quot;mouseout.tabs&quot;,function(){j(&quot;hover&quot;,a(this))});this.anchors.bind(&quot;focus.tabs&quot;,function(){f(&quot;focus&quot;,a(this).closest(&quot;li&quot;))});this.anchors.bind(&quot;blur.tabs&quot;,function(){j(&quot;focus&quot;,a(this).closest(&quot;li&quot;))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:&quot;&quot;});if(a.browser.msie&amp;&amp;o.opacity){i[0].style.removeAttribute(&quot;filter&quot;)}}var k=h?function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.hide().removeClass(&quot;ui-tabs-hide&quot;).animate(h,h.duration||&quot;normal&quot;,function(){e(o,h);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))})}:function(i,o){a(i).closest(&quot;li&quot;).removeClass(&quot;ui-state-default&quot;).addClass(&quot;ui-tabs-selected ui-state-active&quot;);o.removeClass(&quot;ui-tabs-hide&quot;);p._trigger(&quot;show&quot;,null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||&quot;normal&quot;,function(){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);e(i,b);p.element.dequeue(&quot;tabs&quot;)})}:function(o,i,q){p.lis.removeClass(&quot;ui-tabs-selected ui-state-active&quot;).addClass(&quot;ui-state-default&quot;);i.addClass(&quot;ui-tabs-hide&quot;);p.element.dequeue(&quot;tabs&quot;)};this.anchors.bind(d.event+&quot;.tabs&quot;,function(){var o=this,r=a(this).closest(&quot;li&quot;),i=p.panels.filter(&quot;:not(.ui-tabs-hide)&quot;),q=a(p._sanitizeSelector(this.hash));if((r.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;!d.collapsible)||r.hasClass(&quot;ui-state-disabled&quot;)||r.hasClass(&quot;ui-state-processing&quot;)||p._trigger(&quot;select&quot;,null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass(&quot;ui-tabs-selected&quot;)){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){l(o,i)}).dequeue(&quot;tabs&quot;);this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue(&quot;tabs&quot;,function(){l(o,i)})}p.element.queue(&quot;tabs&quot;,function(){k(o,q)});p.load(p.anchors.index(this))}else{throw&quot;jQuery UI Tabs: Mismatching fragment identifier.&quot;}if(a.browser.msie){this.blur()}});this.anchors.bind(&quot;click.tabs&quot;,function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(&quot;.tabs&quot;).removeClass(&quot;ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible&quot;).removeData(&quot;tabs&quot;);this.list.removeClass(&quot;ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all&quot;);this.anchors.each(function(){var c=a.data(this,&quot;href.tabs&quot;);if(c){this.href=c}var d=a(this).unbind(&quot;.tabs&quot;);a.each([&quot;href&quot;,&quot;load&quot;,&quot;cache&quot;],function(e,f){d.removeData(f+&quot;.tabs&quot;)})});this.lis.unbind(&quot;.tabs&quot;).add(this.panels).each(function(){if(a.data(this,&quot;destroy.tabs&quot;)){a(this).remove()}else{a(this).removeClass([&quot;ui-state-default&quot;,&quot;ui-corner-top&quot;,&quot;ui-tabs-selected&quot;,&quot;ui-state-active&quot;,&quot;ui-state-hover&quot;,&quot;ui-state-focus&quot;,&quot;ui-state-disabled&quot;,&quot;ui-tabs-panel&quot;,&quot;ui-widget-content&quot;,&quot;ui-corner-bottom&quot;,&quot;ui-tabs-hide&quot;].join(&quot; &quot;))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf(&quot;#&quot;)?e.replace(&quot;#&quot;,&quot;&quot;):this._tabId(a(&quot;a&quot;,i)[0]);i.addClass(&quot;ui-state-default ui-corner-top&quot;).data(&quot;destroy.tabs&quot;,true);var f=a(&quot;#&quot;+h);if(!f.length){f=a(g.panelTemplate).attr(&quot;id&quot;,h).data(&quot;destroy.tabs&quot;,true)}f.addClass(&quot;ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide&quot;);if(c&gt;=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k&gt;=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass(&quot;ui-tabs-selected ui-state-active&quot;);f.removeClass(&quot;ui-tabs-hide&quot;);this.element.queue(&quot;tabs&quot;,function(){b._trigger(&quot;show&quot;,null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger(&quot;add&quot;,null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass(&quot;ui-tabs-selected&quot;)&amp;&amp;this.anchors.length&gt;1){this.select(b+(b+1&lt;this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g&gt;=b?--g:g});this._tabify();this._trigger(&quot;remove&quot;,null,this._ui(e.find(&quot;a&quot;)[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass(&quot;ui-state-disabled&quot;);c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger(&quot;enable&quot;,null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass(&quot;ui-state-disabled&quot;);d.disabled.push(c);d.disabled.sort();this._trigger(&quot;disable&quot;,null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b==&quot;string&quot;){b=this.anchors.index(this.anchors.filter(&quot;[href$=&quot;+b+&quot;]&quot;))}else{if(b===null){b=-1}}if(b==-1&amp;&amp;this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+&quot;.tabs&quot;)},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,&quot;load.tabs&quot;);this.abort();if(!d||this.element.queue(&quot;tabs&quot;).length!==0&amp;&amp;a.data(b,&quot;cache.tabs&quot;)){this.element.dequeue(&quot;tabs&quot;);return}this.lis.eq(e).addClass(&quot;ui-state-processing&quot;);if(g.spinner){var f=a(&quot;span&quot;,b);f.data(&quot;label.tabs&quot;,f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,&quot;cache.tabs&quot;,true)}c._trigger(&quot;load&quot;,null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue(&quot;tabs&quot;)}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData(&quot;cache.tabs&quot;).data(&quot;load.tabs&quot;,b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:&quot;1.7.2&quot;,getter:&quot;length&quot;,defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:&quot;click&quot;,fx:null,idPrefix:&quot;ui-tabs-&quot;,panelTemplate:&quot;&lt;div&gt;&lt;/div&gt;&quot;,spinner:&quot;&lt;em&gt;Loading&amp;#8230;&lt;/em&gt;&quot;,tabTemplate:'&lt;li&gt;&lt;a href=&quot;#{href}&quot;&gt;&lt;span&gt;#{label}&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i&lt;b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind(&quot;tabsshow&quot;,c);this.anchors.bind(g.event+&quot;.tabs&quot;,e);c()}else{clearTimeout(b.rotation);this.element.unbind(&quot;tabsshow&quot;,c);this.anchors.unbind(g.event+&quot;.tabs&quot;,e);delete this._rotate;delete this._unrotate}}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>