r40960 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40959‎ | r40960 | r40961 >
Date:16:11, 17 September 2008
Author:dale
Status:old
Tags:
Comment:
updated javascript libs
Modified paths:
  • /trunk/extensions/MetavidWiki/skins/mv_allpages.js (modified) (history)
  • /trunk/extensions/MetavidWiki/skins/mv_embed/jquery/jquery-ui-personalized-1.6rc1.debug.js (added) (history)
  • /trunk/extensions/MetavidWiki/skins/mv_embed/jquery/jquery-ui-personalized-1.6rc1.packed.js (added) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/skins/mv_allpages.js
@@ -2,7 +2,11 @@
33
44 mv_addLoadEvent(mv_setup_allpage);
55 var mv_setup_allpage_flag=false;
6 -var base_roe_url = wgServer + wgScript + '?title=Special:MvExportStream&feed_format=roe&stream_name=';
 6+if( wgServer && wgScript){
 7+ var base_roe_url = wgServer + wgScript + '?title=Special:MvExportStream&feed_format=roe&stream_name=';
 8+}else{
 9+ var base_roe_url='';
 10+}
711 var gMvd={};
812 function mv_setup_allpage(){
913 js_log("mv embed done loading now setup 'all page'");
Index: trunk/extensions/MetavidWiki/skins/mv_embed/jquery/jquery-ui-personalized-1.6rc1.debug.js
@@ -0,0 +1,6753 @@
 2+/*
 3+ * jQuery UI @VERSION
 4+ *
 5+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
 6+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 7+ * and GPL (GPL-LICENSE.txt) licenses.
 8+ *
 9+ * http://docs.jquery.com/UI
 10+ */
 11+;(function($) {
 12+
 13+/** jQuery core modifications and additions **/
 14+
 15+var _remove = $.fn.remove;
 16+$.fn.remove = function() {
 17+ $("*", this).add(this).triggerHandler("remove");
 18+ return _remove.apply(this, arguments );
 19+};
 20+
 21+function isVisible(element) {
 22+ function checkStyles(element) {
 23+ var style = element.style;
 24+ return (style.display != 'none' && style.visibility != 'hidden');
 25+ }
 26+
 27+ var visible = checkStyles(element);
 28+
 29+ (visible && $.each($.dir(element, 'parentNode'), function() {
 30+ return (visible = checkStyles(this));
 31+ }));
 32+
 33+ return visible;
 34+}
 35+
 36+$.extend($.expr[':'], {
 37+ data: function(a, i, m) {
 38+ return $.data(a, m[3]);
 39+ },
 40+
 41+ // TODO: add support for object, area
 42+ tabbable: function(a, i, m) {
 43+ var nodeName = a.nodeName.toLowerCase();
 44+
 45+ return (
 46+ // in tab order
 47+ a.tabIndex >= 0 &&
 48+
 49+ ( // filter node types that participate in the tab order
 50+
 51+ // anchor tag
 52+ ('a' == nodeName && a.href) ||
 53+
 54+ // enabled form element
 55+ (/input|select|textarea|button/.test(nodeName) &&
 56+ 'hidden' != a.type && !a.disabled)
 57+ ) &&
 58+
 59+ // visible on page
 60+ isVisible(a)
 61+ );
 62+ }
 63+});
 64+
 65+$.keyCode = {
 66+ BACKSPACE: 8,
 67+ CAPS_LOCK: 20,
 68+ COMMA: 188,
 69+ CONTROL: 17,
 70+ DELETE: 46,
 71+ DOWN: 40,
 72+ END: 35,
 73+ ENTER: 13,
 74+ ESCAPE: 27,
 75+ HOME: 36,
 76+ INSERT: 45,
 77+ LEFT: 37,
 78+ NUMPAD_ADD: 107,
 79+ NUMPAD_DECIMAL: 110,
 80+ NUMPAD_DIVIDE: 111,
 81+ NUMPAD_ENTER: 108,
 82+ NUMPAD_MULTIPLY: 106,
 83+ NUMPAD_SUBTRACT: 109,
 84+ PAGE_DOWN: 34,
 85+ PAGE_UP: 33,
 86+ PERIOD: 190,
 87+ RIGHT: 39,
 88+ SHIFT: 16,
 89+ SPACE: 32,
 90+ TAB: 9,
 91+ UP: 38
 92+};
 93+
 94+// $.widget is a factory to create jQuery plugins
 95+// taking some boilerplate code out of the plugin code
 96+// created by Scott González and Jörn Zaefferer
 97+function getter(namespace, plugin, method, args) {
 98+ function getMethods(type) {
 99+ var methods = $[namespace][plugin][type] || [];
 100+ return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods);
 101+ }
 102+
 103+ var methods = getMethods('getter');
 104+ if (args.length == 1 && typeof args[0] == 'string') {
 105+ methods = methods.concat(getMethods('getterSetter'));
 106+ }
 107+ return ($.inArray(method, methods) != -1);
 108+}
 109+
 110+$.widget = function(name, prototype) {
 111+ var namespace = name.split(".")[0];
 112+ name = name.split(".")[1];
 113+
 114+ // create plugin method
 115+ $.fn[name] = function(options) {
 116+ var isMethodCall = (typeof options == 'string'),
 117+ args = Array.prototype.slice.call(arguments, 1);
 118+
 119+ // prevent calls to internal methods
 120+ if (isMethodCall && options.substring(0, 1) == '_') {
 121+ return this;
 122+ }
 123+
 124+ // handle getter methods
 125+ if (isMethodCall && getter(namespace, name, options, args)) {
 126+ var instance = $.data(this[0], name);
 127+ return (instance ? instance[options].apply(instance, args)
 128+ : undefined);
 129+ }
 130+
 131+ // handle initialization and non-getter methods
 132+ return this.each(function() {
 133+ var instance = $.data(this, name);
 134+
 135+ // constructor
 136+ (!instance && !isMethodCall &&
 137+ $.data(this, name, new $[namespace][name](this, options)));
 138+
 139+ // method call
 140+ (instance && isMethodCall && $.isFunction(instance[options]) &&
 141+ instance[options].apply(instance, args));
 142+ });
 143+ };
 144+
 145+ // create widget constructor
 146+ $[namespace][name] = function(element, options) {
 147+ var self = this;
 148+
 149+ this.widgetName = name;
 150+ this.widgetEventPrefix = $[namespace][name].eventPrefix || name;
 151+ this.widgetBaseClass = namespace + '-' + name;
 152+
 153+ this.options = $.extend({},
 154+ $.widget.defaults,
 155+ $[namespace][name].defaults,
 156+ $.metadata && $.metadata.get(element)[name],
 157+ options);
 158+
 159+ this.element = $(element)
 160+ .bind('setData.' + name, function(e, key, value) {
 161+ return self._setData(key, value);
 162+ })
 163+ .bind('getData.' + name, function(e, key) {
 164+ return self._getData(key);
 165+ })
 166+ .bind('remove', function() {
 167+ return self.destroy();
 168+ });
 169+
 170+ this._init();
 171+ };
 172+
 173+ // add widget prototype
 174+ $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype);
 175+
 176+ // TODO: merge getter and getterSetter properties from widget prototype
 177+ // and plugin prototype
 178+ $[namespace][name].getterSetter = 'option';
 179+};
 180+
 181+$.widget.prototype = {
 182+ _init: function() {},
 183+ destroy: function() {
 184+ this.element.removeData(this.widgetName);
 185+ },
 186+
 187+ option: function(key, value) {
 188+ var options = key,
 189+ self = this;
 190+
 191+ if (typeof key == "string") {
 192+ if (value === undefined) {
 193+ return this._getData(key);
 194+ }
 195+ options = {};
 196+ options[key] = value;
 197+ }
 198+
 199+ $.each(options, function(key, value) {
 200+ self._setData(key, value);
 201+ });
 202+ },
 203+ _getData: function(key) {
 204+ return this.options[key];
 205+ },
 206+ _setData: function(key, value) {
 207+ this.options[key] = value;
 208+
 209+ if (key == 'disabled') {
 210+ this.element[value ? 'addClass' : 'removeClass'](
 211+ this.widgetBaseClass + '-disabled');
 212+ }
 213+ },
 214+
 215+ enable: function() {
 216+ this._setData('disabled', false);
 217+ },
 218+ disable: function() {
 219+ this._setData('disabled', true);
 220+ },
 221+
 222+ _trigger: function(type, e, data) {
 223+ var eventName = (type == this.widgetEventPrefix
 224+ ? type : this.widgetEventPrefix + type);
 225+ e = e || $.event.fix({ type: eventName, target: this.element[0] });
 226+ return this.element.triggerHandler(eventName, [e, data], this.options[type]);
 227+ }
 228+};
 229+
 230+$.widget.defaults = {
 231+ disabled: false
 232+};
 233+
 234+
 235+/** jQuery UI core **/
 236+
 237+$.ui = {
 238+ plugin: {
 239+ add: function(module, option, set) {
 240+ var proto = $.ui[module].prototype;
 241+ for(var i in set) {
 242+ proto.plugins[i] = proto.plugins[i] || [];
 243+ proto.plugins[i].push([option, set[i]]);
 244+ }
 245+ },
 246+ call: function(instance, name, args) {
 247+ var set = instance.plugins[name];
 248+ if(!set) { return; }
 249+
 250+ for (var i = 0; i < set.length; i++) {
 251+ if (instance.options[set[i][0]]) {
 252+ set[i][1].apply(instance.element, args);
 253+ }
 254+ }
 255+ }
 256+ },
 257+ cssCache: {},
 258+ css: function(name) {
 259+ if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; }
 260+ var tmp = $('<div class="ui-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
 261+
 262+ //if (!$.browser.safari)
 263+ //tmp.appendTo('body');
 264+
 265+ //Opera and Safari set width and height to 0px instead of auto
 266+ //Safari returns rgba(0,0,0,0) when bgcolor is not set
 267+ $.ui.cssCache[name] = !!(
 268+ (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) ||
 269+ !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor')))
 270+ );
 271+ try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){}
 272+ return $.ui.cssCache[name];
 273+ },
 274+ disableSelection: function(el) {
 275+ $(el)
 276+ .attr('unselectable', 'on')
 277+ .css('MozUserSelect', 'none')
 278+ .bind('selectstart.ui', function() { return false; });
 279+ },
 280+ enableSelection: function(el) {
 281+ $(el)
 282+ .attr('unselectable', 'off')
 283+ .css('MozUserSelect', '')
 284+ .unbind('selectstart.ui');
 285+ },
 286+ hasScroll: function(e, a) {
 287+ var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',
 288+ has = false;
 289+
 290+ if (e[scroll] > 0) { return true; }
 291+
 292+ // TODO: determine which cases actually cause this to happen
 293+ // if the element doesn't have the scroll set, see if it's possible to
 294+ // set the scroll
 295+ e[scroll] = 1;
 296+ has = (e[scroll] > 0);
 297+ e[scroll] = 0;
 298+ return has;
 299+ }
 300+};
 301+
 302+
 303+/** Mouse Interaction Plugin **/
 304+
 305+$.ui.mouse = {
 306+ _mouseInit: function() {
 307+ var self = this;
 308+
 309+ this.element.bind('mousedown.'+this.widgetName, function(e) {
 310+ return self._mouseDown(e);
 311+ });
 312+
 313+ // Prevent text selection in IE
 314+ if ($.browser.msie) {
 315+ this._mouseUnselectable = this.element.attr('unselectable');
 316+ this.element.attr('unselectable', 'on');
 317+ }
 318+
 319+ this.started = false;
 320+ },
 321+
 322+ // TODO: make sure destroying one instance of mouse doesn't mess with
 323+ // other instances of mouse
 324+ _mouseDestroy: function() {
 325+ this.element.unbind('.'+this.widgetName);
 326+
 327+ // Restore text selection in IE
 328+ ($.browser.msie
 329+ && this.element.attr('unselectable', this._mouseUnselectable));
 330+ },
 331+
 332+ _mouseDown: function(e) {
 333+ // we may have missed mouseup (out of window)
 334+ (this._mouseStarted && this._mouseUp(e));
 335+
 336+ this._mouseDownEvent = e;
 337+
 338+ var self = this,
 339+ btnIsLeft = (e.which == 1),
 340+ elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).parents().add(e.target).filter(this.options.cancel).length : false);
 341+ if (!btnIsLeft || elIsCancel || !this._mouseCapture(e)) {
 342+ return true;
 343+ }
 344+
 345+ this.mouseDelayMet = !this.options.delay;
 346+ if (!this.mouseDelayMet) {
 347+ this._mouseDelayTimer = setTimeout(function() {
 348+ self.mouseDelayMet = true;
 349+ }, this.options.delay);
 350+ }
 351+
 352+ if (this._mouseDistanceMet(e) && this._mouseDelayMet(e)) {
 353+ this._mouseStarted = (this._mouseStart(e) !== false);
 354+ if (!this._mouseStarted) {
 355+ e.preventDefault();
 356+ return true;
 357+ }
 358+ }
 359+
 360+ // these delegates are required to keep context
 361+ this._mouseMoveDelegate = function(e) {
 362+ return self._mouseMove(e);
 363+ };
 364+ this._mouseUpDelegate = function(e) {
 365+ return self._mouseUp(e);
 366+ };
 367+ $(document)
 368+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
 369+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
 370+
 371+ return false;
 372+ },
 373+
 374+ _mouseMove: function(e) {
 375+ // IE mouseup check - mouseup happened when mouse was out of window
 376+ if ($.browser.msie && !e.button) {
 377+ return this._mouseUp(e);
 378+ }
 379+
 380+ if (this._mouseStarted) {
 381+ this._mouseDrag(e);
 382+ return false;
 383+ }
 384+
 385+ if (this._mouseDistanceMet(e) && this._mouseDelayMet(e)) {
 386+ this._mouseStarted =
 387+ (this._mouseStart(this._mouseDownEvent, e) !== false);
 388+ (this._mouseStarted ? this._mouseDrag(e) : this._mouseUp(e));
 389+ }
 390+
 391+ return !this._mouseStarted;
 392+ },
 393+
 394+ _mouseUp: function(e) {
 395+ $(document)
 396+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
 397+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
 398+
 399+ if (this._mouseStarted) {
 400+ this._mouseStarted = false;
 401+ this._mouseStop(e);
 402+ }
 403+
 404+ return false;
 405+ },
 406+
 407+ _mouseDistanceMet: function(e) {
 408+ return (Math.max(
 409+ Math.abs(this._mouseDownEvent.pageX - e.pageX),
 410+ Math.abs(this._mouseDownEvent.pageY - e.pageY)
 411+ ) >= this.options.distance
 412+ );
 413+ },
 414+
 415+ _mouseDelayMet: function(e) {
 416+ return this.mouseDelayMet;
 417+ },
 418+
 419+ // These are placeholder methods, to be overriden by extending plugin
 420+ _mouseStart: function(e) {},
 421+ _mouseDrag: function(e) {},
 422+ _mouseStop: function(e) {},
 423+ _mouseCapture: function(e) { return true; }
 424+};
 425+
 426+$.ui.mouse.defaults = {
 427+ cancel: null,
 428+ distance: 1,
 429+ delay: 0
 430+};
 431+
 432+})(jQuery);
 433+/*
 434+ * jQuery UI Draggable @VERSION
 435+ *
 436+ * Copyright (c) 2008 Paul Bakaus
 437+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 438+ * and GPL (GPL-LICENSE.txt) licenses.
 439+ *
 440+ * http://docs.jquery.com/UI/Draggables
 441+ *
 442+ * Depends:
 443+ * ui.core.js
 444+ */
 445+(function($) {
 446+
 447+$.widget("ui.draggable", $.extend({}, $.ui.mouse, {
 448+ _init: function() {
 449+
 450+ if (this.options.helper == 'original' && !(/^(?:r|a|f)/).test(this.element.css("position")))
 451+ this.element[0].style.position = 'relative';
 452+
 453+ (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-draggable"));
 454+ (this.options.disabled && this.element.addClass('ui-draggable-disabled'));
 455+
 456+ this._mouseInit();
 457+
 458+ },
 459+ _mouseStart: function(e) {
 460+
 461+ var o = this.options;
 462+
 463+ if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle'))
 464+ return false;
 465+
 466+ //Check if we have a valid handle
 467+ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
 468+ $(this.options.handle, this.element).find("*").andSelf().each(function() {
 469+ if(this == e.target) handle = true;
 470+ });
 471+ if (!handle) return false;
 472+
 473+ if($.ui.ddmanager)
 474+ $.ui.ddmanager.current = this;
 475+
 476+ //Create and append the visible helper
 477+ this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
 478+ if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
 479+ if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute");
 480+
 481+ /*
 482+ * - Position generation -
 483+ * This block generates everything position related - it's the core of draggables.
 484+ */
 485+
 486+ this.margins = { //Cache the margins
 487+ left: (parseInt(this.element.css("marginLeft"),10) || 0),
 488+ top: (parseInt(this.element.css("marginTop"),10) || 0)
 489+ };
 490+
 491+ this.cssPosition = this.helper.css("position"); //Store the helper's css position
 492+ this.offset = this.element.offset(); //The element's absolute position on the page
 493+ this.offset = { //Substract the margins from the element's absolute offset
 494+ top: this.offset.top - this.margins.top,
 495+ left: this.offset.left - this.margins.left
 496+ };
 497+
 498+ this.offset.click = { //Where the click happened, relative to the element
 499+ left: e.pageX - this.offset.left,
 500+ top: e.pageY - this.offset.top
 501+ };
 502+
 503+ this.scrollTopParent = function(el) {
 504+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
 505+ return $(document);
 506+ }(this.helper);
 507+ this.scrollLeftParent = function(el) {
 508+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
 509+ return $(document);
 510+ }(this.helper);
 511+
 512+ this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position
 513+ if(this.offsetParent[0] == document.body && $.browser.mozilla) po = { top: 0, left: 0 }; //Ugly FF3 fix
 514+ this.offset.parent = { //Store its position plus border
 515+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
 516+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
 517+ };
 518+
 519+ var p = this.element.position(); //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helpers
 520+ this.offset.relative = this.cssPosition == "relative" ? {
 521+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + (this.scrollTopParent[0].scrollTop || 0),
 522+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + (this.scrollLeftParent[0].scrollLeft || 0)
 523+ } : { top: 0, left: 0 };
 524+
 525+ this.originalPosition = this._generatePosition(e); //Generate the original position
 526+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
 527+
 528+ if(o.cursorAt) {
 529+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left + this.margins.left;
 530+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right + this.margins.left;
 531+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top + this.margins.top;
 532+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom + this.margins.top;
 533+ }
 534+
 535+
 536+ /*
 537+ * - Position constraining -
 538+ * Here we prepare position constraining like grid and containment.
 539+ */
 540+
 541+ if(o.containment) {
 542+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
 543+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
 544+ 0 - this.offset.relative.left - this.offset.parent.left,
 545+ 0 - this.offset.relative.top - this.offset.parent.top,
 546+ $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
 547+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
 548+ ];
 549+
 550+ if(!(/^(document|window|parent)$/).test(o.containment)) {
 551+ var ce = $(o.containment)[0];
 552+ var co = $(o.containment).offset();
 553+
 554+ this.containment = [
 555+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left,
 556+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top,
 557+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
 558+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
 559+ ];
 560+ }
 561+ }
 562+
 563+ //Call plugins and callbacks
 564+ this._propagate("start", e);
 565+
 566+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
 567+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
 568+
 569+ this.helper.addClass("ui-draggable-dragging");
 570+ this._mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
 571+ return true;
 572+ },
 573+ _convertPositionTo: function(d, pos) {
 574+
 575+ if(!pos) pos = this.position;
 576+ var mod = d == "absolute" ? 1 : -1;
 577+
 578+ return {
 579+ top: (
 580+ pos.top // the calculated relative position
 581+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
 582+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
 583+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : (this.scrollTopParent[0].scrollTop || 0)) * mod // The offsetParent's scroll position, not if the element is fixed
 584+ + (this.cssPosition == "fixed" ? $(document).scrollTop() : 0) * mod
 585+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
 586+ ),
 587+ left: (
 588+ pos.left // the calculated relative position
 589+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
 590+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
 591+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : (this.scrollLeftParent[0].scrollLeft || 0)) * mod // The offsetParent's scroll position, not if the element is fixed
 592+ + (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0) * mod
 593+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
 594+ )
 595+ };
 596+ },
 597+ _generatePosition: function(e) {
 598+
 599+ var o = this.options;
 600+ var position = {
 601+ top: (
 602+ e.pageY // The absolute mouse position
 603+ - this.offset.click.top // Click offset (relative to the element)
 604+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
 605+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
 606+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : (this.scrollTopParent[0].scrollTop || 0)) // The offsetParent's scroll position, not if the element is fixed
 607+ - (this.cssPosition == "fixed" ? $(document).scrollTop() : 0)
 608+ ),
 609+ left: (
 610+ e.pageX // The absolute mouse position
 611+ - this.offset.click.left // Click offset (relative to the element)
 612+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
 613+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
 614+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : (this.scrollLeftParent[0].scrollLeft || 0)) // The offsetParent's scroll position, not if the element is fixed
 615+ - (this.cssPosition == "fixed" ? $(document).scrollLeft() : 0)
 616+ )
 617+ };
 618+
 619+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
 620+
 621+ /*
 622+ * - Position constraining -
 623+ * Constrain the position to a mix of grid, containment.
 624+ */
 625+ if(this.containment) {
 626+ if(position.left < this.containment[0]) position.left = this.containment[0];
 627+ if(position.top < this.containment[1]) position.top = this.containment[1];
 628+ if(position.left > this.containment[2]) position.left = this.containment[2];
 629+ if(position.top > this.containment[3]) position.top = this.containment[3];
 630+ }
 631+
 632+ if(o.grid) {
 633+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
 634+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
 635+
 636+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
 637+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
 638+ }
 639+
 640+ return position;
 641+ },
 642+ _mouseDrag: function(e) {
 643+
 644+ //Compute the helpers position
 645+ this.position = this._generatePosition(e);
 646+ this.positionAbs = this._convertPositionTo("absolute");
 647+
 648+ //Call plugins and callbacks and use the resulting position if something is returned
 649+ this.position = this._propagate("drag", e) || this.position;
 650+
 651+ if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
 652+ if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
 653+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
 654+
 655+ return false;
 656+ },
 657+ _mouseStop: function(e) {
 658+
 659+ //If we are using droppables, inform the manager about the drop
 660+ var dropped = false;
 661+ if ($.ui.ddmanager && !this.options.dropBehaviour)
 662+ var dropped = $.ui.ddmanager.drop(this, e);
 663+
 664+ if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true) {
 665+ var self = this;
 666+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10) || 500, function() {
 667+ self._propagate("stop", e);
 668+ self._clear();
 669+ });
 670+ } else {
 671+ this._propagate("stop", e);
 672+ this._clear();
 673+ }
 674+
 675+ return false;
 676+ },
 677+ _clear: function() {
 678+ this.helper.removeClass("ui-draggable-dragging");
 679+ if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
 680+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;
 681+ this.helper = null;
 682+ this.cancelHelperRemoval = false;
 683+ },
 684+
 685+ // From now on bulk stuff - mainly helpers
 686+ plugins: {},
 687+ uiHash: function(e) {
 688+ return {
 689+ helper: this.helper,
 690+ position: this.position,
 691+ absolutePosition: this.positionAbs,
 692+ options: this.options
 693+ };
 694+ },
 695+ _propagate: function(n,e) {
 696+ $.ui.plugin.call(this, n, [e, this.uiHash()]);
 697+ if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
 698+ return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
 699+ },
 700+ destroy: function() {
 701+ if(!this.element.data('draggable')) return;
 702+ this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable-dragging ui-draggable-disabled');
 703+ this._mouseDestroy();
 704+ }
 705+}));
 706+
 707+$.extend($.ui.draggable, {
 708+ defaults: {
 709+ appendTo: "parent",
 710+ axis: false,
 711+ cancel: ":input",
 712+ delay: 0,
 713+ distance: 1,
 714+ helper: "original",
 715+ scope: "default",
 716+ cssNamespace: "ui"
 717+ }
 718+});
 719+
 720+$.ui.plugin.add("draggable", "cursor", {
 721+ start: function(e, ui) {
 722+ var t = $('body');
 723+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
 724+ t.css("cursor", ui.options.cursor);
 725+ },
 726+ stop: function(e, ui) {
 727+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
 728+ }
 729+});
 730+
 731+$.ui.plugin.add("draggable", "zIndex", {
 732+ start: function(e, ui) {
 733+ var t = $(ui.helper);
 734+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
 735+ t.css('zIndex', ui.options.zIndex);
 736+ },
 737+ stop: function(e, ui) {
 738+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
 739+ }
 740+});
 741+
 742+$.ui.plugin.add("draggable", "opacity", {
 743+ start: function(e, ui) {
 744+ var t = $(ui.helper);
 745+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
 746+ t.css('opacity', ui.options.opacity);
 747+ },
 748+ stop: function(e, ui) {
 749+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
 750+ }
 751+});
 752+
 753+$.ui.plugin.add("draggable", "iframeFix", {
 754+ start: function(e, ui) {
 755+ $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() {
 756+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
 757+ .css({
 758+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",
 759+ position: "absolute", opacity: "0.001", zIndex: 1000
 760+ })
 761+ .css($(this).offset())
 762+ .appendTo("body");
 763+ });
 764+ },
 765+ stop: function(e, ui) {
 766+ $("div.ui-draggable-iframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers
 767+ }
 768+});
 769+
 770+
 771+
 772+$.ui.plugin.add("draggable", "scroll", {
 773+ start: function(e, ui) {
 774+ var o = ui.options;
 775+ var i = $(this).data("draggable");
 776+ o.scrollSensitivity = o.scrollSensitivity || 20;
 777+ o.scrollSpeed = o.scrollSpeed || 20;
 778+
 779+ i.overflowY = function(el) {
 780+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
 781+ return $(document);
 782+ }(this);
 783+ i.overflowX = function(el) {
 784+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
 785+ return $(document);
 786+ }(this);
 787+
 788+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
 789+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
 790+
 791+ },
 792+ drag: function(e, ui) {
 793+
 794+ var o = ui.options, scrolled = false;
 795+ var i = $(this).data("draggable");
 796+
 797+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
 798+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
 799+ i.overflowY[0].scrollTop = scrolled = i.overflowY[0].scrollTop + o.scrollSpeed;
 800+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
 801+ i.overflowY[0].scrollTop = scrolled = i.overflowY[0].scrollTop - o.scrollSpeed;
 802+
 803+ } else {
 804+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
 805+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
 806+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
 807+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
 808+ }
 809+
 810+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
 811+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
 812+ i.overflowX[0].scrollLeft = scrolled = i.overflowX[0].scrollLeft + o.scrollSpeed;
 813+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
 814+ i.overflowX[0].scrollLeft = scrolled = i.overflowX[0].scrollLeft - o.scrollSpeed;
 815+ } else {
 816+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
 817+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
 818+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
 819+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
 820+ }
 821+
 822+ if(scrolled !== false)
 823+ $.ui.ddmanager.prepareOffsets(i, e);
 824+
 825+ }
 826+});
 827+
 828+
 829+$.ui.plugin.add("draggable", "snap", {
 830+ start: function(e, ui) {
 831+
 832+ var inst = $(this).data("draggable");
 833+ inst.snapElements = [];
 834+
 835+ $(ui.options.snap.constructor != String ? ( ui.options.snap.items || ':data(draggable)' ) : ui.options.snap).each(function() {
 836+ var $t = $(this); var $o = $t.offset();
 837+ if(this != inst.element[0]) inst.snapElements.push({
 838+ item: this,
 839+ width: $t.outerWidth(), height: $t.outerHeight(),
 840+ top: $o.top, left: $o.left
 841+ });
 842+ });
 843+
 844+ },
 845+ drag: function(e, ui) {
 846+
 847+ var inst = $(this).data("draggable");
 848+ var d = ui.options.snapTolerance || 20;
 849+
 850+ var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
 851+ y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;
 852+
 853+ for (var i = inst.snapElements.length - 1; i >= 0; i--){
 854+
 855+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
 856+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
 857+
 858+ //Yes, I know, this is insane ;)
 859+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
 860+ if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, null, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
 861+ inst.snapElements[i].snapping = false;
 862+ continue;
 863+ }
 864+
 865+ if(ui.options.snapMode != 'inner') {
 866+ var ts = Math.abs(t - y2) <= d;
 867+ var bs = Math.abs(b - y1) <= d;
 868+ var ls = Math.abs(l - x2) <= d;
 869+ var rs = Math.abs(r - x1) <= d;
 870+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
 871+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top;
 872+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
 873+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left;
 874+ }
 875+
 876+ var first = (ts || bs || ls || rs);
 877+
 878+ if(ui.options.snapMode != 'outer') {
 879+ var ts = Math.abs(t - y1) <= d;
 880+ var bs = Math.abs(b - y2) <= d;
 881+ var ls = Math.abs(l - x1) <= d;
 882+ var rs = Math.abs(r - x2) <= d;
 883+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top;
 884+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
 885+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left;
 886+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
 887+ }
 888+
 889+ if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
 890+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, null, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
 891+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
 892+
 893+ };
 894+
 895+ }
 896+});
 897+
 898+$.ui.plugin.add("draggable", "connectToSortable", {
 899+ start: function(e,ui) {
 900+
 901+ var inst = $(this).data("draggable");
 902+ inst.sortables = [];
 903+ $(ui.options.connectToSortable).each(function() {
 904+ if($.data(this, 'sortable')) {
 905+ var sortable = $.data(this, 'sortable');
 906+ inst.sortables.push({
 907+ instance: sortable,
 908+ shouldRevert: sortable.options.revert
 909+ });
 910+ sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
 911+ sortable._propagate("activate", e, inst);
 912+ }
 913+ });
 914+
 915+ },
 916+ stop: function(e,ui) {
 917+
 918+ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
 919+ var inst = $(this).data("draggable");
 920+
 921+ $.each(inst.sortables, function() {
 922+ if(this.instance.isOver) {
 923+ this.instance.isOver = 0;
 924+ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
 925+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
 926+ if(this.shouldRevert) this.instance.options.revert = true; //revert here
 927+ this.instance._mouseStop(e);
 928+
 929+ //Also propagate receive event, since the sortable is actually receiving a element
 930+ this.instance.element.triggerHandler("sortreceive", [e, $.extend(this.instance.ui(), { sender: inst.element })], this.instance.options["receive"]);
 931+
 932+ this.instance.options.helper = this.instance.options._helper;
 933+ } else {
 934+ this.instance._propagate("deactivate", e, inst);
 935+ }
 936+
 937+ });
 938+
 939+ },
 940+ drag: function(e,ui) {
 941+
 942+ var inst = $(this).data("draggable"), self = this;
 943+
 944+ var checkPos = function(o) {
 945+
 946+ var l = o.left, r = l + o.width,
 947+ t = o.top, b = t + o.height;
 948+
 949+ return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r
 950+ && t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b);
 951+ };
 952+
 953+ $.each(inst.sortables, function(i) {
 954+
 955+ if(checkPos.call(inst, this.instance.containerCache)) {
 956+
 957+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
 958+ if(!this.instance.isOver) {
 959+ this.instance.isOver = 1;
 960+
 961+ //Now we fake the start of dragging for the sortable instance,
 962+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem
 963+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
 964+ this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true);
 965+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
 966+ this.instance.options.helper = function() { return ui.helper[0]; };
 967+
 968+ e.target = this.instance.currentItem[0];
 969+ this.instance._mouseCapture(e, true);
 970+ this.instance._mouseStart(e, true, true);
 971+
 972+ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
 973+ this.instance.offset.click.top = inst.offset.click.top;
 974+ this.instance.offset.click.left = inst.offset.click.left;
 975+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
 976+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
 977+
 978+ inst._propagate("toSortable", e);
 979+
 980+ }
 981+
 982+ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
 983+ if(this.instance.currentItem) this.instance._mouseDrag(e);
 984+
 985+ } else {
 986+
 987+ //If it doesn't intersect with the sortable, and it intersected before,
 988+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
 989+ if(this.instance.isOver) {
 990+ this.instance.isOver = 0;
 991+ this.instance.cancelHelperRemoval = true;
 992+ this.instance.options.revert = false; //No revert here
 993+ this.instance._mouseStop(e, true);
 994+ this.instance.options.helper = this.instance.options._helper;
 995+
 996+ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
 997+ this.instance.currentItem.remove();
 998+ if(this.instance.placeholder) this.instance.placeholder.remove();
 999+
 1000+ inst._propagate("fromSortable", e);
 1001+ }
 1002+
 1003+ };
 1004+
 1005+ });
 1006+
 1007+ }
 1008+});
 1009+
 1010+$.ui.plugin.add("draggable", "stack", {
 1011+ start: function(e,ui) {
 1012+ var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
 1013+ return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
 1014+ });
 1015+
 1016+ $(group).each(function(i) {
 1017+ this.style.zIndex = ui.options.stack.min + i;
 1018+ });
 1019+
 1020+ this[0].style.zIndex = ui.options.stack.min + group.length;
 1021+ }
 1022+});
 1023+
 1024+})(jQuery);
 1025+/*
 1026+ * jQuery UI Droppable @VERSION
 1027+ *
 1028+ * Copyright (c) 2008 Paul Bakaus
 1029+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 1030+ * and GPL (GPL-LICENSE.txt) licenses.
 1031+ *
 1032+ * http://docs.jquery.com/UI/Droppables
 1033+ *
 1034+ * Depends:
 1035+ * ui.core.js
 1036+ * ui.draggable.js
 1037+ */
 1038+(function($) {
 1039+
 1040+$.widget("ui.droppable", {
 1041+ _init: function() {
 1042+
 1043+ var o = this.options, accept = o.accept;
 1044+ this.isover = 0; this.isout = 1;
 1045+
 1046+ this.options.accept = this.options.accept && this.options.accept.constructor == Function ? this.options.accept : function(d) {
 1047+ return d.is(accept);
 1048+ };
 1049+
 1050+ //Store the droppable's proportions
 1051+ this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight };
 1052+
 1053+ // Add the reference and positions to the manager
 1054+ $.ui.ddmanager.droppables[this.options.scope] = $.ui.ddmanager.droppables[this.options.scope] || [];
 1055+ $.ui.ddmanager.droppables[this.options.scope].push(this);
 1056+
 1057+ (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace+"-droppable"));
 1058+
 1059+ },
 1060+ plugins: {},
 1061+ ui: function(c) {
 1062+ return {
 1063+ draggable: (c.currentItem || c.element),
 1064+ helper: c.helper,
 1065+ position: c.position,
 1066+ absolutePosition: c.positionAbs,
 1067+ options: this.options,
 1068+ element: this.element
 1069+ };
 1070+ },
 1071+ destroy: function() {
 1072+ var drop = $.ui.ddmanager.droppables[this.options.scope];
 1073+ for ( var i = 0; i < drop.length; i++ )
 1074+ if ( drop[i] == this )
 1075+ drop.splice(i, 1);
 1076+
 1077+ this.element
 1078+ .removeClass("ui-droppable-disabled")
 1079+ .removeData("droppable")
 1080+ .unbind(".droppable");
 1081+ },
 1082+ _over: function(e) {
 1083+
 1084+ var draggable = $.ui.ddmanager.current;
 1085+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
 1086+
 1087+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
 1088+ $.ui.plugin.call(this, 'over', [e, this.ui(draggable)]);
 1089+ this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over);
 1090+ }
 1091+
 1092+ },
 1093+ _out: function(e) {
 1094+
 1095+ var draggable = $.ui.ddmanager.current;
 1096+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
 1097+
 1098+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
 1099+ $.ui.plugin.call(this, 'out', [e, this.ui(draggable)]);
 1100+ this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out);
 1101+ }
 1102+
 1103+ },
 1104+ _drop: function(e,custom) {
 1105+
 1106+ var draggable = custom || $.ui.ddmanager.current;
 1107+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
 1108+
 1109+ var childrenIntersection = false;
 1110+ this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() {
 1111+ var inst = $.data(this, 'droppable');
 1112+ if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {
 1113+ childrenIntersection = true; return false;
 1114+ }
 1115+ });
 1116+ if(childrenIntersection) return false;
 1117+
 1118+ if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
 1119+ $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]);
 1120+ this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop);
 1121+ return true;
 1122+ }
 1123+
 1124+ return false;
 1125+
 1126+ },
 1127+ _activate: function(e) {
 1128+
 1129+ var draggable = $.ui.ddmanager.current;
 1130+ $.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]);
 1131+ if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate);
 1132+
 1133+ },
 1134+ _deactivate: function(e) {
 1135+
 1136+ var draggable = $.ui.ddmanager.current;
 1137+ $.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]);
 1138+ if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate);
 1139+
 1140+ }
 1141+});
 1142+
 1143+$.extend($.ui.droppable, {
 1144+ defaults: {
 1145+ disabled: false,
 1146+ tolerance: 'intersect',
 1147+ scope: 'default',
 1148+ cssNamespace: 'ui'
 1149+ }
 1150+});
 1151+
 1152+$.ui.intersect = function(draggable, droppable, toleranceMode) {
 1153+
 1154+ if (!droppable.offset) return false;
 1155+
 1156+ var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
 1157+ y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height;
 1158+ var l = droppable.offset.left, r = l + droppable.proportions.width,
 1159+ t = droppable.offset.top, b = t + droppable.proportions.height;
 1160+
 1161+ switch (toleranceMode) {
 1162+ case 'fit':
 1163+ return (l < x1 && x2 < r
 1164+ && t < y1 && y2 < b);
 1165+ break;
 1166+ case 'intersect':
 1167+ return (l < x1 + (draggable.helperProportions.width / 2) // Right Half
 1168+ && x2 - (draggable.helperProportions.width / 2) < r // Left Half
 1169+ && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half
 1170+ && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
 1171+ break;
 1172+ case 'pointer':
 1173+ return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r
 1174+ && t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b);
 1175+ break;
 1176+ case 'touch':
 1177+ return (
 1178+ (y1 >= t && y1 <= b) || // Top edge touching
 1179+ (y2 >= t && y2 <= b) || // Bottom edge touching
 1180+ (y1 < t && y2 > b) // Surrounded vertically
 1181+ ) && (
 1182+ (x1 >= l && x1 <= r) || // Left edge touching
 1183+ (x2 >= l && x2 <= r) || // Right edge touching
 1184+ (x1 < l && x2 > r) // Surrounded horizontally
 1185+ );
 1186+ break;
 1187+ default:
 1188+ return false;
 1189+ break;
 1190+ }
 1191+
 1192+};
 1193+
 1194+/*
 1195+ This manager tracks offsets of draggables and droppables
 1196+*/
 1197+$.ui.ddmanager = {
 1198+ current: null,
 1199+ droppables: { 'default': [] },
 1200+ prepareOffsets: function(t, e) {
 1201+
 1202+ var m = $.ui.ddmanager.droppables[t.options.scope];
 1203+ var type = e ? e.type : null; // workaround for #2317
 1204+ var list = (t.currentItem || t.element).find(":data(droppable)").andSelf();
 1205+
 1206+ droppablesLoop: for (var i = 0; i < m.length; i++) {
 1207+
 1208+ if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue; //No disabled and non-accepted
 1209+ for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item
 1210+ m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue
 1211+
 1212+ m[i].offset = m[i].element.offset();
 1213+ m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
 1214+
 1215+ if(type == "dragstart" || type == "sortactivate") m[i]._activate.call(m[i], e); //Activate the droppable if used directly from draggables
 1216+
 1217+ }
 1218+
 1219+ },
 1220+ drop: function(draggable, e) {
 1221+
 1222+ var dropped = false;
 1223+ $.each($.ui.ddmanager.droppables[draggable.options.scope], function() {
 1224+
 1225+ if(!this.options) return;
 1226+ if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
 1227+ dropped = this._drop.call(this, e);
 1228+
 1229+ if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
 1230+ this.isout = 1; this.isover = 0;
 1231+ this._deactivate.call(this, e);
 1232+ }
 1233+
 1234+ });
 1235+ return dropped;
 1236+
 1237+ },
 1238+ drag: function(draggable, e) {
 1239+
 1240+ //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
 1241+ if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
 1242+
 1243+ //Run through all droppables and check their positions based on specific tolerance options
 1244+
 1245+ $.each($.ui.ddmanager.droppables[draggable.options.scope], function() {
 1246+
 1247+ if(this.options.disabled || this.greedyChild || !this.visible) return;
 1248+ var intersects = $.ui.intersect(draggable, this, this.options.tolerance);
 1249+
 1250+ var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);
 1251+ if(!c) return;
 1252+
 1253+ var parentInstance;
 1254+ if (this.options.greedy) {
 1255+ var parent = this.element.parents(':data(droppable):eq(0)');
 1256+ if (parent.length) {
 1257+ parentInstance = $.data(parent[0], 'droppable');
 1258+ parentInstance.greedyChild = (c == 'isover' ? 1 : 0);
 1259+ }
 1260+ }
 1261+
 1262+ // we just moved into a greedy child
 1263+ if (parentInstance && c == 'isover') {
 1264+ parentInstance['isover'] = 0;
 1265+ parentInstance['isout'] = 1;
 1266+ parentInstance._out.call(parentInstance, e);
 1267+ }
 1268+
 1269+ this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;
 1270+ this[c == "isover" ? "_over" : "_out"].call(this, e);
 1271+
 1272+ // we just moved out of a greedy child
 1273+ if (parentInstance && c == 'isout') {
 1274+ parentInstance['isout'] = 0;
 1275+ parentInstance['isover'] = 1;
 1276+ parentInstance._over.call(parentInstance, e);
 1277+ }
 1278+ });
 1279+
 1280+ }
 1281+};
 1282+
 1283+/*
 1284+ * Droppable Extensions
 1285+ */
 1286+
 1287+$.ui.plugin.add("droppable", "activeClass", {
 1288+ activate: function(e, ui) {
 1289+ $(this).addClass(ui.options.activeClass);
 1290+ },
 1291+ deactivate: function(e, ui) {
 1292+ $(this).removeClass(ui.options.activeClass);
 1293+ },
 1294+ drop: function(e, ui) {
 1295+ $(this).removeClass(ui.options.activeClass);
 1296+ }
 1297+});
 1298+
 1299+$.ui.plugin.add("droppable", "hoverClass", {
 1300+ over: function(e, ui) {
 1301+ $(this).addClass(ui.options.hoverClass);
 1302+ },
 1303+ out: function(e, ui) {
 1304+ $(this).removeClass(ui.options.hoverClass);
 1305+ },
 1306+ drop: function(e, ui) {
 1307+ $(this).removeClass(ui.options.hoverClass);
 1308+ }
 1309+});
 1310+
 1311+})(jQuery);
 1312+/*
 1313+ * jQuery UI Resizable @VERSION
 1314+ *
 1315+ * Copyright (c) 2008 Paul Bakaus
 1316+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 1317+ * and GPL (GPL-LICENSE.txt) licenses.
 1318+ *
 1319+ * http://docs.jquery.com/UI/Resizables
 1320+ *
 1321+ * Depends:
 1322+ * ui.core.js
 1323+ */
 1324+(function($) {
 1325+
 1326+$.widget("ui.resizable", $.extend({}, $.ui.mouse, {
 1327+ _init: function() {
 1328+
 1329+ var self = this, o = this.options;
 1330+
 1331+ var elpos = this.element.css('position');
 1332+
 1333+ this.originalElement = this.element;
 1334+
 1335+ // simulate .ui-resizable { position: relative; }
 1336+ this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos });
 1337+
 1338+ $.extend(o, {
 1339+ _aspectRatio: !!(o.aspectRatio),
 1340+ helper: o.helper || o.ghost || o.animate ? o.helper || 'proxy' : null,
 1341+ knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles
 1342+ });
 1343+
 1344+ //Default Theme
 1345+ var aBorder = '1px solid #DEDEDE';
 1346+
 1347+ o.defaultTheme = {
 1348+ 'ui-resizable': { display: 'block' },
 1349+ 'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' },
 1350+ 'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder },
 1351+ 'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder },
 1352+ 'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder },
 1353+ 'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder },
 1354+ 'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder },
 1355+ 'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder },
 1356+ 'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder },
 1357+ 'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder }
 1358+ };
 1359+
 1360+ o.knobTheme = {
 1361+ 'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' },
 1362+ 'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' },
 1363+ 'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' },
 1364+ 'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' },
 1365+ 'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' },
 1366+ 'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' },
 1367+ 'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' },
 1368+ 'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' },
 1369+ 'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' }
 1370+ };
 1371+
 1372+ o._nodeName = this.element[0].nodeName;
 1373+
 1374+ //Wrap the element if it cannot hold child nodes
 1375+ if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) {
 1376+ var el = this.element;
 1377+
 1378+ //Opera fixing relative position
 1379+ if (/relative/.test(el.css('position')) && $.browser.opera)
 1380+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
 1381+
 1382+ //Create a wrapper element and set the wrapper to the new current internal element
 1383+ el.wrap(
 1384+ $('<div class="ui-wrapper" style="overflow: hidden;"></div>').css( {
 1385+ position: el.css('position'),
 1386+ width: el.outerWidth(),
 1387+ height: el.outerHeight(),
 1388+ top: el.css('top'),
 1389+ left: el.css('left')
 1390+ })
 1391+ );
 1392+
 1393+ var oel = this.element; this.element = this.element.parent();
 1394+
 1395+ // store instance on wrapper
 1396+ this.element.data('resizable', this);
 1397+
 1398+ //Move margins to the wrapper
 1399+ this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
 1400+ marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
 1401+ });
 1402+
 1403+ oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});
 1404+
 1405+ //Prevent Safari textarea resize
 1406+ if ($.browser.safari && o.preventDefault) oel.css('resize', 'none');
 1407+
 1408+ o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' });
 1409+
 1410+ // avoid IE jump
 1411+ this.element.css({ margin: oel.css('margin') });
 1412+
 1413+ // fix handlers offset
 1414+ this._proportionallyResize();
 1415+ }
 1416+
 1417+ if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' };
 1418+ if(o.handles.constructor == String) {
 1419+
 1420+ o.zIndex = o.zIndex || 1000;
 1421+
 1422+ if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw';
 1423+
 1424+ var n = o.handles.split(","); o.handles = {};
 1425+
 1426+ // insertions are applied when don't have theme loaded
 1427+ var insertionsDefault = {
 1428+ handle: 'position: absolute; display: none; overflow:hidden;',
 1429+ n: 'top: 0pt; width:100%;',
 1430+ e: 'right: 0pt; height:100%;',
 1431+ s: 'bottom: 0pt; width:100%;',
 1432+ w: 'left: 0pt; height:100%;',
 1433+ se: 'bottom: 0pt; right: 0px;',
 1434+ sw: 'bottom: 0pt; left: 0px;',
 1435+ ne: 'top: 0pt; right: 0px;',
 1436+ nw: 'top: 0pt; left: 0px;'
 1437+ };
 1438+
 1439+ for(var i = 0; i < n.length; i++) {
 1440+ var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'),
 1441+ allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {});
 1442+
 1443+ // increase zIndex of sw, se, ne, nw axis
 1444+ var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {};
 1445+
 1446+ var defCss = (loadDefault ? insertionsDefault[handle] : ''),
 1447+ axis = $(['<div class="ui-resizable-handle ', hname, '" style="', defCss, insertionsDefault.handle, '"></div>'].join('')).css( applyZIndex );
 1448+ o.handles[handle] = '.ui-resizable-'+handle;
 1449+
 1450+ this.element.append(
 1451+ //Theme detection, if not loaded, load o.defaultTheme
 1452+ axis.css( loadDefault ? allDefTheme : {} )
 1453+ // Load the knobHandle css, fix width, height, top, left...
 1454+ .css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles)
 1455+ );
 1456+ }
 1457+
 1458+ if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} );
 1459+ }
 1460+
 1461+ this._renderAxis = function(target) {
 1462+ target = target || this.element;
 1463+
 1464+ for(var i in o.handles) {
 1465+ if(o.handles[i].constructor == String)
 1466+ o.handles[i] = $(o.handles[i], this.element).show();
 1467+
 1468+ if (o.transparent)
 1469+ o.handles[i].css({opacity:0});
 1470+
 1471+ //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)
 1472+ if (this.element.is('.ui-wrapper') &&
 1473+ o._nodeName.match(/textarea|input|select|button/i)) {
 1474+
 1475+ var axis = $(o.handles[i], this.element), padWrapper = 0;
 1476+
 1477+ //Checking the correct pad and border
 1478+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
 1479+
 1480+ //The padding type i have to apply...
 1481+ var padPos = [ 'padding',
 1482+ /ne|nw|n/.test(i) ? 'Top' :
 1483+ /se|sw|s/.test(i) ? 'Bottom' :
 1484+ /^e$/.test(i) ? 'Right' : 'Left' ].join("");
 1485+
 1486+ if (!o.transparent)
 1487+ target.css(padPos, padWrapper);
 1488+
 1489+ this._proportionallyResize();
 1490+ }
 1491+ if(!$(o.handles[i]).length) continue;
 1492+ }
 1493+ };
 1494+
 1495+ this._renderAxis(this.element);
 1496+ o._handles = $('.ui-resizable-handle', self.element);
 1497+
 1498+ if (o.disableSelection)
 1499+ o._handles.each(function(i, e) { $.ui.disableSelection(e); });
 1500+
 1501+ //Matching axis name
 1502+ o._handles.mouseover(function() {
 1503+ if (!o.resizing) {
 1504+ if (this.className)
 1505+ var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
 1506+ //Axis, default = se
 1507+ self.axis = o.axis = axis && axis[1] ? axis[1] : 'se';
 1508+ }
 1509+ });
 1510+
 1511+ //If we want to auto hide the elements
 1512+ if (o.autoHide) {
 1513+ o._handles.hide();
 1514+ $(self.element).addClass("ui-resizable-autohide").hover(function() {
 1515+ $(this).removeClass("ui-resizable-autohide");
 1516+ o._handles.show();
 1517+ },
 1518+ function(){
 1519+ if (!o.resizing) {
 1520+ $(this).addClass("ui-resizable-autohide");
 1521+ o._handles.hide();
 1522+ }
 1523+ });
 1524+ }
 1525+
 1526+ this._mouseInit();
 1527+ },
 1528+ plugins: {},
 1529+ ui: function() {
 1530+ return {
 1531+ originalElement: this.originalElement,
 1532+ element: this.element,
 1533+ helper: this.helper,
 1534+ position: this.position,
 1535+ size: this.size,
 1536+ options: this.options,
 1537+ originalSize: this.originalSize,
 1538+ originalPosition: this.originalPosition
 1539+ };
 1540+ },
 1541+ _propagate: function(n,e) {
 1542+ $.ui.plugin.call(this, n, [e, this.ui()]);
 1543+ if (n != "resize") this.element.triggerHandler(["resize", n].join(""), [e, this.ui()], this.options[n]);
 1544+ },
 1545+ destroy: function() {
 1546+ var el = this.element, wrapped = el.children(".ui-resizable").get(0);
 1547+
 1548+ this._mouseDestroy();
 1549+
 1550+ var _destroy = function(exp) {
 1551+ $(exp).removeClass("ui-resizable ui-resizable-disabled")
 1552+ .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
 1553+ };
 1554+
 1555+ _destroy(el);
 1556+
 1557+ if (el.is('.ui-wrapper') && wrapped) {
 1558+ el.parent().append(
 1559+ $(wrapped).css({
 1560+ position: el.css('position'),
 1561+ width: el.outerWidth(),
 1562+ height: el.outerHeight(),
 1563+ top: el.css('top'),
 1564+ left: el.css('left')
 1565+ })
 1566+ ).end().remove();
 1567+
 1568+ _destroy(wrapped);
 1569+ }
 1570+ },
 1571+ _mouseStart: function(e) {
 1572+ if(this.options.disabled) return false;
 1573+
 1574+ var handle = false;
 1575+ for(var i in this.options.handles) {
 1576+ if($(this.options.handles[i])[0] == e.target) handle = true;
 1577+ }
 1578+ if (!handle) return false;
 1579+
 1580+ var o = this.options, iniPos = this.element.position(), el = this.element,
 1581+ num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
 1582+ o.resizing = true;
 1583+ o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
 1584+
 1585+ // bugfix #1749
 1586+ if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {
 1587+
 1588+ // sOffset decides if document scrollOffset will be added to the top/left of the resizable element
 1589+ var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position'));
 1590+ var dscrollt = sOffset ? o.documentScroll.top : 0, dscrolll = sOffset ? o.documentScroll.left : 0;
 1591+
 1592+ el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
 1593+ }
 1594+
 1595+ //Opera fixing relative position
 1596+ if ($.browser.opera && /relative/.test(el.css('position')))
 1597+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
 1598+
 1599+ this._renderProxy();
 1600+
 1601+ var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top'));
 1602+
 1603+ if (o.containment) {
 1604+ curleft += $(o.containment).scrollLeft()||0;
 1605+ curtop += $(o.containment).scrollTop()||0;
 1606+ }
 1607+
 1608+ //Store needed variables
 1609+ this.offset = this.helper.offset();
 1610+ this.position = { left: curleft, top: curtop };
 1611+ this.size = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
 1612+ this.originalSize = o.helper || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
 1613+ this.originalPosition = { left: curleft, top: curtop };
 1614+ this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
 1615+ this.originalMousePosition = { left: e.pageX, top: e.pageY };
 1616+
 1617+ //Aspect Ratio
 1618+ o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.height / this.originalSize.width)||1);
 1619+
 1620+ if (o.preserveCursor)
 1621+ $('body').css('cursor', this.axis + '-resize');
 1622+
 1623+ this._propagate("start", e);
 1624+ return true;
 1625+ },
 1626+ _mouseDrag: function(e) {
 1627+
 1628+ //Increase performance, avoid regex
 1629+ var el = this.helper, o = this.options, props = {},
 1630+ self = this, smp = this.originalMousePosition, a = this.axis;
 1631+
 1632+ var dx = (e.pageX-smp.left)||0, dy = (e.pageY-smp.top)||0;
 1633+ var trigger = this._change[a];
 1634+ if (!trigger) return false;
 1635+
 1636+ // Calculate the attrs that will be change
 1637+ var data = trigger.apply(this, [e, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff;
 1638+
 1639+ if (o._aspectRatio || e.shiftKey)
 1640+ data = this._updateRatio(data, e);
 1641+
 1642+ data = this._respectSize(data, e);
 1643+
 1644+ // plugins callbacks need to be called first
 1645+ this._propagate("resize", e);
 1646+
 1647+ el.css({
 1648+ top: this.position.top + "px", left: this.position.left + "px",
 1649+ width: this.size.width + "px", height: this.size.height + "px"
 1650+ });
 1651+
 1652+ if (!o.helper && o.proportionallyResize)
 1653+ this._proportionallyResize();
 1654+
 1655+ this._updateCache(data);
 1656+
 1657+ // calling the user callback at the end
 1658+ this.element.triggerHandler("resize", [e, this.ui()], this.options["resize"]);
 1659+
 1660+ return false;
 1661+ },
 1662+ _mouseStop: function(e) {
 1663+
 1664+ this.options.resizing = false;
 1665+ var o = this.options, num = function(v) { return parseInt(v, 10) || 0; }, self = this;
 1666+
 1667+ if(o.helper) {
 1668+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
 1669+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
 1670+ soffsetw = ista ? 0 : self.sizeDiff.width;
 1671+
 1672+ var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
 1673+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
 1674+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
 1675+
 1676+ if (!o.animate)
 1677+ this.element.css($.extend(s, { top: top, left: left }));
 1678+
 1679+ if (o.helper && !o.animate) this._proportionallyResize();
 1680+ }
 1681+
 1682+ if (o.preserveCursor)
 1683+ $('body').css('cursor', 'auto');
 1684+
 1685+ this._propagate("stop", e);
 1686+
 1687+ if (o.helper) this.helper.remove();
 1688+
 1689+ return false;
 1690+ },
 1691+ _updateCache: function(data) {
 1692+ var o = this.options;
 1693+ this.offset = this.helper.offset();
 1694+ if (data.left) this.position.left = data.left;
 1695+ if (data.top) this.position.top = data.top;
 1696+ if (data.height) this.size.height = data.height;
 1697+ if (data.width) this.size.width = data.width;
 1698+ },
 1699+ _updateRatio: function(data, e) {
 1700+ var o = this.options, cpos = this.position, csize = this.size, a = this.axis;
 1701+
 1702+ if (data.height) data.width = (csize.height / o.aspectRatio);
 1703+ else if (data.width) data.height = (csize.width * o.aspectRatio);
 1704+
 1705+ if (a == 'sw') {
 1706+ data.left = cpos.left + (csize.width - data.width);
 1707+ data.top = null;
 1708+ }
 1709+ if (a == 'nw') {
 1710+ data.top = cpos.top + (csize.height - data.height);
 1711+ data.left = cpos.left + (csize.width - data.width);
 1712+ }
 1713+
 1714+ return data;
 1715+ },
 1716+ _respectSize: function(data, e) {
 1717+
 1718+ var el = this.helper, o = this.options, pRatio = o._aspectRatio || e.shiftKey, a = this.axis,
 1719+ ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height,
 1720+ isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height;
 1721+
 1722+ if (isminw) data.width = o.minWidth;
 1723+ if (isminh) data.height = o.minHeight;
 1724+ if (ismaxw) data.width = o.maxWidth;
 1725+ if (ismaxh) data.height = o.maxHeight;
 1726+
 1727+ var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height;
 1728+ var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
 1729+
 1730+ if (isminw && cw) data.left = dw - o.minWidth;
 1731+ if (ismaxw && cw) data.left = dw - o.maxWidth;
 1732+ if (isminh && ch) data.top = dh - o.minHeight;
 1733+ if (ismaxh && ch) data.top = dh - o.maxHeight;
 1734+
 1735+ // fixing jump error on top/left - bug #2330
 1736+ var isNotwh = !data.width && !data.height;
 1737+ if (isNotwh && !data.left && data.top) data.top = null;
 1738+ else if (isNotwh && !data.top && data.left) data.left = null;
 1739+
 1740+ return data;
 1741+ },
 1742+ _proportionallyResize: function() {
 1743+ var o = this.options;
 1744+ if (!o.proportionallyResize) return;
 1745+ var prel = o.proportionallyResize, el = this.helper || this.element;
 1746+
 1747+ if (!o.borderDif) {
 1748+ var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],
 1749+ p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];
 1750+
 1751+ o.borderDif = $.map(b, function(v, i) {
 1752+ var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;
 1753+ return border + padding;
 1754+ });
 1755+ }
 1756+ prel.css({
 1757+ height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px",
 1758+ width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px"
 1759+ });
 1760+ },
 1761+ _renderProxy: function() {
 1762+ var el = this.element, o = this.options;
 1763+ this.elementOffset = el.offset();
 1764+
 1765+ if(o.helper) {
 1766+ this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
 1767+
 1768+ // fix ie6 offset
 1769+ var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0),
 1770+ pxyoffset = ( ie6 ? 2 : -1 );
 1771+
 1772+ this.helper.addClass(o.helper).css({
 1773+ width: el.outerWidth() + pxyoffset,
 1774+ height: el.outerHeight() + pxyoffset,
 1775+ position: 'absolute',
 1776+ left: this.elementOffset.left - ie6offset +'px',
 1777+ top: this.elementOffset.top - ie6offset +'px',
 1778+ zIndex: ++o.zIndex
 1779+ });
 1780+
 1781+ this.helper.appendTo("body");
 1782+
 1783+ if (o.disableSelection)
 1784+ $.ui.disableSelection(this.helper.get(0));
 1785+
 1786+ } else {
 1787+ this.helper = el;
 1788+ }
 1789+ },
 1790+ _change: {
 1791+ e: function(e, dx, dy) {
 1792+ return { width: this.originalSize.width + dx };
 1793+ },
 1794+ w: function(e, dx, dy) {
 1795+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
 1796+ return { left: sp.left + dx, width: cs.width - dx };
 1797+ },
 1798+ n: function(e, dx, dy) {
 1799+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
 1800+ return { top: sp.top + dy, height: cs.height - dy };
 1801+ },
 1802+ s: function(e, dx, dy) {
 1803+ return { height: this.originalSize.height + dy };
 1804+ },
 1805+ se: function(e, dx, dy) {
 1806+ return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
 1807+ },
 1808+ sw: function(e, dx, dy) {
 1809+ return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
 1810+ },
 1811+ ne: function(e, dx, dy) {
 1812+ return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
 1813+ },
 1814+ nw: function(e, dx, dy) {
 1815+ return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
 1816+ }
 1817+ }
 1818+}));
 1819+
 1820+$.extend($.ui.resizable, {
 1821+ defaults: {
 1822+ cancel: ":input",
 1823+ distance: 1,
 1824+ delay: 0,
 1825+ preventDefault: true,
 1826+ transparent: false,
 1827+ minWidth: 10,
 1828+ minHeight: 10,
 1829+ aspectRatio: false,
 1830+ disableSelection: true,
 1831+ preserveCursor: true,
 1832+ autoHide: false,
 1833+ knobHandles: false
 1834+ }
 1835+});
 1836+
 1837+/*
 1838+ * Resizable Extensions
 1839+ */
 1840+
 1841+$.ui.plugin.add("resizable", "containment", {
 1842+
 1843+ start: function(e, ui) {
 1844+ var o = ui.options, self = $(this).data("resizable"), el = self.element;
 1845+ var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;
 1846+ if (!ce) return;
 1847+
 1848+ self.containerElement = $(ce);
 1849+
 1850+ if (/document/.test(oc) || oc == document) {
 1851+ self.containerOffset = { left: 0, top: 0 };
 1852+ self.containerPosition = { left: 0, top: 0 };
 1853+
 1854+ self.parentData = {
 1855+ element: $(document), left: 0, top: 0,
 1856+ width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight
 1857+ };
 1858+ }
 1859+
 1860+
 1861+ // i'm a node, so compute top, left, right, bottom
 1862+ else{
 1863+ self.containerOffset = $(ce).offset();
 1864+ self.containerPosition = $(ce).position();
 1865+ self.containerSize = { height: $(ce).innerHeight(), width: $(ce).innerWidth() };
 1866+
 1867+ var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width,
 1868+ width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);
 1869+
 1870+ self.parentData = {
 1871+ element: ce, left: co.left, top: co.top, width: width, height: height
 1872+ };
 1873+ }
 1874+ },
 1875+
 1876+ resize: function(e, ui) {
 1877+ var o = ui.options, self = $(this).data("resizable"),
 1878+ ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
 1879+ pRatio = o._aspectRatio || e.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
 1880+
 1881+ if (ce[0] != document && /static/.test(ce.css('position')))
 1882+ cop = self.containerPosition;
 1883+
 1884+ if (cp.left < (o.helper ? co.left : cop.left)) {
 1885+ self.size.width = self.size.width + (o.helper ? (self.position.left - co.left) : (self.position.left - cop.left));
 1886+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
 1887+ self.position.left = o.helper ? co.left : cop.left;
 1888+ }
 1889+
 1890+ if (cp.top < (o.helper ? co.top : 0)) {
 1891+ self.size.height = self.size.height + (o.helper ? (self.position.top - co.top) : self.position.top);
 1892+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
 1893+ self.position.top = o.helper ? co.top : 0;
 1894+ }
 1895+
 1896+ var woset = (o.helper ? self.offset.left - co.left : (self.position.left - cop.left)) + self.sizeDiff.width,
 1897+ hoset = (o.helper ? self.offset.top - co.top : self.position.top) + self.sizeDiff.height;
 1898+
 1899+ if (woset + self.size.width >= self.parentData.width) {
 1900+ self.size.width = self.parentData.width - woset;
 1901+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
 1902+ }
 1903+
 1904+ if (hoset + self.size.height >= self.parentData.height) {
 1905+ self.size.height = self.parentData.height - hoset;
 1906+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
 1907+ }
 1908+ },
 1909+
 1910+ stop: function(e, ui){
 1911+ var o = ui.options, self = $(this).data("resizable"), cp = self.position,
 1912+ co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement;
 1913+
 1914+ var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
 1915+
 1916+
 1917+ if (o.helper && !o.animate && /relative/.test(ce.css('position')))
 1918+ $(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });
 1919+
 1920+ if (o.helper && !o.animate && /static/.test(ce.css('position')))
 1921+ $(this).css({ left: cop.left + (ho.left - co.left), top: cop.top + (ho.top - co.top), width: w, height: h });
 1922+
 1923+ }
 1924+});
 1925+
 1926+$.ui.plugin.add("resizable", "grid", {
 1927+
 1928+ resize: function(e, ui) {
 1929+ var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || e.shiftKey;
 1930+ o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;
 1931+ var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);
 1932+
 1933+ if (/^(se|s|e)$/.test(a)) {
 1934+ self.size.width = os.width + ox;
 1935+ self.size.height = os.height + oy;
 1936+ }
 1937+ else if (/^(ne)$/.test(a)) {
 1938+ self.size.width = os.width + ox;
 1939+ self.size.height = os.height + oy;
 1940+ self.position.top = op.top - oy;
 1941+ }
 1942+ else if (/^(sw)$/.test(a)) {
 1943+ self.size.width = os.width + ox;
 1944+ self.size.height = os.height + oy;
 1945+ self.position.left = op.left - ox;
 1946+ }
 1947+ else {
 1948+ self.size.width = os.width + ox;
 1949+ self.size.height = os.height + oy;
 1950+ self.position.top = op.top - oy;
 1951+ self.position.left = op.left - ox;
 1952+ }
 1953+ }
 1954+
 1955+});
 1956+
 1957+$.ui.plugin.add("resizable", "animate", {
 1958+
 1959+ stop: function(e, ui) {
 1960+ var o = ui.options, self = $(this).data("resizable");
 1961+
 1962+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
 1963+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
 1964+ soffsetw = ista ? 0 : self.sizeDiff.width;
 1965+
 1966+ var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
 1967+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
 1968+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
 1969+
 1970+ self.element.animate(
 1971+ $.extend(style, top && left ? { top: top, left: left } : {}), {
 1972+ duration: o.animateDuration || "slow", easing: o.animateEasing || "swing",
 1973+ step: function() {
 1974+
 1975+ var data = {
 1976+ width: parseInt(self.element.css('width'), 10),
 1977+ height: parseInt(self.element.css('height'), 10),
 1978+ top: parseInt(self.element.css('top'), 10),
 1979+ left: parseInt(self.element.css('left'), 10)
 1980+ };
 1981+
 1982+ if (pr) pr.css({ width: data.width, height: data.height });
 1983+
 1984+ // propagating resize, and updating values for each animation step
 1985+ self._updateCache(data);
 1986+ self._propagate("animate", e);
 1987+
 1988+ }
 1989+ }
 1990+ );
 1991+ }
 1992+
 1993+});
 1994+
 1995+$.ui.plugin.add("resizable", "ghost", {
 1996+
 1997+ start: function(e, ui) {
 1998+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size;
 1999+
 2000+ if (!pr) self.ghost = self.element.clone();
 2001+ else self.ghost = pr.clone();
 2002+
 2003+ self.ghost.css(
 2004+ { opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }
 2005+ )
 2006+ .addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : '');
 2007+
 2008+ self.ghost.appendTo(self.helper);
 2009+
 2010+ },
 2011+
 2012+ resize: function(e, ui){
 2013+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
 2014+
 2015+ if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width });
 2016+
 2017+ },
 2018+
 2019+ stop: function(e, ui){
 2020+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
 2021+ if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0));
 2022+ }
 2023+
 2024+});
 2025+
 2026+$.ui.plugin.add("resizable", "alsoResize", {
 2027+
 2028+ start: function(e, ui) {
 2029+ var o = ui.options, self = $(this).data("resizable"),
 2030+
 2031+ _store = function(exp) {
 2032+ $(exp).each(function() {
 2033+ $(this).data("resizable-alsoresize", {
 2034+ width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10),
 2035+ left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10)
 2036+ });
 2037+ });
 2038+ };
 2039+
 2040+ if (typeof(o.alsoResize) == 'object') {
 2041+ if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); }
 2042+ else { $.each(o.alsoResize, function(exp, c) { _store(exp); }); }
 2043+ }else{
 2044+ _store(o.alsoResize);
 2045+ }
 2046+ },
 2047+
 2048+ resize: function(e, ui){
 2049+ var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition;
 2050+
 2051+ var delta = {
 2052+ height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
 2053+ top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0
 2054+ },
 2055+
 2056+ _alsoResize = function(exp, c) {
 2057+ $(exp).each(function() {
 2058+ var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left'];
 2059+
 2060+ $.each(css || ['width', 'height', 'top', 'left'], function(i, prop) {
 2061+ var sum = (start[prop]||0) + (delta[prop]||0);
 2062+ if (sum && sum >= 0)
 2063+ style[prop] = sum || null;
 2064+ });
 2065+ $(this).css(style);
 2066+ });
 2067+ };
 2068+
 2069+ if (typeof(o.alsoResize) == 'object') {
 2070+ $.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
 2071+ }else{
 2072+ _alsoResize(o.alsoResize);
 2073+ }
 2074+ },
 2075+
 2076+ stop: function(e, ui){
 2077+ $(this).removeData("resizable-alsoresize-start");
 2078+ }
 2079+});
 2080+
 2081+})(jQuery);
 2082+/*
 2083+ * jQuery UI Selectable @VERSION
 2084+ *
 2085+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
 2086+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 2087+ * and GPL (GPL-LICENSE.txt) licenses.
 2088+ *
 2089+ * http://docs.jquery.com/UI/Selectables
 2090+ *
 2091+ * Depends:
 2092+ * ui.core.js
 2093+ */
 2094+(function($) {
 2095+
 2096+$.widget("ui.selectable", $.extend({}, $.ui.mouse, {
 2097+ _init: function() {
 2098+ var self = this;
 2099+
 2100+ this.element.addClass("ui-selectable");
 2101+
 2102+ this.dragged = false;
 2103+
 2104+ // cache selectee children based on filter
 2105+ var selectees;
 2106+ this.refresh = function() {
 2107+ selectees = $(self.options.filter, self.element[0]);
 2108+ selectees.each(function() {
 2109+ var $this = $(this);
 2110+ var pos = $this.offset();
 2111+ $.data(this, "selectable-item", {
 2112+ element: this,
 2113+ $element: $this,
 2114+ left: pos.left,
 2115+ top: pos.top,
 2116+ right: pos.left + $this.width(),
 2117+ bottom: pos.top + $this.height(),
 2118+ startselected: false,
 2119+ selected: $this.hasClass('ui-selected'),
 2120+ selecting: $this.hasClass('ui-selecting'),
 2121+ unselecting: $this.hasClass('ui-unselecting')
 2122+ });
 2123+ });
 2124+ };
 2125+ this.refresh();
 2126+
 2127+ this.selectees = selectees.addClass("ui-selectee");
 2128+
 2129+ this._mouseInit();
 2130+
 2131+ this.helper = $(document.createElement('div'))
 2132+ .css({border:'1px dotted black'})
 2133+ .addClass("ui-selectable-helper");
 2134+ },
 2135+ toggle: function() {
 2136+ if(this.options.disabled){
 2137+ this.enable();
 2138+ } else {
 2139+ this.disable();
 2140+ }
 2141+ },
 2142+ destroy: function() {
 2143+ this.element
 2144+ .removeClass("ui-selectable ui-selectable-disabled")
 2145+ .removeData("selectable")
 2146+ .unbind(".selectable");
 2147+ this._mouseDestroy();
 2148+ },
 2149+ _mouseStart: function(e) {
 2150+ var self = this;
 2151+
 2152+ this.opos = [e.pageX, e.pageY];
 2153+
 2154+ if (this.options.disabled)
 2155+ return;
 2156+
 2157+ var options = this.options;
 2158+
 2159+ this.selectees = $(options.filter, this.element[0]);
 2160+
 2161+ // selectable START callback
 2162+ this.element.triggerHandler("selectablestart", [e, {
 2163+ "selectable": this.element[0],
 2164+ "options": options
 2165+ }], options.start);
 2166+
 2167+ $('body').append(this.helper);
 2168+ // position helper (lasso)
 2169+ this.helper.css({
 2170+ "z-index": 100,
 2171+ "position": "absolute",
 2172+ "left": e.clientX,
 2173+ "top": e.clientY,
 2174+ "width": 0,
 2175+ "height": 0
 2176+ });
 2177+
 2178+ if (options.autoRefresh) {
 2179+ this.refresh();
 2180+ }
 2181+
 2182+ this.selectees.filter('.ui-selected').each(function() {
 2183+ var selectee = $.data(this, "selectable-item");
 2184+ selectee.startselected = true;
 2185+ if (!e.metaKey) {
 2186+ selectee.$element.removeClass('ui-selected');
 2187+ selectee.selected = false;
 2188+ selectee.$element.addClass('ui-unselecting');
 2189+ selectee.unselecting = true;
 2190+ // selectable UNSELECTING callback
 2191+ self.element.triggerHandler("selectableunselecting", [e, {
 2192+ selectable: self.element[0],
 2193+ unselecting: selectee.element,
 2194+ options: options
 2195+ }], options.unselecting);
 2196+ }
 2197+ });
 2198+
 2199+ var isSelectee = false;
 2200+ $(e.target).parents().andSelf().each(function() {
 2201+ if($.data(this, "selectable-item")) isSelectee = true;
 2202+ });
 2203+ return this.options.keyboard ? !isSelectee : true;
 2204+ },
 2205+ _mouseDrag: function(e) {
 2206+ var self = this;
 2207+ this.dragged = true;
 2208+
 2209+ if (this.options.disabled)
 2210+ return;
 2211+
 2212+ var options = this.options;
 2213+
 2214+ var x1 = this.opos[0], y1 = this.opos[1], x2 = e.pageX, y2 = e.pageY;
 2215+ if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }
 2216+ if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }
 2217+ this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});
 2218+
 2219+ this.selectees.each(function() {
 2220+ var selectee = $.data(this, "selectable-item");
 2221+ //prevent helper from being selected if appendTo: selectable
 2222+ if (!selectee || selectee.element == self.element[0])
 2223+ return;
 2224+ var hit = false;
 2225+ if (options.tolerance == 'touch') {
 2226+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
 2227+ } else if (options.tolerance == 'fit') {
 2228+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
 2229+ }
 2230+
 2231+ if (hit) {
 2232+ // SELECT
 2233+ if (selectee.selected) {
 2234+ selectee.$element.removeClass('ui-selected');
 2235+ selectee.selected = false;
 2236+ }
 2237+ if (selectee.unselecting) {
 2238+ selectee.$element.removeClass('ui-unselecting');
 2239+ selectee.unselecting = false;
 2240+ }
 2241+ if (!selectee.selecting) {
 2242+ selectee.$element.addClass('ui-selecting');
 2243+ selectee.selecting = true;
 2244+ // selectable SELECTING callback
 2245+ self.element.triggerHandler("selectableselecting", [e, {
 2246+ selectable: self.element[0],
 2247+ selecting: selectee.element,
 2248+ options: options
 2249+ }], options.selecting);
 2250+ }
 2251+ } else {
 2252+ // UNSELECT
 2253+ if (selectee.selecting) {
 2254+ if (e.metaKey && selectee.startselected) {
 2255+ selectee.$element.removeClass('ui-selecting');
 2256+ selectee.selecting = false;
 2257+ selectee.$element.addClass('ui-selected');
 2258+ selectee.selected = true;
 2259+ } else {
 2260+ selectee.$element.removeClass('ui-selecting');
 2261+ selectee.selecting = false;
 2262+ if (selectee.startselected) {
 2263+ selectee.$element.addClass('ui-unselecting');
 2264+ selectee.unselecting = true;
 2265+ }
 2266+ // selectable UNSELECTING callback
 2267+ self.element.triggerHandler("selectableunselecting", [e, {
 2268+ selectable: self.element[0],
 2269+ unselecting: selectee.element,
 2270+ options: options
 2271+ }], options.unselecting);
 2272+ }
 2273+ }
 2274+ if (selectee.selected) {
 2275+ if (!e.metaKey && !selectee.startselected) {
 2276+ selectee.$element.removeClass('ui-selected');
 2277+ selectee.selected = false;
 2278+
 2279+ selectee.$element.addClass('ui-unselecting');
 2280+ selectee.unselecting = true;
 2281+ // selectable UNSELECTING callback
 2282+ self.element.triggerHandler("selectableunselecting", [e, {
 2283+ selectable: self.element[0],
 2284+ unselecting: selectee.element,
 2285+ options: options
 2286+ }], options.unselecting);
 2287+ }
 2288+ }
 2289+ }
 2290+ });
 2291+
 2292+ return false;
 2293+ },
 2294+ _mouseStop: function(e) {
 2295+ var self = this;
 2296+
 2297+ this.dragged = false;
 2298+
 2299+ var options = this.options;
 2300+
 2301+ $('.ui-unselecting', this.element[0]).each(function() {
 2302+ var selectee = $.data(this, "selectable-item");
 2303+ selectee.$element.removeClass('ui-unselecting');
 2304+ selectee.unselecting = false;
 2305+ selectee.startselected = false;
 2306+ self.element.triggerHandler("selectableunselected", [e, {
 2307+ selectable: self.element[0],
 2308+ unselected: selectee.element,
 2309+ options: options
 2310+ }], options.unselected);
 2311+ });
 2312+ $('.ui-selecting', this.element[0]).each(function() {
 2313+ var selectee = $.data(this, "selectable-item");
 2314+ selectee.$element.removeClass('ui-selecting').addClass('ui-selected');
 2315+ selectee.selecting = false;
 2316+ selectee.selected = true;
 2317+ selectee.startselected = true;
 2318+ self.element.triggerHandler("selectableselected", [e, {
 2319+ selectable: self.element[0],
 2320+ selected: selectee.element,
 2321+ options: options
 2322+ }], options.selected);
 2323+ });
 2324+ this.element.triggerHandler("selectablestop", [e, {
 2325+ selectable: self.element[0],
 2326+ options: this.options
 2327+ }], this.options.stop);
 2328+
 2329+ this.helper.remove();
 2330+
 2331+ return false;
 2332+ }
 2333+}));
 2334+
 2335+$.extend($.ui.selectable, {
 2336+ defaults: {
 2337+ distance: 1,
 2338+ delay: 0,
 2339+ cancel: ":input",
 2340+ appendTo: 'body',
 2341+ autoRefresh: true,
 2342+ filter: '*',
 2343+ tolerance: 'touch'
 2344+ }
 2345+});
 2346+
 2347+})(jQuery);
 2348+/*
 2349+ * jQuery UI Sortable @VERSION
 2350+ *
 2351+ * Copyright (c) 2008 Paul Bakaus
 2352+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 2353+ * and GPL (GPL-LICENSE.txt) licenses.
 2354+ *
 2355+ * http://docs.jquery.com/UI/Sortables
 2356+ *
 2357+ * Depends:
 2358+ * ui.core.js
 2359+ */
 2360+(function($) {
 2361+
 2362+function contains(a, b) {
 2363+ var safari2 = $.browser.safari && $.browser.version < 522;
 2364+ if (a.contains && !safari2) {
 2365+ return a.contains(b);
 2366+ }
 2367+ if (a.compareDocumentPosition)
 2368+ return !!(a.compareDocumentPosition(b) & 16);
 2369+ while (b = b.parentNode)
 2370+ if (b == a) return true;
 2371+ return false;
 2372+};
 2373+
 2374+$.widget("ui.sortable", $.extend({}, $.ui.mouse, {
 2375+ _init: function() {
 2376+
 2377+ var o = this.options;
 2378+ this.containerCache = {};
 2379+ this.element.addClass("ui-sortable");
 2380+
 2381+ //Get the items
 2382+ this.refresh();
 2383+
 2384+ //Let's determine if the items are floating
 2385+ this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
 2386+
 2387+ //Let's determine the parent's offset
 2388+ this.offset = this.element.offset();
 2389+
 2390+ //Initialize mouse events for interaction
 2391+ this._mouseInit();
 2392+
 2393+ },
 2394+ plugins: {},
 2395+ ui: function(inst) {
 2396+ return {
 2397+ helper: (inst || this)["helper"],
 2398+ placeholder: (inst || this)["placeholder"] || $([]),
 2399+ position: (inst || this)["position"],
 2400+ absolutePosition: (inst || this)["positionAbs"],
 2401+ options: this.options,
 2402+ element: this.element,
 2403+ item: (inst || this)["currentItem"],
 2404+ sender: inst ? inst.element : null
 2405+ };
 2406+ },
 2407+
 2408+ _propagate: function(n,e,inst, noPropagation) {
 2409+ $.ui.plugin.call(this, n, [e, this.ui(inst)]);
 2410+ if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this.ui(inst)], this.options[n]);
 2411+ },
 2412+
 2413+ serialize: function(o) {
 2414+
 2415+ var items = this._getItemsAsjQuery(o && o.connected);
 2416+ var str = []; o = o || {};
 2417+
 2418+ $(items).each(function() {
 2419+ var res = ($(this.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
 2420+ if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2]));
 2421+ });
 2422+
 2423+ return str.join('&');
 2424+
 2425+ },
 2426+
 2427+ toArray: function(o) {
 2428+
 2429+ var items = this._getItemsAsjQuery(o && o.connected);
 2430+ var ret = [];
 2431+
 2432+ items.each(function() { ret.push($(this).attr(o.attr || 'id')); });
 2433+ return ret;
 2434+
 2435+ },
 2436+
 2437+ /* Be careful with the following core functions */
 2438+ _intersectsWith: function(item) {
 2439+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
 2440+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
 2441+ var l = item.left, r = l + item.width,
 2442+ t = item.top, b = t + item.height;
 2443+
 2444+ var dyClick = this.offset.click.top, dxClick = this.offset.click.left;
 2445+ var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r;
 2446+
 2447+ if(this.options.tolerance == "pointer" || this.options.forcePointerForContainers || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
 2448+ return isOverElement;
 2449+ } else {
 2450+
 2451+ return (l < x1 + (this.helperProportions.width / 2) // Right Half
 2452+ && x2 - (this.helperProportions.width / 2) < r // Left Half
 2453+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
 2454+ && y2 - (this.helperProportions.height / 2) < b ); // Top Half
 2455+
 2456+ }
 2457+ },
 2458+
 2459+ _intersectsWithEdge: function(item) {
 2460+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
 2461+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
 2462+
 2463+ var l = item.left, r = l + item.width,
 2464+ t = item.top, b = t + item.height;
 2465+
 2466+ var dyClick = this.offset.click.top, dxClick = this.offset.click.left;
 2467+ var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r;
 2468+
 2469+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
 2470+ if(!isOverElement) return false;
 2471+
 2472+ if(this.floating) {
 2473+ if ((x1 + dxClick) > l && (x1 + dxClick) < l + item.width/2) return 2;
 2474+ if ((x1 + dxClick) > l + item.width/2 && (x1 + dxClick) < r) return 1;
 2475+ } else {
 2476+ var height = item.height;
 2477+ var direction = y1 - this.updateOriginalPosition.top < 0 ? 2 : 1; // 2 = up
 2478+
 2479+ if (direction == 1 && (y1 + dyClick) < t + height/2) { return 2; } // up
 2480+ else if (direction == 2 && (y1 + dyClick) > t + height/2) { return 1; } // down
 2481+ }
 2482+
 2483+ } else {
 2484+ if (!(l < x1 + (this.helperProportions.width / 2) // Right Half
 2485+ && x2 - (this.helperProportions.width / 2) < r // Left Half
 2486+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
 2487+ && y2 - (this.helperProportions.height / 2) < b )) return false; // Top Half
 2488+
 2489+ if(this.floating) {
 2490+ if(x2 > l && x1 < l) return 2; //Crosses left edge
 2491+ if(x1 < r && x2 > r) return 1; //Crosses right edge
 2492+ } else {
 2493+ if(y2 > t && y1 < t) return 1; //Crosses top edge
 2494+ if(y1 < b && y2 > b) return 2; //Crosses bottom edge
 2495+ }
 2496+ }
 2497+
 2498+ return false;
 2499+
 2500+ },
 2501+
 2502+ refresh: function() {
 2503+ this._refreshItems();
 2504+ this.refreshPositions();
 2505+ },
 2506+
 2507+ _getItemsAsjQuery: function(connected) {
 2508+
 2509+ var self = this;
 2510+ var items = [];
 2511+ var queries = [];
 2512+
 2513+ if(this.options.connectWith && connected) {
 2514+ for (var i = this.options.connectWith.length - 1; i >= 0; i--){
 2515+ var cur = $(this.options.connectWith[i]);
 2516+ for (var j = cur.length - 1; j >= 0; j--){
 2517+ var inst = $.data(cur[j], 'sortable');
 2518+ if(inst && inst != this && !inst.options.disabled) {
 2519+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper"), inst]);
 2520+ }
 2521+ };
 2522+ };
 2523+ }
 2524+
 2525+ queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper"), this]);
 2526+
 2527+ for (var i = queries.length - 1; i >= 0; i--){
 2528+ queries[i][0].each(function() {
 2529+ items.push(this);
 2530+ });
 2531+ };
 2532+
 2533+ return $(items);
 2534+
 2535+ },
 2536+
 2537+ _removeCurrentsFromItems: function() {
 2538+
 2539+ var list = this.currentItem.find(":data(sortable-item)");
 2540+
 2541+ for (var i=0; i < this.items.length; i++) {
 2542+
 2543+ for (var j=0; j < list.length; j++) {
 2544+ if(list[j] == this.items[i].item[0])
 2545+ this.items.splice(i,1);
 2546+ };
 2547+
 2548+ };
 2549+
 2550+ },
 2551+
 2552+ _refreshItems: function() {
 2553+
 2554+ this.items = [];
 2555+ this.containers = [this];
 2556+ var items = this.items;
 2557+ var self = this;
 2558+ var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element), this]];
 2559+
 2560+ if(this.options.connectWith) {
 2561+ for (var i = this.options.connectWith.length - 1; i >= 0; i--){
 2562+ var cur = $(this.options.connectWith[i]);
 2563+ for (var j = cur.length - 1; j >= 0; j--){
 2564+ var inst = $.data(cur[j], 'sortable');
 2565+ if(inst && inst != this && !inst.options.disabled) {
 2566+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element), inst]);
 2567+ this.containers.push(inst);
 2568+ }
 2569+ };
 2570+ };
 2571+ }
 2572+
 2573+ for (var i = queries.length - 1; i >= 0; i--){
 2574+ queries[i][0].each(function() {
 2575+ $.data(this, 'sortable-item', queries[i][1]); // Data for target checking (mouse manager)
 2576+ items.push({
 2577+ item: $(this),
 2578+ instance: queries[i][1],
 2579+ width: 0, height: 0,
 2580+ left: 0, top: 0
 2581+ });
 2582+ });
 2583+ };
 2584+
 2585+ },
 2586+
 2587+ refreshPositions: function(fast) {
 2588+
 2589+ //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
 2590+ if(this.offsetParent) {
 2591+ var po = this.offsetParent.offset();
 2592+ this.offset.parent = { top: po.top + this.offsetParentBorders.top, left: po.left + this.offsetParentBorders.left };
 2593+ }
 2594+
 2595+ for (var i = this.items.length - 1; i >= 0; i--){
 2596+
 2597+ //We ignore calculating positions of all connected containers when we're not over them
 2598+ if(this.items[i].instance != this.currentContainer && this.currentContainer && this.items[i].item[0] != this.currentItem[0])
 2599+ continue;
 2600+
 2601+ var t = this.options.toleranceElement ? $(this.options.toleranceElement, this.items[i].item) : this.items[i].item;
 2602+
 2603+ if(!fast) {
 2604+ this.items[i].width = t[0].offsetWidth;
 2605+ this.items[i].height = t[0].offsetHeight;
 2606+ }
 2607+
 2608+ var p = t.offset();
 2609+ this.items[i].left = p.left;
 2610+ this.items[i].top = p.top;
 2611+
 2612+ };
 2613+
 2614+ if(this.options.custom && this.options.custom.refreshContainers) {
 2615+ this.options.custom.refreshContainers.call(this);
 2616+ } else {
 2617+ for (var i = this.containers.length - 1; i >= 0; i--){
 2618+ var p =this.containers[i].element.offset();
 2619+ this.containers[i].containerCache.left = p.left;
 2620+ this.containers[i].containerCache.top = p.top;
 2621+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
 2622+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
 2623+ };
 2624+ }
 2625+
 2626+ },
 2627+
 2628+ destroy: function() {
 2629+ this.element
 2630+ .removeClass("ui-sortable ui-sortable-disabled")
 2631+ .removeData("sortable")
 2632+ .unbind(".sortable");
 2633+ this._mouseDestroy();
 2634+
 2635+ for ( var i = this.items.length - 1; i >= 0; i-- )
 2636+ this.items[i].item.removeData("sortable-item");
 2637+ },
 2638+
 2639+ _createPlaceholder: function(that) {
 2640+
 2641+ var self = that || this, o = self.options;
 2642+
 2643+ if(!o.placeholder || o.placeholder.constructor == String) {
 2644+ var className = o.placeholder;
 2645+ o.placeholder = {
 2646+ element: function() {
 2647+ var el = $(document.createElement(self.currentItem[0].nodeName)).addClass(className || "ui-sortable-placeholder")[0];
 2648+ if(!className) { el.style.visibility = "hidden"; el.innerHTML = self.currentItem[0].innerHTML; };
 2649+ return el;
 2650+ },
 2651+ update: function(container, p) {
 2652+ if(className) return;
 2653+ if(!p.height()) { p.height(self.currentItem.innerHeight()); };
 2654+ if(!p.width()) { p.width(self.currentItem.innerWidth()); };
 2655+ }
 2656+ };
 2657+ }
 2658+
 2659+ self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)).appendTo(self.currentItem.parent());
 2660+ self.currentItem.before(self.placeholder);
 2661+ o.placeholder.update(self, self.placeholder);
 2662+
 2663+ },
 2664+
 2665+ _contactContainers: function(e) {
 2666+ for (var i = this.containers.length - 1; i >= 0; i--){
 2667+
 2668+ if(this._intersectsWith(this.containers[i].containerCache)) {
 2669+ if(!this.containers[i].containerCache.over) {
 2670+
 2671+
 2672+ if(this.currentContainer != this.containers[i]) {
 2673+
 2674+ //When entering a new container, we will find the item with the least distance and append our item near it
 2675+ var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top'];
 2676+ for (var j = this.items.length - 1; j >= 0; j--) {
 2677+ if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;
 2678+ var cur = this.items[j][this.containers[i].floating ? 'left' : 'top'];
 2679+ if(Math.abs(cur - base) < dist) {
 2680+ dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
 2681+ }
 2682+ }
 2683+
 2684+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
 2685+ continue;
 2686+
 2687+ this.currentContainer = this.containers[i];
 2688+ itemWithLeastDistance ? this.options.sortIndicator.call(this, e, itemWithLeastDistance, null, true) : this.options.sortIndicator.call(this, e, null, this.containers[i].element, true);
 2689+ this._propagate("change", e); //Call plugins and callbacks
 2690+ this.containers[i]._propagate("change", e, this); //Call plugins and callbacks
 2691+
 2692+ //Update the placeholder
 2693+ this.options.placeholder.update(this.currentContainer, this.placeholder);
 2694+
 2695+ }
 2696+
 2697+ this.containers[i]._propagate("over", e, this);
 2698+ this.containers[i].containerCache.over = 1;
 2699+ }
 2700+ } else {
 2701+ if(this.containers[i].containerCache.over) {
 2702+ this.containers[i]._propagate("out", e, this);
 2703+ this.containers[i].containerCache.over = 0;
 2704+ }
 2705+ }
 2706+
 2707+ };
 2708+ },
 2709+
 2710+ _mouseCapture: function(e, overrideHandle) {
 2711+
 2712+ if(this.options.disabled || this.options.type == 'static') return false;
 2713+
 2714+ //We have to refresh the items data once first
 2715+ this._refreshItems();
 2716+
 2717+ //Find out if the clicked node (or one of its parents) is a actual item in this.items
 2718+ var currentItem = null, self = this, nodes = $(e.target).parents().each(function() {
 2719+ if($.data(this, 'sortable-item') == self) {
 2720+ currentItem = $(this);
 2721+ return false;
 2722+ }
 2723+ });
 2724+ if($.data(e.target, 'sortable-item') == self) currentItem = $(e.target);
 2725+
 2726+ if(!currentItem) return false;
 2727+ if(this.options.handle && !overrideHandle) {
 2728+ var validHandle = false;
 2729+
 2730+ $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == e.target) validHandle = true; });
 2731+ if(!validHandle) return false;
 2732+ }
 2733+
 2734+ this.currentItem = currentItem;
 2735+ this._removeCurrentsFromItems();
 2736+ return true;
 2737+
 2738+ },
 2739+
 2740+ _mouseStart: function(e, overrideHandle, noActivation) {
 2741+
 2742+ var o = this.options;
 2743+ this.currentContainer = this;
 2744+
 2745+ //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture
 2746+ this.refreshPositions();
 2747+
 2748+ //Create and append the visible helper
 2749+ this.helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : (o.helper == "original" ? this.currentItem : this.currentItem.clone());
 2750+ if (!this.helper.parents('body').length) $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(this.helper[0]); //Add the helper to the DOM if that didn't happen already
 2751+
 2752+ /*
 2753+ * - Position generation -
 2754+ * This block generates everything position related - it's the core of draggables.
 2755+ */
 2756+
 2757+ this.margins = { //Cache the margins
 2758+ left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
 2759+ top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
 2760+ };
 2761+
 2762+ this.offset = this.currentItem.offset(); //The element's absolute position on the page
 2763+ this.offset = { //Substract the margins from the element's absolute offset
 2764+ top: this.offset.top - this.margins.top,
 2765+ left: this.offset.left - this.margins.left
 2766+ };
 2767+
 2768+ this.offset.click = { //Where the click happened, relative to the element
 2769+ left: e.pageX - this.offset.left,
 2770+ top: e.pageY - this.offset.top
 2771+ };
 2772+
 2773+ this.offsetParent = this.helper.offsetParent(); //Get the offsetParent and cache its position
 2774+ var po = this.offsetParent.offset();
 2775+
 2776+ this.offsetParentBorders = {
 2777+ top: (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
 2778+ left: (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
 2779+ };
 2780+ this.offset.parent = { //Store its position plus border
 2781+ top: po.top + this.offsetParentBorders.top,
 2782+ left: po.left + this.offsetParentBorders.left
 2783+ };
 2784+
 2785+ this.updateOriginalPosition = this.originalPosition = this._generatePosition(e); //Generate the original position
 2786+ this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] }; //Cache the former DOM position
 2787+
 2788+ //If o.placeholder is used, create a new element at the given position with the class
 2789+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
 2790+
 2791+
 2792+ if(o.helper == "original") {
 2793+ this._storedCSS = { position: this.currentItem.css("position"), top: this.currentItem.css("top"), left: this.currentItem.css("left"), clear: this.currentItem.css("clear") };
 2794+ }
 2795+
 2796+ if(o.helper != "original") this.currentItem.hide(); //Hide the original, won't cause anything bad this way
 2797+ this.helper.css({ position: 'absolute', clear: 'both' }).addClass('ui-sortable-helper'); //Position it absolutely and add a helper class
 2798+ this._createPlaceholder();
 2799+
 2800+ //Call plugins and callbacks
 2801+ this._propagate("start", e);
 2802+ if(!this._preserveHelperProportions) this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
 2803+
 2804+ if(o.cursorAt) {
 2805+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left;
 2806+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right;
 2807+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top;
 2808+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom;
 2809+ }
 2810+
 2811+ /*
 2812+ * - Position constraining -
 2813+ * Here we prepare position constraining like grid and containment.
 2814+ */
 2815+
 2816+ if(o.containment) {
 2817+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
 2818+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
 2819+ 0 - this.offset.parent.left,
 2820+ 0 - this.offset.parent.top,
 2821+ $(o.containment == 'document' ? document : window).width() - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
 2822+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
 2823+ ];
 2824+
 2825+ if(!(/^(document|window|parent)$/).test(o.containment)) {
 2826+ var ce = $(o.containment)[0];
 2827+ var co = $(o.containment).offset();
 2828+
 2829+ this.containment = [
 2830+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left,
 2831+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top,
 2832+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
 2833+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
 2834+ ];
 2835+ }
 2836+ }
 2837+
 2838+ //Post 'activate' events to possible containers
 2839+ if(!noActivation) {
 2840+ for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i]._propagate("activate", e, this); }
 2841+ }
 2842+
 2843+ //Prepare possible droppables
 2844+ if($.ui.ddmanager) $.ui.ddmanager.current = this;
 2845+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
 2846+
 2847+ this.dragging = true;
 2848+
 2849+ this._mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
 2850+ return true;
 2851+
 2852+
 2853+ },
 2854+
 2855+ _convertPositionTo: function(d, pos) {
 2856+ if(!pos) pos = this.position;
 2857+ var mod = d == "absolute" ? 1 : -1;
 2858+ return {
 2859+ top: (
 2860+ pos.top // the calculated relative position
 2861+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
 2862+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position
 2863+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
 2864+ ),
 2865+ left: (
 2866+ pos.left // the calculated relative position
 2867+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
 2868+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position
 2869+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
 2870+ )
 2871+ };
 2872+ },
 2873+
 2874+ _generatePosition: function(e) {
 2875+
 2876+ var o = this.options;
 2877+ var position = {
 2878+ top: (
 2879+ e.pageY // The absolute mouse position
 2880+ - this.offset.click.top // Click offset (relative to the element)
 2881+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
 2882+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed
 2883+ ),
 2884+ left: (
 2885+ e.pageX // The absolute mouse position
 2886+ - this.offset.click.left // Click offset (relative to the element)
 2887+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
 2888+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed
 2889+ )
 2890+ };
 2891+
 2892+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
 2893+
 2894+ /*
 2895+ * - Position constraining -
 2896+ * Constrain the position to a mix of grid, containment.
 2897+ */
 2898+ if(this.containment) {
 2899+ if(position.left < this.containment[0]) position.left = this.containment[0];
 2900+ if(position.top < this.containment[1]) position.top = this.containment[1];
 2901+ if(position.left > this.containment[2]) position.left = this.containment[2];
 2902+ if(position.top > this.containment[3]) position.top = this.containment[3];
 2903+ }
 2904+
 2905+ if(o.grid) {
 2906+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
 2907+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
 2908+
 2909+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
 2910+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
 2911+ }
 2912+
 2913+ return position;
 2914+ },
 2915+
 2916+ _mouseDrag: function(e) {
 2917+
 2918+ //Compute the helpers position
 2919+ this.position = this._generatePosition(e);
 2920+ this.positionAbs = this._convertPositionTo("absolute");
 2921+
 2922+ //Call the internal plugins
 2923+ $.ui.plugin.call(this, "sort", [e, this.ui()]);
 2924+
 2925+ //Regenerate the absolute position used for position checks
 2926+ this.positionAbs = this._convertPositionTo("absolute");
 2927+
 2928+ //Set the helper's position
 2929+ this.helper[0].style.left = this.position.left+'px';
 2930+ this.helper[0].style.top = this.position.top+'px';
 2931+
 2932+ //Rearrange
 2933+ for (var i = this.items.length - 1; i >= 0; i--) {
 2934+ var intersection = this._intersectsWithEdge(this.items[i]);
 2935+ if(!intersection) continue;
 2936+
 2937+ if(this.items[i].item[0] != this.currentItem[0] //cannot intersect with itself
 2938+ && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != this.items[i].item[0] //no useless actions that have been done before
 2939+ && !contains(this.placeholder[0], this.items[i].item[0]) //no action if the item moved is the parent of the item checked
 2940+ && (this.options.type == 'semi-dynamic' ? !contains(this.element[0], this.items[i].item[0]) : true)
 2941+ ) {
 2942+
 2943+ this.updateOriginalPosition = this._generatePosition(e);
 2944+
 2945+ this.direction = intersection == 1 ? "down" : "up";
 2946+ this.options.sortIndicator.call(this, e, this.items[i]);
 2947+ this._propagate("change", e); //Call plugins and callbacks
 2948+ break;
 2949+ }
 2950+ }
 2951+
 2952+ //Post events to containers
 2953+ this._contactContainers(e);
 2954+
 2955+ //Interconnect with droppables
 2956+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
 2957+
 2958+ //Call callbacks
 2959+ this.element.triggerHandler("sort", [e, this.ui()], this.options["sort"]);
 2960+
 2961+ return false;
 2962+
 2963+ },
 2964+
 2965+ _rearrange: function(e, i, a, hardRefresh) {
 2966+
 2967+ a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling));
 2968+
 2969+ //Various things done here to improve the performance:
 2970+ // 1. we create a setTimeout, that calls refreshPositions
 2971+ // 2. on the instance, we have a counter variable, that get's higher after every append
 2972+ // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same
 2973+ // 4. this lets only the last addition to the timeout stack through
 2974+ this.counter = this.counter ? ++this.counter : 1;
 2975+ var self = this, counter = this.counter;
 2976+
 2977+ window.setTimeout(function() {
 2978+ if(counter == self.counter) self.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove
 2979+ },0);
 2980+
 2981+ },
 2982+
 2983+ _mouseStop: function(e, noPropagation) {
 2984+
 2985+ //If we are using droppables, inform the manager about the drop
 2986+ if ($.ui.ddmanager && !this.options.dropBehaviour)
 2987+ $.ui.ddmanager.drop(this, e);
 2988+
 2989+ if(this.options.revert) {
 2990+ var self = this;
 2991+ var cur = self.placeholder.offset();
 2992+
 2993+ $(this.helper).animate({
 2994+ left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
 2995+ top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
 2996+ }, parseInt(this.options.revert, 10) || 500, function() {
 2997+ self._clear(e);
 2998+ });
 2999+ } else {
 3000+ this._clear(e, noPropagation);
 3001+ }
 3002+
 3003+ return false;
 3004+
 3005+ },
 3006+
 3007+ _clear: function(e, noPropagation) {
 3008+
 3009+ //We first have to update the dom position of the actual currentItem
 3010+ if(!this._noFinalSort) this.placeholder.before(this.currentItem);
 3011+ this._noFinalSort = null;
 3012+
 3013+ if(this.options.helper == "original")
 3014+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
 3015+ else
 3016+ this.currentItem.show();
 3017+
 3018+ if(this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) this._propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
 3019+ if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
 3020+ this._propagate("remove", e, null, noPropagation);
 3021+ for (var i = this.containers.length - 1; i >= 0; i--){
 3022+ if(contains(this.containers[i].element[0], this.currentItem[0])) {
 3023+ this.containers[i]._propagate("update", e, this, noPropagation);
 3024+ this.containers[i]._propagate("receive", e, this, noPropagation);
 3025+ }
 3026+ };
 3027+ };
 3028+
 3029+ //Post events to containers
 3030+ for (var i = this.containers.length - 1; i >= 0; i--){
 3031+ this.containers[i]._propagate("deactivate", e, this, noPropagation);
 3032+ if(this.containers[i].containerCache.over) {
 3033+ this.containers[i]._propagate("out", e, this);
 3034+ this.containers[i].containerCache.over = 0;
 3035+ }
 3036+ }
 3037+
 3038+ this.dragging = false;
 3039+ if(this.cancelHelperRemoval) {
 3040+ this._propagate("beforeStop", e, null, noPropagation);
 3041+ this._propagate("stop", e, null, noPropagation);
 3042+ return false;
 3043+ }
 3044+
 3045+ this._propagate("beforeStop", e, null, noPropagation);
 3046+
 3047+ this.placeholder.remove();
 3048+ if(this.options.helper != "original") this.helper.remove(); this.helper = null;
 3049+ this._propagate("stop", e, null, noPropagation);
 3050+
 3051+ return true;
 3052+
 3053+ }
 3054+}));
 3055+
 3056+$.extend($.ui.sortable, {
 3057+ getter: "serialize toArray",
 3058+ defaults: {
 3059+ helper: "original",
 3060+ tolerance: "guess",
 3061+ distance: 1,
 3062+ delay: 0,
 3063+ scroll: true,
 3064+ scrollSensitivity: 20,
 3065+ scrollSpeed: 20,
 3066+ cancel: ":input",
 3067+ items: '> *',
 3068+ zIndex: 1000,
 3069+ dropOnEmpty: true,
 3070+ appendTo: "parent",
 3071+ sortIndicator: $.ui.sortable.prototype._rearrange,
 3072+ scope: "default"
 3073+ }
 3074+});
 3075+
 3076+/*
 3077+ * Sortable Extensions
 3078+ */
 3079+
 3080+$.ui.plugin.add("sortable", "cursor", {
 3081+ start: function(e, ui) {
 3082+ var t = $('body');
 3083+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
 3084+ t.css("cursor", ui.options.cursor);
 3085+ },
 3086+ beforeStop: function(e, ui) {
 3087+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
 3088+ }
 3089+});
 3090+
 3091+$.ui.plugin.add("sortable", "zIndex", {
 3092+ start: function(e, ui) {
 3093+ var t = ui.helper;
 3094+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
 3095+ t.css('zIndex', ui.options.zIndex);
 3096+ },
 3097+ beforeStop: function(e, ui) {
 3098+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
 3099+ }
 3100+});
 3101+
 3102+$.ui.plugin.add("sortable", "opacity", {
 3103+ start: function(e, ui) {
 3104+ var t = ui.helper;
 3105+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
 3106+ t.css('opacity', ui.options.opacity);
 3107+ },
 3108+ beforeStop: function(e, ui) {
 3109+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
 3110+ }
 3111+});
 3112+
 3113+$.ui.plugin.add("sortable", "scroll", {
 3114+ start: function(e, ui) {
 3115+ var o = ui.options;
 3116+ var i = $(this).data("sortable");
 3117+
 3118+ i.overflowY = function(el) {
 3119+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
 3120+ return $(document);
 3121+ }(i.currentItem);
 3122+ i.overflowX = function(el) {
 3123+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
 3124+ return $(document);
 3125+ }(i.currentItem);
 3126+
 3127+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
 3128+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
 3129+
 3130+ },
 3131+ sort: function(e, ui) {
 3132+
 3133+ var o = ui.options;
 3134+ var i = $(this).data("sortable");
 3135+
 3136+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
 3137+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
 3138+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
 3139+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
 3140+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
 3141+ } else {
 3142+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
 3143+ $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
 3144+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
 3145+ $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
 3146+ }
 3147+
 3148+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
 3149+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
 3150+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
 3151+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
 3152+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
 3153+ } else {
 3154+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
 3155+ $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
 3156+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
 3157+ $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
 3158+ }
 3159+
 3160+ }
 3161+});
 3162+
 3163+$.ui.plugin.add("sortable", "axis", {
 3164+ sort: function(e, ui) {
 3165+
 3166+ var i = $(this).data("sortable");
 3167+
 3168+ if(ui.options.axis == "y") i.position.left = i.originalPosition.left;
 3169+ if(ui.options.axis == "x") i.position.top = i.originalPosition.top;
 3170+
 3171+ }
 3172+});
 3173+
 3174+})(jQuery);
 3175+/*
 3176+ * jQuery UI Autocomplete @VERSION
 3177+ *
 3178+ * Copyright (c) 2007, 2008 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
 3179+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 3180+ * and GPL (GPL-LICENSE.txt) licenses.
 3181+ *
 3182+ * http://docs.jquery.com/UI/Autocomplete
 3183+ *
 3184+ * Depends:
 3185+ * ui.core.js
 3186+ */
 3187+(function($) {
 3188+
 3189+$.widget("ui.autocomplete", {
 3190+
 3191+ _init: function() {
 3192+
 3193+ $.extend(this.options, {
 3194+ delay: this.options.url ? $.Autocompleter.defaults.delay : 10,
 3195+ max: !this.options.scroll ? 10 : 150,
 3196+ highlight: this.options.highlight || function(value) { return value; }, // if highlight is set to false, replace it with a do-nothing function
 3197+ formatMatch: this.options.formatMatch || this.options.formatItem // if the formatMatch option is not specified, then use formatItem for backwards compatibility
 3198+ });
 3199+
 3200+ new $.Autocompleter(this.element[0], this.options);
 3201+
 3202+ },
 3203+
 3204+ result: function(handler) {
 3205+ return this.element.bind("result", handler);
 3206+ },
 3207+ search: function(handler) {
 3208+ return this.element.trigger("search", [handler]);
 3209+ },
 3210+ flushCache: function() {
 3211+ return this.element.trigger("flushCache");
 3212+ },
 3213+ setData: function(key, value){
 3214+ return this.element.trigger("setOptions", [{ key: value }]);
 3215+ },
 3216+ destroy: function() {
 3217+ return this.element.trigger("unautocomplete");
 3218+ }
 3219+
 3220+});
 3221+
 3222+$.Autocompleter = function(input, options) {
 3223+
 3224+ var KEY = {
 3225+ UP: 38,
 3226+ DOWN: 40,
 3227+ DEL: 46,
 3228+ TAB: 9,
 3229+ RETURN: 13,
 3230+ ESC: 27,
 3231+ COMMA: 188,
 3232+ PAGEUP: 33,
 3233+ PAGEDOWN: 34,
 3234+ BACKSPACE: 8
 3235+ };
 3236+
 3237+ // Create $ object for input element
 3238+ var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass);
 3239+ if(options.result) $input.bind('result.autocomplete', options.result);
 3240+
 3241+ var timeout;
 3242+ var previousValue = "";
 3243+ var cache = $.Autocompleter.Cache(options);
 3244+ var hasFocus = 0;
 3245+ var lastKeyPressCode;
 3246+ var config = {
 3247+ mouseDownOnSelect: false
 3248+ };
 3249+ var select = $.Autocompleter.Select(options, input, selectCurrent, config);
 3250+
 3251+ var blockSubmit;
 3252+
 3253+ // prevent form submit in opera when selecting with return key
 3254+ $.browser.opera && $(input.form).bind("submit.autocomplete", function() {
 3255+ if (blockSubmit) {
 3256+ blockSubmit = false;
 3257+ return false;
 3258+ }
 3259+ });
 3260+
 3261+ // only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all
 3262+ $input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) {
 3263+ // track last key pressed
 3264+ lastKeyPressCode = event.keyCode;
 3265+ switch(event.keyCode) {
 3266+
 3267+ case KEY.UP:
 3268+ event.preventDefault();
 3269+ if ( select.visible() ) {
 3270+ select.prev();
 3271+ } else {
 3272+ onChange(0, true);
 3273+ }
 3274+ break;
 3275+
 3276+ case KEY.DOWN:
 3277+ event.preventDefault();
 3278+ if ( select.visible() ) {
 3279+ select.next();
 3280+ } else {
 3281+ onChange(0, true);
 3282+ }
 3283+ break;
 3284+
 3285+ case KEY.PAGEUP:
 3286+ event.preventDefault();
 3287+ if ( select.visible() ) {
 3288+ select.pageUp();
 3289+ } else {
 3290+ onChange(0, true);
 3291+ }
 3292+ break;
 3293+
 3294+ case KEY.PAGEDOWN:
 3295+ event.preventDefault();
 3296+ if ( select.visible() ) {
 3297+ select.pageDown();
 3298+ } else {
 3299+ onChange(0, true);
 3300+ }
 3301+ break;
 3302+
 3303+ // matches also semicolon
 3304+ case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA:
 3305+ case KEY.TAB:
 3306+ case KEY.RETURN:
 3307+ if( selectCurrent() ) {
 3308+ // stop default to prevent a form submit, Opera needs special handling
 3309+ event.preventDefault();
 3310+ blockSubmit = true;
 3311+ return false;
 3312+ }
 3313+ break;
 3314+
 3315+ case KEY.ESC:
 3316+ select.hide();
 3317+ break;
 3318+
 3319+ default:
 3320+ clearTimeout(timeout);
 3321+ timeout = setTimeout(onChange, options.delay);
 3322+ break;
 3323+ }
 3324+ }).focus(function(){
 3325+ // track whether the field has focus, we shouldn't process any
 3326+ // results if the field no longer has focus
 3327+ hasFocus++;
 3328+ }).blur(function() {
 3329+ hasFocus = 0;
 3330+ if (!config.mouseDownOnSelect) {
 3331+ hideResults();
 3332+ }
 3333+ }).click(function() {
 3334+ // show select when clicking in a focused field
 3335+ if ( hasFocus++ > 1 && !select.visible() ) {
 3336+ onChange(0, true);
 3337+ }
 3338+ }).bind("search", function() {
 3339+ // TODO why not just specifying both arguments?
 3340+ var fn = (arguments.length > 1) ? arguments[1] : null;
 3341+ function findValueCallback(q, data) {
 3342+ var result;
 3343+ if( data && data.length ) {
 3344+ for (var i=0; i < data.length; i++) {
 3345+ if( data[i].result.toLowerCase() == q.toLowerCase() ) {
 3346+ result = data[i];
 3347+ break;
 3348+ }
 3349+ }
 3350+ }
 3351+ if( typeof fn == "function" ) fn(result);
 3352+ else $input.trigger("result", result && [result.data, result.value]);
 3353+ }
 3354+ $.each(trimWords($input.val()), function(i, value) {
 3355+ request(value, findValueCallback, findValueCallback);
 3356+ });
 3357+ }).bind("flushCache", function() {
 3358+ cache.flush();
 3359+ }).bind("setOptions", function() {
 3360+ $.extend(options, arguments[1]);
 3361+ // if we've updated the data, repopulate
 3362+ if ( "data" in arguments[1] )
 3363+ cache.populate();
 3364+ }).bind("unautocomplete", function() {
 3365+ select.unbind();
 3366+ $input.unbind();
 3367+ $(input.form).unbind(".autocomplete");
 3368+ });
 3369+
 3370+
 3371+ function selectCurrent() {
 3372+ var selected = select.selected();
 3373+ if( !selected )
 3374+ return false;
 3375+
 3376+ var v = selected.result;
 3377+ previousValue = v;
 3378+
 3379+ if ( options.multiple ) {
 3380+ var words = trimWords($input.val());
 3381+ if ( words.length > 1 ) {
 3382+ v = words.slice(0, words.length - 1).join( options.multipleSeparator ) + options.multipleSeparator + v;
 3383+ }
 3384+ v += options.multipleSeparator;
 3385+ }
 3386+
 3387+ $input.val(v);
 3388+ hideResultsNow();
 3389+ $input.trigger("result", [selected.data, selected.value]);
 3390+ return true;
 3391+ }
 3392+
 3393+ function onChange(crap, skipPrevCheck) {
 3394+ if( lastKeyPressCode == KEY.DEL ) {
 3395+ select.hide();
 3396+ return;
 3397+ }
 3398+
 3399+ var currentValue = $input.val();
 3400+
 3401+ if ( !skipPrevCheck && currentValue == previousValue )
 3402+ return;
 3403+
 3404+ previousValue = currentValue;
 3405+
 3406+ currentValue = lastWord(currentValue);
 3407+ if ( currentValue.length >= options.minChars) {
 3408+ $input.addClass(options.loadingClass);
 3409+ if (!options.matchCase)
 3410+ currentValue = currentValue.toLowerCase();
 3411+ request(currentValue, receiveData, hideResultsNow);
 3412+ } else {
 3413+ stopLoading();
 3414+ select.hide();
 3415+ }
 3416+ };
 3417+
 3418+ function trimWords(value) {
 3419+ if ( !value ) {
 3420+ return [""];
 3421+ }
 3422+ var words = value.split( options.multipleSeparator );
 3423+ var result = [];
 3424+ $.each(words, function(i, value) {
 3425+ if ( $.trim(value) )
 3426+ result[i] = $.trim(value);
 3427+ });
 3428+ return result;
 3429+ }
 3430+
 3431+ function lastWord(value) {
 3432+ if ( !options.multiple )
 3433+ return value;
 3434+ var words = trimWords(value);
 3435+ return words[words.length - 1];
 3436+ }
 3437+
 3438+ // fills in the input box w/the first match (assumed to be the best match)
 3439+ // q: the term entered
 3440+ // sValue: the first matching result
 3441+ function autoFill(q, sValue){
 3442+ // autofill in the complete box w/the first match as long as the user hasn't entered in more data
 3443+ // if the last user key pressed was backspace, don't autofill
 3444+ if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {
 3445+ // fill in the value (keep the case the user has typed)
 3446+ $input.val($input.val() + sValue.substring(lastWord(previousValue).length));
 3447+ // select the portion of the value not typed by the user (so the next character will erase)
 3448+ $.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);
 3449+ }
 3450+ };
 3451+
 3452+ function hideResults() {
 3453+ clearTimeout(timeout);
 3454+ timeout = setTimeout(hideResultsNow, 200);
 3455+ };
 3456+
 3457+ function hideResultsNow() {
 3458+ var wasVisible = select.visible();
 3459+ select.hide();
 3460+ clearTimeout(timeout);
 3461+ stopLoading();
 3462+ if (options.mustMatch) {
 3463+ // call search and run callback
 3464+ $input.autocomplete("search", function (result){
 3465+ // if no value found, clear the input box
 3466+ if( !result ) {
 3467+ if (options.multiple) {
 3468+ var words = trimWords($input.val()).slice(0, -1);
 3469+ $input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );
 3470+ }
 3471+ else
 3472+ $input.val( "" );
 3473+ }
 3474+ }
 3475+ );
 3476+ }
 3477+ if (wasVisible)
 3478+ // position cursor at end of input field
 3479+ $.Autocompleter.Selection(input, input.value.length, input.value.length);
 3480+ };
 3481+
 3482+ function receiveData(q, data) {
 3483+ if ( data && data.length && hasFocus ) {
 3484+ stopLoading();
 3485+ select.display(data, q);
 3486+ autoFill(q, data[0].value);
 3487+ select.show();
 3488+ } else {
 3489+ hideResultsNow();
 3490+ }
 3491+ };
 3492+
 3493+ function request(term, success, failure) {
 3494+ if (!options.matchCase)
 3495+ term = term.toLowerCase();
 3496+ var data = cache.load(term);
 3497+ // recieve the cached data
 3498+ if (data && data.length) {
 3499+ success(term, data);
 3500+ // if an AJAX url has been supplied, try loading the data now
 3501+
 3502+ } else if( (typeof options.url == "string") && (options.url.length > 0) ){
 3503+
 3504+ var extraParams = {
 3505+ timestamp: +new Date()
 3506+ };
 3507+ $.each(options.extraParams, function(key, param) {
 3508+ extraParams[key] = typeof param == "function" ? param() : param;
 3509+ });
 3510+
 3511+ $.ajax({
 3512+ // try to leverage ajaxQueue plugin to abort previous requests
 3513+ mode: "abort",
 3514+ // limit abortion to this input
 3515+ port: "autocomplete" + input.name,
 3516+ dataType: options.dataType,
 3517+ url: options.url,
 3518+ data: $.extend({
 3519+ q: lastWord(term),
 3520+ limit: options.max
 3521+ }, extraParams),
 3522+ success: function(data) {
 3523+ var parsed = options.parse && options.parse(data) || parse(data);
 3524+ cache.add(term, parsed);
 3525+ success(term, parsed);
 3526+ }
 3527+ });
 3528+ }
 3529+
 3530+ else if (options.source && typeof options.source == 'function') {
 3531+ var resultData = options.source(term);
 3532+ var parsed = (options.parse) ? options.parse(resultData) : resultData;
 3533+
 3534+ cache.add(term, parsed);
 3535+ success(term, parsed);
 3536+ } else {
 3537+ // if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match
 3538+ select.emptyList();
 3539+ failure(term);
 3540+ }
 3541+ };
 3542+
 3543+ function parse(data) {
 3544+ var parsed = [];
 3545+ var rows = data.split("\n");
 3546+ for (var i=0; i < rows.length; i++) {
 3547+ var row = $.trim(rows[i]);
 3548+ if (row) {
 3549+ row = row.split("|");
 3550+ parsed[parsed.length] = {
 3551+ data: row,
 3552+ value: row[0],
 3553+ result: options.formatResult && options.formatResult(row, row[0]) || row[0]
 3554+ };
 3555+ }
 3556+ }
 3557+ return parsed;
 3558+ };
 3559+
 3560+ function stopLoading() {
 3561+ $input.removeClass(options.loadingClass);
 3562+ };
 3563+
 3564+};
 3565+
 3566+$.Autocompleter.defaults = {
 3567+ inputClass: "ui-autocomplete-input",
 3568+ resultsClass: "ui-autocomplete-results",
 3569+ loadingClass: "ui-autocomplete-loading",
 3570+ minChars: 1,
 3571+ delay: 400,
 3572+ matchCase: false,
 3573+ matchSubset: true,
 3574+ matchContains: false,
 3575+ cacheLength: 10,
 3576+ max: 100,
 3577+ mustMatch: false,
 3578+ extraParams: {},
 3579+ selectFirst: true,
 3580+ formatItem: function(row) { return row[0]; },
 3581+ formatMatch: null,
 3582+ autoFill: false,
 3583+ width: 0,
 3584+ multiple: false,
 3585+ multipleSeparator: ", ",
 3586+ highlight: function(value, term) {
 3587+ return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
 3588+ },
 3589+ scroll: true,
 3590+ scrollHeight: 180
 3591+};
 3592+
 3593+$.extend($.ui.autocomplete, {
 3594+ defaults: $.Autocompleter.defaults
 3595+});
 3596+
 3597+$.Autocompleter.Cache = function(options) {
 3598+
 3599+ var data = {};
 3600+ var length = 0;
 3601+
 3602+ function matchSubset(s, sub) {
 3603+ if (!options.matchCase)
 3604+ s = s.toLowerCase();
 3605+ var i = s.indexOf(sub);
 3606+ if (i == -1) return false;
 3607+ return i == 0 || options.matchContains;
 3608+ };
 3609+
 3610+ function add(q, value) {
 3611+ if (length > options.cacheLength){
 3612+ flush();
 3613+ }
 3614+ if (!data[q]){
 3615+ length++;
 3616+ }
 3617+ data[q] = value;
 3618+ }
 3619+
 3620+ function populate(){
 3621+ if( !options.data ) return false;
 3622+ // track the matches
 3623+ var stMatchSets = {},
 3624+ nullData = 0;
 3625+
 3626+ // no url was specified, we need to adjust the cache length to make sure it fits the local data store
 3627+ if( !options.url ) options.cacheLength = 1;
 3628+
 3629+ // track all options for minChars = 0
 3630+ stMatchSets[""] = [];
 3631+
 3632+ // loop through the array and create a lookup structure
 3633+ for ( var i = 0, ol = options.data.length; i < ol; i++ ) {
 3634+ var rawValue = options.data[i];
 3635+ // if rawValue is a string, make an array otherwise just reference the array
 3636+ rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue;
 3637+
 3638+ var value = options.formatMatch(rawValue, i+1, options.data.length);
 3639+ if ( value === false )
 3640+ continue;
 3641+
 3642+ var firstChar = value.charAt(0).toLowerCase();
 3643+ // if no lookup array for this character exists, look it up now
 3644+ if( !stMatchSets[firstChar] )
 3645+ stMatchSets[firstChar] = [];
 3646+
 3647+ // if the match is a string
 3648+ var row = {
 3649+ value: value,
 3650+ data: rawValue,
 3651+ result: options.formatResult && options.formatResult(rawValue) || value
 3652+ };
 3653+
 3654+ // push the current match into the set list
 3655+ stMatchSets[firstChar].push(row);
 3656+
 3657+ // keep track of minChars zero items
 3658+ if ( nullData++ < options.max ) {
 3659+ stMatchSets[""].push(row);
 3660+ }
 3661+ };
 3662+
 3663+ // add the data items to the cache
 3664+ $.each(stMatchSets, function(i, value) {
 3665+ // increase the cache size
 3666+ options.cacheLength++;
 3667+ // add to the cache
 3668+ add(i, value);
 3669+ });
 3670+ }
 3671+
 3672+ // populate any existing data
 3673+ setTimeout(populate, 25);
 3674+
 3675+ function flush(){
 3676+ data = {};
 3677+ length = 0;
 3678+ }
 3679+
 3680+ return {
 3681+ flush: flush,
 3682+ add: add,
 3683+ populate: populate,
 3684+ load: function(q) {
 3685+ if (!options.cacheLength || !length)
 3686+ return null;
 3687+ /*
 3688+ * if dealing w/local data and matchContains than we must make sure
 3689+ * to loop through all the data collections looking for matches
 3690+ */
 3691+ if( !options.url && options.matchContains ){
 3692+ // track all matches
 3693+ var csub = [];
 3694+ // loop through all the data grids for matches
 3695+ for( var k in data ){
 3696+ // don't search through the stMatchSets[""] (minChars: 0) cache
 3697+ // this prevents duplicates
 3698+ if( k.length > 0 ){
 3699+ var c = data[k];
 3700+ $.each(c, function(i, x) {
 3701+ // if we've got a match, add it to the array
 3702+ if (matchSubset(x.value, q)) {
 3703+ csub.push(x);
 3704+ }
 3705+ });
 3706+ }
 3707+ }
 3708+ return csub;
 3709+ } else
 3710+ // if the exact item exists, use it
 3711+ if (data[q]){
 3712+ return data[q];
 3713+ } else
 3714+ if (options.matchSubset) {
 3715+ for (var i = q.length - 1; i >= options.minChars; i--) {
 3716+ var c = data[q.substr(0, i)];
 3717+ if (c) {
 3718+ var csub = [];
 3719+ $.each(c, function(i, x) {
 3720+ if (matchSubset(x.value, q)) {
 3721+ csub[csub.length] = x;
 3722+ }
 3723+ });
 3724+ return csub;
 3725+ }
 3726+ }
 3727+ }
 3728+ return null;
 3729+ }
 3730+ };
 3731+};
 3732+
 3733+$.Autocompleter.Select = function (options, input, select, config) {
 3734+ var CLASSES = {
 3735+ ACTIVE: "ui-autocomplete-over"
 3736+ };
 3737+
 3738+ var listItems,
 3739+ active = -1,
 3740+ data,
 3741+ term = "",
 3742+ needsInit = true,
 3743+ element,
 3744+ list;
 3745+
 3746+ // Create results
 3747+ function init() {
 3748+ if (!needsInit)
 3749+ return;
 3750+ element = $("<div/>")
 3751+ .hide()
 3752+ .addClass(options.resultsClass)
 3753+ .css("position", "absolute")
 3754+ .appendTo(document.body);
 3755+
 3756+ list = $("<ul/>").appendTo(element).mouseover( function(event) {
 3757+ if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
 3758+ active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
 3759+ $(target(event)).addClass(CLASSES.ACTIVE);
 3760+ }
 3761+ }).click(function(event) {
 3762+ $(target(event)).addClass(CLASSES.ACTIVE);
 3763+ select();
 3764+ // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
 3765+ input.focus();
 3766+ return false;
 3767+ }).mousedown(function() {
 3768+ config.mouseDownOnSelect = true;
 3769+ }).mouseup(function() {
 3770+ config.mouseDownOnSelect = false;
 3771+ });
 3772+
 3773+ if( options.width > 0 )
 3774+ element.css("width", options.width);
 3775+
 3776+ needsInit = false;
 3777+ }
 3778+
 3779+ function target(event) {
 3780+ var element = event.target;
 3781+ while(element && element.tagName != "LI")
 3782+ element = element.parentNode;
 3783+ // more fun with IE, sometimes event.target is empty, just ignore it then
 3784+ if(!element)
 3785+ return [];
 3786+ return element;
 3787+ }
 3788+
 3789+ function moveSelect(step) {
 3790+ listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);
 3791+ movePosition(step);
 3792+ var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);
 3793+ if(options.scroll) {
 3794+ var offset = 0;
 3795+ listItems.slice(0, active).each(function() {
 3796+ offset += this.offsetHeight;
 3797+ });
 3798+ if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) {
 3799+ list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());
 3800+ } else if(offset < list.scrollTop()) {
 3801+ list.scrollTop(offset);
 3802+ }
 3803+ }
 3804+ };
 3805+
 3806+ function movePosition(step) {
 3807+ active += step;
 3808+ if (active < 0) {
 3809+ active = listItems.size() - 1;
 3810+ } else if (active >= listItems.size()) {
 3811+ active = 0;
 3812+ }
 3813+ }
 3814+
 3815+ function limitNumberOfItems(available) {
 3816+ return options.max && options.max < available
 3817+ ? options.max
 3818+ : available;
 3819+ }
 3820+
 3821+ function fillList() {
 3822+ list.empty();
 3823+ var max = limitNumberOfItems(data.length);
 3824+ for (var i=0; i < max; i++) {
 3825+ if (!data[i])
 3826+ continue;
 3827+ var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);
 3828+ if ( formatted === false )
 3829+ continue;
 3830+ var li = $("<li/>").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ui-autocomplete-even" : "ui-autocomplete-odd").appendTo(list)[0];
 3831+ $.data(li, "ui-autocomplete-data", data[i]);
 3832+ }
 3833+ listItems = list.find("li");
 3834+ if ( options.selectFirst ) {
 3835+ listItems.slice(0, 1).addClass(CLASSES.ACTIVE);
 3836+ active = 0;
 3837+ }
 3838+ // apply bgiframe if available
 3839+ if ( $.fn.bgiframe )
 3840+ list.bgiframe();
 3841+ }
 3842+
 3843+ return {
 3844+ display: function(d, q) {
 3845+ init();
 3846+ data = d;
 3847+ term = q;
 3848+ fillList();
 3849+ },
 3850+ next: function() {
 3851+ moveSelect(1);
 3852+ },
 3853+ prev: function() {
 3854+ moveSelect(-1);
 3855+ },
 3856+ pageUp: function() {
 3857+ if (active != 0 && active - 8 < 0) {
 3858+ moveSelect( -active );
 3859+ } else {
 3860+ moveSelect(-8);
 3861+ }
 3862+ },
 3863+ pageDown: function() {
 3864+ if (active != listItems.size() - 1 && active + 8 > listItems.size()) {
 3865+ moveSelect( listItems.size() - 1 - active );
 3866+ } else {
 3867+ moveSelect(8);
 3868+ }
 3869+ },
 3870+ hide: function() {
 3871+ element && element.hide();
 3872+ listItems && listItems.removeClass(CLASSES.ACTIVE)
 3873+ active = -1;
 3874+ $(input).triggerHandler("autocompletehide", [{}, { options: options }], options["hide"]);
 3875+ },
 3876+ visible : function() {
 3877+ return element && element.is(":visible");
 3878+ },
 3879+ current: function() {
 3880+ return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);
 3881+ },
 3882+ show: function() {
 3883+ var offset = $(input).offset();
 3884+ element.css({
 3885+ width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
 3886+ top: offset.top + input.offsetHeight,
 3887+ left: offset.left
 3888+ }).show();
 3889+
 3890+ if(options.scroll) {
 3891+ list.scrollTop(0);
 3892+ list.css({
 3893+ maxHeight: options.scrollHeight,
 3894+ overflow: 'auto'
 3895+ });
 3896+
 3897+ if($.browser.msie && typeof document.body.style.maxHeight === "undefined") {
 3898+ var listHeight = 0;
 3899+ listItems.each(function() {
 3900+ listHeight += this.offsetHeight;
 3901+ });
 3902+ var scrollbarsVisible = listHeight > options.scrollHeight;
 3903+ list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );
 3904+ if (!scrollbarsVisible) {
 3905+ // IE doesn't recalculate width when scrollbar disappears
 3906+ listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );
 3907+ }
 3908+ }
 3909+
 3910+ }
 3911+
 3912+ $(input).triggerHandler("autocompleteshow", [{}, { options: options }], options["show"]);
 3913+
 3914+ },
 3915+ selected: function() {
 3916+ var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);
 3917+ return selected && selected.length && $.data(selected[0], "ui-autocomplete-data");
 3918+ },
 3919+ emptyList: function (){
 3920+ list && list.empty();
 3921+ },
 3922+ unbind: function() {
 3923+ element && element.remove();
 3924+ }
 3925+ };
 3926+};
 3927+
 3928+$.Autocompleter.Selection = function(field, start, end) {
 3929+ if( field.createTextRange ){
 3930+ var selRange = field.createTextRange();
 3931+ selRange.collapse(true);
 3932+ selRange.moveStart("character", start);
 3933+ selRange.moveEnd("character", end);
 3934+ selRange.select();
 3935+ } else if( field.setSelectionRange ){
 3936+ field.setSelectionRange(start, end);
 3937+ } else {
 3938+ if( field.selectionStart ){
 3939+ field.selectionStart = start;
 3940+ field.selectionEnd = end;
 3941+ }
 3942+ }
 3943+ field.focus();
 3944+};
 3945+
 3946+})(jQuery);
 3947+/*
 3948+ * jQuery UI Color Picker @VERSION
 3949+ *
 3950+ * Copyright (c) 2008 Stefan Petre, Paul Bakaus
 3951+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 3952+ * and GPL (GPL-LICENSE.txt) licenses.
 3953+ *
 3954+ * http://docs.jquery.com/UI/ColorPicker
 3955+ *
 3956+ * Depends:
 3957+ * ui.core.js
 3958+ */
 3959+(function ($) {
 3960+
 3961+$.widget("ui.colorpicker", {
 3962+
 3963+ _init: function() {
 3964+
 3965+ this.charMin = 65;
 3966+ var o = this.options, self = this,
 3967+ tpl = '<div class="ui-colorpicker clearfix"><div class="ui-colorpicker-color"><div><div></div></div></div><div class="ui-colorpicker-hue"><div></div></div><div class="ui-colorpicker-new-color"></div><div class="ui-colorpicker-current-color"></div><div class="ui-colorpicker-hex"><label for="ui-colorpicker-hex" title="hex"></label><input type="text" maxlength="6" size="6" /></div><div class="ui-colorpicker-rgb-r ui-colorpicker-field"><label for="ui-colorpicker-rgb-r"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-rgb-g ui-colorpicker-field"><label for="ui-colorpicker-rgb-g"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-rgb-b ui-colorpicker-field"><label for="ui-colorpicker-rgb-b"</label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-h ui-colorpicker-field"><label for="ui-colorpicker-hsb-h"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-s ui-colorpicker-field"><label for="ui-colorpicker-hsb-s"></label><input type="text" maxlength="3" size="2" /><span></span></div><div class="ui-colorpicker-hsb-b ui-colorpicker-field"><label for="ui-colorpicker-hsb-b"></label><input type="text" maxlength="3" size="2" /><span></span></div><button class="ui-colorpicker-submit ui-default-state" name="submit" type="button">Done</button></div>';
 3968+
 3969+ if (typeof o.color == 'string') {
 3970+ this.color = this._HexToHSB(o.color);
 3971+ } else if (o.color.r != undefined && o.color.g != undefined && o.color.b != undefined) {
 3972+ this.color = this._RGBToHSB(o.color);
 3973+ } else if (o.color.h != undefined && o.color.s != undefined && o.color.b != undefined) {
 3974+ this.color = this._fixHSB(o.color);
 3975+ } else {
 3976+ return this;
 3977+ }
 3978+
 3979+ this.origColor = this.color;
 3980+ this.picker = $(tpl);
 3981+
 3982+ if (o.flat) {
 3983+ this.picker.appendTo(this.element).show();
 3984+ } else {
 3985+ this.picker.appendTo(document.body);
 3986+ }
 3987+
 3988+ this.fields = this.picker.find('input')
 3989+ .bind('keydown', function(e) { return self._keyDown.call(self, e); })
 3990+ .bind('change', function(e) { return self._change.call(self, e); })
 3991+ .bind('blur', function(e) { return self._blur.call(self, e); })
 3992+ .bind('focus', function(e) { return self._focus.call(self, e); });
 3993+
 3994+ this.picker.find('span').bind('mousedown', function(e) { return self._downIncrement.call(self, e); });
 3995+
 3996+ this.selector = this.picker.find('div.ui-colorpicker-color').bind('mousedown', function(e) { return self._downSelector.call(self, e); });
 3997+ this.selectorIndic = this.selector.find('div div');
 3998+ this.hue = this.picker.find('div.ui-colorpicker-hue div');
 3999+ this.picker.find('div.ui-colorpicker-hue').bind('mousedown', function(e) { return self._downHue.call(self, e); });
 4000+
 4001+ this.newColor = this.picker.find('div.ui-colorpicker-new-color');
 4002+ this.currentColor = this.picker.find('div.ui-colorpicker-current-color');
 4003+
 4004+ this.picker.find('.ui-colorpicker-submit')
 4005+ .bind('mouseenter', function(e) { return self._enterSubmit.call(self, e); })
 4006+ .bind('mouseleave', function(e) { return self._leaveSubmit.call(self, e); })
 4007+ .bind('click', function(e) { return self._clickSubmit.call(self, e); });
 4008+
 4009+ this._fillRGBFields(this.color);
 4010+ this._fillHSBFields(this.color);
 4011+ this._fillHexFields(this.color);
 4012+ this._setHue(this.color);
 4013+ this._setSelector(this.color);
 4014+ this._setCurrentColor(this.color);
 4015+ this._setNewColor(this.color);
 4016+
 4017+ if (o.flat) {
 4018+ this.picker.css({
 4019+ position: 'relative',
 4020+ display: 'block'
 4021+ });
 4022+ } else {
 4023+ $(this.element).bind(o.eventName+".colorpicker", function(e) { return self._show.call(self, e); });
 4024+ }
 4025+
 4026+ },
 4027+
 4028+ destroy: function() {
 4029+
 4030+ this.picker.remove();
 4031+ this.element.removeData("colorpicker").unbind(".colorpicker");
 4032+
 4033+ },
 4034+
 4035+ _fillRGBFields: function(hsb) {
 4036+ var rgb = this._HSBToRGB(hsb);
 4037+ this.fields
 4038+ .eq(1).val(rgb.r).end()
 4039+ .eq(2).val(rgb.g).end()
 4040+ .eq(3).val(rgb.b).end();
 4041+ },
 4042+ _fillHSBFields: function(hsb) {
 4043+ this.fields
 4044+ .eq(4).val(hsb.h).end()
 4045+ .eq(5).val(hsb.s).end()
 4046+ .eq(6).val(hsb.b).end();
 4047+ },
 4048+ _fillHexFields: function (hsb) {
 4049+ this.fields
 4050+ .eq(0).val(this._HSBToHex(hsb)).end();
 4051+ },
 4052+ _setSelector: function(hsb) {
 4053+ this.selector.css('backgroundColor', '#' + this._HSBToHex({h: hsb.h, s: 100, b: 100}));
 4054+ this.selectorIndic.css({
 4055+ left: parseInt(150 * hsb.s/100, 10),
 4056+ top: parseInt(150 * (100-hsb.b)/100, 10)
 4057+ });
 4058+ },
 4059+ _setHue: function(hsb) {
 4060+ this.hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
 4061+ },
 4062+ _setCurrentColor: function(hsb) {
 4063+ this.currentColor.css('backgroundColor', '#' + this._HSBToHex(hsb));
 4064+ },
 4065+ _setNewColor: function(hsb) {
 4066+ this.newColor.css('backgroundColor', '#' + this._HSBToHex(hsb));
 4067+ },
 4068+ _keyDown: function(e) {
 4069+ var pressedKey = e.charCode || e.keyCode || -1;
 4070+ if ((pressedKey >= this.charMin && pressedKey <= 90) || pressedKey == 32) {
 4071+ return false;
 4072+ }
 4073+ },
 4074+ _change: function(e, target) {
 4075+
 4076+ var col;
 4077+ target = target || e.target;
 4078+ if (target.parentNode.className.indexOf('-hex') > 0) {
 4079+ this.color = col = this._HexToHSB(this.value);
 4080+ this._fillRGBFields(col.color);
 4081+ this._fillHSBFields(col);
 4082+ } else if (target.parentNode.className.indexOf('-hsb') > 0) {
 4083+ this.color = col = this._fixHSB({
 4084+ h: parseInt(this.fields.eq(4).val(), 10),
 4085+ s: parseInt(this.fields.eq(5).val(), 10),
 4086+ b: parseInt(this.fields.eq(6).val(), 10)
 4087+ });
 4088+ this._fillRGBFields(col);
 4089+ this._fillHexFields(col);
 4090+ } else {
 4091+ this.color = col = this._RGBToHSB(this._fixRGB({
 4092+ r: parseInt(this.fields.eq(1).val(), 10),
 4093+ g: parseInt(this.fields.eq(2).val(), 10),
 4094+ b: parseInt(this.fields.eq(3).val(), 10)
 4095+ }));
 4096+ this._fillHexFields(col);
 4097+ this._fillHSBFields(col);
 4098+ }
 4099+ this._setSelector(col);
 4100+ this._setHue(col);
 4101+ this._setNewColor(col);
 4102+
 4103+ this._trigger('change', e, { options: this.options, hsb: col, hex: this._HSBToHex(col), rgb: this._HSBToRGB(col) });
 4104+ },
 4105+ _blur: function(e) {
 4106+
 4107+ var col = this.color;
 4108+ this._fillRGBFields(col);
 4109+ this._fillHSBFields(col);
 4110+ this._fillHexFields(col);
 4111+ this._setHue(col);
 4112+ this._setSelector(col);
 4113+ this._setNewColor(col);
 4114+ this.fields.parent().removeClass('ui-colorpicker-focus');
 4115+
 4116+ },
 4117+ _focus: function(e) {
 4118+
 4119+ this.charMin = e.target.parentNode.className.indexOf('-hex') > 0 ? 70 : 65;
 4120+ this.fields.parent().removeClass('ui-colorpicker-focus');
 4121+ $(e.target.parentNode).addClass('ui-colorpicker-focus');
 4122+
 4123+ },
 4124+ _downIncrement: function(e) {
 4125+
 4126+ var field = $(e.target).parent().find('input').focus(), self = this;
 4127+ this.currentIncrement = {
 4128+ el: $(e.target).parent().addClass('ui-colorpicker-slider'),
 4129+ max: e.target.parentNode.className.indexOf('-hsb-h') > 0 ? 360 : (e.target.parentNode.className.indexOf('-hsb') > 0 ? 100 : 255),
 4130+ y: e.pageY,
 4131+ field: field,
 4132+ val: parseInt(field.val(), 10)
 4133+ };
 4134+ $(document).bind('mouseup.cpSlider', function(e) { return self._upIncrement.call(self, e); });
 4135+ $(document).bind('mousemove.cpSlider', function(e) { return self._moveIncrement.call(self, e); });
 4136+ return false;
 4137+
 4138+ },
 4139+ _moveIncrement: function(e) {
 4140+ this.currentIncrement.field.val(Math.max(0, Math.min(this.currentIncrement.max, parseInt(this.currentIncrement.val + e.pageY - this.currentIncrement.y, 10))));
 4141+ this._change.apply(this, [e, this.currentIncrement.field.get(0)]);
 4142+ return false;
 4143+ },
 4144+ _upIncrement: function(e) {
 4145+ this.currentIncrement.el.removeClass('ui-colorpicker-slider').find('input').focus();
 4146+ this._change.apply(this, [e, this.currentIncrement.field.get(0)]);
 4147+ $(document).unbind('mouseup.cpSlider');
 4148+ $(document).unbind('mousemove.cpSlider');
 4149+ return false;
 4150+ },
 4151+ _downHue: function(e) {
 4152+
 4153+ this.currentHue = {
 4154+ y: this.picker.find('div.ui-colorpicker-hue').offset().top
 4155+ };
 4156+
 4157+ this._change.apply(this, [e, this
 4158+ .fields
 4159+ .eq(4)
 4160+ .val(parseInt(360*(150 - Math.max(0,Math.min(150,(e.pageY - this.currentHue.y))))/150, 10))
 4161+ .get(0)]);
 4162+
 4163+ var self = this;
 4164+ $(document).bind('mouseup.cpSlider', function(e) { return self._upHue.call(self, e); });
 4165+ $(document).bind('mousemove.cpSlider', function(e) { return self._moveHue.call(self, e); });
 4166+ return false;
 4167+
 4168+ },
 4169+ _moveHue: function(e) {
 4170+
 4171+ this._change.apply(this, [e, this
 4172+ .fields
 4173+ .eq(4)
 4174+ .val(parseInt(360*(150 - Math.max(0,Math.min(150,(e.pageY - this.currentHue.y))))/150, 10))
 4175+ .get(0)]);
 4176+
 4177+ return false;
 4178+
 4179+ },
 4180+ _upHue: function(e) {
 4181+ $(document).unbind('mouseup.cpSlider');
 4182+ $(document).unbind('mousemove.cpSlider');
 4183+ return false;
 4184+ },
 4185+ _downSelector: function(e) {
 4186+
 4187+ var self = this;
 4188+ this.currentSelector = {
 4189+ pos: this.picker.find('div.ui-colorpicker-color').offset()
 4190+ };
 4191+
 4192+ this._change.apply(this, [e, this
 4193+ .fields
 4194+ .eq(6)
 4195+ .val(parseInt(100*(150 - Math.max(0,Math.min(150,(e.pageY - this.currentSelector.pos.top))))/150, 10))
 4196+ .end()
 4197+ .eq(5)
 4198+ .val(parseInt(100*(Math.max(0,Math.min(150,(e.pageX - this.currentSelector.pos.left))))/150, 10))
 4199+ .get(0)
 4200+ ]);
 4201+ $(document).bind('mouseup.cpSlider', function(e) { return self._upSelector.call(self, e); });
 4202+ $(document).bind('mousemove.cpSlider', function(e) { return self._moveSelector.call(self, e); });
 4203+ return false;
 4204+
 4205+ },
 4206+ _moveSelector: function(e) {
 4207+
 4208+ this._change.apply(this, [e, this
 4209+ .fields
 4210+ .eq(6)
 4211+ .val(parseInt(100*(150 - Math.max(0,Math.min(150,(e.pageY - this.currentSelector.pos.top))))/150, 10))
 4212+ .end()
 4213+ .eq(5)
 4214+ .val(parseInt(100*(Math.max(0,Math.min(150,(e.pageX - this.currentSelector.pos.left))))/150, 10))
 4215+ .get(0)
 4216+ ]);
 4217+ return false;
 4218+
 4219+ },
 4220+ _upSelector: function(e) {
 4221+ $(document).unbind('mouseup.cpSlider');
 4222+ $(document).unbind('mousemove.cpSlider');
 4223+ return false;
 4224+ },
 4225+ _enterSubmit: function(e) {
 4226+ this.picker.find('.ui-colorpicker-submit').addClass('ui-colorpicker-focus');
 4227+ },
 4228+ _leaveSubmit: function(e) {
 4229+ this.picker.find('.ui-colorpicker-submit').removeClass('ui-colorpicker-focus');
 4230+ },
 4231+ _clickSubmit: function(e) {
 4232+
 4233+ var col = this.color;
 4234+ this.origColor = col;
 4235+ this._setCurrentColor(col);
 4236+
 4237+ this._trigger("submit", e, { options: this.options, hsb: col, hex: this._HSBToHex(col), rgb: this._HSBToRGB(col) });
 4238+ return false;
 4239+
 4240+ },
 4241+ _show: function(e) {
 4242+
 4243+ this._trigger("beforeShow", e, { options: this.options, hsb: this.color, hex: this._HSBToHex(this.color), rgb: this._HSBToRGB(this.color) });
 4244+
 4245+ var pos = this.element.offset();
 4246+ var viewPort = this._getScroll();
 4247+ var top = pos.top + this.element[0].offsetHeight;
 4248+ var left = pos.left;
 4249+ if (top + 176 > viewPort.t + Math.min(viewPort.h,viewPort.ih)) {
 4250+ top -= this.element[0].offsetHeight + 176;
 4251+ }
 4252+ if (left + 356 > viewPort.l + Math.min(viewPort.w,viewPort.iw)) {
 4253+ left -= 356;
 4254+ }
 4255+ this.picker.css({left: left + 'px', top: top + 'px'});
 4256+ if (this._trigger("show", e, { options: this.options, hsb: this.color, hex: this._HSBToHex(this.color), rgb: this._HSBToRGB(this.color) }) != false) {
 4257+ this.picker.show();
 4258+ }
 4259+
 4260+ var self = this;
 4261+ $(document).bind('mousedown.colorpicker', function(e) { return self._hide.call(self, e); });
 4262+ return false;
 4263+
 4264+ },
 4265+ _hide: function(e) {
 4266+
 4267+ if (!this._isChildOf(this.picker[0], e.target, this.picker[0])) {
 4268+ if (this._trigger("hide", e, { options: this.options, hsb: this.color, hex: this._HSBToHex(this.color), rgb: this._HSBToRGB(this.color) }) != false) {
 4269+ this.picker.hide();
 4270+ }
 4271+ $(document).unbind('mousedown.colorpicker');
 4272+ }
 4273+
 4274+ },
 4275+ _isChildOf: function(parentEl, el, container) {
 4276+ if (parentEl == el) {
 4277+ return true;
 4278+ }
 4279+ if (parentEl.contains && !$.browser.safari) {
 4280+ return parentEl.contains(el);
 4281+ }
 4282+ if ( parentEl.compareDocumentPosition ) {
 4283+ return !!(parentEl.compareDocumentPosition(el) & 16);
 4284+ }
 4285+ var prEl = el.parentNode;
 4286+ while(prEl && prEl != container) {
 4287+ if (prEl == parentEl)
 4288+ return true;
 4289+ prEl = prEl.parentNode;
 4290+ }
 4291+ return false;
 4292+ },
 4293+ _getScroll: function() {
 4294+ var t,l,w,h,iw,ih;
 4295+ if (document.documentElement) {
 4296+ t = document.documentElement.scrollTop;
 4297+ l = document.documentElement.scrollLeft;
 4298+ w = document.documentElement.scrollWidth;
 4299+ h = document.documentElement.scrollHeight;
 4300+ } else {
 4301+ t = document.body.scrollTop;
 4302+ l = document.body.scrollLeft;
 4303+ w = document.body.scrollWidth;
 4304+ h = document.body.scrollHeight;
 4305+ }
 4306+ iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
 4307+ ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
 4308+ return { t: t, l: l, w: w, h: h, iw: iw, ih: ih };
 4309+ },
 4310+ _fixHSB: function(hsb) {
 4311+ return {
 4312+ h: Math.min(360, Math.max(0, hsb.h)),
 4313+ s: Math.min(100, Math.max(0, hsb.s)),
 4314+ b: Math.min(100, Math.max(0, hsb.b))
 4315+ };
 4316+ },
 4317+ _fixRGB: function(rgb) {
 4318+ return {
 4319+ r: Math.min(255, Math.max(0, rgb.r)),
 4320+ g: Math.min(255, Math.max(0, rgb.g)),
 4321+ b: Math.min(255, Math.max(0, rgb.b))
 4322+ };
 4323+ },
 4324+ _HexToRGB: function (hex) {
 4325+ var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
 4326+ return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};
 4327+ },
 4328+ _HexToHSB: function(hex) {
 4329+ return this._RGBToHSB(this._HexToRGB(hex));
 4330+ },
 4331+ _RGBToHSB: function(rgb) {
 4332+ var hsb = {};
 4333+ hsb.b = Math.max(Math.max(rgb.r,rgb.g),rgb.b);
 4334+ hsb.s = (hsb.b <= 0) ? 0 : Math.round(100*(hsb.b - Math.min(Math.min(rgb.r,rgb.g),rgb.b))/hsb.b);
 4335+ hsb.b = Math.round((hsb.b /255)*100);
 4336+ if((rgb.r==rgb.g) && (rgb.g==rgb.b)) hsb.h = 0;
 4337+ else if(rgb.r>=rgb.g && rgb.g>=rgb.b) hsb.h = 60*(rgb.g-rgb.b)/(rgb.r-rgb.b);
 4338+ else if(rgb.g>=rgb.r && rgb.r>=rgb.b) hsb.h = 60 + 60*(rgb.g-rgb.r)/(rgb.g-rgb.b);
 4339+ else if(rgb.g>=rgb.b && rgb.b>=rgb.r) hsb.h = 120 + 60*(rgb.b-rgb.r)/(rgb.g-rgb.r);
 4340+ else if(rgb.b>=rgb.g && rgb.g>=rgb.r) hsb.h = 180 + 60*(rgb.b-rgb.g)/(rgb.b-rgb.r);
 4341+ else if(rgb.b>=rgb.r && rgb.r>=rgb.g) hsb.h = 240 + 60*(rgb.r-rgb.g)/(rgb.b-rgb.g);
 4342+ else if(rgb.r>=rgb.b && rgb.b>=rgb.g) hsb.h = 300 + 60*(rgb.r-rgb.b)/(rgb.r-rgb.g);
 4343+ else hsb.h = 0;
 4344+ hsb.h = Math.round(hsb.h);
 4345+ return hsb;
 4346+ },
 4347+ _HSBToRGB: function(hsb) {
 4348+ var rgb = {};
 4349+ var h = Math.round(hsb.h);
 4350+ var s = Math.round(hsb.s*255/100);
 4351+ var v = Math.round(hsb.b*255/100);
 4352+ if(s == 0) {
 4353+ rgb.r = rgb.g = rgb.b = v;
 4354+ } else {
 4355+ var t1 = v;
 4356+ var t2 = (255-s)*v/255;
 4357+ var t3 = (t1-t2)*(h%60)/60;
 4358+ if(h==360) h = 0;
 4359+ if(h<60) {rgb.r=t1; rgb.b=t2; rgb.g=t2+t3;}
 4360+ else if(h<120) {rgb.g=t1; rgb.b=t2; rgb.r=t1-t3;}
 4361+ else if(h<180) {rgb.g=t1; rgb.r=t2; rgb.b=t2+t3;}
 4362+ else if(h<240) {rgb.b=t1; rgb.r=t2; rgb.g=t1-t3;}
 4363+ else if(h<300) {rgb.b=t1; rgb.g=t2; rgb.r=t2+t3;}
 4364+ else if(h<360) {rgb.r=t1; rgb.g=t2; rgb.b=t1-t3;}
 4365+ else {rgb.r=0; rgb.g=0; rgb.b=0;}
 4366+ }
 4367+ return {r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b)};
 4368+ },
 4369+ _RGBToHex: function(rgb) {
 4370+ var hex = [
 4371+ rgb.r.toString(16),
 4372+ rgb.g.toString(16),
 4373+ rgb.b.toString(16)
 4374+ ];
 4375+ $.each(hex, function (nr, val) {
 4376+ if (val.length == 1) {
 4377+ hex[nr] = '0' + val;
 4378+ }
 4379+ });
 4380+ return hex.join('');
 4381+ },
 4382+ _HSBToHex: function(hsb) {
 4383+ return this._RGBToHex(this._HSBToRGB(hsb));
 4384+ },
 4385+ setColor: function(col) {
 4386+ if (typeof col == 'string') {
 4387+ col = this._HexToHSB(col);
 4388+ } else if (col.r != undefined && col.g != undefined && col.b != undefined) {
 4389+ col = this._RGBToHSB(col);
 4390+ } else if (col.h != undefined && col.s != undefined && col.b != undefined) {
 4391+ col = this._fixHSB(col);
 4392+ } else {
 4393+ return this;
 4394+ }
 4395+
 4396+ this.color = col;
 4397+ this.origColor = col;
 4398+ this._fillRGBFields(col);
 4399+ this._fillHSBFields(col);
 4400+ this._fillHexFields(col);
 4401+ this._setHue(col);
 4402+ this._setSelector(col);
 4403+ this._setCurrentColor(col);
 4404+ this._setNewColor(col);
 4405+
 4406+ }
 4407+
 4408+});
 4409+
 4410+$.extend($.ui.colorpicker, {
 4411+ defaults: {
 4412+ eventName: 'click',
 4413+ color: 'ff0000',
 4414+ flat: false
 4415+ }
 4416+});
 4417+
 4418+})(jQuery);/*
 4419+ * jQuery UI Slider @VERSION
 4420+ *
 4421+ * Copyright (c) 2008 Paul Bakaus
 4422+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 4423+ * and GPL (GPL-LICENSE.txt) licenses.
 4424+ *
 4425+ * http://docs.jquery.com/UI/Slider
 4426+ *
 4427+ * Depends:
 4428+ * ui.core.js
 4429+ */
 4430+(function($) {
 4431+
 4432+$.fn.unwrap = $.fn.unwrap || function(expr) {
 4433+ return this.each(function(){
 4434+ $(this).parents(expr).eq(0).after(this).remove();
 4435+ });
 4436+};
 4437+
 4438+$.widget("ui.slider", {
 4439+ plugins: {},
 4440+ ui: function(e) {
 4441+ return {
 4442+ options: this.options,
 4443+ handle: this.currentHandle,
 4444+ value: this.options.axis != "both" || !this.options.axis ? Math.round(this.value(null,this.options.axis == "vertical" ? "y" : "x")) : {
 4445+ x: Math.round(this.value(null,"x")),
 4446+ y: Math.round(this.value(null,"y"))
 4447+ },
 4448+ range: this._getRange()
 4449+ };
 4450+ },
 4451+ _propagate: function(n,e) {
 4452+ $.ui.plugin.call(this, n, [e, this.ui()]);
 4453+ this.element.triggerHandler(n == "slide" ? n : "slide"+n, [e, this.ui()], this.options[n]);
 4454+ },
 4455+ destroy: function() {
 4456+
 4457+ this.element
 4458+ .removeClass("ui-slider ui-slider-disabled")
 4459+ .removeData("slider")
 4460+ .unbind(".slider");
 4461+
 4462+ if(this.handle && this.handle.length) {
 4463+ this.handle
 4464+ .unwrap("a");
 4465+ this.handle.each(function() {
 4466+ $(this).data("mouse")._mouseDestroy();
 4467+ });
 4468+ }
 4469+
 4470+ this.generated && this.generated.remove();
 4471+
 4472+ },
 4473+ _setData: function(key, value) {
 4474+ $.widget.prototype._setData.apply(this, arguments);
 4475+ if (/min|max|steps/.test(key)) {
 4476+ this._initBoundaries();
 4477+ }
 4478+
 4479+ if(key == "range") {
 4480+ value ? this.handle.length == 2 && this._createRange() : this._removeRange();
 4481+ }
 4482+
 4483+ },
 4484+
 4485+ _init: function() {
 4486+
 4487+ var self = this;
 4488+ this.element.addClass("ui-slider");
 4489+ this._initBoundaries();
 4490+
 4491+ // Initialize mouse and key events for interaction
 4492+ this.handle = $(this.options.handle, this.element);
 4493+ if (!this.handle.length) {
 4494+ self.handle = self.generated = $(self.options.handles || [0]).map(function() {
 4495+ var handle = $("<div/>").addClass("ui-slider-handle").appendTo(self.element);
 4496+ if (this.id)
 4497+ handle.attr("id", this.id);
 4498+ return handle[0];
 4499+ });
 4500+ }
 4501+
 4502+
 4503+ var handleclass = function(el) {
 4504+ this.element = $(el);
 4505+ this.element.data("mouse", this);
 4506+ this.options = self.options;
 4507+
 4508+ this.element.bind("mousedown", function() {
 4509+ if(self.currentHandle) this.blur(self.currentHandle);
 4510+ self._focus(this, true);
 4511+ });
 4512+
 4513+ this._mouseInit();
 4514+ };
 4515+
 4516+ $.extend(handleclass.prototype, $.ui.mouse, {
 4517+ _mouseStart: function(e) { return self._start.call(self, e, this.element[0]); },
 4518+ _mouseStop: function(e) { return self._stop.call(self, e, this.element[0]); },
 4519+ _mouseDrag: function(e) { return self._drag.call(self, e, this.element[0]); },
 4520+ _mouseCapture: function() { return true; },
 4521+ trigger: function(e) { this._mouseDown(e); }
 4522+ });
 4523+
 4524+
 4525+ $(this.handle)
 4526+ .each(function() {
 4527+ new handleclass(this);
 4528+ })
 4529+ .wrap('<a href="javascript:void(0)" style="outline:none;border:none;"></a>')
 4530+ .parent()
 4531+ .bind('focus', function(e) { self._focus(this.firstChild); })
 4532+ .bind('blur', function(e) { self._blur(this.firstChild); })
 4533+ .bind('keydown', function(e) { if(!self.options.noKeyboard) return self._keydown(e.keyCode, this.firstChild); })
 4534+ ;
 4535+
 4536+ // Bind the click to the slider itself
 4537+ this.element.bind('mousedown.slider', function(e) {
 4538+ self._click.apply(self, [e]);
 4539+ self.currentHandle.data("mouse").trigger(e);
 4540+ self.firstValue = self.firstValue + 1; //This is for always triggering the change event
 4541+ });
 4542+
 4543+ // Move the first handle to the startValue
 4544+ $.each(this.options.handles || [], function(index, handle) {
 4545+ self.moveTo(handle.start, index, true);
 4546+ });
 4547+ if (!isNaN(this.options.startValue))
 4548+ this.moveTo(this.options.startValue, 0, true);
 4549+
 4550+ this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle
 4551+ if(this.handle.length == 2 && this.options.range) this._createRange();
 4552+ },
 4553+ _initBoundaries: function() {
 4554+
 4555+ var element = this.element[0], o = this.options;
 4556+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
 4557+
 4558+ $.extend(o, {
 4559+ axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'),
 4560+ max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }),
 4561+ min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 })
 4562+ });
 4563+ //Prepare the real maxValue
 4564+ o.realMax = {
 4565+ x: o.max.x - o.min.x,
 4566+ y: o.max.y - o.min.y
 4567+ };
 4568+ //Calculate stepping based on steps
 4569+ o.stepping = {
 4570+ x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0),
 4571+ y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0)
 4572+ };
 4573+ },
 4574+
 4575+
 4576+ _keydown: function(keyCode, handle) {
 4577+ var k = keyCode;
 4578+ if(/(33|34|35|36|37|38|39|40)/.test(k)) {
 4579+ var o = this.options, xpos, ypos;
 4580+ if (/(35|36)/.test(k)) {
 4581+ xpos = (k == 35) ? o.max.x : o.min.x;
 4582+ ypos = (k == 35) ? o.max.y : o.min.y;
 4583+ } else {
 4584+ var oper = /(34|37|40)/.test(k) ? "-=" : "+=";
 4585+ var step = /(37|38|39|40)/.test(k) ? "_oneStep" : "_pageStep";
 4586+ xpos = oper + this[step]("x");
 4587+ ypos = oper + this[step]("y");
 4588+ }
 4589+ this.moveTo({
 4590+ x: xpos,
 4591+ y: ypos
 4592+ }, handle);
 4593+ return false;
 4594+ }
 4595+ return true;
 4596+ },
 4597+ _focus: function(handle,hard) {
 4598+ this.currentHandle = $(handle).addClass('ui-slider-handle-active');
 4599+ if (hard)
 4600+ this.currentHandle.parent()[0].focus();
 4601+ },
 4602+ _blur: function(handle) {
 4603+ $(handle).removeClass('ui-slider-handle-active');
 4604+ if(this.currentHandle && this.currentHandle[0] == handle) { this.previousHandle = this.currentHandle; this.currentHandle = null; };
 4605+ },
 4606+ _click: function(e) {
 4607+ // This method is only used if:
 4608+ // - The user didn't click a handle
 4609+ // - The Slider is not disabled
 4610+ // - There is a current, or previous selected handle (otherwise we wouldn't know which one to move)
 4611+
 4612+ var pointer = [e.pageX,e.pageY];
 4613+
 4614+ var clickedHandle = false;
 4615+ this.handle.each(function() {
 4616+ if(this == e.target)
 4617+ clickedHandle = true;
 4618+ });
 4619+ if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))
 4620+ return;
 4621+
 4622+ // If a previous handle was focussed, focus it again
 4623+ if (!this.currentHandle && this.previousHandle)
 4624+ this._focus(this.previousHandle, true);
 4625+
 4626+ // propagate only for distance > 0, otherwise propagation is done my drag
 4627+ this.offset = this.element.offset();
 4628+
 4629+ this.moveTo({
 4630+ y: this._convertValue(e.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"),
 4631+ x: this._convertValue(e.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x")
 4632+ }, null, !this.options.distance);
 4633+ },
 4634+
 4635+
 4636+
 4637+ _createRange: function() {
 4638+ if(this.rangeElement) return;
 4639+ this.rangeElement = $('<div></div>')
 4640+ .addClass('ui-slider-range')
 4641+ .css({ position: 'absolute' })
 4642+ .appendTo(this.element);
 4643+ this._updateRange();
 4644+ },
 4645+ _removeRange: function() {
 4646+ this.rangeElement.remove();
 4647+ this.rangeElement = null;
 4648+ },
 4649+ _updateRange: function() {
 4650+ var prop = this.options.axis == "vertical" ? "top" : "left";
 4651+ var size = this.options.axis == "vertical" ? "height" : "width";
 4652+ this.rangeElement.css(prop, (parseInt($(this.handle[0]).css(prop),10) || 0) + this._handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
 4653+ this.rangeElement.css(size, (parseInt($(this.handle[1]).css(prop),10) || 0) - (parseInt($(this.handle[0]).css(prop),10) || 0));
 4654+ },
 4655+ _getRange: function() {
 4656+ return this.rangeElement ? this._convertValue(parseInt(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width"),10), this.options.axis == "vertical" ? "y" : "x") : null;
 4657+ },
 4658+
 4659+ _handleIndex: function() {
 4660+ return this.handle.index(this.currentHandle[0]);
 4661+ },
 4662+ value: function(handle, axis) {
 4663+ if(this.handle.length == 1) this.currentHandle = this.handle;
 4664+ if(!axis) axis = this.options.axis == "vertical" ? "y" : "x";
 4665+
 4666+ var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle);
 4667+
 4668+ if(curHandle.data("mouse").sliderValue) {
 4669+ return parseInt(curHandle.data("mouse").sliderValue[axis],10);
 4670+ } else {
 4671+ return parseInt(((parseInt(curHandle.css(axis == "x" ? "left" : "top"),10) / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis],10);
 4672+ }
 4673+
 4674+ },
 4675+ _convertValue: function(value,axis) {
 4676+ return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis))) * this.options.realMax[axis];
 4677+ },
 4678+
 4679+ _translateValue: function(value,axis) {
 4680+ return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis));
 4681+ },
 4682+ _translateRange: function(value,axis) {
 4683+ if (this.rangeElement) {
 4684+ if (this.currentHandle[0] == this.handle[0] && value >= this._translateValue(this.value(1),axis))
 4685+ value = this._translateValue(this.value(1,axis) - this._oneStep(axis), axis);
 4686+ if (this.currentHandle[0] == this.handle[1] && value <= this._translateValue(this.value(0),axis))
 4687+ value = this._translateValue(this.value(0,axis) + this._oneStep(axis), axis);
 4688+ }
 4689+ if (this.options.handles) {
 4690+ var handle = this.options.handles[this._handleIndex()];
 4691+ if (value < this._translateValue(handle.min,axis)) {
 4692+ value = this._translateValue(handle.min,axis);
 4693+ } else if (value > this._translateValue(handle.max,axis)) {
 4694+ value = this._translateValue(handle.max,axis);
 4695+ }
 4696+ }
 4697+ return value;
 4698+ },
 4699+ _translateLimits: function(value,axis) {
 4700+ if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis))
 4701+ value = this.actualSize[axis == "x" ? "width" : "height"] - this._handleSize(null,axis);
 4702+ if (value <= 0)
 4703+ value = 0;
 4704+ return value;
 4705+ },
 4706+ _handleSize: function(handle,axis) {
 4707+ return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];
 4708+ },
 4709+ _oneStep: function(axis) {
 4710+ return this.options.stepping[axis] || 1;
 4711+ },
 4712+ _pageStep: function(axis) {
 4713+ return /* this.options.paging[axis] ||*/ 10;
 4714+ },
 4715+
 4716+
 4717+ _start: function(e, handle) {
 4718+
 4719+ var o = this.options;
 4720+ if(o.disabled) return false;
 4721+
 4722+ // Prepare the outer size
 4723+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
 4724+
 4725+ // This is a especially ugly fix for strange blur events happening on mousemove events
 4726+ if (!this.currentHandle)
 4727+ this._focus(this.previousHandle, true);
 4728+
 4729+ this.offset = this.element.offset();
 4730+
 4731+ this.handleOffset = this.currentHandle.offset();
 4732+ this.clickOffset = { top: e.pageY - this.handleOffset.top, left: e.pageX - this.handleOffset.left };
 4733+
 4734+ this.firstValue = this.value();
 4735+
 4736+ this._propagate('start', e);
 4737+ this._drag(e, handle);
 4738+ return true;
 4739+
 4740+ },
 4741+ _stop: function(e) {
 4742+ this._propagate('stop', e);
 4743+ if (this.firstValue != this.value())
 4744+ this._propagate('change', e);
 4745+ // This is a especially ugly fix for strange blur events happening on mousemove events
 4746+ this._focus(this.currentHandle, true);
 4747+ return false;
 4748+ },
 4749+ _drag: function(e, handle) {
 4750+
 4751+ var o = this.options;
 4752+ var position = { top: e.pageY - this.offset.top - this.clickOffset.top, left: e.pageX - this.offset.left - this.clickOffset.left};
 4753+ if(!this.currentHandle) this._focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events
 4754+
 4755+ position.left = this._translateLimits(position.left, "x");
 4756+ position.top = this._translateLimits(position.top, "y");
 4757+
 4758+ if (o.stepping.x) {
 4759+ var value = this._convertValue(position.left, "x");
 4760+ value = Math.round(value / o.stepping.x) * o.stepping.x;
 4761+ position.left = this._translateValue(value, "x");
 4762+ }
 4763+ if (o.stepping.y) {
 4764+ var value = this._convertValue(position.top, "y");
 4765+ value = Math.round(value / o.stepping.y) * o.stepping.y;
 4766+ position.top = this._translateValue(value, "y");
 4767+ }
 4768+
 4769+ position.left = this._translateRange(position.left, "x");
 4770+ position.top = this._translateRange(position.top, "y");
 4771+
 4772+ if(o.axis != "vertical") this.currentHandle.css({ left: position.left });
 4773+ if(o.axis != "horizontal") this.currentHandle.css({ top: position.top });
 4774+
 4775+ //Store the slider's value
 4776+ this.currentHandle.data("mouse").sliderValue = {
 4777+ x: Math.round(this._convertValue(position.left, "x")) || 0,
 4778+ y: Math.round(this._convertValue(position.top, "y")) || 0
 4779+ };
 4780+
 4781+ if (this.rangeElement)
 4782+ this._updateRange();
 4783+ this._propagate('slide', e);
 4784+ return false;
 4785+ },
 4786+
 4787+ moveTo: function(value, handle, noPropagation) {
 4788+
 4789+ var o = this.options;
 4790+
 4791+ // Prepare the outer size
 4792+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
 4793+
 4794+ //If no handle has been passed, no current handle is available and we have multiple handles, return false
 4795+ if (handle == undefined && !this.currentHandle && this.handle.length != 1)
 4796+ return false;
 4797+
 4798+ //If only one handle is available, use it
 4799+ if (handle == undefined && !this.currentHandle)
 4800+ handle = 0;
 4801+
 4802+ if (handle != undefined)
 4803+ this.currentHandle = this.previousHandle = $(this.handle[handle] || handle);
 4804+
 4805+
 4806+ if(value.x !== undefined && value.y !== undefined) {
 4807+ var x = value.x, y = value.y;
 4808+ } else {
 4809+ var x = value, y = value;
 4810+ }
 4811+
 4812+ if(x !== undefined && x.constructor != Number) {
 4813+ var me = /^\-\=/.test(x), pe = /^\+\=/.test(x);
 4814+ if(me || pe) {
 4815+ x = this.value(null, "x") + parseInt(x.replace(me ? '=' : '+=', ''), 10);
 4816+ } else {
 4817+ x = isNaN(parseInt(x, 10)) ? undefined : parseInt(x, 10);
 4818+ }
 4819+ }
 4820+
 4821+ if(y !== undefined && y.constructor != Number) {
 4822+ var me = /^\-\=/.test(y), pe = /^\+\=/.test(y);
 4823+ if(me || pe) {
 4824+ y = this.value(null, "y") + parseInt(y.replace(me ? '=' : '+=', ''), 10);
 4825+ } else {
 4826+ y = isNaN(parseInt(y, 10)) ? undefined : parseInt(y, 10);
 4827+ }
 4828+ }
 4829+
 4830+ if(o.axis != "vertical" && x !== undefined) {
 4831+ if(o.stepping.x) x = Math.round(x / o.stepping.x) * o.stepping.x;
 4832+ x = this._translateValue(x, "x");
 4833+ x = this._translateLimits(x, "x");
 4834+ x = this._translateRange(x, "x");
 4835+
 4836+ o.animate ? this.currentHandle.stop().animate({ left: x }, (Math.abs(parseInt(this.currentHandle.css("left")) - x)) * (!isNaN(parseInt(o.animate)) ? o.animate : 5)) : this.currentHandle.css({ left: x });
 4837+ }
 4838+
 4839+ if(o.axis != "horizontal" && y !== undefined) {
 4840+ if(o.stepping.y) y = Math.round(y / o.stepping.y) * o.stepping.y;
 4841+ y = this._translateValue(y, "y");
 4842+ y = this._translateLimits(y, "y");
 4843+ y = this._translateRange(y, "y");
 4844+ o.animate ? this.currentHandle.stop().animate({ top: y }, (Math.abs(parseInt(this.currentHandle.css("top")) - y)) * (!isNaN(parseInt(o.animate)) ? o.animate : 5)) : this.currentHandle.css({ top: y });
 4845+ }
 4846+
 4847+ if (this.rangeElement)
 4848+ this._updateRange();
 4849+
 4850+ //Store the slider's value
 4851+ this.currentHandle.data("mouse").sliderValue = {
 4852+ x: Math.round(this._convertValue(x, "x")) || 0,
 4853+ y: Math.round(this._convertValue(y, "y")) || 0
 4854+ };
 4855+
 4856+ if (!noPropagation) {
 4857+ this._propagate('start', null);
 4858+ this._propagate('stop', null);
 4859+ this._propagate('change', null);
 4860+ this._propagate("slide", null);
 4861+ }
 4862+ }
 4863+});
 4864+
 4865+$.ui.slider.getter = "value";
 4866+
 4867+$.ui.slider.defaults = {
 4868+ handle: ".ui-slider-handle",
 4869+ distance: 1,
 4870+ animate: false
 4871+};
 4872+
 4873+})(jQuery);
 4874+/*
 4875+ * jQuery UI Datepicker @VERSION
 4876+ *
 4877+ * Copyright (c) 2006, 2007, 2008 Marc Grabanski
 4878+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 4879+ * and GPL (GPL-LICENSE.txt) licenses.
 4880+ *
 4881+ * http://docs.jquery.com/UI/Datepicker
 4882+ *
 4883+ * Depends:
 4884+ * ui.core.js
 4885+ *
 4886+ * Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
 4887+ */
 4888+
 4889+(function($) { // hide the namespace
 4890+
 4891+var PROP_NAME = 'datepicker';
 4892+
 4893+/* Date picker manager.
 4894+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.
 4895+ Settings for (groups of) date pickers are maintained in an instance object,
 4896+ allowing multiple different settings on the same page. */
 4897+
 4898+function Datepicker() {
 4899+ this.debug = false; // Change this to true to start debugging
 4900+ this._curInst = null; // The current instance in use
 4901+ this._disabledInputs = []; // List of date picker inputs that have been disabled
 4902+ this._datepickerShowing = false; // True if the popup picker is showing , false if not
 4903+ this._inDialog = false; // True if showing within a "dialog", false if not
 4904+ this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division
 4905+ this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class
 4906+ this._appendClass = 'ui-datepicker-append'; // The name of the append marker class
 4907+ this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class
 4908+ this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class
 4909+ this._promptClass = 'ui-datepicker-prompt'; // The name of the dialog prompt marker class
 4910+ this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class
 4911+ this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class
 4912+ this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class
 4913+ this.regional = []; // Available regional settings, indexed by language code
 4914+ this.regional[''] = { // Default regional settings
 4915+ clearText: 'Clear', // Display text for clear link
 4916+ clearStatus: 'Erase the current date', // Status text for clear link
 4917+ closeText: 'Close', // Display text for close link
 4918+ closeStatus: 'Close without change', // Status text for close link
 4919+ prevText: '&#x3c;Prev', // Display text for previous month link
 4920+ prevStatus: 'Show the previous month', // Status text for previous month link
 4921+ prevBigText: '&#x3c;&#x3c;', // Display text for previous year link
 4922+ prevBigStatus: 'Show the previous year', // Status text for previous year link
 4923+ nextText: 'Next&#x3e;', // Display text for next month link
 4924+ nextStatus: 'Show the next month', // Status text for next month link
 4925+ nextBigText: '&#x3e;&#x3e;', // Display text for next year link
 4926+ nextBigStatus: 'Show the next year', // Status text for next year link
 4927+ currentText: 'Today', // Display text for current month link
 4928+ currentStatus: 'Show the current month', // Status text for current month link
 4929+ monthNames: ['January','February','March','April','May','June',
 4930+ 'July','August','September','October','November','December'], // Names of months for drop-down and formatting
 4931+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
 4932+ monthStatus: 'Show a different month', // Status text for selecting a month
 4933+ yearStatus: 'Show a different year', // Status text for selecting a year
 4934+ weekHeader: 'Wk', // Header for the week of the year column
 4935+ weekStatus: 'Week of the year', // Status text for the week of the year column
 4936+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
 4937+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
 4938+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
 4939+ dayStatus: 'Set DD as first week day', // Status text for the day of the week selection
 4940+ dateStatus: 'Select DD, M d', // Status text for the date selection
 4941+ dateFormat: 'mm/dd/yy', // See format options on parseDate
 4942+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
 4943+ initStatus: 'Select a date', // Initial Status text on opening
 4944+ isRTL: false // True if right-to-left language, false if left-to-right
 4945+ };
 4946+ this._defaults = { // Global defaults for all the date picker instances
 4947+ showOn: 'focus', // 'focus' for popup on focus,
 4948+ // 'button' for trigger button, or 'both' for either
 4949+ showAnim: 'show', // Name of jQuery animation for popup
 4950+ showOptions: {}, // Options for enhanced animations
 4951+ defaultDate: null, // Used when field is blank: actual date,
 4952+ // +/-number for offset from today, null for today
 4953+ appendText: '', // Display text following the input box, e.g. showing the format
 4954+ buttonText: '...', // Text for trigger button
 4955+ buttonImage: '', // URL for trigger button image
 4956+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
 4957+ closeAtTop: true, // True to have the clear/close at the top,
 4958+ // false to have them at the bottom
 4959+ mandatory: false, // True to hide the Clear link, false to include it
 4960+ hideIfNoPrevNext: false, // True to hide next/previous month links
 4961+ // if not applicable, false to just disable them
 4962+ navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
 4963+ showBigPrevNext: false, // True to show big prev/next links
 4964+ gotoCurrent: false, // True if today link goes back to current selection instead
 4965+ changeMonth: true, // True if month can be selected directly, false if only prev/next
 4966+ changeYear: true, // True if year can be selected directly, false if only prev/next
 4967+ showMonthAfterYear: false, // True if the year select precedes month, false for month then year
 4968+ yearRange: '-10:+10', // Range of years to display in drop-down,
 4969+ // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn)
 4970+ changeFirstDay: true, // True to click on day name to change, false to remain as set
 4971+ highlightWeek: false, // True to highlight the selected week
 4972+ showOtherMonths: false, // True to show dates in other months, false to leave blank
 4973+ showWeeks: false, // True to show week of the year, false to omit
 4974+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,
 4975+ // takes a Date and returns the number of the week for it
 4976+ shortYearCutoff: '+10', // Short year values < this are in the current century,
 4977+ // > this are in the previous century,
 4978+ // string value starting with '+' for current year + value
 4979+ showStatus: false, // True to show status bar at bottom, false to not show it
 4980+ statusForDate: this.dateStatus, // Function to provide status text for a date -
 4981+ // takes date and instance as parameters, returns display text
 4982+ minDate: null, // The earliest selectable date, or null for no limit
 4983+ maxDate: null, // The latest selectable date, or null for no limit
 4984+ duration: 'normal', // Duration of display/closure
 4985+ beforeShowDay: null, // Function that takes a date and returns an array with
 4986+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',
 4987+ // [2] = cell title (optional), e.g. $.datepicker.noWeekends
 4988+ beforeShow: null, // Function that takes an input field and
 4989+ // returns a set of custom settings for the date picker
 4990+ onSelect: null, // Define a callback function when a date is selected
 4991+ onChangeMonthYear: null, // Define a callback function when the month or year is changed
 4992+ onClose: null, // Define a callback function when the datepicker is closed
 4993+ numberOfMonths: 1, // Number of months to show at a time
 4994+ showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
 4995+ stepMonths: 1, // Number of months to step back/forward
 4996+ stepBigMonths: 12, // Number of months to step back/forward for the big links
 4997+ rangeSelect: false, // Allows for selecting a date range on one date picker
 4998+ rangeSeparator: ' - ', // Text between two dates in a range
 4999+ altField: '', // Selector for an alternate field to store selected dates into
 5000+ altFormat: '' // The date format to use for the alternate field
 5001+ };
 5002+ $.extend(this._defaults, this.regional['']);
 5003+ this.dpDiv = $('<div id="' + this._mainDivId + '" style="display: none;"></div>');
 5004+}
 5005+
 5006+$.extend(Datepicker.prototype, {
 5007+ /* Class name added to elements to indicate already configured with a date picker. */
 5008+ markerClassName: 'hasDatepicker',
 5009+
 5010+ /* Debug logging (if enabled). */
 5011+ log: function () {
 5012+ if (this.debug)
 5013+ console.log.apply('', arguments);
 5014+ },
 5015+
 5016+ /* Override the default settings for all instances of the date picker.
 5017+ @param settings object - the new settings to use as defaults (anonymous object)
 5018+ @return the manager object */
 5019+ setDefaults: function(settings) {
 5020+ extendRemove(this._defaults, settings || {});
 5021+ return this;
 5022+ },
 5023+
 5024+ /* Attach the date picker to a jQuery selection.
 5025+ @param target element - the target input field or division or span
 5026+ @param settings object - the new settings to use for this date picker instance (anonymous) */
 5027+ _attachDatepicker: function(target, settings) {
 5028+ // check for settings on the control itself - in namespace 'date:'
 5029+ var inlineSettings = null;
 5030+ for (attrName in this._defaults) {
 5031+ var attrValue = target.getAttribute('date:' + attrName);
 5032+ if (attrValue) {
 5033+ inlineSettings = inlineSettings || {};
 5034+ try {
 5035+ inlineSettings[attrName] = eval(attrValue);
 5036+ } catch (err) {
 5037+ inlineSettings[attrName] = attrValue;
 5038+ }
 5039+ }
 5040+ }
 5041+ var nodeName = target.nodeName.toLowerCase();
 5042+ var inline = (nodeName == 'div' || nodeName == 'span');
 5043+ if (!target.id)
 5044+ target.id = 'dp' + ++this.uuid;
 5045+ var inst = this._newInst($(target), inline);
 5046+ inst.settings = $.extend({}, settings || {}, inlineSettings || {});
 5047+ if (nodeName == 'input') {
 5048+ this._connectDatepicker(target, inst);
 5049+ } else if (inline) {
 5050+ this._inlineDatepicker(target, inst);
 5051+ }
 5052+ },
 5053+
 5054+ /* Create a new instance object. */
 5055+ _newInst: function(target, inline) {
 5056+ var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape jQuery meta chars
 5057+ return {id: id, input: target, // associated target
 5058+ selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
 5059+ drawMonth: 0, drawYear: 0, // month being drawn
 5060+ inline: inline, // is datepicker inline or not
 5061+ dpDiv: (!inline ? this.dpDiv : // presentation div
 5062+ $('<div class="' + this._inlineClass + '"></div>'))};
 5063+ },
 5064+
 5065+ /* Attach the date picker to an input field. */
 5066+ _connectDatepicker: function(target, inst) {
 5067+ var input = $(target);
 5068+ if (input.hasClass(this.markerClassName))
 5069+ return;
 5070+ var appendText = this._get(inst, 'appendText');
 5071+ var isRTL = this._get(inst, 'isRTL');
 5072+ if (appendText)
 5073+ input[isRTL ? 'before' : 'after']('<span class="' + this._appendClass + '">' + appendText + '</span>');
 5074+ var showOn = this._get(inst, 'showOn');
 5075+ if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field
 5076+ input.focus(this._showDatepicker);
 5077+ if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked
 5078+ var buttonText = this._get(inst, 'buttonText');
 5079+ var buttonImage = this._get(inst, 'buttonImage');
 5080+ var trigger = $(this._get(inst, 'buttonImageOnly') ?
 5081+ $('<img/>').addClass(this._triggerClass).
 5082+ attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
 5083+ $('<button type="button"></button>').addClass(this._triggerClass).
 5084+ html(buttonImage == '' ? buttonText : $('<img/>').attr(
 5085+ { src:buttonImage, alt:buttonText, title:buttonText })));
 5086+ input[isRTL ? 'before' : 'after'](trigger);
 5087+ trigger.click(function() {
 5088+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target)
 5089+ $.datepicker._hideDatepicker();
 5090+ else
 5091+ $.datepicker._showDatepicker(target);
 5092+ return false;
 5093+ });
 5094+ }
 5095+ input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).
 5096+ bind("setData.datepicker", function(event, key, value) {
 5097+ inst.settings[key] = value;
 5098+ }).bind("getData.datepicker", function(event, key) {
 5099+ return this._get(inst, key);
 5100+ });
 5101+ $.data(target, PROP_NAME, inst);
 5102+ },
 5103+
 5104+ /* Attach an inline date picker to a div. */
 5105+ _inlineDatepicker: function(target, inst) {
 5106+ var divSpan = $(target);
 5107+ if (divSpan.hasClass(this.markerClassName))
 5108+ return;
 5109+ divSpan.addClass(this.markerClassName).append(inst.dpDiv).
 5110+ bind("setData.datepicker", function(event, key, value){
 5111+ inst.settings[key] = value;
 5112+ }).bind("getData.datepicker", function(event, key){
 5113+ return this._get(inst, key);
 5114+ });
 5115+ $.data(target, PROP_NAME, inst);
 5116+ this._setDate(inst, this._getDefaultDate(inst));
 5117+ this._updateDatepicker(inst);
 5118+ },
 5119+
 5120+ /* Tidy up after displaying the date picker. */
 5121+ _inlineShow: function(inst) {
 5122+ var numMonths = this._getNumberOfMonths(inst); // fix width for dynamic number of date pickers
 5123+ inst.dpDiv.width(numMonths[1] * $('.ui-datepicker', inst.dpDiv[0]).width());
 5124+ },
 5125+
 5126+ /* Pop-up the date picker in a "dialog" box.
 5127+ @param input element - ignored
 5128+ @param dateText string - the initial date to display (in the current format)
 5129+ @param onSelect function - the function(dateText) to call when a date is selected
 5130+ @param settings object - update the dialog date picker instance's settings (anonymous object)
 5131+ @param pos int[2] - coordinates for the dialog's position within the screen or
 5132+ event - with x/y coordinates or
 5133+ leave empty for default (screen centre)
 5134+ @return the manager object */
 5135+ _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
 5136+ var inst = this._dialogInst; // internal instance
 5137+ if (!inst) {
 5138+ var id = 'dp' + ++this.uuid;
 5139+ this._dialogInput = $('<input type="text" id="' + id +
 5140+ '" size="1" style="position: absolute; top: -100px;"/>');
 5141+ this._dialogInput.keydown(this._doKeyDown);
 5142+ $('body').append(this._dialogInput);
 5143+ inst = this._dialogInst = this._newInst(this._dialogInput, false);
 5144+ inst.settings = {};
 5145+ $.data(this._dialogInput[0], PROP_NAME, inst);
 5146+ }
 5147+ extendRemove(inst.settings, settings || {});
 5148+ this._dialogInput.val(dateText);
 5149+
 5150+ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
 5151+ if (!this._pos) {
 5152+ var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
 5153+ var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
 5154+ var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
 5155+ var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
 5156+ this._pos = // should use actual width/height below
 5157+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
 5158+ }
 5159+
 5160+ // move input on screen for focus, but hidden behind dialog
 5161+ this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px');
 5162+ inst.settings.onSelect = onSelect;
 5163+ this._inDialog = true;
 5164+ this.dpDiv.addClass(this._dialogClass);
 5165+ this._showDatepicker(this._dialogInput[0]);
 5166+ if ($.blockUI)
 5167+ $.blockUI(this.dpDiv);
 5168+ $.data(this._dialogInput[0], PROP_NAME, inst);
 5169+ return this;
 5170+ },
 5171+
 5172+ /* Detach a datepicker from its control.
 5173+ @param target element - the target input field or division or span */
 5174+ _destroyDatepicker: function(target) {
 5175+ var $target = $(target);
 5176+ if (!$target.hasClass(this.markerClassName)) {
 5177+ return;
 5178+ }
 5179+ var nodeName = target.nodeName.toLowerCase();
 5180+ $.removeData(target, PROP_NAME);
 5181+ if (nodeName == 'input') {
 5182+ $target.siblings('.' + this._appendClass).remove().end().
 5183+ siblings('.' + this._triggerClass).remove().end().
 5184+ removeClass(this.markerClassName).
 5185+ unbind('focus', this._showDatepicker).
 5186+ unbind('keydown', this._doKeyDown).
 5187+ unbind('keypress', this._doKeyPress);
 5188+ } else if (nodeName == 'div' || nodeName == 'span')
 5189+ $target.removeClass(this.markerClassName).empty();
 5190+ },
 5191+
 5192+ /* Enable the date picker to a jQuery selection.
 5193+ @param target element - the target input field or division or span */
 5194+ _enableDatepicker: function(target) {
 5195+ var $target = $(target);
 5196+ if (!$target.hasClass(this.markerClassName)) {
 5197+ return;
 5198+ }
 5199+ var nodeName = target.nodeName.toLowerCase();
 5200+ if (nodeName == 'input') {
 5201+ target.disabled = false;
 5202+ $target.siblings('button.' + this._triggerClass).
 5203+ each(function() { this.disabled = false; }).end().
 5204+ siblings('img.' + this._triggerClass).
 5205+ css({opacity: '1.0', cursor: ''});
 5206+ }
 5207+ else if (nodeName == 'div' || nodeName == 'span') {
 5208+ $target.children('.' + this._disableClass).remove();
 5209+ }
 5210+ this._disabledInputs = $.map(this._disabledInputs,
 5211+ function(value) { return (value == target ? null : value); }); // delete entry
 5212+ },
 5213+
 5214+ /* Disable the date picker to a jQuery selection.
 5215+ @param target element - the target input field or division or span */
 5216+ _disableDatepicker: function(target) {
 5217+ var $target = $(target);
 5218+ if (!$target.hasClass(this.markerClassName)) {
 5219+ return;
 5220+ }
 5221+ var nodeName = target.nodeName.toLowerCase();
 5222+ if (nodeName == 'input') {
 5223+ target.disabled = true;
 5224+ $target.siblings('button.' + this._triggerClass).
 5225+ each(function() { this.disabled = true; }).end().
 5226+ siblings('img.' + this._triggerClass).
 5227+ css({opacity: '0.5', cursor: 'default'});
 5228+ }
 5229+ else if (nodeName == 'div' || nodeName == 'span') {
 5230+ var inline = $target.children('.' + this._inlineClass);
 5231+ var offset = inline.offset();
 5232+ var relOffset = {left: 0, top: 0};
 5233+ inline.parents().each(function() {
 5234+ if ($(this).css('position') == 'relative') {
 5235+ relOffset = $(this).offset();
 5236+ return false;
 5237+ }
 5238+ });
 5239+ $target.prepend('<div class="' + this._disableClass + '" style="' +
 5240+ ($.browser.msie ? 'background-color: transparent; ' : '') +
 5241+ 'width: ' + inline.width() + 'px; height: ' + inline.height() +
 5242+ 'px; left: ' + (offset.left - relOffset.left) +
 5243+ 'px; top: ' + (offset.top - relOffset.top) + 'px;"></div>');
 5244+ }
 5245+ this._disabledInputs = $.map(this._disabledInputs,
 5246+ function(value) { return (value == target ? null : value); }); // delete entry
 5247+ this._disabledInputs[this._disabledInputs.length] = target;
 5248+ },
 5249+
 5250+ /* Is the first field in a jQuery collection disabled as a datepicker?
 5251+ @param target element - the target input field or division or span
 5252+ @return boolean - true if disabled, false if enabled */
 5253+ _isDisabledDatepicker: function(target) {
 5254+ if (!target)
 5255+ return false;
 5256+ for (var i = 0; i < this._disabledInputs.length; i++) {
 5257+ if (this._disabledInputs[i] == target)
 5258+ return true;
 5259+ }
 5260+ return false;
 5261+ },
 5262+
 5263+ /* Retrieve the instance data for the target control.
 5264+ @param target element - the target input field or division or span
 5265+ @return object - the associated instance data
 5266+ @throws error if a jQuery problem getting data */
 5267+ _getInst: function(target) {
 5268+ try {
 5269+ return $.data(target, PROP_NAME);
 5270+ }
 5271+ catch (err) {
 5272+ throw 'Missing instance data for this datepicker';
 5273+ }
 5274+ },
 5275+
 5276+ /* Update the settings for a date picker attached to an input field or division.
 5277+ @param target element - the target input field or division or span
 5278+ @param name object - the new settings to update or
 5279+ string - the name of the setting to change or
 5280+ @param value any - the new value for the setting (omit if above is an object) */
 5281+ _changeDatepicker: function(target, name, value) {
 5282+ var settings = name || {};
 5283+ if (typeof name == 'string') {
 5284+ settings = {};
 5285+ settings[name] = value;
 5286+ }
 5287+ var inst = this._getInst(target);
 5288+ if (inst) {
 5289+ if (this._curInst == inst) {
 5290+ this._hideDatepicker(null);
 5291+ }
 5292+ extendRemove(inst.settings, settings);
 5293+ var date = new Date();
 5294+ extendRemove(inst, {rangeStart: null, // start of range
 5295+ endDay: null, endMonth: null, endYear: null, // end of range
 5296+ selectedDay: date.getDate(), selectedMonth: date.getMonth(),
 5297+ selectedYear: date.getFullYear(), // starting point
 5298+ currentDay: date.getDate(), currentMonth: date.getMonth(),
 5299+ currentYear: date.getFullYear(), // current selection
 5300+ drawMonth: date.getMonth(), drawYear: date.getFullYear()}); // month being drawn
 5301+ this._updateDatepicker(inst);
 5302+ }
 5303+ },
 5304+
 5305+ /* Redraw the date picker attached to an input field or division.
 5306+ @param target element - the target input field or division or span */
 5307+ _refreshDatepicker: function(target) {
 5308+ var inst = this._getInst(target);
 5309+ if (inst) {
 5310+ this._updateDatepicker(inst);
 5311+ }
 5312+ },
 5313+
 5314+ /* Set the dates for a jQuery selection.
 5315+ @param target element - the target input field or division or span
 5316+ @param date Date - the new date
 5317+ @param endDate Date - the new end date for a range (optional) */
 5318+ _setDateDatepicker: function(target, date, endDate) {
 5319+ var inst = this._getInst(target);
 5320+ if (inst) {
 5321+ this._setDate(inst, date, endDate);
 5322+ this._updateDatepicker(inst);
 5323+ this._updateAlternate(inst);
 5324+ }
 5325+ },
 5326+
 5327+ /* Get the date(s) for the first entry in a jQuery selection.
 5328+ @param target element - the target input field or division or span
 5329+ @return Date - the current date or
 5330+ Date[2] - the current dates for a range */
 5331+ _getDateDatepicker: function(target) {
 5332+ var inst = this._getInst(target);
 5333+ if (inst && !inst.inline)
 5334+ this._setDateFromField(inst);
 5335+ return (inst ? this._getDate(inst) : null);
 5336+ },
 5337+
 5338+ /* Handle keystrokes. */
 5339+ _doKeyDown: function(e) {
 5340+ var inst = $.datepicker._getInst(e.target);
 5341+ var handled = true;
 5342+ if ($.datepicker._datepickerShowing)
 5343+ switch (e.keyCode) {
 5344+ case 9: $.datepicker._hideDatepicker(null, '');
 5345+ break; // hide on tab out
 5346+ case 13: $.datepicker._selectDay(e.target, inst.selectedMonth, inst.selectedYear,
 5347+ $('td.ui-datepicker-days-cell-over', inst.dpDiv)[0]);
 5348+ return false; // don't submit the form
 5349+ break; // select the value on enter
 5350+ case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration'));
 5351+ break; // hide on escape
 5352+ case 33: $.datepicker._adjustDate(e.target, (e.ctrlKey ?
 5353+ -$.datepicker._get(inst, 'stepBigMonths') :
 5354+ -$.datepicker._get(inst, 'stepMonths')), 'M');
 5355+ break; // previous month/year on page up/+ ctrl
 5356+ case 34: $.datepicker._adjustDate(e.target, (e.ctrlKey ?
 5357+ +$.datepicker._get(inst, 'stepBigMonths') :
 5358+ +$.datepicker._get(inst, 'stepMonths')), 'M');
 5359+ break; // next month/year on page down/+ ctrl
 5360+ case 35: if (e.ctrlKey) $.datepicker._clearDate(e.target);
 5361+ handled = e.ctrlKey;
 5362+ break; // clear on ctrl+end
 5363+ case 36: if (e.ctrlKey) $.datepicker._gotoToday(e.target);
 5364+ handled = e.ctrlKey;
 5365+ break; // current on ctrl+home
 5366+ case 37: if (e.ctrlKey) $.datepicker._adjustDate(e.target, -1, 'D');
 5367+ handled = e.ctrlKey;
 5368+ break; // -1 day on ctrl+left
 5369+ case 38: if (e.ctrlKey) $.datepicker._adjustDate(e.target, -7, 'D');
 5370+ handled = e.ctrlKey;
 5371+ break; // -1 week on ctrl+up
 5372+ case 39: if (e.ctrlKey) $.datepicker._adjustDate(e.target, +1, 'D');
 5373+ handled = e.ctrlKey;
 5374+ break; // +1 day on ctrl+right
 5375+ case 40: if (e.ctrlKey) $.datepicker._adjustDate(e.target, +7, 'D');
 5376+ handled = e.ctrlKey;
 5377+ break; // +1 week on ctrl+down
 5378+ default: handled = false;
 5379+ }
 5380+ else if (e.keyCode == 36 && e.ctrlKey) // display the date picker on ctrl+home
 5381+ $.datepicker._showDatepicker(this);
 5382+ else
 5383+ handled = false;
 5384+ if (handled) {
 5385+ e.preventDefault();
 5386+ e.stopPropagation();
 5387+ }
 5388+ },
 5389+
 5390+ /* Filter entered characters - based on date format. */
 5391+ _doKeyPress: function(e) {
 5392+ var inst = $.datepicker._getInst(e.target);
 5393+ var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat'));
 5394+ var chr = String.fromCharCode(e.charCode == undefined ? e.keyCode : e.charCode);
 5395+ return e.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);
 5396+ },
 5397+
 5398+ /* Pop-up the date picker for a given input field.
 5399+ @param input element - the input field attached to the date picker or
 5400+ event - if triggered by focus */
 5401+ _showDatepicker: function(input) {
 5402+ input = input.target || input;
 5403+ if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
 5404+ input = $('input', input.parentNode)[0];
 5405+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
 5406+ return;
 5407+ var inst = $.datepicker._getInst(input);
 5408+ var beforeShow = $.datepicker._get(inst, 'beforeShow');
 5409+ extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
 5410+ $.datepicker._hideDatepicker(null, '');
 5411+ $.datepicker._lastInput = input;
 5412+ $.datepicker._setDateFromField(inst);
 5413+ if ($.datepicker._inDialog) // hide cursor
 5414+ input.value = '';
 5415+ if (!$.datepicker._pos) { // position below input
 5416+ $.datepicker._pos = $.datepicker._findPos(input);
 5417+ $.datepicker._pos[1] += input.offsetHeight; // add the height
 5418+ }
 5419+ var isFixed = false;
 5420+ $(input).parents().each(function() {
 5421+ isFixed |= $(this).css('position') == 'fixed';
 5422+ return !isFixed;
 5423+ });
 5424+ if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled
 5425+ $.datepicker._pos[0] -= document.documentElement.scrollLeft;
 5426+ $.datepicker._pos[1] -= document.documentElement.scrollTop;
 5427+ }
 5428+ var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};
 5429+ $.datepicker._pos = null;
 5430+ inst.rangeStart = null;
 5431+ // determine sizing offscreen
 5432+ inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'});
 5433+ $.datepicker._updateDatepicker(inst);
 5434+ // fix width for dynamic number of date pickers
 5435+ inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1] *
 5436+ $('.ui-datepicker', inst.dpDiv[0])[0].offsetWidth);
 5437+ // and adjust position before showing
 5438+ offset = $.datepicker._checkOffset(inst, offset, isFixed);
 5439+ inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?
 5440+ 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none',
 5441+ left: offset.left + 'px', top: offset.top + 'px'});
 5442+ if (!inst.inline) {
 5443+ var showAnim = $.datepicker._get(inst, 'showAnim') || 'show';
 5444+ var duration = $.datepicker._get(inst, 'duration');
 5445+ var postProcess = function() {
 5446+ $.datepicker._datepickerShowing = true;
 5447+ if ($.browser.msie && parseInt($.browser.version) < 7) // fix IE < 7 select problems
 5448+ $('iframe.ui-datepicker-cover').css({width: inst.dpDiv.width() + 4,
 5449+ height: inst.dpDiv.height() + 4});
 5450+ };
 5451+ if ($.effects && $.effects[showAnim])
 5452+ inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);
 5453+ else
 5454+ inst.dpDiv[showAnim](duration, postProcess);
 5455+ if (duration == '')
 5456+ postProcess();
 5457+ if (inst.input[0].type != 'hidden')
 5458+ inst.input[0].focus();
 5459+ $.datepicker._curInst = inst;
 5460+ }
 5461+ },
 5462+
 5463+ /* Generate the date picker content. */
 5464+ _updateDatepicker: function(inst) {
 5465+ var dims = {width: inst.dpDiv.width() + 4,
 5466+ height: inst.dpDiv.height() + 4};
 5467+ inst.dpDiv.empty().append(this._generateHTML(inst)).
 5468+ find('iframe.ui-datepicker-cover').
 5469+ css({width: dims.width, height: dims.height});
 5470+ var numMonths = this._getNumberOfMonths(inst);
 5471+ inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') +
 5472+ 'Class']('ui-datepicker-multi');
 5473+ inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +
 5474+ 'Class']('ui-datepicker-rtl');
 5475+ if (inst.input && inst.input[0].type != 'hidden')
 5476+ $(inst.input[0]).focus();
 5477+ },
 5478+
 5479+ /* Check positioning to remain on screen. */
 5480+ _checkOffset: function(inst, offset, isFixed) {
 5481+ var pos = inst.input ? this._findPos(inst.input[0]) : null;
 5482+ var browserWidth = window.innerWidth || document.documentElement.clientWidth;
 5483+ var browserHeight = window.innerHeight || document.documentElement.clientHeight;
 5484+ var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
 5485+ var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
 5486+ // reposition date picker horizontally if outside the browser window
 5487+ if (this._get(inst, 'isRTL') || (offset.left + inst.dpDiv.width() - scrollX) > browserWidth)
 5488+ offset.left = Math.max((isFixed ? 0 : scrollX),
 5489+ pos[0] + (inst.input ? inst.input.width() : 0) - (isFixed ? scrollX : 0) - inst.dpDiv.width() -
 5490+ (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0));
 5491+ else
 5492+ offset.left -= (isFixed ? scrollX : 0);
 5493+ // reposition date picker vertically if outside the browser window
 5494+ if ((offset.top + inst.dpDiv.height() - scrollY) > browserHeight)
 5495+ offset.top = Math.max((isFixed ? 0 : scrollY),
 5496+ pos[1] - (isFixed ? scrollY : 0) - (this._inDialog ? 0 : inst.dpDiv.height()) -
 5497+ (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0));
 5498+ else
 5499+ offset.top -= (isFixed ? scrollY : 0);
 5500+ return offset;
 5501+ },
 5502+
 5503+ /* Find an object's position on the screen. */
 5504+ _findPos: function(obj) {
 5505+ while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
 5506+ obj = obj.nextSibling;
 5507+ }
 5508+ var position = $(obj).offset();
 5509+ return [position.left, position.top];
 5510+ },
 5511+
 5512+ /* Hide the date picker from view.
 5513+ @param input element - the input field attached to the date picker
 5514+ @param duration string - the duration over which to close the date picker */
 5515+ _hideDatepicker: function(input, duration) {
 5516+ var inst = this._curInst;
 5517+ if (!inst || (input && inst != $.data(input, PROP_NAME)))
 5518+ return;
 5519+ var rangeSelect = this._get(inst, 'rangeSelect');
 5520+ if (rangeSelect && inst.stayOpen)
 5521+ this._selectDate('#' + inst.id, this._formatDate(inst,
 5522+ inst.currentDay, inst.currentMonth, inst.currentYear));
 5523+ inst.stayOpen = false;
 5524+ if (this._datepickerShowing) {
 5525+ duration = (duration != null ? duration : this._get(inst, 'duration'));
 5526+ var showAnim = this._get(inst, 'showAnim');
 5527+ var postProcess = function() {
 5528+ $.datepicker._tidyDialog(inst);
 5529+ };
 5530+ if (duration != '' && $.effects && $.effects[showAnim])
 5531+ inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'),
 5532+ duration, postProcess);
 5533+ else
 5534+ inst.dpDiv[(duration == '' ? 'hide' : (showAnim == 'slideDown' ? 'slideUp' :
 5535+ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide')))](duration, postProcess);
 5536+ if (duration == '')
 5537+ this._tidyDialog(inst);
 5538+ var onClose = this._get(inst, 'onClose');
 5539+ if (onClose)
 5540+ onClose.apply((inst.input ? inst.input[0] : null),
 5541+ [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback
 5542+ this._datepickerShowing = false;
 5543+ this._lastInput = null;
 5544+ inst.settings.prompt = null;
 5545+ if (this._inDialog) {
 5546+ this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
 5547+ if ($.blockUI) {
 5548+ $.unblockUI();
 5549+ $('body').append(this.dpDiv);
 5550+ }
 5551+ }
 5552+ this._inDialog = false;
 5553+ }
 5554+ this._curInst = null;
 5555+ },
 5556+
 5557+ /* Tidy up after a dialog display. */
 5558+ _tidyDialog: function(inst) {
 5559+ inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker');
 5560+ $('.' + this._promptClass, inst.dpDiv).remove();
 5561+ },
 5562+
 5563+ /* Close date picker if clicked elsewhere. */
 5564+ _checkExternalClick: function(event) {
 5565+ if (!$.datepicker._curInst)
 5566+ return;
 5567+ var $target = $(event.target);
 5568+ if (($target.parents('#' + $.datepicker._mainDivId).length == 0) &&
 5569+ !$target.hasClass($.datepicker.markerClassName) &&
 5570+ !$target.hasClass($.datepicker._triggerClass) &&
 5571+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))
 5572+ $.datepicker._hideDatepicker(null, '');
 5573+ },
 5574+
 5575+ /* Adjust one of the date sub-fields. */
 5576+ _adjustDate: function(id, offset, period) {
 5577+ var target = $(id);
 5578+ var inst = this._getInst(target[0]);
 5579+ this._adjustInstDate(inst, offset, period);
 5580+ this._updateDatepicker(inst);
 5581+ },
 5582+
 5583+ /* Action for current link. */
 5584+ _gotoToday: function(id) {
 5585+ var target = $(id);
 5586+ var inst = this._getInst(target[0]);
 5587+ if (this._get(inst, 'gotoCurrent') && inst.currentDay) {
 5588+ inst.selectedDay = inst.currentDay;
 5589+ inst.drawMonth = inst.selectedMonth = inst.currentMonth;
 5590+ inst.drawYear = inst.selectedYear = inst.currentYear;
 5591+ }
 5592+ else {
 5593+ var date = new Date();
 5594+ inst.selectedDay = date.getDate();
 5595+ inst.drawMonth = inst.selectedMonth = date.getMonth();
 5596+ inst.drawYear = inst.selectedYear = date.getFullYear();
 5597+ }
 5598+ this._notifyChange(inst);
 5599+ this._adjustDate(target);
 5600+ },
 5601+
 5602+ /* Action for selecting a new month/year. */
 5603+ _selectMonthYear: function(id, select, period) {
 5604+ var target = $(id);
 5605+ var inst = this._getInst(target[0]);
 5606+ inst._selectingMonthYear = false;
 5607+ inst['selected' + (period == 'M' ? 'Month' : 'Year')] =
 5608+ inst['draw' + (period == 'M' ? 'Month' : 'Year')] =
 5609+ parseInt(select.options[select.selectedIndex].value);
 5610+ this._notifyChange(inst);
 5611+ this._adjustDate(target);
 5612+ },
 5613+
 5614+ /* Restore input focus after not changing month/year. */
 5615+ _clickMonthYear: function(id) {
 5616+ var target = $(id);
 5617+ var inst = this._getInst(target[0]);
 5618+ if (inst.input && inst._selectingMonthYear && !$.browser.msie)
 5619+ inst.input[0].focus();
 5620+ inst._selectingMonthYear = !inst._selectingMonthYear;
 5621+ },
 5622+
 5623+ /* Action for changing the first week day. */
 5624+ _changeFirstDay: function(id, day) {
 5625+ var target = $(id);
 5626+ var inst = this._getInst(target[0]);
 5627+ inst.settings.firstDay = day;
 5628+ this._updateDatepicker(inst);
 5629+ },
 5630+
 5631+ /* Action for selecting a day. */
 5632+ _selectDay: function(id, month, year, td) {
 5633+ if ($(td).hasClass(this._unselectableClass))
 5634+ return;
 5635+ var target = $(id);
 5636+ var inst = this._getInst(target[0]);
 5637+ var rangeSelect = this._get(inst, 'rangeSelect');
 5638+ if (rangeSelect) {
 5639+ inst.stayOpen = !inst.stayOpen;
 5640+ if (inst.stayOpen) {
 5641+ $('.ui-datepicker td', inst.dpDiv).removeClass(this._currentClass);
 5642+ $(td).addClass(this._currentClass);
 5643+ }
 5644+ }
 5645+ inst.selectedDay = inst.currentDay = $('a', td).html();
 5646+ inst.selectedMonth = inst.currentMonth = month;
 5647+ inst.selectedYear = inst.currentYear = year;
 5648+ if (inst.stayOpen) {
 5649+ inst.endDay = inst.endMonth = inst.endYear = null;
 5650+ }
 5651+ else if (rangeSelect) {
 5652+ inst.endDay = inst.currentDay;
 5653+ inst.endMonth = inst.currentMonth;
 5654+ inst.endYear = inst.currentYear;
 5655+ }
 5656+ this._selectDate(id, this._formatDate(inst,
 5657+ inst.currentDay, inst.currentMonth, inst.currentYear));
 5658+ if (inst.stayOpen) {
 5659+ inst.rangeStart = new Date(inst.currentYear, inst.currentMonth, inst.currentDay);
 5660+ this._updateDatepicker(inst);
 5661+ }
 5662+ else if (rangeSelect) {
 5663+ inst.selectedDay = inst.currentDay = inst.rangeStart.getDate();
 5664+ inst.selectedMonth = inst.currentMonth = inst.rangeStart.getMonth();
 5665+ inst.selectedYear = inst.currentYear = inst.rangeStart.getFullYear();
 5666+ inst.rangeStart = null;
 5667+ if (inst.inline)
 5668+ this._updateDatepicker(inst);
 5669+ }
 5670+ },
 5671+
 5672+ /* Erase the input field and hide the date picker. */
 5673+ _clearDate: function(id) {
 5674+ var target = $(id);
 5675+ var inst = this._getInst(target[0]);
 5676+ if (this._get(inst, 'mandatory'))
 5677+ return;
 5678+ inst.stayOpen = false;
 5679+ inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null;
 5680+ this._selectDate(target, '');
 5681+ },
 5682+
 5683+ /* Update the input field with the selected date. */
 5684+ _selectDate: function(id, dateStr) {
 5685+ var target = $(id);
 5686+ var inst = this._getInst(target[0]);
 5687+ dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
 5688+ if (this._get(inst, 'rangeSelect') && dateStr)
 5689+ dateStr = (inst.rangeStart ? this._formatDate(inst, inst.rangeStart) :
 5690+ dateStr) + this._get(inst, 'rangeSeparator') + dateStr;
 5691+ if (inst.input)
 5692+ inst.input.val(dateStr);
 5693+ this._updateAlternate(inst);
 5694+ var onSelect = this._get(inst, 'onSelect');
 5695+ if (onSelect)
 5696+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback
 5697+ else if (inst.input)
 5698+ inst.input.trigger('change'); // fire the change event
 5699+ if (inst.inline)
 5700+ this._updateDatepicker(inst);
 5701+ else if (!inst.stayOpen) {
 5702+ this._hideDatepicker(null, this._get(inst, 'duration'));
 5703+ this._lastInput = inst.input[0];
 5704+ if (typeof(inst.input[0]) != 'object')
 5705+ inst.input[0].focus(); // restore focus
 5706+ this._lastInput = null;
 5707+ }
 5708+ },
 5709+
 5710+ /* Update any alternate field to synchronise with the main field. */
 5711+ _updateAlternate: function(inst) {
 5712+ var altField = this._get(inst, 'altField');
 5713+ if (altField) { // update alternate field too
 5714+ var altFormat = this._get(inst, 'altFormat');
 5715+ var date = this._getDate(inst);
 5716+ dateStr = (isArray(date) ? (!date[0] && !date[1] ? '' :
 5717+ this.formatDate(altFormat, date[0], this._getFormatConfig(inst)) +
 5718+ this._get(inst, 'rangeSeparator') + this.formatDate(
 5719+ altFormat, date[1] || date[0], this._getFormatConfig(inst))) :
 5720+ this.formatDate(altFormat, date, this._getFormatConfig(inst)));
 5721+ $(altField).each(function() { $(this).val(dateStr); });
 5722+ }
 5723+ },
 5724+
 5725+ /* Set as beforeShowDay function to prevent selection of weekends.
 5726+ @param date Date - the date to customise
 5727+ @return [boolean, string] - is this date selectable?, what is its CSS class? */
 5728+ noWeekends: function(date) {
 5729+ var day = date.getDay();
 5730+ return [(day > 0 && day < 6), ''];
 5731+ },
 5732+
 5733+ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
 5734+ @param date Date - the date to get the week for
 5735+ @return number - the number of the week within the year that contains this date */
 5736+ iso8601Week: function(date) {
 5737+ var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(),
 5738+ (date.getTimezoneOffset() / -60));
 5739+ var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan
 5740+ var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7
 5741+ firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday
 5742+ if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary
 5743+ checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year
 5744+ return $.datepicker.iso8601Week(checkDate);
 5745+ } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year
 5746+ firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7;
 5747+ if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary
 5748+ return 1;
 5749+ }
 5750+ }
 5751+ return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
 5752+ },
 5753+
 5754+ /* Provide status text for a particular date.
 5755+ @param date the date to get the status for
 5756+ @param inst the current datepicker instance
 5757+ @return the status display text for this date */
 5758+ dateStatus: function(date, inst) {
 5759+ return $.datepicker.formatDate($.datepicker._get(inst, 'dateStatus'),
 5760+ date, $.datepicker._getFormatConfig(inst));
 5761+ },
 5762+
 5763+ /* Parse a string value into a date object.
 5764+ See formatDate below for the possible formats.
 5765+
 5766+ @param format string - the expected format of the date
 5767+ @param value string - the date in the above format
 5768+ @param settings Object - attributes include:
 5769+ shortYearCutoff number - the cutoff year for determining the century (optional)
 5770+ dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
 5771+ dayNames string[7] - names of the days from Sunday (optional)
 5772+ monthNamesShort string[12] - abbreviated names of the months (optional)
 5773+ monthNames string[12] - names of the months (optional)
 5774+ @return Date - the extracted date value or null if value is blank */
 5775+ parseDate: function (format, value, settings) {
 5776+ if (format == null || value == null)
 5777+ throw 'Invalid arguments';
 5778+ value = (typeof value == 'object' ? value.toString() : value + '');
 5779+ if (value == '')
 5780+ return null;
 5781+ var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
 5782+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
 5783+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
 5784+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
 5785+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
 5786+ var year = -1;
 5787+ var month = -1;
 5788+ var day = -1;
 5789+ var doy = -1;
 5790+ var literal = false;
 5791+ // Check whether a format character is doubled
 5792+ var lookAhead = function(match) {
 5793+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
 5794+ if (matches)
 5795+ iFormat++;
 5796+ return matches;
 5797+ };
 5798+ // Extract a number from the string value
 5799+ var getNumber = function(match) {
 5800+ lookAhead(match);
 5801+ var origSize = (match == '@' ? 14 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2)));
 5802+ var size = origSize;
 5803+ var num = 0;
 5804+ while (size > 0 && iValue < value.length &&
 5805+ value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') {
 5806+ num = num * 10 + parseInt(value.charAt(iValue++));
 5807+ size--;
 5808+ }
 5809+ if (size == origSize)
 5810+ throw 'Missing number at position ' + iValue;
 5811+ return num;
 5812+ };
 5813+ // Extract a name from the string value and convert to an index
 5814+ var getName = function(match, shortNames, longNames) {
 5815+ var names = (lookAhead(match) ? longNames : shortNames);
 5816+ var size = 0;
 5817+ for (var j = 0; j < names.length; j++)
 5818+ size = Math.max(size, names[j].length);
 5819+ var name = '';
 5820+ var iInit = iValue;
 5821+ while (size > 0 && iValue < value.length) {
 5822+ name += value.charAt(iValue++);
 5823+ for (var i = 0; i < names.length; i++)
 5824+ if (name == names[i])
 5825+ return i + 1;
 5826+ size--;
 5827+ }
 5828+ throw 'Unknown name at position ' + iInit;
 5829+ };
 5830+ // Confirm that a literal character matches the string value
 5831+ var checkLiteral = function() {
 5832+ if (value.charAt(iValue) != format.charAt(iFormat))
 5833+ throw 'Unexpected literal at position ' + iValue;
 5834+ iValue++;
 5835+ };
 5836+ var iValue = 0;
 5837+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
 5838+ if (literal)
 5839+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
 5840+ literal = false;
 5841+ else
 5842+ checkLiteral();
 5843+ else
 5844+ switch (format.charAt(iFormat)) {
 5845+ case 'd':
 5846+ day = getNumber('d');
 5847+ break;
 5848+ case 'D':
 5849+ getName('D', dayNamesShort, dayNames);
 5850+ break;
 5851+ case 'o':
 5852+ doy = getNumber('o');
 5853+ break;
 5854+ case 'm':
 5855+ month = getNumber('m');
 5856+ break;
 5857+ case 'M':
 5858+ month = getName('M', monthNamesShort, monthNames);
 5859+ break;
 5860+ case 'y':
 5861+ year = getNumber('y');
 5862+ break;
 5863+ case '@':
 5864+ var date = new Date(getNumber('@'));
 5865+ year = date.getFullYear();
 5866+ month = date.getMonth() + 1;
 5867+ day = date.getDate();
 5868+ break;
 5869+ case "'":
 5870+ if (lookAhead("'"))
 5871+ checkLiteral();
 5872+ else
 5873+ literal = true;
 5874+ break;
 5875+ default:
 5876+ checkLiteral();
 5877+ }
 5878+ }
 5879+ if (year < 100)
 5880+ year += new Date().getFullYear() - new Date().getFullYear() % 100 +
 5881+ (year <= shortYearCutoff ? 0 : -100);
 5882+ if (doy > -1) {
 5883+ month = 1;
 5884+ day = doy;
 5885+ do {
 5886+ var dim = this._getDaysInMonth(year, month - 1);
 5887+ if (day <= dim)
 5888+ break;
 5889+ month++;
 5890+ day -= dim;
 5891+ } while (true);
 5892+ }
 5893+ var date = new Date(year, month - 1, day);
 5894+ if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day)
 5895+ throw 'Invalid date'; // E.g. 31/02/*
 5896+ return date;
 5897+ },
 5898+
 5899+ /* Standard date formats. */
 5900+ ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601)
 5901+ COOKIE: 'D, dd M yy',
 5902+ ISO_8601: 'yy-mm-dd',
 5903+ RFC_822: 'D, d M y',
 5904+ RFC_850: 'DD, dd-M-y',
 5905+ RFC_1036: 'D, d M y',
 5906+ RFC_1123: 'D, d M yy',
 5907+ RFC_2822: 'D, d M yy',
 5908+ RSS: 'D, d M y', // RFC 822
 5909+ TIMESTAMP: '@',
 5910+ W3C: 'yy-mm-dd', // ISO 8601
 5911+
 5912+ /* Format a date object into a string value.
 5913+ The format can be combinations of the following:
 5914+ d - day of month (no leading zero)
 5915+ dd - day of month (two digit)
 5916+ o - day of year (no leading zeros)
 5917+ oo - day of year (three digit)
 5918+ D - day name short
 5919+ DD - day name long
 5920+ m - month of year (no leading zero)
 5921+ mm - month of year (two digit)
 5922+ M - month name short
 5923+ MM - month name long
 5924+ y - year (two digit)
 5925+ yy - year (four digit)
 5926+ @ - Unix timestamp (ms since 01/01/1970)
 5927+ '...' - literal text
 5928+ '' - single quote
 5929+
 5930+ @param format string - the desired format of the date
 5931+ @param date Date - the date value to format
 5932+ @param settings Object - attributes include:
 5933+ dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
 5934+ dayNames string[7] - names of the days from Sunday (optional)
 5935+ monthNamesShort string[12] - abbreviated names of the months (optional)
 5936+ monthNames string[12] - names of the months (optional)
 5937+ @return string - the date in the above format */
 5938+ formatDate: function (format, date, settings) {
 5939+ if (!date)
 5940+ return '';
 5941+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
 5942+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
 5943+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
 5944+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
 5945+ // Check whether a format character is doubled
 5946+ var lookAhead = function(match) {
 5947+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
 5948+ if (matches)
 5949+ iFormat++;
 5950+ return matches;
 5951+ };
 5952+ // Format a number, with leading zero if necessary
 5953+ var formatNumber = function(match, value, len) {
 5954+ var num = '' + value;
 5955+ if (lookAhead(match))
 5956+ while (num.length < len)
 5957+ num = '0' + num;
 5958+ return num;
 5959+ };
 5960+ // Format a name, short or long as requested
 5961+ var formatName = function(match, value, shortNames, longNames) {
 5962+ return (lookAhead(match) ? longNames[value] : shortNames[value]);
 5963+ };
 5964+ var output = '';
 5965+ var literal = false;
 5966+ if (date)
 5967+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
 5968+ if (literal)
 5969+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
 5970+ literal = false;
 5971+ else
 5972+ output += format.charAt(iFormat);
 5973+ else
 5974+ switch (format.charAt(iFormat)) {
 5975+ case 'd':
 5976+ output += formatNumber('d', date.getDate(), 2);
 5977+ break;
 5978+ case 'D':
 5979+ output += formatName('D', date.getDay(), dayNamesShort, dayNames);
 5980+ break;
 5981+ case 'o':
 5982+ var doy = date.getDate();
 5983+ for (var m = date.getMonth() - 1; m >= 0; m--)
 5984+ doy += this._getDaysInMonth(date.getFullYear(), m);
 5985+ output += formatNumber('o', doy, 3);
 5986+ break;
 5987+ case 'm':
 5988+ output += formatNumber('m', date.getMonth() + 1, 2);
 5989+ break;
 5990+ case 'M':
 5991+ output += formatName('M', date.getMonth(), monthNamesShort, monthNames);
 5992+ break;
 5993+ case 'y':
 5994+ output += (lookAhead('y') ? date.getFullYear() :
 5995+ (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
 5996+ break;
 5997+ case '@':
 5998+ output += date.getTime();
 5999+ break;
 6000+ case "'":
 6001+ if (lookAhead("'"))
 6002+ output += "'";
 6003+ else
 6004+ literal = true;
 6005+ break;
 6006+ default:
 6007+ output += format.charAt(iFormat);
 6008+ }
 6009+ }
 6010+ return output;
 6011+ },
 6012+
 6013+ /* Extract all possible characters from the date format. */
 6014+ _possibleChars: function (format) {
 6015+ var chars = '';
 6016+ var literal = false;
 6017+ for (var iFormat = 0; iFormat < format.length; iFormat++)
 6018+ if (literal)
 6019+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
 6020+ literal = false;
 6021+ else
 6022+ chars += format.charAt(iFormat);
 6023+ else
 6024+ switch (format.charAt(iFormat)) {
 6025+ case 'd': case 'm': case 'y': case '@':
 6026+ chars += '0123456789';
 6027+ break;
 6028+ case 'D': case 'M':
 6029+ return null; // Accept anything
 6030+ case "'":
 6031+ if (lookAhead("'"))
 6032+ chars += "'";
 6033+ else
 6034+ literal = true;
 6035+ break;
 6036+ default:
 6037+ chars += format.charAt(iFormat);
 6038+ }
 6039+ return chars;
 6040+ },
 6041+
 6042+ /* Get a setting value, defaulting if necessary. */
 6043+ _get: function(inst, name) {
 6044+ return inst.settings[name] !== undefined ?
 6045+ inst.settings[name] : this._defaults[name];
 6046+ },
 6047+
 6048+ /* Parse existing date and initialise date picker. */
 6049+ _setDateFromField: function(inst) {
 6050+ var dateFormat = this._get(inst, 'dateFormat');
 6051+ var dates = inst.input ? inst.input.val().split(this._get(inst, 'rangeSeparator')) : null;
 6052+ inst.endDay = inst.endMonth = inst.endYear = null;
 6053+ var date = defaultDate = this._getDefaultDate(inst);
 6054+ if (dates.length > 0) {
 6055+ var settings = this._getFormatConfig(inst);
 6056+ if (dates.length > 1) {
 6057+ date = this.parseDate(dateFormat, dates[1], settings) || defaultDate;
 6058+ inst.endDay = date.getDate();
 6059+ inst.endMonth = date.getMonth();
 6060+ inst.endYear = date.getFullYear();
 6061+ }
 6062+ try {
 6063+ date = this.parseDate(dateFormat, dates[0], settings) || defaultDate;
 6064+ } catch (e) {
 6065+ this.log(e);
 6066+ date = defaultDate;
 6067+ }
 6068+ }
 6069+ inst.selectedDay = date.getDate();
 6070+ inst.drawMonth = inst.selectedMonth = date.getMonth();
 6071+ inst.drawYear = inst.selectedYear = date.getFullYear();
 6072+ inst.currentDay = (dates[0] ? date.getDate() : 0);
 6073+ inst.currentMonth = (dates[0] ? date.getMonth() : 0);
 6074+ inst.currentYear = (dates[0] ? date.getFullYear() : 0);
 6075+ this._adjustInstDate(inst);
 6076+ },
 6077+
 6078+ /* Retrieve the default date shown on opening. */
 6079+ _getDefaultDate: function(inst) {
 6080+ var date = this._determineDate(this._get(inst, 'defaultDate'), new Date());
 6081+ var minDate = this._getMinMaxDate(inst, 'min', true);
 6082+ var maxDate = this._getMinMaxDate(inst, 'max');
 6083+ date = (minDate && date < minDate ? minDate : date);
 6084+ date = (maxDate && date > maxDate ? maxDate : date);
 6085+ return date;
 6086+ },
 6087+
 6088+ /* A date may be specified as an exact value or a relative one. */
 6089+ _determineDate: function(date, defaultDate) {
 6090+ var offsetNumeric = function(offset) {
 6091+ var date = new Date();
 6092+ date.setUTCDate(date.getUTCDate() + offset);
 6093+ return date;
 6094+ };
 6095+ var offsetString = function(offset, getDaysInMonth) {
 6096+ var date = new Date();
 6097+ var year = date.getFullYear();
 6098+ var month = date.getMonth();
 6099+ var day = date.getDate();
 6100+ var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
 6101+ var matches = pattern.exec(offset);
 6102+ while (matches) {
 6103+ switch (matches[2] || 'd') {
 6104+ case 'd' : case 'D' :
 6105+ day += parseInt(matches[1]); break;
 6106+ case 'w' : case 'W' :
 6107+ day += parseInt(matches[1]) * 7; break;
 6108+ case 'm' : case 'M' :
 6109+ month += parseInt(matches[1]);
 6110+ day = Math.min(day, getDaysInMonth(year, month));
 6111+ break;
 6112+ case 'y': case 'Y' :
 6113+ year += parseInt(matches[1]);
 6114+ day = Math.min(day, getDaysInMonth(year, month));
 6115+ break;
 6116+ }
 6117+ matches = pattern.exec(offset);
 6118+ }
 6119+ return new Date(year, month, day);
 6120+ };
 6121+ date = (date == null ? defaultDate :
 6122+ (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) :
 6123+ (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date)));
 6124+ return (date && date.toString() == 'Invalid Date' ? defaultDate : date);
 6125+ },
 6126+
 6127+ /* Set the date(s) directly. */
 6128+ _setDate: function(inst, date, endDate) {
 6129+ var clear = !(date);
 6130+ var origMonth = inst.selectedMonth;
 6131+ var origYear = inst.selectedYear;
 6132+ date = this._determineDate(date, new Date());
 6133+ inst.selectedDay = inst.currentDay = date.getDate();
 6134+ inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth();
 6135+ inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear();
 6136+ if (this._get(inst, 'rangeSelect')) {
 6137+ if (endDate) {
 6138+ endDate = this._determineDate(endDate, null);
 6139+ inst.endDay = endDate.getDate();
 6140+ inst.endMonth = endDate.getMonth();
 6141+ inst.endYear = endDate.getFullYear();
 6142+ } else {
 6143+ inst.endDay = inst.currentDay;
 6144+ inst.endMonth = inst.currentMonth;
 6145+ inst.endYear = inst.currentYear;
 6146+ }
 6147+ }
 6148+ if (origMonth != inst.selectedMonth || origYear != inst.selectedYear)
 6149+ this._notifyChange(inst);
 6150+ this._adjustInstDate(inst);
 6151+ if (inst.input)
 6152+ inst.input.val(clear ? '' : this._formatDate(inst) +
 6153+ (!this._get(inst, 'rangeSelect') ? '' : this._get(inst, 'rangeSeparator') +
 6154+ this._formatDate(inst, inst.endDay, inst.endMonth, inst.endYear)));
 6155+ },
 6156+
 6157+ /* Retrieve the date(s) directly. */
 6158+ _getDate: function(inst) {
 6159+ var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null :
 6160+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
 6161+ if (this._get(inst, 'rangeSelect')) {
 6162+ return [inst.rangeStart || startDate,
 6163+ (!inst.endYear ? inst.rangeStart || startDate :
 6164+ new Date(inst.endYear, inst.endMonth, inst.endDay))];
 6165+ } else
 6166+ return startDate;
 6167+ },
 6168+
 6169+ /* Generate the HTML for the current state of the date picker. */
 6170+ _generateHTML: function(inst) {
 6171+ var today = new Date();
 6172+ today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // clear time
 6173+ var showStatus = this._get(inst, 'showStatus');
 6174+ var initStatus = this._get(inst, 'initStatus') || '&#xa0;';
 6175+ var isRTL = this._get(inst, 'isRTL');
 6176+ // build the date picker HTML
 6177+ var clear = (this._get(inst, 'mandatory') ? '' :
 6178+ '<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#' + inst.id + '\');"' +
 6179+ this._addStatus(showStatus, inst.id, this._get(inst, 'clearStatus'), initStatus) + '>' +
 6180+ this._get(inst, 'clearText') + '</a></div>');
 6181+ var controls = '<div class="ui-datepicker-control">' + (isRTL ? '' : clear) +
 6182+ '<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"' +
 6183+ this._addStatus(showStatus, inst.id, this._get(inst, 'closeStatus'), initStatus) + '>' +
 6184+ this._get(inst, 'closeText') + '</a></div>' + (isRTL ? clear : '') + '</div>';
 6185+ var prompt = this._get(inst, 'prompt');
 6186+ var closeAtTop = this._get(inst, 'closeAtTop');
 6187+ var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');
 6188+ var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');
 6189+ var showBigPrevNext = this._get(inst, 'showBigPrevNext');
 6190+ var numMonths = this._getNumberOfMonths(inst);
 6191+ var showCurrentAtPos = this._get(inst, 'showCurrentAtPos');
 6192+ var stepMonths = this._get(inst, 'stepMonths');
 6193+ var stepBigMonths = this._get(inst, 'stepBigMonths');
 6194+ var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
 6195+ var currentDate = (!inst.currentDay ? new Date(9999, 9, 9) :
 6196+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
 6197+ var minDate = this._getMinMaxDate(inst, 'min', true);
 6198+ var maxDate = this._getMinMaxDate(inst, 'max');
 6199+ var drawMonth = inst.drawMonth - showCurrentAtPos;
 6200+ var drawYear = inst.drawYear;
 6201+ if (drawMonth < 0) {
 6202+ drawMonth += 12;
 6203+ drawYear--;
 6204+ }
 6205+ if (maxDate) {
 6206+ var maxDraw = new Date(maxDate.getFullYear(),
 6207+ maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate());
 6208+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
 6209+ while (new Date(drawYear, drawMonth, 1) > maxDraw) {
 6210+ drawMonth--;
 6211+ if (drawMonth < 0) {
 6212+ drawMonth = 11;
 6213+ drawYear--;
 6214+ }
 6215+ }
 6216+ }
 6217+ // controls and links
 6218+ var prevText = this._get(inst, 'prevText');
 6219+ prevText = (!navigationAsDateFormat ? prevText : this.formatDate(
 6220+ prevText, new Date(drawYear, drawMonth - stepMonths, 1), this._getFormatConfig(inst)));
 6221+ var prevBigText = (showBigPrevNext ? this._get(inst, 'prevBigText') : '');
 6222+ prevBigText = (!navigationAsDateFormat ? prevBigText : this.formatDate(
 6223+ prevBigText, new Date(drawYear, drawMonth - stepBigMonths, 1), this._getFormatConfig(inst)));
 6224+ var prev = '<div class="ui-datepicker-prev">' + (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
 6225+ (showBigPrevNext ? '<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepBigMonths + ', \'M\');"' +
 6226+ this._addStatus(showStatus, inst.id, this._get(inst, 'prevBigStatus'), initStatus) + '>' + prevBigText + '</a>' : '') +
 6227+ '<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' +
 6228+ this._addStatus(showStatus, inst.id, this._get(inst, 'prevStatus'), initStatus) + '>' + prevText + '</a>' :
 6229+ (hideIfNoPrevNext ? '' : '<label>' + prevBigText + '</label><label>' + prevText + '</label>')) + '</div>';
 6230+ var nextText = this._get(inst, 'nextText');
 6231+ nextText = (!navigationAsDateFormat ? nextText : this.formatDate(
 6232+ nextText, new Date(drawYear, drawMonth + stepMonths, 1), this._getFormatConfig(inst)));
 6233+ var nextBigText = (showBigPrevNext ? this._get(inst, 'nextBigText') : '');
 6234+ nextBigText = (!navigationAsDateFormat ? nextBigText : this.formatDate(
 6235+ nextBigText, new Date(drawYear, drawMonth + stepBigMonths, 1), this._getFormatConfig(inst)));
 6236+ var next = '<div class="ui-datepicker-next">' + (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
 6237+ '<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', +' + stepMonths + ', \'M\');"' +
 6238+ this._addStatus(showStatus, inst.id, this._get(inst, 'nextStatus'), initStatus) + '>' + nextText + '</a>' +
 6239+ (showBigPrevNext ? '<a onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', +' + stepBigMonths + ', \'M\');"' +
 6240+ this._addStatus(showStatus, inst.id, this._get(inst, 'nextBigStatus'), initStatus) + '>' + nextBigText + '</a>' : '') :
 6241+ (hideIfNoPrevNext ? '' : '<label>' + nextText + '</label><label>' + nextBigText + '</label>')) + '</div>';
 6242+ var currentText = this._get(inst, 'currentText');
 6243+ var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today);
 6244+ currentText = (!navigationAsDateFormat ? currentText :
 6245+ this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
 6246+ var html = (prompt ? '<div class="' + this._promptClass + '">' + prompt + '</div>' : '') +
 6247+ (closeAtTop && !inst.inline ? controls : '') +
 6248+ '<div class="ui-datepicker-links">' + (isRTL ? next : prev) +
 6249+ (this._isInRange(inst, gotoDate) ? '<div class="ui-datepicker-current">' +
 6250+ '<a onclick="jQuery.datepicker._gotoToday(\'#' + inst.id + '\');"' +
 6251+ this._addStatus(showStatus, inst.id, this._get(inst, 'currentStatus'), initStatus) + '>' +
 6252+ currentText + '</a></div>' : '') + (isRTL ? prev : next) + '</div>';
 6253+ var firstDay = this._get(inst, 'firstDay');
 6254+ var changeFirstDay = this._get(inst, 'changeFirstDay');
 6255+ var dayNames = this._get(inst, 'dayNames');
 6256+ var dayNamesShort = this._get(inst, 'dayNamesShort');
 6257+ var dayNamesMin = this._get(inst, 'dayNamesMin');
 6258+ var monthNames = this._get(inst, 'monthNames');
 6259+ var beforeShowDay = this._get(inst, 'beforeShowDay');
 6260+ var highlightWeek = this._get(inst, 'highlightWeek');
 6261+ var showOtherMonths = this._get(inst, 'showOtherMonths');
 6262+ var showWeeks = this._get(inst, 'showWeeks');
 6263+ var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week;
 6264+ var weekStatus = this._get(inst, 'weekStatus');
 6265+ var status = (showStatus ? this._get(inst, 'dayStatus') || initStatus : '');
 6266+ var dateStatus = this._get(inst, 'statusForDate') || this.dateStatus;
 6267+ var endDate = inst.endDay ? new Date(inst.endYear, inst.endMonth, inst.endDay) : currentDate;
 6268+ for (var row = 0; row < numMonths[0]; row++)
 6269+ for (var col = 0; col < numMonths[1]; col++) {
 6270+ var selectedDate = new Date(drawYear, drawMonth, inst.selectedDay);
 6271+ html += '<div class="ui-datepicker-one-month' + (col == 0 ? ' ui-datepicker-new-row' : '') + '">' +
 6272+ this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,
 6273+ selectedDate, row > 0 || col > 0, showStatus, initStatus, monthNames) + // draw month headers
 6274+ '<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead>' +
 6275+ '<tr class="ui-datepicker-title-row">' +
 6276+ (showWeeks ? '<td' + this._addStatus(showStatus, inst.id, weekStatus, initStatus) + '>' +
 6277+ this._get(inst, 'weekHeader') + '</td>' : '');
 6278+ for (var dow = 0; dow < 7; dow++) { // days of the week
 6279+ var day = (dow + firstDay) % 7;
 6280+ var dayStatus = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) :
 6281+ status.replace(/D/, dayNamesShort[day]));
 6282+ html += '<td' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' +
 6283+ (!changeFirstDay ? '<span' :
 6284+ '<a onclick="jQuery.datepicker._changeFirstDay(\'#' + inst.id + '\', ' + day + ');"') +
 6285+ this._addStatus(showStatus, inst.id, dayStatus, initStatus) + ' title="' + dayNames[day] + '">' +
 6286+ dayNamesMin[day] + (changeFirstDay ? '</a>' : '</span>') + '</td>';
 6287+ }
 6288+ html += '</tr></thead><tbody>';
 6289+ var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
 6290+ if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)
 6291+ inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
 6292+ var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
 6293+ var tzDate = new Date(drawYear, drawMonth, 1 - leadDays);
 6294+ var utcDate = new Date(drawYear, drawMonth, 1 - leadDays);
 6295+ var printDate = utcDate;
 6296+ var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
 6297+ for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
 6298+ html += '<tr class="ui-datepicker-days-row">' +
 6299+ (showWeeks ? '<td class="ui-datepicker-week-col"' +
 6300+ this._addStatus(showStatus, inst.id, weekStatus, initStatus) + '>' +
 6301+ calculateWeek(printDate) + '</td>' : '');
 6302+ for (var dow = 0; dow < 7; dow++) { // create date picker days
 6303+ var daySettings = (beforeShowDay ?
 6304+ beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']);
 6305+ var otherMonth = (printDate.getMonth() != drawMonth);
 6306+ var unselectable = otherMonth || !daySettings[0] ||
 6307+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
 6308+ html += '<td class="ui-datepicker-days-cell' +
 6309+ ((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end-cell' : '') + // highlight weekends
 6310+ (otherMonth ? ' ui-datepicker-other-month' : '') + // highlight days from other months
 6311+ (printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth ?
 6312+ ' ui-datepicker-days-cell-over' : '') + // highlight selected day
 6313+ (unselectable ? ' ' + this._unselectableClass : '') + // highlight unselectable days
 6314+ (otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates
 6315+ (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range
 6316+ ' ' + this._currentClass : '') + // highlight selected day
 6317+ (printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
 6318+ ((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
 6319+ (unselectable ? (highlightWeek ? ' onmouseover="jQuery(this).parent().addClass(\'ui-datepicker-week-over\');"' + // highlight selection week
 6320+ ' onmouseout="jQuery(this).parent().removeClass(\'ui-datepicker-week-over\');"' : '') : // unhighlight selection week
 6321+ ' onmouseover="jQuery(this).addClass(\'ui-datepicker-days-cell-over\')' + // highlight selection
 6322+ (highlightWeek ? '.parent().addClass(\'ui-datepicker-week-over\')' : '') + ';' + // highlight selection week
 6323+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
 6324+ inst.id + '\').html(\'' + (dateStatus.apply((inst.input ? inst.input[0] : null),
 6325+ [printDate, inst]) || initStatus) +'\');') + '"' +
 6326+ ' onmouseout="jQuery(this).removeClass(\'ui-datepicker-days-cell-over\')' + // unhighlight selection
 6327+ (highlightWeek ? '.parent().removeClass(\'ui-datepicker-week-over\')' : '') + ';' + // unhighlight selection week
 6328+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
 6329+ inst.id + '\').html(\'' + initStatus + '\');') + '" onclick="jQuery.datepicker._selectDay(\'#' +
 6330+ inst.id + '\',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions
 6331+ (otherMonth ? (showOtherMonths ? printDate.getDate() : '&#xa0;') : // display for other months
 6332+ (unselectable ? printDate.getDate() : '<a>' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
 6333+ tzDate.setDate(tzDate.getDate() + 1);
 6334+ utcDate.setUTCDate(utcDate.getUTCDate() + 1);
 6335+ printDate = (tzDate > utcDate ? tzDate : utcDate);
 6336+ }
 6337+ html += '</tr>';
 6338+ }
 6339+ drawMonth++;
 6340+ if (drawMonth > 11) {
 6341+ drawMonth = 0;
 6342+ drawYear++;
 6343+ }
 6344+ html += '</tbody></table></div>';
 6345+ }
 6346+ html += (showStatus ? '<div style="clear: both;"></div><div id="ui-datepicker-status-' + inst.id +
 6347+ '" class="ui-datepicker-status">' + initStatus + '</div>' : '') +
 6348+ (!closeAtTop && !inst.inline ? controls : '') +
 6349+ '<div style="clear: both;"></div>' +
 6350+ ($.browser.msie && parseInt($.browser.version) < 7 && !inst.inline ?
 6351+ '<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>' : '');
 6352+ return html;
 6353+ },
 6354+
 6355+ /* Generate the month and year header. */
 6356+ _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
 6357+ selectedDate, secondary, showStatus, initStatus, monthNames) {
 6358+ minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
 6359+ var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');
 6360+ var html = '<div class="ui-datepicker-header">';
 6361+ var monthHtml = '';
 6362+ // month selection
 6363+ if (secondary || !this._get(inst, 'changeMonth'))
 6364+ monthHtml += monthNames[drawMonth] + '&#xa0;';
 6365+ else {
 6366+ var inMinYear = (minDate && minDate.getFullYear() == drawYear);
 6367+ var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
 6368+ monthHtml += '<select class="ui-datepicker-new-month" ' +
 6369+ 'onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'M\');" ' +
 6370+ 'onclick="jQuery.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
 6371+ this._addStatus(showStatus, inst.id, this._get(inst, 'monthStatus'), initStatus) + '>';
 6372+ for (var month = 0; month < 12; month++) {
 6373+ if ((!inMinYear || month >= minDate.getMonth()) &&
 6374+ (!inMaxYear || month <= maxDate.getMonth()))
 6375+ monthHtml += '<option value="' + month + '"' +
 6376+ (month == drawMonth ? ' selected="selected"' : '') +
 6377+ '>' + monthNames[month] + '</option>';
 6378+ }
 6379+ monthHtml += '</select>';
 6380+ }
 6381+ if (!showMonthAfterYear)
 6382+ html += monthHtml;
 6383+ // year selection
 6384+ if (secondary || !this._get(inst, 'changeYear'))
 6385+ html += drawYear;
 6386+ else {
 6387+ // determine range of years to display
 6388+ var years = this._get(inst, 'yearRange').split(':');
 6389+ var year = 0;
 6390+ var endYear = 0;
 6391+ if (years.length != 2) {
 6392+ year = drawYear - 10;
 6393+ endYear = drawYear + 10;
 6394+ } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
 6395+ year = endYear = new Date().getFullYear();
 6396+ year += parseInt(years[0], 10);
 6397+ endYear += parseInt(years[1], 10);
 6398+ } else {
 6399+ year = parseInt(years[0], 10);
 6400+ endYear = parseInt(years[1], 10);
 6401+ }
 6402+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
 6403+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
 6404+ html += '<select class="ui-datepicker-new-year" ' +
 6405+ 'onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'Y\');" ' +
 6406+ 'onclick="jQuery.datepicker._clickMonthYear(\'#' + inst.id + '\');"' +
 6407+ this._addStatus(showStatus, inst.id, this._get(inst, 'yearStatus'), initStatus) + '>';
 6408+ for (; year <= endYear; year++) {
 6409+ html += '<option value="' + year + '"' +
 6410+ (year == drawYear ? ' selected="selected"' : '') +
 6411+ '>' + year + '</option>';
 6412+ }
 6413+ html += '</select>';
 6414+ }
 6415+ if (showMonthAfterYear)
 6416+ html += monthHtml;
 6417+ html += '</div>'; // Close datepicker_header
 6418+ return html;
 6419+ },
 6420+
 6421+ /* Provide code to set and clear the status panel. */
 6422+ _addStatus: function(showStatus, id, text, initStatus) {
 6423+ return (showStatus ? ' onmouseover="jQuery(\'#ui-datepicker-status-' + id +
 6424+ '\').html(\'' + (text || initStatus) + '\');" ' +
 6425+ 'onmouseout="jQuery(\'#ui-datepicker-status-' + id +
 6426+ '\').html(\'' + initStatus + '\');"' : '');
 6427+ },
 6428+
 6429+ /* Adjust one of the date sub-fields. */
 6430+ _adjustInstDate: function(inst, offset, period) {
 6431+ var year = inst.drawYear + (period == 'Y' ? offset : 0);
 6432+ var month = inst.drawMonth + (period == 'M' ? offset : 0);
 6433+ var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) +
 6434+ (period == 'D' ? offset : 0);
 6435+ var date = new Date(year, month, day);
 6436+ // ensure it is within the bounds set
 6437+ var minDate = this._getMinMaxDate(inst, 'min', true);
 6438+ var maxDate = this._getMinMaxDate(inst, 'max');
 6439+ date = (minDate && date < minDate ? minDate : date);
 6440+ date = (maxDate && date > maxDate ? maxDate : date);
 6441+ inst.selectedDay = date.getDate();
 6442+ inst.drawMonth = inst.selectedMonth = date.getMonth();
 6443+ inst.drawYear = inst.selectedYear = date.getFullYear();
 6444+ if (period == 'M' || period == 'Y')
 6445+ this._notifyChange(inst);
 6446+ },
 6447+
 6448+ /* Notify change of month/year. */
 6449+ _notifyChange: function(inst) {
 6450+ var onChange = this._get(inst, 'onChangeMonthYear');
 6451+ if (onChange)
 6452+ onChange.apply((inst.input ? inst.input[0] : null),
 6453+ [inst.selectedYear, inst.selectedMonth + 1, inst]);
 6454+ },
 6455+
 6456+ /* Determine the number of months to show. */
 6457+ _getNumberOfMonths: function(inst) {
 6458+ var numMonths = this._get(inst, 'numberOfMonths');
 6459+ return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));
 6460+ },
 6461+
 6462+ /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */
 6463+ _getMinMaxDate: function(inst, minMax, checkRange) {
 6464+ var date = this._determineDate(this._get(inst, minMax + 'Date'), null);
 6465+ if (date) {
 6466+ date.setHours(0);
 6467+ date.setMinutes(0);
 6468+ date.setSeconds(0);
 6469+ date.setMilliseconds(0);
 6470+ }
 6471+ return (!checkRange || !inst.rangeStart ? date :
 6472+ (!date || inst.rangeStart > date ? inst.rangeStart : date));
 6473+ },
 6474+
 6475+ /* Find the number of days in a given month. */
 6476+ _getDaysInMonth: function(year, month) {
 6477+ return 32 - new Date(year, month, 32).getDate();
 6478+ },
 6479+
 6480+ /* Find the day of the week of the first of a month. */
 6481+ _getFirstDayOfMonth: function(year, month) {
 6482+ return new Date(year, month, 1).getDay();
 6483+ },
 6484+
 6485+ /* Determines if we should allow a "next/prev" month display change. */
 6486+ _canAdjustMonth: function(inst, offset, curYear, curMonth) {
 6487+ var numMonths = this._getNumberOfMonths(inst);
 6488+ var date = new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1);
 6489+ if (offset < 0)
 6490+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
 6491+ return this._isInRange(inst, date);
 6492+ },
 6493+
 6494+ /* Is the given date in the accepted range? */
 6495+ _isInRange: function(inst, date) {
 6496+ // during range selection, use minimum of selected date and range start
 6497+ var newMinDate = (!inst.rangeStart ? null :
 6498+ new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay));
 6499+ newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate);
 6500+ var minDate = newMinDate || this._getMinMaxDate(inst, 'min');
 6501+ var maxDate = this._getMinMaxDate(inst, 'max');
 6502+ return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate));
 6503+ },
 6504+
 6505+ /* Provide the configuration settings for formatting/parsing. */
 6506+ _getFormatConfig: function(inst) {
 6507+ var shortYearCutoff = this._get(inst, 'shortYearCutoff');
 6508+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
 6509+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
 6510+ return {shortYearCutoff: shortYearCutoff,
 6511+ dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'),
 6512+ monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')};
 6513+ },
 6514+
 6515+ /* Format the given date for display. */
 6516+ _formatDate: function(inst, day, month, year) {
 6517+ if (!day) {
 6518+ inst.currentDay = inst.selectedDay;
 6519+ inst.currentMonth = inst.selectedMonth;
 6520+ inst.currentYear = inst.selectedYear;
 6521+ }
 6522+ var date = (day ? (typeof day == 'object' ? day : new Date(year, month, day)) :
 6523+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
 6524+ return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst));
 6525+ }
 6526+});
 6527+
 6528+/* jQuery extend now ignores nulls! */
 6529+function extendRemove(target, props) {
 6530+ $.extend(target, props);
 6531+ for (var name in props)
 6532+ if (props[name] == null || props[name] == undefined)
 6533+ target[name] = props[name];
 6534+ return target;
 6535+};
 6536+
 6537+/* Determine whether an object is an array. */
 6538+function isArray(a) {
 6539+ return (a && (($.browser.safari && typeof a == 'object' && a.length) ||
 6540+ (a.constructor && a.constructor.toString().match(/\Array\(\)/))));
 6541+};
 6542+
 6543+/* Invoke the datepicker functionality.
 6544+ @param options string - a command, optionally followed by additional parameters or
 6545+ Object - settings for attaching new datepicker functionality
 6546+ @return jQuery object */
 6547+$.fn.datepicker = function(options){
 6548+
 6549+ /* Initialise the date picker. */
 6550+ if (!$.datepicker.initialized) {
 6551+ $(document.body).append($.datepicker.dpDiv).
 6552+ mousedown($.datepicker._checkExternalClick);
 6553+ $.datepicker.initialized = true;
 6554+ }
 6555+
 6556+ var otherArgs = Array.prototype.slice.call(arguments, 1);
 6557+ if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate'))
 6558+ return $.datepicker['_' + options + 'Datepicker'].
 6559+ apply($.datepicker, [this[0]].concat(otherArgs));
 6560+ return this.each(function() {
 6561+ typeof options == 'string' ?
 6562+ $.datepicker['_' + options + 'Datepicker'].
 6563+ apply($.datepicker, [this].concat(otherArgs)) :
 6564+ $.datepicker._attachDatepicker(this, options);
 6565+ });
 6566+};
 6567+
 6568+$.datepicker = new Datepicker(); // singleton instance
 6569+$.datepicker.initialized = false;
 6570+$.datepicker.uuid = new Date().getTime();
 6571+
 6572+})(jQuery);
 6573+/*
 6574+ * jQuery UI ProgressBar @VERSION
 6575+ *
 6576+ * Copyright (c) 2008 Eduardo Lundgren
 6577+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 6578+ * and GPL (GPL-LICENSE.txt) licenses.
 6579+ *
 6580+ * http://docs.jquery.com/UI/ProgressBar
 6581+ *
 6582+ * Depends:
 6583+ * ui.core.js
 6584+ */
 6585+(function($) {
 6586+
 6587+$.widget("ui.progressbar", {
 6588+ _init: function() {
 6589+
 6590+ this._interval = this.options.interval;
 6591+
 6592+ var self = this,
 6593+ options = this.options,
 6594+ id = (new Date()).getTime()+Math.random(),
 6595+ text = options.text || '0%';
 6596+
 6597+ this.element.addClass("ui-progressbar").width(options.width);
 6598+
 6599+ $.extend(this, {
 6600+ active: false,
 6601+ pixelState: 0,
 6602+ percentState: 0,
 6603+ identifier: id,
 6604+ bar: $('<div class="ui-progressbar-bar ui-hidden"></div>').css({
 6605+ width: '0px', overflow: 'hidden', zIndex: 100
 6606+ }),
 6607+ textElement: $('<div class="ui-progressbar-text"></div>').html(text).css({
 6608+ width: '0px', overflow: 'hidden'
 6609+ }),
 6610+ textBg: $('<div class="ui-progressbar-text ui-progressbar-text-back"></div>').html(text).css({
 6611+ width: this.element.width()
 6612+ }),
 6613+ wrapper: $('<div class="ui-progressbar-wrap"></div>')
 6614+ });
 6615+
 6616+ this.wrapper
 6617+ .append(this.bar.append(this.textElement.addClass(options.textClass)), this.textBg)
 6618+ .appendTo(this.element);
 6619+
 6620+ jQuery.easing[this.identifier] = function (x, t, b, c, d) {
 6621+ var inc = options.increment,
 6622+ width = options.width,
 6623+ step = ((inc > width ? width : inc)/width),
 6624+ state = Math.round(x/step)*step;
 6625+ return state > 1 ? 1 : state;
 6626+ };
 6627+ },
 6628+
 6629+ plugins: {},
 6630+ ui: function(e) {
 6631+ return {
 6632+ identifier: this.identifier,
 6633+ options: this.options,
 6634+ element: this.bar,
 6635+ textElement: this.textElement,
 6636+ pixelState: this.pixelState,
 6637+ percentState: this.percentState
 6638+ };
 6639+ },
 6640+ _propagate: function(n,e) {
 6641+ $.ui.plugin.call(this, n, [e, this.ui()]);
 6642+ this.element.triggerHandler(n == "progressbar" ? n : ["progressbar", n].join(""), [e, this.ui()], this.options[n]);
 6643+ },
 6644+ destroy: function() {
 6645+ this.stop();
 6646+
 6647+ this.element
 6648+ .removeClass("ui-progressbar ui-progressbar-disabled")
 6649+ .removeData("progressbar").unbind(".progressbar")
 6650+ .find('.ui-progressbar-wrap').remove();
 6651+
 6652+ delete jQuery.easing[this.identifier];
 6653+ },
 6654+ enable: function() {
 6655+ this.element.removeClass("ui-progressbar-disabled");
 6656+ this.disabled = false;
 6657+ },
 6658+ disable: function() {
 6659+ this.element.addClass("ui-progressbar-disabled");
 6660+ this.disabled = true;
 6661+ },
 6662+ start: function() {
 6663+ var self = this, options = this.options;
 6664+
 6665+ if (this.disabled) {
 6666+ return;
 6667+ }
 6668+
 6669+ self.active = true;
 6670+
 6671+ setTimeout(
 6672+ function() {
 6673+ self.active = false;
 6674+ },
 6675+ options.duration
 6676+ );
 6677+
 6678+ this._animate();
 6679+
 6680+ this._propagate('start', this.ui());
 6681+ return false;
 6682+ },
 6683+ _animate: function() {
 6684+ var self = this,
 6685+ options = this.options,
 6686+ interval = options.interval;
 6687+
 6688+ this.bar.animate(
 6689+ {
 6690+ width: options.width
 6691+ },
 6692+ {
 6693+ duration: interval,
 6694+ easing: this.identifier,
 6695+ step: function(step, b) {
 6696+ self.progress((step/options.width)*100);
 6697+ var elapsedTime = ((new Date().getTime()) - b.startTime);
 6698+ options.interval = interval - elapsedTime;
 6699+ },
 6700+ complete: function() {
 6701+ delete jQuery.easing[self.identifier];
 6702+ self.pause();
 6703+
 6704+ if (self.active) {
 6705+ /*TODO*/
 6706+ self.stop();
 6707+ self._animate();
 6708+ }
 6709+ }
 6710+ }
 6711+ );
 6712+ },
 6713+ pause: function() {
 6714+ if (this.disabled) return;
 6715+ this.bar.stop();
 6716+ this._propagate('pause', this.ui());
 6717+ },
 6718+ stop: function() {
 6719+ this.bar.stop();
 6720+ this.bar.width(0);
 6721+ this.textElement.width(0);
 6722+ this.bar.addClass('ui-hidden');
 6723+ this.options.interval = this._interval;
 6724+ this._propagate('stop', this.ui());
 6725+ },
 6726+ progress: function(percentState) {
 6727+ if (this.bar.is('.ui-hidden')) {
 6728+ this.bar.removeClass('ui-hidden');
 6729+ }
 6730+
 6731+ this.percentState = percentState > 100 ? 100 : percentState;
 6732+ this.pixelState = (this.percentState/100)*this.options.width;
 6733+ this.bar.width(this.pixelState);
 6734+ this.textElement.width(this.pixelState);
 6735+
 6736+ if (this.options.range && !this.options.text) {
 6737+ this.textElement.html(Math.round(this.percentState) + '%');
 6738+ }
 6739+ this._propagate('progress', this.ui());
 6740+ }
 6741+});
 6742+
 6743+$.ui.progressbar.defaults = {
 6744+ width: 300,
 6745+ duration: 3000,
 6746+ interval: 200,
 6747+ increment: 1,
 6748+ range: true,
 6749+ text: '',
 6750+ addClass: '',
 6751+ textClass: ''
 6752+};
 6753+
 6754+})(jQuery);
Index: trunk/extensions/MetavidWiki/skins/mv_embed/jquery/jquery-ui-personalized-1.6rc1.packed.js
@@ -0,0 +1 @@
 2+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(u(D){p C=D.fn.2M;D.fn.2M=u(){D("*",k).2D(k).2Q("2M");18 C.2s(k,4y)};u B(E){u G(H){p I=H.3r;18(I.4L!="5H"&&I.fg!="4m")}p F=G(E);(F&&D.1K(D.h0(E,"2K"),u(){18(F=G(k))}));18 F}D.2d(D.hL[":"],{1x:u(F,G,E){18 D.1x(F,E[3])},ht:u(F,G,E){p H=F.2E.4z();18(F.hC>=0&&(("a"==H&&F.gd)||(/1v|5h|9N|4D/.1H(H)&&"4m"!=F.3K&&!F.24))&&B(F))}});D.6O={bF:8,hY:20,cp:ee,hV:17,hO:46,cC:40,hP:35,hQ:13,h3:27,h5:36,gS:45,ha:37,ho:hp,hj:he,hf:j0,iQ:iP,iO:iR,iU:j6,j7:34,jk:33,ji:jo,ja:39,j8:16,jb:32,cv:9,cA:38};u A(H,I,J,G){u F(L){p K=D[H][I][L]||[];18(2v K=="3W"?K.6p(/,?\\s+/):K)}p E=F("cS");if(G.1w==1&&2v G[0]=="3W"){E=E.cw(F("eU"))}18(D.ii(J,E)!=-1)}D.4e=u(F,E){p G=F.6p(".")[0];F=F.6p(".")[1];D.fn[F]=u(K){p I=(2v K=="3W"),J=c4.5T.6D.1D(4y,1);if(I&&K.ct(0,1)=="aO"){18 k}if(I&&A(G,F,K,J)){p H=D.1x(k[0],F);18(H?H[K].2s(H,J):2a)}18 k.1K(u(){p L=D.1x(k,F);(!L&&!I&&D.1x(k,F,1G D[G][F](k,K)));(L&&I&&D.7T(L[K])&&L[K].2s(L,J))})};D[G][F]=u(J,I){p H=k;k.6r=F;k.bE=D[G][F].iq||F;k.eV=G+"-"+F;k.19=D.2d({},D.4e.3V,D[G][F].3V,D.eT&&D.eT.3w(J)[F],I);k.1c=D(J).21("a2."+F,u(M,K,L){18 H.7q(K,L)}).21("dr."+F,u(L,K){18 H.bm(K)}).21("2M",u(){18 H.5C()});k.5i()};D[G][F].5T=D.2d({},D.4e.5T,E);D[G][F].eU="89"};D.4e.5T={5i:u(){},5C:u(){k.1c.5b(k.6r)},89:u(G,H){p F=G,E=k;if(2v G=="3W"){if(H===2a){18 k.bm(G)}F={};F[G]=H}D.1K(F,u(I,J){E.7q(I,J)})},bm:u(E){18 k.19[E]},7q:u(E,F){k.19[E]=F;if(E=="24"){k.1c[F?"1E":"23"](k.eV+"-24")}},bz:u(){k.7q("24",1h)},bA:u(){k.7q("24",1t)},8a:u(F,H,G){p E=(F==k.bE?F:k.bE+F);H=H||D.76.i7({3K:E,1m:k.1c[0]});18 k.1c.2Q(E,[H,G],k.19[F])}};D.4e.3V={24:1h};D.15={2r:{2D:u(F,G,I){p H=D.15[F].5T;1F(p E in I){H.5N[E]=H.5N[E]||[];H.5N[E].4l([G,I[E]])}},1D:u(E,G,F){p I=E.5N[G];if(!I){18}1F(p H=0;H<I.1w;H++){if(E.19[I[H][0]]){I[H][1].2s(E.1c,F)}}}},9j:{},1d:u(E){if(D.15.9j[E]){18 D.15.9j[E]}p F=D(\'<1s 1X="15-i8">\').1E(E).1d({1o:"2n",1b:"-eS",1a:"-eS",4L:"7K"}).3k("1S");D.15.9j[E]=!!((!(/3x|4K/).1H(F.1d("2p"))||(/^[1-9]/).1H(F.1d("1g"))||(/^[1-9]/).1H(F.1d("1e"))||!(/5H/).1H(F.1d("ib"))||!(/8O|ir\\(0, 0, 0, 0\\)/).1H(F.1d("ax"))));ar{D("1S").3w(0).cE(F.3w(0))}aq(G){}18 D.15.9j[E]},8I:u(E){D(E).4Z("5X","eP").1d("eR","5H").21("eO.15",u(){18 1h})},iD:u(E){D(E).4Z("5X","ef").1d("eR","").2H("eO.15")},9B:u(H,F){p E=(F&&F=="1a")?"2b":"1W",G=1h;if(H[E]>0){18 1t}H[E]=1;G=(H[E]>0);H[E]=0;18 G}};D.15.4A={8j:u(){p E=k;k.1c.21("5S."+k.6r,u(F){18 E.bi(F)});if(D.2y.4V){k.eQ=k.1c.4Z("5X");k.1c.4Z("5X","eP")}k.j1=1h},8e:u(){k.1c.2H("."+k.6r);(D.2y.4V&&k.1c.4Z("5X",k.eQ))},bi:u(G){(k.6a&&k.99(G));k.aG=G;p F=k,H=(G.iB==1),E=(2v k.19.7r=="3W"?D(G.1m).5I().2D(G.1m).7c(k.19.7r).1w:1h);if(!H||E||!k.9a(G)){18 1t}k.av=!k.19.5r;if(!k.av){k.iz=83(u(){F.av=1t},k.19.5r)}if(k.cs(G)&&k.cu(G)){k.6a=(k.6q(G)!==1h);if(!k.6a){G.5Z();18 1t}}k.bb=u(I){18 F.eW(I)};k.br=u(I){18 F.99(I)};D(1k).21("6L."+k.6r,k.bb).21("6b."+k.6r,k.br);18 1h},eW:u(E){if(D.2y.4V&&!E.4D){18 k.99(E)}if(k.6a){k.5w(E);18 1h}if(k.cs(E)&&k.cu(E)){k.6a=(k.6q(k.aG,E)!==1h);(k.6a?k.5w(E):k.99(E))}18!k.6a},99:u(E){D(1k).2H("6L."+k.6r,k.bb).2H("6b."+k.6r,k.br);if(k.6a){k.6a=1h;k.6k(E)}18 1h},cs:u(E){18(1u.1L(1u.4w(k.aG.2U-E.2U),1u.4w(k.aG.2C-E.2C))>=k.19.6T)},cu:u(E){18 k.av},6q:u(E){},5w:u(E){},6k:u(E){},9a:u(E){18 1t}};D.15.4A.3V={7r:1n,6T:1,5r:0}})(2j);(u(A){A.4e("15.2q",A.2d({},A.15.4A,{5i:u(){if(k.19.1l=="6c"&&!(/^(?:r|a|f)/).1H(k.1c.1d("1o"))){k.1c[0].3r.1o="2m"}(k.19.8J&&k.1c.1E(k.19.8J+"-2q"));(k.19.24&&k.1c.1E("15-2q-24"));k.8j()},6q:u(F){p H=k.19;if(k.1l||H.24||A(F.1m).is(".15-1y-1M")){18 1h}p C=!k.19.1M||!A(k.19.1M,k.1c).1w?1t:1h;A(k.19.1M,k.1c).2V("*").aL().1K(u(){if(k==F.1m){C=1t}});if(!C){18 1h}if(A.15.2u){A.15.2u.4d=k}k.1l=A.7T(H.1l)?A(H.1l.2s(k.1c[0],[F])):(H.1l=="7Z"?k.1c.7Z():k.1c);if(!k.1l.5I("1S").1w){k.1l.3k((H.3k=="1z"?k.1c[0].2K:H.3k))}if(k.1l[0]!=k.1c[0]&&!(/(5y|2n)/).1H(k.1l.1d("1o"))){k.1l.1d("1o","2n")}k.2Z={1a:(1q(k.1c.1d("9E"),10)||0),1b:(1q(k.1c.1d("9D"),10)||0)};k.4p=k.1l.1d("1o");k.1f=k.1c.1f();k.1f={1b:k.1f.1b-k.2Z.1b,1a:k.1f.1a-k.2Z.1a};k.1f.2k={1a:F.2U-k.1f.1a,1b:F.2C-k.1f.1b};k.ay=u(I){do{if(/3x|3A/.1H(I.1d("3H"))||(/3x|3A/).1H(I.1d("3H-y"))){18 I}I=I.1z()}4c(I[0].2K);18 A(1k)}(k.1l);k.a4=u(I){do{if(/3x|3A/.1H(I.1d("3H"))||(/3x|3A/).1H(I.1d("3H-x"))){18 I}I=I.1z()}4c(I[0].2K);18 A(1k)}(k.1l);k.2z=k.1l.2z();p B=k.2z.1f();if(k.2z[0]==1k.1S&&A.2y.ix){B={1b:0,1a:0}}k.1f.1z={1b:B.1b+(1q(k.2z.1d("7o"),10)||0),1a:B.1a+(1q(k.2z.1d("7e"),10)||0)};p E=k.1c.1o();k.1f.2m=k.4p=="2m"?{1b:E.1b-(1q(k.1l.1d("1b"),10)||0)+(k.ay[0].1W||0),1a:E.1a-(1q(k.1l.1d("1a"),10)||0)+(k.a4[0].2b||0)}:{1b:0,1a:0};k.2I=k.7s(F);k.22={1e:k.1l.43(),1g:k.1l.48()};if(H.3I){if(H.3I.1a!=2a){k.1f.2k.1a=H.3I.1a+k.2Z.1a}if(H.3I.3Q!=2a){k.1f.2k.1a=k.22.1e-H.3I.3Q+k.2Z.1a}if(H.3I.1b!=2a){k.1f.2k.1b=H.3I.1b+k.2Z.1b}if(H.3I.4f!=2a){k.1f.2k.1b=k.22.1g-H.3I.4f+k.2Z.1b}}if(H.1B){if(H.1B=="1z"){H.1B=k.1l[0].2K}if(H.1B=="1k"||H.1B=="3R"){k.1B=[0-k.1f.2m.1a-k.1f.1z.1a,0-k.1f.2m.1b-k.1f.1z.1b,A(H.1B=="1k"?1k:3R).1e()-k.1f.2m.1a-k.1f.1z.1a-k.22.1e-k.2Z.1a-(1q(k.1c.1d("7p"),10)||0),(A(H.1B=="1k"?1k:3R).1g()||1k.1S.2K.5a)-k.1f.2m.1b-k.1f.1z.1b-k.22.1g-k.2Z.1b-(1q(k.1c.1d("7t"),10)||0)]}if(!(/^(1k|3R|1z)$/).1H(H.1B)){p D=A(H.1B)[0];p G=A(H.1B).1f();k.1B=[G.1a+(1q(A(D).1d("7e"),10)||0)-k.1f.2m.1a-k.1f.1z.1a,G.1b+(1q(A(D).1d("7o"),10)||0)-k.1f.2m.1b-k.1f.1z.1b,G.1a+1u.1L(D.9u,D.5z)-(1q(A(D).1d("7e"),10)||0)-k.1f.2m.1a-k.1f.1z.1a-k.22.1e-k.2Z.1a-(1q(k.1c.1d("7p"),10)||0),G.1b+1u.1L(D.5a,D.3J)-(1q(A(D).1d("7o"),10)||0)-k.1f.2m.1b-k.1f.1z.1b-k.22.1g-k.2Z.1b-(1q(k.1c.1d("7t"),10)||0)]}}k.1T("2R",F);k.22={1e:k.1l.43(),1g:k.1l.48()};if(A.15.2u&&!H.aY){A.15.2u.9q(k,F)}k.1l.1E("15-2q-7Q");k.5w(F);18 1t},4v:u(C,D){if(!D){D=k.1o}p B=C=="2n"?1:-1;18{1b:(D.1b+k.1f.2m.1b*B+k.1f.1z.1b*B-(k.4p=="5y"||(k.4p=="2n"&&k.2z[0]==1k.1S)?0:(k.ay[0].1W||0))*B+(k.4p=="5y"?A(1k).1W():0)*B+k.2Z.1b*B),1a:(D.1a+k.1f.2m.1a*B+k.1f.1z.1a*B-(k.4p=="5y"||(k.4p=="2n"&&k.2z[0]==1k.1S)?0:(k.a4[0].2b||0))*B+(k.4p=="5y"?A(1k).2b():0)*B+k.2Z.1a*B)}},7s:u(E){p F=k.19;p B={1b:(E.2C-k.1f.2k.1b-k.1f.2m.1b-k.1f.1z.1b+(k.4p=="5y"||(k.4p=="2n"&&k.2z[0]==1k.1S)?0:(k.ay[0].1W||0))-(k.4p=="5y"?A(1k).1W():0)),1a:(E.2U-k.1f.2k.1a-k.1f.2m.1a-k.1f.1z.1a+(k.4p=="5y"||(k.4p=="2n"&&k.2z[0]==1k.1S)?0:(k.a4[0].2b||0))-(k.4p=="5y"?A(1k).2b():0))};if(!k.2I){18 B}if(k.1B){if(B.1a<k.1B[0]){B.1a=k.1B[0]}if(B.1b<k.1B[1]){B.1b=k.1B[1]}if(B.1a>k.1B[2]){B.1a=k.1B[2]}if(B.1b>k.1B[3]){B.1b=k.1B[3]}}if(F.2F){p D=k.2I.1b+1u.2G((B.1b-k.2I.1b)/F.2F[1])*F.2F[1];B.1b=k.1B?(!(D<k.1B[1]||D>k.1B[3])?D:(!(D<k.1B[1])?D-F.2F[1]:D+F.2F[1])):D;p C=k.2I.1a+1u.2G((B.1a-k.2I.1a)/F.2F[0])*F.2F[0];B.1a=k.1B?(!(C<k.1B[0]||C>k.1B[2])?C:(!(C<k.1B[0])?C-F.2F[0]:C+F.2F[0])):C}18 B},5w:u(B){k.1o=k.7s(B);k.3f=k.4v("2n");k.1o=k.1T("5V",B)||k.1o;if(!k.19.2x||k.19.2x!="y"){k.1l[0].3r.1a=k.1o.1a+"2Y"}if(!k.19.2x||k.19.2x!="x"){k.1l[0].3r.1b=k.1o.1b+"2Y"}if(A.15.2u){A.15.2u.5V(k,B)}18 1h},6k:u(C){p D=1h;if(A.15.2u&&!k.19.aY){p D=A.15.2u.6x(k,C)}if((k.19.6F=="iK"&&!D)||(k.19.6F=="iL"&&D)||k.19.6F===1t){p B=k;A(k.1l).3q(k.2I,1q(k.19.iJ,10)||du,u(){B.1T("2S",C);B.81()})}1p{k.1T("2S",C);k.81()}18 1h},81:u(){k.1l.23("15-2q-7Q");if(k.19.1l!="6c"&&!k.7P){k.1l.2M()}k.1l=1n;k.7P=1h},5N:{},9o:u(B){18{1l:k.1l,1o:k.1o,9O:k.3f,19:k.19}},1T:u(C,B){A.15.2r.1D(k,C,[B,k.9o()]);if(C=="5V"){k.3f=k.4v("2n")}18 k.1c.2Q(C=="5V"?C:"5V"+C,[B,k.9o()],k.19[C])},5C:u(){if(!k.1c.1x("2q")){18}k.1c.5b("2q").2H(".2q").23("15-2q-7Q 15-2q-24");k.8e()}}));A.2d(A.15.2q,{3V:{3k:"1z",2x:1h,7r:":1v",5r:0,6T:1,1l:"6c",5R:"4K",8J:"15"}});A.15.2r.2D("2q","2p",{2R:u(D,C){p B=A("1S");if(B.1d("2p")){C.19.7N=B.1d("2p")}B.1d("2p",C.19.2p)},2S:u(C,B){if(B.19.7N){A("1S").1d("2p",B.19.7N)}}});A.15.2r.2D("2q","2T",{2R:u(D,C){p B=A(C.1l);if(B.1d("2T")){C.19.7J=B.1d("2T")}B.1d("2T",C.19.2T)},2S:u(C,B){if(B.19.7J){A(B.1l).1d("2T",B.19.7J)}}});A.15.2r.2D("2q","3N",{2R:u(D,C){p B=A(C.1l);if(B.1d("3N")){C.19.80=B.1d("3N")}B.1d("3N",C.19.3N)},2S:u(C,B){if(B.19.80){A(B.1l).1d("3N",B.19.80)}}});A.15.2r.2D("2q","9n",{2R:u(C,B){A(B.19.9n===1t?"9f":B.19.9n).1K(u(){A(\'<1s 1X="15-2q-9n" 3r="aw: #iI;"></1s>\').1d({1e:k.5z+"2Y",1g:k.3J+"2Y",1o:"2n",3N:"0.iF",2T:c1}).1d(A(k).1f()).3k("1S")})},2S:u(C,B){A("1s.15-2q-9n").1K(u(){k.2K.cE(k)})}});A.15.2r.2D("2q","3A",{2R:u(D,C){p E=C.19;p B=A(k).1x("2q");E.3D=E.3D||20;E.3C=E.3C||20;B.3c=u(F){do{if(/3x|3A/.1H(F.1d("3H"))||(/3x|3A/).1H(F.1d("3H-y"))){18 F}F=F.1z()}4c(F[0].2K);18 A(1k)}(k);B.3d=u(F){do{if(/3x|3A/.1H(F.1d("3H"))||(/3x|3A/).1H(F.1d("3H-x"))){18 F}F=F.1z()}4c(F[0].2K);18 A(1k)}(k);if(B.3c[0]!=1k&&B.3c[0].61!="6s"){B.8y=B.3c.1f()}if(B.3d[0]!=1k&&B.3d[0].61!="6s"){B.8p=B.3d.1f()}},5V:u(E,D){p F=D.19,B=1h;p C=A(k).1x("2q");if(C.3c[0]!=1k&&C.3c[0].61!="6s"){if((C.8y.1b+C.3c[0].3J)-E.2C<F.3D){C.3c[0].1W=B=C.3c[0].1W+F.3C}if(E.2C-C.8y.1b<F.3D){C.3c[0].1W=B=C.3c[0].1W-F.3C}}1p{if(E.2C-A(1k).1W()<F.3D){B=A(1k).1W(A(1k).1W()-F.3C)}if(A(3R).1g()-(E.2C-A(1k).1W())<F.3D){B=A(1k).1W(A(1k).1W()+F.3C)}}if(C.3d[0]!=1k&&C.3d[0].61!="6s"){if((C.8p.1a+C.3d[0].5z)-E.2U<F.3D){C.3d[0].2b=B=C.3d[0].2b+F.3C}if(E.2U-C.8p.1a<F.3D){C.3d[0].2b=B=C.3d[0].2b-F.3C}}1p{if(E.2U-A(1k).2b()<F.3D){B=A(1k).2b(A(1k).2b()-F.3C)}if(A(3R).1e()-(E.2U-A(1k).2b())<F.3D){B=A(1k).2b(A(1k).2b()+F.3C)}}if(B!==1h){A.15.2u.9q(C,E)}}});A.15.2r.2D("2q","5W",{2R:u(D,C){p B=A(k).1x("2q");B.4P=[];A(C.19.5W.67!=97?(C.19.5W.1Y||":1x(2q)"):C.19.5W).1K(u(){p F=A(k);p E=F.1f();if(k!=B.1c[0]){B.4P.4l({2l:k,1e:F.43(),1g:F.48(),1b:E.1b,1a:E.1a})}})},5V:u(P,K){p E=A(k).1x("2q");p Q=K.19.iH||20;p O=K.9O.1a,N=O+E.22.1e,D=K.9O.1b,C=D+E.22.1g;1F(p M=E.4P.1w-1;M>=0;M--){p L=E.4P[M].1a,J=L+E.4P[M].1e,I=E.4P[M].1b,S=I+E.4P[M].1g;if(!((L-Q<O&&O<J+Q&&I-Q<D&&D<S+Q)||(L-Q<O&&O<J+Q&&I-Q<C&&C<S+Q)||(L-Q<N&&N<J+Q&&I-Q<D&&D<S+Q)||(L-Q<N&&N<J+Q&&I-Q<C&&C<S+Q))){if(E.4P[M].a0){(E.19.5W.f4&&E.19.5W.f4.1D(E.1c,1n,A.2d(E.9o(),{eY:E.4P[M].2l})))}E.4P[M].a0=1h;51}if(K.19.f2!="ia"){p B=1u.4w(I-C)<=Q;p R=1u.4w(S-D)<=Q;p G=1u.4w(L-N)<=Q;p H=1u.4w(J-O)<=Q;if(B){K.1o.1b=E.4v("2m",{1b:I-E.22.1g,1a:0}).1b}if(R){K.1o.1b=E.4v("2m",{1b:S,1a:0}).1b}if(G){K.1o.1a=E.4v("2m",{1b:0,1a:L-E.22.1e}).1a}if(H){K.1o.1a=E.4v("2m",{1b:0,1a:J}).1a}}p F=(B||R||G||H);if(K.19.f2!="ic"){p B=1u.4w(I-D)<=Q;p R=1u.4w(S-C)<=Q;p G=1u.4w(L-O)<=Q;p H=1u.4w(J-N)<=Q;if(B){K.1o.1b=E.4v("2m",{1b:I,1a:0}).1b}if(R){K.1o.1b=E.4v("2m",{1b:S-E.22.1g,1a:0}).1b}if(G){K.1o.1a=E.4v("2m",{1b:0,1a:L}).1a}if(H){K.1o.1a=E.4v("2m",{1b:0,1a:J-E.22.1e}).1a}}if(!E.4P[M].a0&&(B||R||G||H||F)){(E.19.5W.5W&&E.19.5W.5W.1D(E.1c,1n,A.2d(E.9o(),{eY:E.4P[M].2l})))}E.4P[M].a0=(B||R||G||H||F)}}});A.15.2r.2D("2q","eN",{2R:u(D,C){p B=A(k).1x("2q");B.9X=[];A(C.19.eN).1K(u(){if(A.1x(k,"2t")){p E=A.1x(k,"2t");B.9X.4l({1V:E,eM:E.19.6F});E.aN();E.1T("9z",D,B)}})},2S:u(D,C){p B=A(k).1x("2q");A.1K(B.9X,u(){if(k.1V.8B){k.1V.8B=0;B.7P=1t;k.1V.7P=1h;if(k.eM){k.1V.19.6F=1t}k.1V.6k(D);k.1V.1c.2Q("ip",[D,A.2d(k.1V.15(),{fE:B.1c})],k.1V.19.dO);k.1V.19.1l=k.1V.19.c8}1p{k.1V.1T("94",D,B)}})},5V:u(F,E){p D=A(k).1x("2q"),B=k;p C=u(K){p H=K.1a,J=H+K.1e,I=K.1b,G=I+K.1g;18(H<(k.3f.1a+k.1f.2k.1a)&&(k.3f.1a+k.1f.2k.1a)<J&&I<(k.3f.1b+k.1f.2k.1b)&&(k.3f.1b+k.1f.2k.1b)<G)};A.1K(D.9X,u(G){if(C.1D(D,k.1V.4N)){if(!k.1V.8B){k.1V.8B=1;k.1V.1J=A(B).7Z().3k(k.1V.1c).1x("2t-2l",1t);k.1V.19.c8=k.1V.19.1l;k.1V.19.1l=u(){18 E.1l[0]};F.1m=k.1V.1J[0];k.1V.9a(F,1t);k.1V.6q(F,1t,1t);k.1V.1f.2k.1b=D.1f.2k.1b;k.1V.1f.2k.1a=D.1f.2k.1a;k.1V.1f.1z.1a-=D.1f.1z.1a-k.1V.1f.1z.1a;k.1V.1f.1z.1b-=D.1f.1z.1b-k.1V.1f.1z.1b;D.1T("im",F)}if(k.1V.1J){k.1V.5w(F)}}1p{if(k.1V.8B){k.1V.8B=0;k.1V.7P=1t;k.1V.19.6F=1h;k.1V.6k(F,1t);k.1V.19.1l=k.1V.19.c8;k.1V.1J.2M();if(k.1V.3a){k.1V.3a.2M()}D.1T("ij",F)}}})}});A.15.2r.2D("2q","8H",{2R:u(D,B){p C=A.ik(A(B.19.8H.iM)).6v(u(F,E){18(1q(A(F).1d("2T"),10)||B.19.8H.1P)-(1q(A(E).1d("2T"),10)||B.19.8H.1P)});A(C).1K(u(E){k.3r.2T=B.19.8H.1P+E});k[0].3r.2T=B.19.8H.1P+C.1w}})})(2j);(u(A){A.4e("15.4S",{5i:u(){p C=k.19,B=C.5Y;k.5d=0;k.6w=1;k.19.5Y=k.19.5Y&&k.19.5Y.67==iN?k.19.5Y:u(D){18 D.is(B)};k.92={1e:k.1c[0].5z,1g:k.1c[0].3J};A.15.2u.6B[k.19.5R]=A.15.2u.6B[k.19.5R]||[];A.15.2u.6B[k.19.5R].4l(k);(k.19.8J&&k.1c.1E(k.19.8J+"-4S"))},5N:{},15:u(B){18{2q:(B.1J||B.1c),1l:B.1l,1o:B.1o,9O:B.3f,19:k.19,1c:k.1c}},5C:u(){p B=A.15.2u.6B[k.19.5R];1F(p C=0;C<B.1w;C++){if(B[C]==k){B.fb(C,1)}}k.1c.23("15-4S-24").5b("4S").2H(".4S")},cd:u(C){p B=A.15.2u.4d;if(!B||(B.1J||B.1c)[0]==k.1c[0]){18}if(k.19.5Y.1D(k.1c,(B.1J||B.1c))){A.15.2r.1D(k,"3z",[C,k.15(B)]);k.1c.2Q("jd",[C,k.15(B)],k.19.3z)}},c9:u(C){p B=A.15.2u.4d;if(!B||(B.1J||B.1c)[0]==k.1c[0]){18}if(k.19.5Y.1D(k.1c,(B.1J||B.1c))){A.15.2r.1D(k,"8T",[C,k.15(B)]);k.1c.2Q("je",[C,k.15(B)],k.19.8T)}},eu:u(D,C){p B=C||A.15.2u.4d;if(!B||(B.1J||B.1c)[0]==k.1c[0]){18 1h}p E=1h;k.1c.2V(":1x(4S)").b2(".15-2q-7Q").1K(u(){p F=A.1x(k,"4S");if(F.19.eC&&A.15.8A(B,A.2d(F,{1f:F.1c.1f()}),F.19.52)){E=1t;18 1h}});if(E){18 1h}if(k.19.5Y.1D(k.1c,(B.1J||B.1c))){A.15.2r.1D(k,"6x",[D,k.15(B)]);k.1c.2Q("6x",[D,k.15(B)],k.19.6x);18 1t}18 1h},ex:u(C){p B=A.15.2u.4d;A.15.2r.1D(k,"9z",[C,k.15(B)]);if(B){k.1c.2Q("jf",[C,k.15(B)],k.19.9z)}},ev:u(C){p B=A.15.2u.4d;A.15.2r.1D(k,"94",[C,k.15(B)]);if(B){k.1c.2Q("jc",[C,k.15(B)],k.19.94)}}});A.2d(A.15.4S,{3V:{24:1h,52:"8A",5R:"4K",8J:"15"}});A.15.8A=u(L,F,J){if(!F.1f){18 1h}p D=(L.3f||L.1o.2n).1a,C=D+L.22.1e,I=(L.3f||L.1o.2n).1b,H=I+L.22.1g;p E=F.1f.1a,B=E+F.92.1e,K=F.1f.1b,G=K+F.92.1g;7D(J){1I"fF":18(E<D&&C<B&&K<I&&H<G);1O;1I"8A":18(E<D+(L.22.1e/2)&&C-(L.22.1e/2)<B&&K<I+(L.22.1g/2)&&H-(L.22.1g/2)<G);1O;1I"bB":18(E<((L.3f||L.1o.2n).1a+(L.75||L.1f.2k).1a)&&((L.3f||L.1o.2n).1a+(L.75||L.1f.2k).1a)<B&&K<((L.3f||L.1o.2n).1b+(L.75||L.1f.2k).1b)&&((L.3f||L.1o.2n).1b+(L.75||L.1f.2k).1b)<G);1O;1I"bt":18((I>=K&&I<=G)||(H>=K&&H<=G)||(I<K&&H>G))&&((D>=E&&D<=B)||(C>=E&&C<=B)||(D<E&&C>B));1O;4K:18 1h;1O}};A.15.2u={4d:1n,6B:{"4K":[]},9q:u(E,H){p B=A.15.2u.6B[E.19.5R];p F=H?H.3K:1n;p G=(E.1J||E.1c).2V(":1x(4S)").aL();eB:1F(p D=0;D<B.1w;D++){if(B[D].19.24||(E&&!B[D].19.5Y.1D(B[D].1c,(E.1J||E.1c)))){51}1F(p C=0;C<G.1w;C++){if(G[C]==B[D].1c[0]){B[D].92.1g=0;51 eB}}B[D].4r=B[D].1c.1d("4L")!="5H";if(!B[D].4r){51}B[D].1f=B[D].1c.1f();B[D].92={1e:B[D].1c[0].5z,1g:B[D].1c[0].3J};if(F=="jh"||F=="jn"){B[D].ex.1D(B[D],H)}}},6x:u(B,C){p D=1h;A.1K(A.15.2u.6B[B.19.5R],u(){if(!k.19){18}if(!k.19.24&&k.4r&&A.15.8A(B,k,k.19.52)){D=k.eu.1D(k,C)}if(!k.19.24&&k.4r&&k.19.5Y.1D(k.1c,(B.1J||B.1c))){k.6w=1;k.5d=0;k.ev.1D(k,C)}});18 D},5V:u(B,C){if(B.19.8W){A.15.2u.9q(B,C)}A.1K(A.15.2u.6B[B.19.5R],u(){if(k.19.24||k.eD||!k.4r){18}p E=A.15.8A(B,k,k.19.52);p G=!E&&k.5d==1?"6w":(E&&k.5d==0?"5d":1n);if(!G){18}p F;if(k.19.eC){p D=k.1c.5I(":1x(4S):eq(0)");if(D.1w){F=A.1x(D[0],"4S");F.eD=(G=="5d"?1:0)}}if(F&&G=="5d"){F.5d=0;F.6w=1;F.c9.1D(F,C)}k[G]=1;k[G=="6w"?"5d":"6w"]=0;k[G=="5d"?"cd":"c9"].1D(k,C);if(F&&G=="6w"){F.6w=0;F.5d=1;F.cd.1D(F,C)}})}};A.15.2r.2D("4S","aP",{9z:u(C,B){A(k).1E(B.19.aP)},94:u(C,B){A(k).23(B.19.aP)},6x:u(C,B){A(k).23(B.19.aP)}});A.15.2r.2D("4S","aQ",{3z:u(C,B){A(k).1E(B.19.aQ)},8T:u(C,B){A(k).23(B.19.aQ)},6x:u(C,B){A(k).23(B.19.aQ)}})})(2j);(u(A){A.4e("15.1y",A.2d({},A.15.4A,{5i:u(){p M=k,N=k.19;p Q=k.1c.1d("1o");k.bp=k.1c;k.1c.1E("15-1y").1d({1o:/85/.1H(Q)?"2m":Q});A.2d(N,{9M:!!(N.5u),1l:N.1l||N.4U||N.3q?N.1l||"j4":1n,6o:N.6o===1t?"15-1y-91-1M":N.6o});p H="ab eK #j5";N.eI={"15-1y":{4L:"7K"},"15-1y-1M":{1o:"2n",aw:"#eJ",j2:"0.ab"},"15-1y-n":{2p:"n-2J",1g:"55",1a:"2O",3Q:"2O",cy:H},"15-1y-s":{2p:"s-2J",1g:"55",1a:"2O",3Q:"2O",c6:H},"15-1y-e":{2p:"e-2J",1e:"55",1b:"2O",4f:"2O",bX:H},"15-1y-w":{2p:"w-2J",1e:"55",1b:"2O",4f:"2O",c3:H},"15-1y-44":{2p:"44-2J",1e:"55",1g:"55",bX:H,c6:H},"15-1y-49":{2p:"49-2J",1e:"55",1g:"55",c6:H,c3:H},"15-1y-4k":{2p:"4k-2J",1e:"55",1g:"55",bX:H,cy:H},"15-1y-3Y":{2p:"3Y-2J",1e:"55",1g:"55",c3:H,cy:H}};N.cF={"15-1y-1M":{aw:"#eJ",bw:"ab eK #hh",1g:"eL",1e:"eL"},"15-1y-n":{2p:"n-2J",1b:"2O",1a:"45%"},"15-1y-s":{2p:"s-2J",4f:"2O",1a:"45%"},"15-1y-e":{2p:"e-2J",3Q:"2O",1b:"45%"},"15-1y-w":{2p:"w-2J",1a:"2O",1b:"45%"},"15-1y-44":{2p:"44-2J",3Q:"2O",4f:"2O"},"15-1y-49":{2p:"49-2J",1a:"2O",4f:"2O"},"15-1y-3Y":{2p:"3Y-2J",1a:"2O",1b:"2O"},"15-1y-4k":{2p:"4k-2J",3Q:"2O",1b:"2O"}};N.be=k.1c[0].2E;if(N.be.3u(/hb|9N|1v|5h|4D|8N/i)){p B=k.1c;if(/2m/.1H(B.1d("1o"))&&A.2y.7f){B.1d({1o:"2m",1b:"3x",1a:"3x"})}B.aW(A(\'<1s 1X="15-8Y" 3r="3H: 4m;"></1s>\').1d({1o:B.1d("1o"),1e:B.43(),1g:B.48(),1b:B.1d("1b"),1a:B.1d("1a")}));p J=k.1c;k.1c=k.1c.1z();k.1c.1x("1y",k);k.1c.1d({9E:J.1d("9E"),9D:J.1d("9D"),7p:J.1d("7p"),7t:J.1d("7t")});J.1d({9E:0,9D:0,7p:0,7t:0});if(A.2y.b3&&N.5Z){J.1d("2J","5H")}N.6j=J.1d({1o:"85",hc:1,4L:"7K"});k.1c.1d({co:J.1d("co")});k.9A()}if(!N.3n){N.3n=!A(".15-1y-1M",k.1c).1w?"e,s,44":{n:".15-1y-n",e:".15-1y-e",s:".15-1y-s",w:".15-1y-w",44:".15-1y-44",49:".15-1y-49",4k:".15-1y-4k",3Y:".15-1y-3Y"}}if(N.3n.67==97){N.2T=N.2T||c1;if(N.3n=="hd"){N.3n="n,e,s,w,44,49,4k,3Y"}p O=N.3n.6p(",");N.3n={};p G={1M:"1o: 2n; 4L: 5H; 3H:4m;",n:"1b: 6C; 1e:2g%;",e:"3Q: 6C; 1g:2g%;",s:"4f: 6C; 1e:2g%;",w:"1a: 6C; 1g:2g%;",44:"4f: 6C; 3Q: 2O;",49:"4f: 6C; 1a: 2O;",4k:"1b: 6C; 3Q: 2O;",3Y:"1b: 6C; 1a: 2O;"};1F(p R=0;R<O.1w;R++){p S=A.8S(O[R]),L=N.eI,F="15-1y-"+S,C=!A.15.1d(F)&&!N.6o,P=A.15.1d("15-1y-91-1M"),T=A.2d(L[F],L["15-1y-1M"]),D=A.2d(N.cF[F],!P?N.cF["15-1y-1M"]:{});p K=/49|44|4k|3Y/.1H(S)?{2T:++N.2T}:{};p I=(C?G[S]:""),E=A([\'<1s 1X="15-1y-1M \',F,\'" 3r="\',I,G.1M,\'"></1s>\'].6y("")).1d(K);N.3n[S]=".15-1y-"+S;k.1c.5m(E.1d(C?T:{}).1d(N.6o?D:{}).1E(N.6o?"15-1y-91-1M":"").1E(N.6o))}if(N.6o){k.1c.1E("15-1y-91").1d(!A.15.1d("15-1y-91")?{}:{})}}k.eH=u(Y){Y=Y||k.1c;1F(p V in N.3n){if(N.3n[V].67==97){N.3n[V]=A(N.3n[V],k.1c).4G()}if(N.8O){N.3n[V].1d({3N:0})}if(k.1c.is(".15-8Y")&&N.be.3u(/9N|1v|5h|4D/i)){p W=A(N.3n[V],k.1c),X=0;X=/49|4k|3Y|44|n|s/.1H(V)?W.48():W.43();p U=["ci",/4k|3Y|n/.1H(V)?"hn":/44|49|s/.1H(V)?"hk":/^e$/.1H(V)?"hl":"hm"].6y("");if(!N.8O){Y.1d(U,X)}k.9A()}if(!A(N.3n[V]).1w){51}}};k.eH(k.1c);N.8M=A(".15-1y-1M",M.1c);if(N.8I){N.8M.1K(u(U,V){A.15.8I(V)})}N.8M.dR(u(){if(!N.aZ){if(k.7u){p U=k.7u.3u(/15-1y-(44|49|4k|3Y|n|e|s|w)/i)}M.2x=N.2x=U&&U[1]?U[1]:"44"}});if(N.fw){N.8M.4b();A(M.1c).1E("15-1y-bx").h9(u(){A(k).23("15-1y-bx");N.8M.4G()},u(){if(!N.aZ){A(k).1E("15-1y-bx");N.8M.4b()}})}k.8j()},5N:{},15:u(){18{bp:k.bp,1c:k.1c,1l:k.1l,1o:k.1o,1A:k.1A,19:k.19,4W:k.4W,2I:k.2I}},1T:u(C,B){A.15.2r.1D(k,C,[B,k.15()]);if(C!="2J"){k.1c.2Q(["2J",C].6y(""),[B,k.15()],k.19[C])}},5C:u(){p D=k.1c,C=D.cJ(".15-1y").3w(0);k.8e();p B=u(E){A(E).23("15-1y 15-1y-24").5b("1y").2H(".1y").2V(".15-1y-1M").2M()};B(D);if(D.is(".15-8Y")&&C){D.1z().5m(A(C).1d({1o:D.1d("1o"),1e:D.43(),1g:D.48(),1b:D.1d("1b"),1a:D.1d("1a")})).3X().2M();B(C)}},6q:u(K){if(k.19.24){18 1h}p J=1h;1F(p H in k.19.3n){if(A(k.19.3n[H])[0]==K.1m){J=1t}}if(!J){18 1h}p C=k.19,B=k.1c.1o(),D=k.1c,I=u(O){18 1q(O,10)||0},G=A.2y.4V&&A.2y.8h<7;C.aZ=1t;C.bR={1b:A(1k).1W(),1a:A(1k).2b()};if(D.is(".15-2q")||(/2n/).1H(D.1d("1o"))){p M=A.2y.4V&&!C.1B&&(/2n/).1H(D.1d("1o"))&&!(/2m/).1H(D.1z().1d("1o"));p L=M?C.bR.1b:0,F=M?C.bR.1a:0;D.1d({1o:"2n",1b:(B.1b+L),1a:(B.1a+F)})}if(A.2y.7f&&/2m/.1H(D.1d("1o"))){D.1d({1o:"2m",1b:"3x",1a:"3x"})}k.fx();p N=I(k.1l.1d("1a")),E=I(k.1l.1d("1b"));if(C.1B){N+=A(C.1B).2b()||0;E+=A(C.1B).1W()||0}k.1f=k.1l.1f();k.1o={1a:N,1b:E};k.1A=C.1l||G?{1e:D.43(),1g:D.48()}:{1e:D.1e(),1g:D.1g()};k.4W=C.1l||G?{1e:D.43(),1g:D.48()}:{1e:D.1e(),1g:D.1g()};k.2I={1a:N,1b:E};k.6A={1e:D.43()-D.1e(),1g:D.48()-D.1g()};k.eF={1a:K.2U,1b:K.2C};C.5u=(2v C.5u=="9s")?C.5u:((k.4W.1g/k.4W.1e)||1);if(C.bh){A("1S").1d("2p",k.2x+"-2J")}k.1T("2R",K);18 1t},5w:u(I){p D=k.1l,C=k.19,J={},M=k,F=k.eF,K=k.2x;p N=(I.2U-F.1a)||0,L=(I.2C-F.1b)||0;p E=k.3F[K];if(!E){18 1h}p H=E.2s(k,[I,N,L]),G=A.2y.4V&&A.2y.8h<7,B=k.6A;if(C.9M||I.ah){H=k.eG(H,I)}H=k.f5(H,I);k.1T("2J",I);D.1d({1b:k.1o.1b+"2Y",1a:k.1o.1a+"2Y",1e:k.1A.1e+"2Y",1g:k.1A.1g+"2Y"});if(!C.1l&&C.6j){k.9A()}k.bq(H);k.1c.2Q("2J",[I,k.15()],k.19.2J);18 1h},6k:u(I){k.19.aZ=1h;p E=k.19,H=u(M){18 1q(M,10)||0},K=k;if(E.1l){p D=E.6j,B=D&&(/9N/i).1H(D.3w(0).2E),C=B&&A.15.9B(D.3w(0),"1a")?0:K.6A.1g,G=B?0:K.6A.1e;p L={1e:(K.1A.1e-G),1g:(K.1A.1g-C)},F=(1q(K.1c.1d("1a"),10)+(K.1o.1a-K.2I.1a))||1n,J=(1q(K.1c.1d("1b"),10)+(K.1o.1b-K.2I.1b))||1n;if(!E.3q){k.1c.1d(A.2d(L,{1b:J,1a:F}))}if(E.1l&&!E.3q){k.9A()}}if(E.bh){A("1S").1d("2p","3x")}k.1T("2S",I);if(E.1l){k.1l.2M()}18 1h},bq:u(B){p C=k.19;k.1f=k.1l.1f();if(B.1a){k.1o.1a=B.1a}if(B.1b){k.1o.1b=B.1b}if(B.1g){k.1A.1g=B.1g}if(B.1e){k.1A.1e=B.1e}},eG:u(D,E){p F=k.19,G=k.1o,C=k.1A,B=k.2x;if(D.1g){D.1e=(C.1g/F.5u)}1p{if(D.1e){D.1g=(C.1e*F.5u)}}if(B=="49"){D.1a=G.1a+(C.1e-D.1e);D.1b=1n}if(B=="3Y"){D.1b=G.1b+(C.1g-D.1g);D.1a=G.1a+(C.1e-D.1e)}18 D},f5:u(H,I){p F=k.1l,E=k.19,N=E.9M||I.ah,M=k.2x,P=H.1e&&E.aM&&E.aM<H.1e,J=H.1g&&E.8b&&E.8b<H.1g,D=H.1e&&E.9L&&E.9L>H.1e,O=H.1g&&E.9G&&E.9G>H.1g;if(D){H.1e=E.9L}if(O){H.1g=E.9G}if(P){H.1e=E.aM}if(J){H.1g=E.8b}p C=k.2I.1a+k.4W.1e,L=k.1o.1b+k.1A.1g;p G=/49|3Y|w/.1H(M),B=/3Y|4k|n/.1H(M);if(D&&G){H.1a=C-E.9L}if(P&&G){H.1a=C-E.aM}if(O&&B){H.1b=L-E.9G}if(J&&B){H.1b=L-E.8b}p K=!H.1e&&!H.1g;if(K&&!H.1a&&H.1b){H.1b=1n}1p{if(K&&!H.1b&&H.1a){H.1a=1n}}18 H},9A:u(){p F=k.19;if(!F.6j){18}p D=F.6j,C=k.1l||k.1c;if(!F.8C){p B=[D.1d("7o"),D.1d("h6"),D.1d("h2"),D.1d("7e")],E=[D.1d("h4"),D.1d("hr"),D.1d("hs"),D.1d("hR")];F.8C=A.b6(B,u(G,I){p H=1q(G,10)||0,J=1q(E[I],10)||0;18 H+J})}D.1d({1g:(C.1g()-F.8C[0]-F.8C[2])+"2Y",1e:(C.1e()-F.8C[1]-F.8C[3])+"2Y"})},fx:u(){p C=k.1c,F=k.19;k.bZ=C.1f();if(F.1l){k.1l=k.1l||A(\'<1s 3r="3H:4m;"></1s>\');p B=A.2y.4V&&A.2y.8h<7,D=(B?1:0),E=(B?2:-1);k.1l.1E(F.1l).1d({1e:C.43()+E,1g:C.48()+E,1o:"2n",1a:k.bZ.1a-D+"2Y",1b:k.bZ.1b-D+"2Y",2T:++F.2T});k.1l.3k("1S");if(F.8I){A.15.8I(k.1l.3w(0))}}1p{k.1l=C}},3F:{e:u(D,C,B){18{1e:k.4W.1e+C}},w:u(F,C,B){p G=k.19,D=k.4W,E=k.2I;18{1a:E.1a+C,1e:D.1e-C}},n:u(F,C,B){p G=k.19,D=k.4W,E=k.2I;18{1b:E.1b+B,1g:D.1g-B}},s:u(D,C,B){18{1g:k.4W.1g+B}},44:u(D,C,B){18 A.2d(k.3F.s.2s(k,4y),k.3F.e.2s(k,[D,C,B]))},49:u(D,C,B){18 A.2d(k.3F.s.2s(k,4y),k.3F.w.2s(k,[D,C,B]))},4k:u(D,C,B){18 A.2d(k.3F.n.2s(k,4y),k.3F.e.2s(k,[D,C,B]))},3Y:u(D,C,B){18 A.2d(k.3F.n.2s(k,4y),k.3F.w.2s(k,[D,C,B]))}}}));A.2d(A.15.1y,{3V:{7r:":1v",6T:1,5r:0,5Z:1t,8O:1h,9L:10,9G:10,5u:1h,8I:1t,bh:1t,fw:1h,6o:1h}});A.15.2r.2D("1y","1B",{2R:u(I,K){p E=K.19,M=A(k).1x("1y"),G=M.1c;p C=E.1B,F=(C i1 A)?C.3w(0):(/1z/.1H(C))?G.1z().3w(0):C;if(!F){18}M.bH=A(F);if(/1k/.1H(C)||C==1k){M.9S={1a:0,1b:0};M.ap={1a:0,1b:0};M.8o={1c:A(1k),1a:0,1b:0,1e:A(1k).1e(),1g:A(1k).1g()||1k.1S.2K.5a}}1p{M.9S=A(F).1f();M.ap=A(F).1o();M.b8={1g:A(F).7m(),1e:A(F).7R()};p J=M.9S,B=M.b8.1g,H=M.b8.1e,D=(A.15.9B(F,"1a")?F.9u:H),L=(A.15.9B(F)?F.5a:B);M.8o={1c:F,1a:J.1a,1b:J.1b,1e:D,1g:L}}},2J:u(H,K){p E=K.19,N=A(k).1x("1y"),C=N.b8,J=N.9S,G=N.1A,I=N.1o,L=E.9M||H.ah,B={1b:0,1a:0},D=N.bH;if(D[0]!=1k&&/85/.1H(D.1d("1o"))){B=N.ap}if(I.1a<(E.1l?J.1a:B.1a)){N.1A.1e=N.1A.1e+(E.1l?(N.1o.1a-J.1a):(N.1o.1a-B.1a));if(L){N.1A.1g=N.1A.1e*E.5u}N.1o.1a=E.1l?J.1a:B.1a}if(I.1b<(E.1l?J.1b:0)){N.1A.1g=N.1A.1g+(E.1l?(N.1o.1b-J.1b):N.1o.1b);if(L){N.1A.1e=N.1A.1g/E.5u}N.1o.1b=E.1l?J.1b:0}p F=(E.1l?N.1f.1a-J.1a:(N.1o.1a-B.1a))+N.6A.1e,M=(E.1l?N.1f.1b-J.1b:N.1o.1b)+N.6A.1g;if(F+N.1A.1e>=N.8o.1e){N.1A.1e=N.8o.1e-F;if(L){N.1A.1g=N.1A.1e*E.5u}}if(M+N.1A.1g>=N.8o.1g){N.1A.1g=N.8o.1g-M;if(L){N.1A.1e=N.1A.1g/E.5u}}},2S:u(G,J){p C=J.19,L=A(k).1x("1y"),H=L.1o,I=L.9S,B=L.ap,D=L.bH;p E=A(L.1l),M=E.1f(),K=E.7R(),F=E.7m();if(C.1l&&!C.3q&&/2m/.1H(D.1d("1o"))){A(k).1d({1a:(M.1a-I.1a),1b:(M.1b-I.1b),1e:K,1g:F})}if(C.1l&&!C.3q&&/85/.1H(D.1d("1o"))){A(k).1d({1a:B.1a+(M.1a-I.1a),1b:B.1b+(M.1b-I.1b),1e:K,1g:F})}}});A.15.2r.2D("1y","2F",{2J:u(H,J){p D=J.19,L=A(k).1x("1y"),G=L.1A,E=L.4W,F=L.2I,K=L.2x,I=D.9M||H.ah;D.2F=2v D.2F=="9s"?[D.2F,D.2F]:D.2F;p C=1u.2G((G.1e-E.1e)/(D.2F[0]||1))*(D.2F[0]||1),B=1u.2G((G.1g-E.1g)/(D.2F[1]||1))*(D.2F[1]||1);if(/^(44|s|e)$/.1H(K)){L.1A.1e=E.1e+C;L.1A.1g=E.1g+B}1p{if(/^(4k)$/.1H(K)){L.1A.1e=E.1e+C;L.1A.1g=E.1g+B;L.1o.1b=F.1b-B}1p{if(/^(49)$/.1H(K)){L.1A.1e=E.1e+C;L.1A.1g=E.1g+B;L.1o.1a=F.1a-C}1p{L.1A.1e=E.1e+C;L.1A.1g=E.1g+B;L.1o.1b=F.1b-B;L.1o.1a=F.1a-C}}}}});A.15.2r.2D("1y","3q",{2S:u(I,K){p F=K.19,L=A(k).1x("1y");p E=F.6j,B=E&&(/9N/i).1H(E.3w(0).2E),C=B&&A.15.9B(E.3w(0),"1a")?0:L.6A.1g,H=B?0:L.6A.1e;p D={1e:(L.1A.1e-H),1g:(L.1A.1g-C)},G=(1q(L.1c.1d("1a"),10)+(L.1o.1a-L.2I.1a))||1n,J=(1q(L.1c.1d("1b"),10)+(L.1o.1b-L.2I.1b))||1n;L.1c.3q(A.2d(D,J&&G?{1b:J,1a:G}:{}),{3j:F.hx||"hw",9I:F.hv||"hB",fh:u(){p M={1e:1q(L.1c.1d("1e"),10),1g:1q(L.1c.1d("1g"),10),1b:1q(L.1c.1d("1b"),10),1a:1q(L.1c.1d("1a"),10)};if(E){E.1d({1e:M.1e,1g:M.1g})}L.bq(M);L.1T("3q",I)}})}});A.15.2r.2D("1y","4U",{2R:u(E,D){p F=D.19,B=A(k).1x("1y"),G=F.6j,C=B.1A;if(!G){B.4U=B.1c.7Z()}1p{B.4U=G.7Z()}B.4U.1d({3N:0.25,4L:"7K",1o:"2m",1g:C.1g,1e:C.1e,co:0,1a:0,1b:0}).1E("15-1y-4U").1E(2v F.4U=="3W"?F.4U:"");B.4U.3k(B.1l)},2J:u(D,C){p E=C.19,B=A(k).1x("1y"),F=E.6j;if(B.4U){B.4U.1d({1o:"2m",1g:B.1A.1g,1e:B.1A.1e})}},2S:u(D,C){p E=C.19,B=A(k).1x("1y"),F=E.6j;if(B.4U&&B.1l){B.1l.3w(0).cE(B.4U.3w(0))}}});A.15.2r.2D("1y","5x",{2R:u(E,C){p F=C.19,B=A(k).1x("1y"),D=u(G){A(G).1K(u(){A(k).1x("1y-bV",{1e:1q(A(k).1e(),10),1g:1q(A(k).1g(),10),1a:1q(A(k).1d("1a"),10),1b:1q(A(k).1d("1b"),10)})})};if(2v(F.5x)=="8q"){if(F.5x.1w){F.5x=F.5x[0];D(F.5x)}1p{A.1K(F.5x,u(G,H){D(G)})}}1p{D(F.5x)}},2J:u(F,E){p G=E.19,C=A(k).1x("1y"),D=C.4W,I=C.2I;p H={1g:(C.1A.1g-D.1g)||0,1e:(C.1A.1e-D.1e)||0,1b:(C.1o.1b-I.1b)||0,1a:(C.1o.1a-I.1a)||0},B=u(J,K){A(J).1K(u(){p N=A(k).1x("1y-bV"),M={},L=K&&K.1w?K:["1e","1g","1b","1a"];A.1K(L||["1e","1g","1b","1a"],u(O,Q){p P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||1n}});A(k).1d(M)})};if(2v(G.5x)=="8q"){A.1K(G.5x,u(J,K){B(J,K)})}1p{B(G.5x)}},2S:u(C,B){A(k).5b("1y-bV-2R")}})})(2j);(u(A){A.4e("15.3b",A.2d({},A.15.4A,{5i:u(){p B=k;k.1c.1E("15-3b");k.bs=1h;p C;k.9C=u(){C=A(B.19.7c,B.1c[0]);C.1K(u(){p D=A(k);p E=D.1f();A.1x(k,"3b-2l",{1c:k,$1c:D,1a:E.1a,1b:E.1b,3Q:E.1a+D.1e(),4f:E.1b+D.1g(),73:1h,2W:D.5n("15-2W"),4n:D.5n("15-4n"),3v:D.5n("15-3v")})})};k.9C();k.a8=C.1E("15-hu");k.8j();k.1l=A(1k.ff("1s")).1d({bw:"ab hz hX"}).1E("15-3b-1l")},gT:u(){if(k.19.24){k.bz()}1p{k.bA()}},5C:u(){k.1c.23("15-3b 15-3b-24").5b("3b").2H(".3b");k.8e()},6q:u(E){p C=k;k.cb=[E.2U,E.2C];if(k.19.24){18}p D=k.19;k.a8=A(D.7c,k.1c[0]);k.1c.2Q("gU",[E,{3b:k.1c[0],19:D}],D.2R);A("1S").5m(k.1l);k.1l.1d({"z-bO":2g,1o:"2n",1a:E.gW,1b:E.jg,1e:0,1g:0});if(D.fD){k.9C()}k.a8.7c(".15-2W").1K(u(){p F=A.1x(k,"3b-2l");F.73=1t;if(!E.ce){F.$1c.23("15-2W");F.2W=1h;F.$1c.1E("15-3v");F.3v=1t;C.1c.2Q("ck",[E,{3b:C.1c[0],3v:F.1c,19:D}],D.3v)}});p B=1h;A(E.1m).5I().aL().1K(u(){if(A.1x(k,"3b-2l")){B=1t}});18 k.19.jv?!B:1t},5w:u(I){p C=k;k.bs=1t;if(k.19.24){18}p E=k.19;p D=k.cb[0],H=k.cb[1],B=I.2U,G=I.2C;if(D>B){p F=B;B=D;D=F}if(H>G){p F=G;G=H;H=F}k.1l.1d({1a:D,1b:H,1e:B-D,1g:G-H});k.a8.1K(u(){p J=A.1x(k,"3b-2l");if(!J||J.1c==C.1c[0]){18}p K=1h;if(E.52=="bt"){K=(!(J.1a>B||J.3Q<D||J.1b>G||J.4f<H))}1p{if(E.52=="fF"){K=(J.1a>D&&J.3Q<B&&J.1b>H&&J.4f<G)}}if(K){if(J.2W){J.$1c.23("15-2W");J.2W=1h}if(J.3v){J.$1c.23("15-3v");J.3v=1h}if(!J.4n){J.$1c.1E("15-4n");J.4n=1t;C.1c.2Q("jq",[I,{3b:C.1c[0],4n:J.1c,19:E}],E.4n)}}1p{if(J.4n){if(I.ce&&J.73){J.$1c.23("15-4n");J.4n=1h;J.$1c.1E("15-2W");J.2W=1t}1p{J.$1c.23("15-4n");J.4n=1h;if(J.73){J.$1c.1E("15-3v");J.3v=1t}C.1c.2Q("ck",[I,{3b:C.1c[0],3v:J.1c,19:E}],E.3v)}}if(J.2W){if(!I.ce&&!J.73){J.$1c.23("15-2W");J.2W=1h;J.$1c.1E("15-3v");J.3v=1t;C.1c.2Q("ck",[I,{3b:C.1c[0],3v:J.1c,19:E}],E.3v)}}}});18 1h},6k:u(D){p B=k;k.bs=1h;p C=k.19;A(".15-3v",k.1c[0]).1K(u(){p E=A.1x(k,"3b-2l");E.$1c.23("15-3v");E.3v=1h;E.73=1h;B.1c.2Q("lb",[D,{3b:B.1c[0],fC:E.1c,19:C}],C.fC)});A(".15-4n",k.1c[0]).1K(u(){p E=A.1x(k,"3b-2l");E.$1c.23("15-4n").1E("15-2W");E.4n=1h;E.2W=1t;E.73=1t;B.1c.2Q("kN",[D,{3b:B.1c[0],2W:E.1c,19:C}],C.2W)});k.1c.2Q("kJ",[D,{3b:B.1c[0],19:k.19}],k.19.2S);k.1l.2M();18 1h}}));A.2d(A.15.3b,{3V:{6T:1,5r:0,7r:":1v",3k:"1S",fD:1t,7c:"*",52:"bt"}})})(2j);(u(B){u A(E,D){p C=B.2y.b3&&B.2y.8h<kE;if(E.aF&&!C){18 E.aF(D)}if(E.aE){18!!(E.aE(D)&16)}4c(D=D.2K){if(D==E){18 1t}}18 1h}B.4e("15.2t",B.2d({},B.15.4A,{5i:u(){p C=k.19;k.4N={};k.1c.1E("15-2t");k.9C();k.6f=k.1Y.1w?(/1a|3Q/).1H(k.1Y[0].2l.1d("kG")):1h;k.1f=k.1c.1f();k.8j()},5N:{},15:u(C){18{1l:(C||k)["1l"],3a:(C||k)["3a"]||B([]),1o:(C||k)["1o"],9O:(C||k)["3f"],19:k.19,1c:k.1c,2l:(C||k)["1J"],fE:C?C.1c:1n}},1T:u(F,E,C,D){B.15.2r.1D(k,F,[E,k.15(C)]);if(!D){k.1c.2Q(F=="6v"?F:"6v"+F,[E,k.15(C)],k.19[F])}},dJ:u(E){p C=k.c7(E&&E.fq);p D=[];E=E||{};B(C).1K(u(){p F=(B(k.2l||k).4Z(E.kP||"id")||"").3u(E.fr||(/(.+)[-=aO](.+)/));if(F){D.4l((E.5e||F[1]+"[]")+"="+(E.5e&&E.fr?F[1]:F[2]))}});18 D.6y("&")},dK:u(E){p C=k.c7(E&&E.fq);p D=[];C.1K(u(){D.4l(B(k).4Z(E.4Z||"id"))});18 D},et:u(L){p E=k.3f.1a,D=E+k.22.1e,K=k.3f.1b,J=K+k.22.1g;p F=L.1a,C=F+L.1e,M=L.1b,I=M+L.1g;p N=k.1f.2k.1b,H=k.1f.2k.1a;p G=(K+N)>M&&(K+N)<I&&(E+H)>F&&(E+H)<C;if(k.19.52=="bB"||k.19.kX||(k.19.52=="c2"&&k.22[k.6f?"1e":"1g"]>L[k.6f?"1e":"1g"])){18 G}1p{18(F<E+(k.22.1e/2)&&D-(k.22.1e/2)<C&&M<K+(k.22.1g/2)&&J-(k.22.1g/2)<I)}},fj:u(N){p E=k.3f.1a,D=E+k.22.1e,L=k.3f.1b,J=L+k.22.1g;p F=N.1a,C=F+N.1e,O=N.1b,I=O+N.1g;p P=k.1f.2k.1b,H=k.1f.2k.1a;p G=(L+P)>O&&(L+P)<I&&(E+H)>F&&(E+H)<C;if(k.19.52=="bB"||(k.19.52=="c2"&&k.22[k.6f?"1e":"1g"]>N[k.6f?"1e":"1g"])){if(!G){18 1h}if(k.6f){if((E+H)>F&&(E+H)<F+N.1e/2){18 2}if((E+H)>F+N.1e/2&&(E+H)<C){18 1}}1p{p M=N.1g;p K=L-k.bQ.1b<0?2:1;if(K==1&&(L+P)<O+M/2){18 2}1p{if(K==2&&(L+P)>O+M/2){18 1}}}}1p{if(!(F<E+(k.22.1e/2)&&D-(k.22.1e/2)<C&&O<L+(k.22.1g/2)&&J-(k.22.1g/2)<I)){18 1h}if(k.6f){if(D>F&&E<F){18 2}if(E<C&&D>C){18 1}}1p{if(J>O&&L<O){18 1}if(L<I&&J>I){18 2}}}18 1h},9C:u(){k.aN();k.8W()},c7:u(H){p D=k;p C=[];p F=[];if(k.19.7S&&H){1F(p G=k.19.7S.1w-1;G>=0;G--){p J=B(k.19.7S[G]);1F(p E=J.1w-1;E>=0;E--){p I=B.1x(J[E],"2t");if(I&&I!=k&&!I.19.24){F.4l([B.7T(I.19.1Y)?I.19.1Y.1D(I.1c):B(I.19.1Y,I.1c).b2(".15-2t-1l"),I])}}}}F.4l([B.7T(k.19.1Y)?k.19.1Y.1D(k.1c,1n,{19:k.19,2l:k.1J}):B(k.19.1Y,k.1c).b2(".15-2t-1l"),k]);1F(p G=F.1w-1;G>=0;G--){F[G][0].1K(u(){C.4l(k)})}18 B(C)},fp:u(){p E=k.1J.2V(":1x(2t-2l)");1F(p D=0;D<k.1Y.1w;D++){1F(p C=0;C<E.1w;C++){if(E[C]==k.1Y[D].2l[0]){k.1Y.fb(D,1)}}}},aN:u(){k.1Y=[];k.2h=[k];p D=k.1Y;p C=k;p F=[[B.7T(k.19.1Y)?k.19.1Y.1D(k.1c,1n,{19:k.19,2l:k.1J}):B(k.19.1Y,k.1c),k]];if(k.19.7S){1F(p G=k.19.7S.1w-1;G>=0;G--){p I=B(k.19.7S[G]);1F(p E=I.1w-1;E>=0;E--){p H=B.1x(I[E],"2t");if(H&&H!=k&&!H.19.24){F.4l([B.7T(H.19.1Y)?H.19.1Y.1D(H.1c):B(H.19.1Y,H.1c),H]);k.2h.4l(H)}}}}1F(p G=F.1w-1;G>=0;G--){F[G][0].1K(u(){B.1x(k,"2t-2l",F[G][1]);D.4l({2l:B(k),1V:F[G][1],1e:0,1g:0,1a:0,1b:0})})}},8W:u(D){if(k.2z){p C=k.2z.1f();k.1f.1z={1b:C.1b+k.9R.1b,1a:C.1a+k.9R.1a}}1F(p F=k.1Y.1w-1;F>=0;F--){if(k.1Y[F].1V!=k.7Y&&k.7Y&&k.1Y[F].2l[0]!=k.1J[0]){51}p E=k.19.f8?B(k.19.f8,k.1Y[F].2l):k.1Y[F].2l;if(!D){k.1Y[F].1e=E[0].5z;k.1Y[F].1g=E[0].3J}p G=E.1f();k.1Y[F].1a=G.1a;k.1Y[F].1b=G.1b}if(k.19.c5&&k.19.c5.f9){k.19.c5.f9.1D(k)}1p{1F(p F=k.2h.1w-1;F>=0;F--){p G=k.2h[F].1c.1f();k.2h[F].4N.1a=G.1a;k.2h[F].4N.1b=G.1b;k.2h[F].4N.1e=k.2h[F].1c.43();k.2h[F].4N.1g=k.2h[F].1c.48()}}},5C:u(){k.1c.23("15-2t 15-2t-24").5b("2t").2H(".2t");k.8e();1F(p C=k.1Y.1w-1;C>=0;C--){k.1Y[C].2l.5b("2t-2l")}},fk:u(E){p C=E||k,F=C.19;if(!F.3a||F.3a.67==97){p D=F.3a;F.3a={1c:u(){p G=B(1k.ff(C.1J[0].2E)).1E(D||"15-2t-3a")[0];if(!D){G.3r.fg="4m";G.fm=C.1J[0].fm}18 G},95:u(G,H){if(D){18}if(!H.1g()){H.1g(C.1J.7m())}if(!H.1e()){H.1e(C.1J.7R())}}}}C.3a=B(F.3a.1c.1D(C.1c,C.1J)).3k(C.1J.1z());C.1J.9U(C.3a);F.3a.95(C,C.3a)},eb:u(F){1F(p D=k.2h.1w-1;D>=0;D--){if(k.et(k.2h[D].4N)){if(!k.2h[D].4N.3z){if(k.7Y!=k.2h[D]){p I=l0;p H=1n;p E=k.3f[k.2h[D].6f?"1a":"1b"];1F(p C=k.1Y.1w-1;C>=0;C--){if(!A(k.2h[D].1c[0],k.1Y[C].2l[0])){51}p G=k.1Y[C][k.2h[D].6f?"1a":"1b"];if(1u.4w(G-E)<I){I=1u.4w(G-E);H=k.1Y[C]}}if(!H&&!k.19.dA){51}k.7Y=k.2h[D];H?k.19.aR.1D(k,F,H,1n,1t):k.19.aR.1D(k,F,1n,k.2h[D].1c,1t);k.1T("62",F);k.2h[D].1T("62",F,k);k.19.3a.95(k.7Y,k.3a)}k.2h[D].1T("3z",F,k);k.2h[D].4N.3z=1}}1p{if(k.2h[D].4N.3z){k.2h[D].1T("8T",F,k);k.2h[D].4N.3z=0}}}},9a:u(G,F){if(k.19.24||k.19.3K=="85"){18 1h}k.aN();p E=1n,D=k,C=B(G.1m).5I().1K(u(){if(B.1x(k,"2t-2l")==D){E=B(k);18 1h}});if(B.1x(G.1m,"2t-2l")==D){E=B(G.1m)}if(!E){18 1h}if(k.19.1M&&!F){p H=1h;B(k.19.1M,E).2V("*").aL().1K(u(){if(k==G.1m){H=1t}});if(!H){18 1h}}k.1J=E;k.fp();18 1t},6q:u(H,F,C){p J=k.19;k.7Y=k;k.8W();k.1l=2v J.1l=="u"?B(J.1l.2s(k.1c[0],[H,k.1J])):(J.1l=="6c"?k.1J:k.1J.7Z());if(!k.1l.5I("1S").1w){B(J.3k!="1z"?J.3k:k.1J[0].2K)[0].dC(k.1l[0])}k.2Z={1a:(1q(k.1J.1d("9E"),10)||0),1b:(1q(k.1J.1d("9D"),10)||0)};k.1f=k.1J.1f();k.1f={1b:k.1f.1b-k.2Z.1b,1a:k.1f.1a-k.2Z.1a};k.1f.2k={1a:H.2U-k.1f.1a,1b:H.2C-k.1f.1b};k.2z=k.1l.2z();p D=k.2z.1f();k.9R={1b:(1q(k.2z.1d("7o"),10)||0),1a:(1q(k.2z.1d("7e"),10)||0)};k.1f.1z={1b:D.1b+k.9R.1b,1a:D.1a+k.9R.1a};k.bQ=k.2I=k.7s(H);k.bv={5v:k.1J.5v()[0],1z:k.1J.1z()[0]};k.22={1e:k.1l.43(),1g:k.1l.48()};if(J.1l=="6c"){k.dG={1o:k.1J.1d("1o"),1b:k.1J.1d("1b"),1a:k.1J.1d("1a"),5f:k.1J.1d("5f")}}if(J.1l!="6c"){k.1J.4b()}k.1l.1d({1o:"2n",5f:"8f"}).1E("15-2t-1l");k.fk();k.1T("2R",H);if(!k.ld){k.22={1e:k.1l.43(),1g:k.1l.48()}}if(J.3I){if(J.3I.1a!=2a){k.1f.2k.1a=J.3I.1a}if(J.3I.3Q!=2a){k.1f.2k.1a=k.22.1e-J.3I.3Q}if(J.3I.1b!=2a){k.1f.2k.1b=J.3I.1b}if(J.3I.4f!=2a){k.1f.2k.1b=k.22.1g-J.3I.4f}}if(J.1B){if(J.1B=="1z"){J.1B=k.1l[0].2K}if(J.1B=="1k"||J.1B=="3R"){k.1B=[0-k.1f.1z.1a,0-k.1f.1z.1b,B(J.1B=="1k"?1k:3R).1e()-k.1f.1z.1a-k.22.1e-k.2Z.1a-(1q(k.1c.1d("7p"),10)||0),(B(J.1B=="1k"?1k:3R).1g()||1k.1S.2K.5a)-k.1f.1z.1b-k.22.1g-k.2Z.1b-(1q(k.1c.1d("7t"),10)||0)]}if(!(/^(1k|3R|1z)$/).1H(J.1B)){p G=B(J.1B)[0];p I=B(J.1B).1f();k.1B=[I.1a+(1q(B(G).1d("7e"),10)||0)-k.1f.1z.1a,I.1b+(1q(B(G).1d("7o"),10)||0)-k.1f.1z.1b,I.1a+1u.1L(G.9u,G.5z)-(1q(B(G).1d("7e"),10)||0)-k.1f.1z.1a-k.22.1e-k.2Z.1a-(1q(k.1J.1d("7p"),10)||0),I.1b+1u.1L(G.5a,G.3J)-(1q(B(G).1d("7o"),10)||0)-k.1f.1z.1b-k.22.1g-k.2Z.1b-(1q(k.1J.1d("7t"),10)||0)]}}if(!C){1F(p E=k.2h.1w-1;E>=0;E--){k.2h[E].1T("9z",H,k)}}if(B.15.2u){B.15.2u.4d=k}if(B.15.2u&&!J.aY){B.15.2u.9q(k,H)}k.7Q=1t;k.5w(H);18 1t},4v:u(D,E){if(!E){E=k.1o}p C=D=="2n"?1:-1;18{1b:(E.1b+k.1f.1z.1b*C-(k.2z[0]==1k.1S?0:k.2z[0].1W)*C+k.2Z.1b*C),1a:(E.1a+k.1f.1z.1a*C-(k.2z[0]==1k.1S?0:k.2z[0].2b)*C+k.2Z.1a*C)}},7s:u(F){p G=k.19;p C={1b:(F.2C-k.1f.2k.1b-k.1f.1z.1b+(k.2z[0]==1k.1S?0:k.2z[0].1W)),1a:(F.2U-k.1f.2k.1a-k.1f.1z.1a+(k.2z[0]==1k.1S?0:k.2z[0].2b))};if(!k.2I){18 C}if(k.1B){if(C.1a<k.1B[0]){C.1a=k.1B[0]}if(C.1b<k.1B[1]){C.1b=k.1B[1]}if(C.1a>k.1B[2]){C.1a=k.1B[2]}if(C.1b>k.1B[3]){C.1b=k.1B[3]}}if(G.2F){p E=k.2I.1b+1u.2G((C.1b-k.2I.1b)/G.2F[1])*G.2F[1];C.1b=k.1B?(!(E<k.1B[1]||E>k.1B[3])?E:(!(E<k.1B[1])?E-G.2F[1]:E+G.2F[1])):E;p D=k.2I.1a+1u.2G((C.1a-k.2I.1a)/G.2F[0])*G.2F[0];C.1a=k.1B?(!(D<k.1B[0]||D>k.1B[2])?D:(!(D<k.1B[0])?D-G.2F[0]:D+G.2F[0])):D}18 C},5w:u(D){k.1o=k.7s(D);k.3f=k.4v("2n");B.15.2r.1D(k,"6v",[D,k.15()]);k.3f=k.4v("2n");k.1l[0].3r.1a=k.1o.1a+"2Y";k.1l[0].3r.1b=k.1o.1b+"2Y";1F(p C=k.1Y.1w-1;C>=0;C--){p E=k.fj(k.1Y[C]);if(!E){51}if(k.1Y[C].2l[0]!=k.1J[0]&&k.3a[E==1?"66":"5v"]()[0]!=k.1Y[C].2l[0]&&!A(k.3a[0],k.1Y[C].2l[0])&&(k.19.3K=="l5-l6"?!A(k.1c[0],k.1Y[C].2l[0]):1t)){k.bQ=k.7s(D);k.dw=E==1?"dL":"kC";k.19.aR.1D(k,D,k.1Y[C]);k.1T("62",D);1O}}k.eb(D);if(B.15.2u){B.15.2u.5V(k,D)}k.1c.2Q("6v",[D,k.15()],k.19.6v);18 1h},dx:u(H,G,D,F){D?D[0].dC(k.3a[0]):G.2l[0].2K.jR(k.3a[0],(k.dw=="dL"?G.2l[0]:G.2l[0].fl));k.8X=k.8X?++k.8X:1;p E=k,C=k.8X;3R.83(u(){if(C==E.8X){E.8W(!F)}},0)},6k:u(E,D){if(B.15.2u&&!k.19.aY){B.15.2u.6x(k,E)}if(k.19.6F){p C=k;p F=C.3a.1f();B(k.1l).3q({1a:F.1a-k.1f.1z.1a-C.2Z.1a+(k.2z[0]==1k.1S?0:k.2z[0].2b),1b:F.1b-k.1f.1z.1b-C.2Z.1b+(k.2z[0]==1k.1S?0:k.2z[0].1W)},1q(k.19.6F,10)||du,u(){C.81(E)})}1p{k.81(E,D)}18 1h},81:u(E,D){if(!k.dy){k.3a.9U(k.1J)}k.dy=1n;if(k.19.1l=="6c"){k.1J.1d(k.dG).23("15-2t-1l")}1p{k.1J.4G()}if(k.bv.5v!=k.1J.5v().b2(".15-2t-1l")[0]||k.bv.1z!=k.1J.1z()[0]){k.1T("95",E,1n,D)}if(!A(k.1c[0],k.1J[0])){k.1T("2M",E,1n,D);1F(p C=k.2h.1w-1;C>=0;C--){if(A(k.2h[C].1c[0],k.1J[0])){k.2h[C].1T("95",E,k,D);k.2h[C].1T("dO",E,k,D)}}}1F(p C=k.2h.1w-1;C>=0;C--){k.2h[C].1T("94",E,k,D);if(k.2h[C].4N.3z){k.2h[C].1T("8T",E,k);k.2h[C].4N.3z=0}}k.7Q=1h;if(k.7P){k.1T("8R",E,1n,D);k.1T("2S",E,1n,D);18 1h}k.1T("8R",E,1n,D);k.3a.2M();if(k.19.1l!="6c"){k.1l.2M()}k.1l=1n;k.1T("2S",E,1n,D);18 1t}}));B.2d(B.15.2t,{cS:"dJ dK",3V:{1l:"6c",52:"c2",6T:1,5r:0,3A:1t,3D:20,3C:20,7r:":1v",1Y:"> *",2T:c1,dA:1t,3k:"1z",aR:B.15.2t.5T.dx,5R:"4K"}});B.15.2r.2D("2t","2p",{2R:u(E,D){p C=B("1S");if(C.1d("2p")){D.19.7N=C.1d("2p")}C.1d("2p",D.19.2p)},8R:u(D,C){if(C.19.7N){B("1S").1d("2p",C.19.7N)}}});B.15.2r.2D("2t","2T",{2R:u(E,D){p C=D.1l;if(C.1d("2T")){D.19.7J=C.1d("2T")}C.1d("2T",D.19.2T)},8R:u(D,C){if(C.19.7J){B(C.1l).1d("2T",C.19.7J)}}});B.15.2r.2D("2t","3N",{2R:u(E,D){p C=D.1l;if(C.1d("3N")){D.19.80=C.1d("3N")}C.1d("3N",D.19.3N)},8R:u(D,C){if(C.19.80){B(C.1l).1d("3N",C.19.80)}}});B.15.2r.2D("2t","3A",{2R:u(E,D){p F=D.19;p C=B(k).1x("2t");C.3c=u(G){do{if(/3x|3A/.1H(G.1d("3H"))||(/3x|3A/).1H(G.1d("3H-y"))){18 G}G=G.1z()}4c(G[0].2K);18 B(1k)}(C.1J);C.3d=u(G){do{if(/3x|3A/.1H(G.1d("3H"))||(/3x|3A/).1H(G.1d("3H-x"))){18 G}G=G.1z()}4c(G[0].2K);18 B(1k)}(C.1J);if(C.3c[0]!=1k&&C.3c[0].61!="6s"){C.8y=C.3c.1f()}if(C.3d[0]!=1k&&C.3d[0].61!="6s"){C.8p=C.3d.1f()}},6v:u(E,D){p F=D.19;p C=B(k).1x("2t");if(C.3c[0]!=1k&&C.3c[0].61!="6s"){if((C.8y.1b+C.3c[0].3J)-E.2C<F.3D){C.3c[0].1W=C.3c[0].1W+F.3C}if(E.2C-C.8y.1b<F.3D){C.3c[0].1W=C.3c[0].1W-F.3C}}1p{if(E.2C-B(1k).1W()<F.3D){B(1k).1W(B(1k).1W()-F.3C)}if(B(3R).1g()-(E.2C-B(1k).1W())<F.3D){B(1k).1W(B(1k).1W()+F.3C)}}if(C.3d[0]!=1k&&C.3d[0].61!="6s"){if((C.8p.1a+C.3d[0].5z)-E.2U<F.3D){C.3d[0].2b=C.3d[0].2b+F.3C}if(E.2U-C.8p.1a<F.3D){C.3d[0].2b=C.3d[0].2b-F.3C}}1p{if(E.2U-B(1k).2b()<F.3D){B(1k).2b(B(1k).2b()-F.3C)}if(B(3R).1e()-(E.2U-B(1k).2b())<F.3D){B(1k).2b(B(1k).2b()+F.3C)}}}});B.15.2r.2D("2t","2x",{6v:u(E,D){p C=B(k).1x("2t");if(D.19.2x=="y"){C.1o.1a=C.2I.1a}if(D.19.2x=="x"){C.1o.1b=C.2I.1b}}})})(2j);(u(A){A.4e("15.3M",{5i:u(){A.2d(k.19,{5r:k.19.7d?A.4Y.3V.5r:10,1L:!k.19.3A?10:3i,9V:k.19.9V||u(B){18 B},a5:k.19.a5||k.19.cf});1G A.4Y(k.1c[0],k.19)},5o:u(B){18 k.1c.21("5o",B)},9W:u(B){18 k.1c.4J("9W",[B])},bu:u(){18 k.1c.4J("bu")},a2:u(B,C){18 k.1c.4J("dP",[{5e:C}])},5C:u(){18 k.1c.4J("eh")}});A.4Y=u(L,G){p C={cA:38,cC:40,ep:46,cv:9,e9:13,ea:27,cp:ee,eg:33,ed:34,bF:8};p B=A(L).4Z("3M","ef").1E(G.eo);if(G.5o){B.21("5o.3M",G.5o)}p J;p P="";p M=A.4Y.e8(G);p E=0;p U;p X={ad:1h};p R=A.4Y.ae(G,L,D,X);p W;A.2y.7f&&A(L.ei).21("7i.3M",u(){if(W){W=1h;18 1h}});B.21((A.2y.7f?"cR":"8s")+".3M",u(Y){U=Y.6O;7D(Y.6O){1I C.cA:Y.5Z();if(R.4r()){R.5v()}1p{T(0,1t)}1O;1I C.cC:Y.5Z();if(R.4r()){R.66()}1p{T(0,1t)}1O;1I C.eg:Y.5Z();if(R.4r()){R.e3()}1p{T(0,1t)}1O;1I C.ed:Y.5Z();if(R.4r()){R.e0()}1p{T(0,1t)}1O;1I G.9x&&A.8S(G.71)==","&&C.cp:1I C.cv:1I C.e9:if(D()){Y.5Z();W=1t;18 1h}1O;1I C.ea:R.4b();1O;4K:bG(J);J=83(T,G.5r);1O}}).3p(u(){E++}).af(u(){E=0;if(!X.ad){S()}}).2k(u(){if(E++>1&&!R.4r()){T(0,1t)}}).21("9W",u(){p Y=(4y.1w>1)?4y[1]:1n;u Z(d,c){p a;if(c&&c.1w){1F(p b=0;b<c.1w;b++){if(c[b].5o.4z()==d.4z()){a=c[b];1O}}}if(2v Y=="u"){Y(a)}1p{B.4J("5o",a&&[a.1x,a.1C])}}A.1K(H(B.29()),u(a,b){F(b,Z,Z)})}).21("bu",u(){M.dV()}).21("dP",u(){A.2d(G,4y[1]);if("1x"in 4y[1]){M.dW()}}).21("eh",u(){R.2H();B.2H();A(L.ei).2H(".3M")});u D(){p Z=R.2W();if(!Z){18 1h}p Y=Z.5o;P=Y;if(G.9x){p a=H(B.29());if(a.1w>1){Y=a.6D(0,a.1w-1).6y(G.71)+G.71+Y}Y+=G.71}B.29(Y);V();B.4J("5o",[Z.1x,Z.1C]);18 1t}u T(a,Z){if(U==C.ep){R.4b();18}p Y=B.29();if(!Z&&Y==P){18}P=Y;Y=I(Y);if(Y.1w>=G.cc){B.1E(G.bL);if(!G.a3){Y=Y.4z()}F(Y,K,V)}1p{N();R.4b()}}u H(Z){if(!Z){18[""]}p a=Z.6p(G.71);p Y=[];A.1K(a,u(b,c){if(A.8S(c)){Y[b]=A.8S(c)}});18 Y}u I(Y){if(!G.9x){18 Y}p Z=H(Y);18 Z[Z.1w-1]}u Q(Y,Z){if(G.ek&&(I(B.29()).4z()==Y.4z())&&U!=C.bF){B.29(B.29()+Z.ct(I(P).1w));A.4Y.cj(L,P.1w,P.1w+Z.1w)}}u S(){bG(J);J=83(V,eZ)}u V(){p Y=R.4r();R.4b();bG(J);N();if(G.en){B.3M("9W",u(Z){if(!Z){if(G.9x){p a=H(B.29()).6D(0,-1);B.29(a.6y(G.71)+(a.1w?G.71:""))}1p{B.29("")}}})}if(Y){A.4Y.cj(L,L.1C.1w,L.1C.1w)}}u K(Z,Y){if(Y&&Y.1w&&E){N();R.4L(Y,Z);Q(Z,Y[0].1C);R.4G()}1p{V()}}u F(b,d,a){if(!G.a3){b=b.4z()}p c=M.dX(b);if(c&&c.1w){d(b,c)}1p{if((2v G.7d=="3W")&&(G.7d.1w>0)){p e={jC:+1G 1Q()};A.1K(G.ej,u(f,g){e[f]=2v g=="u"?g():g});A.jD({k1:"k2",kr:"3M"+L.3E,er:G.er,7d:G.7d,1x:A.2d({q:I(b),ks:G.1L},e),kq:u(g){p f=G.a1&&G.a1(g)||O(g);M.2D(b,f);d(b,f)}})}1p{if(G.bP&&2v G.bP=="u"){p Z=G.bP(b);p Y=(G.a1)?G.a1(Z):Z;M.2D(b,Y);d(b,Y)}1p{R.gK();a(b)}}}}u O(b){p Y=[];p a=b.6p("\\n");1F(p Z=0;Z<a.1w;Z++){p c=A.8S(a[Z]);if(c){c=c.6p("|");Y[Y.1w]={1x:c,1C:c[0],5o:G.a7&&G.a7(c,c[0])||c[0]}}}18 Y}u N(){B.23(G.bL)}};A.4Y.3V={eo:"15-3M-1v",dQ:"15-3M-km",bL:"15-3M-ko",cc:1,5r:kt,a3:1h,dT:1t,ca:1h,9p:10,1L:2g,en:1h,ej:{},bW:1t,cf:u(B){18 B[0]},a5:1n,ek:1h,1e:0,9x:1h,71:", ",9V:u(C,B){18 C.7C(1G kz("(?![^&;]+;)(?!<[^<>]*)("+B.7C(/([\\^\\$\\(\\)\\[\\]\\{\\}\\*\\.\\+\\?\\|\\\\])/gi,"\\\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<em>$1</em>")},3A:1t,5a:bU};A.2d(A.15.3M,{3V:A.4Y.3V});A.4Y.e8=u(C){p F={};p D=0;u H(K,J){if(!C.a3){K=K.4z()}p I=K.6d(J);if(I==-1){18 1h}18 I==0||C.ca}u G(J,I){if(D>C.9p){B()}if(!F[J]){D++}F[J]=I}u E(){if(!C.1x){18 1h}p J={},I=0;if(!C.7d){C.9p=1}J[""]=[];1F(p L=0,K=C.1x.1w;L<K;L++){p O=C.1x[L];O=(2v O=="3W")?[O]:O;p N=C.a5(O,L+1,C.1x.1w);if(N===1h){51}p M=N.3l(0).4z();if(!J[M]){J[M]=[]}p P={1C:N,1x:O,5o:C.a7&&C.a7(O)||N};J[M].4l(P);if(I++<C.1L){J[""].4l(P)}}A.1K(J,u(Q,R){C.9p++;G(Q,R)})}83(E,25);u B(){F={};D=0}18{dV:B,2D:G,dW:E,dX:u(L){if(!C.9p||!D){18 1n}if(!C.7d&&C.ca){p K=[];1F(p I in F){if(I.1w>0){p M=F[I];A.1K(M,u(O,N){if(H(N.1C,L)){K.4l(N)}})}}18 K}1p{if(F[L]){18 F[L]}1p{if(C.dT){1F(p J=L.1w-1;J>=C.cc;J--){p M=F[L.k3(0,J)];if(M){p K=[];A.1K(M,u(O,N){if(H(N.1C,L)){K[K.1w]=N}});18 K}}}}}18 1n}}};A.4Y.ae=u(E,J,L,P){p I={5j:"15-3M-3z"};p K,F=-1,R,M="",S=1t,C,O;u N(){if(!S){18}C=A("<1s/>").4b().1E(E.dQ).1d("1o","2n").3k(1k.1S);O=A("<k5/>").3k(C).dR(u(T){if(Q(T).2E&&Q(T).2E.kb()=="dY"){F=A("bY",O).23(I.5j).bO(Q(T));A(Q(T)).1E(I.5j)}}).2k(u(T){A(Q(T)).1E(I.5j);L();J.3p();18 1h}).5S(u(){P.ad=1t}).6b(u(){P.ad=1h});if(E.1e>0){C.1d("1e",E.1e)}S=1h}u Q(U){p T=U.1m;4c(T&&T.61!="dY"){T=T.2K}if(!T){18[]}18 T}u H(T){K.6D(F,F+1).23(I.5j);G(T);p V=K.6D(F,F+1).1E(I.5j);if(E.3A){p U=0;K.6D(0,F).1K(u(){U+=k.3J});if((U+V[0].3J-O.1W())>O[0].82){O.1W(U+V[0].3J-O.7m())}1p{if(U<O.1W()){O.1W(U)}}}}u G(T){F+=T;if(F<0){F=K.1A()-1}1p{if(F>=K.1A()){F=0}}}u B(T){18 E.1L&&E.1L<T?E.1L:T}u D(){O.b1();p U=B(R.1w);1F(p V=0;V<U;V++){if(!R[V]){51}p W=E.cf(R[V].1x,V+1,U,R[V].1C,M);if(W===1h){51}p T=A("<bY/>").2B(E.9V(W,M)).1E(V%2==0?"15-3M-kh":"15-3M-kg").3k(O)[0];A.1x(T,"15-3M-1x",R[V])}K=O.2V("bY");if(E.bW){K.6D(0,1).1E(I.5j);F=0}if(A.fn.e4){O.e4()}}18{4L:u(U,T){N();R=U;M=T;D()},66:u(){H(1)},5v:u(){H(-1)},e3:u(){if(F!=0&&F-8<0){H(-F)}1p{H(-8)}},e0:u(){if(F!=K.1A()-1&&F+8>K.1A()){H(K.1A()-1-F)}1p{H(8)}},4b:u(){C&&C.4b();K&&K.23(I.5j);F=-1;A(J).2Q("ke",[{},{19:E}],E.4b)},4r:u(){18 C&&C.is(":4r")},4d:u(){18 k.4r()&&(K.7c("."+I.5j)[0]||E.bW&&K[0])},4G:u(){p V=A(J).1f();C.1d({1e:2v E.1e=="3W"||E.1e>0?E.1e:A(J).1e(),1b:V.1b+J.3J,1a:V.1a}).4G();if(E.3A){O.1W(0);O.1d({8b:E.5a,3H:"3x"});if(A.2y.4V&&2v 1k.1S.3r.8b==="2a"){p T=0;K.1K(u(){T+=k.3J});p U=T>E.5a;O.1d("1g",U?E.5a:T);if(!U){K.1e(O.1e()-1q(K.1d("ci-1a"))-1q(K.1d("ci-3Q")))}}}A(J).2Q("kd",[{},{19:E}],E.4G)},2W:u(){p T=K&&K.7c("."+I.5j).23(I.5j);18 T&&T.1w&&A.1x(T[0],"15-3M-1x")},gK:u(){O&&O.b1()},2H:u(){C&&C.2M()}}};A.4Y.cj=u(D,E,C){if(D.gM){p B=D.gM();B.k4(1t);B.k6("gN",E);B.k7("gN",C);B.5h()}1p{if(D.gO){D.gO(E,C)}1p{if(D.gL){D.gL=E;D.k8=C}}}D.3p()}})(2j);(u(A){A.4e("15.1N",{5i:u(){k.cH=65;p D=k.19,B=k,C=\'<1s 1X="15-1N kk"><1s 1X="15-1N-1R"><1s><1s></1s></1s></1s><1s 1X="15-1N-8c"><1s></1s></1s><1s 1X="15-1N-1G-1R"></1s><1s 1X="15-1N-4d-1R"></1s><1s 1X="15-1N-5P"><3h 1F="15-1N-5P" 8x="5P"></3h><1v 3K="47" 7j="6" 1A="6" /></1s><1s 1X="15-1N-5E-r 15-1N-5K"><3h 1F="15-1N-5E-r"></3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><1s 1X="15-1N-5E-g 15-1N-5K"><3h 1F="15-1N-5E-g"></3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><1s 1X="15-1N-5E-b 15-1N-5K"><3h 1F="15-1N-5E-b"</3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><1s 1X="15-1N-4s-h 15-1N-5K"><3h 1F="15-1N-4s-h"></3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><1s 1X="15-1N-4s-s 15-1N-5K"><3h 1F="15-1N-4s-s"></3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><1s 1X="15-1N-4s-b 15-1N-5K"><3h 1F="15-1N-4s-b"></3h><1v 3K="47" 7j="3" 1A="2" /><3m></3m></1s><4D 1X="15-1N-7i 15-4K-kw" 3E="7i" 3K="4D">kv</4D></1s>\';if(2v D.1R=="3W"){k.1R=k.aD(D.1R)}1p{if(D.1R.r!=2a&&D.1R.g!=2a&&D.1R.b!=2a){k.1R=k.9l(D.1R)}1p{if(D.1R.h!=2a&&D.1R.s!=2a&&D.1R.b!=2a){k.1R=k.au(D.1R)}1p{18 k}}}k.bo=k.1R;k.3e=A(C);if(D.bd){k.3e.3k(k.1c).4G()}1p{k.3e.3k(1k.1S)}k.3T=k.3e.2V("1v").21("8s",u(E){18 B.g2.1D(B,E)}).21("62",u(E){18 B.3F.1D(B,E)}).21("af",u(E){18 B.ag.1D(B,E)}).21("3p",u(E){18 B.6h.1D(B,E)});k.3e.2V("3m").21("5S",u(E){18 B.g4.1D(B,E)});k.cz=k.3e.2V("1s.15-1N-1R").21("5S",u(E){18 B.fL.1D(B,E)});k.gJ=k.cz.2V("1s 1s");k.8c=k.3e.2V("1s.15-1N-8c 1s");k.3e.2V("1s.15-1N-8c").21("5S",u(E){18 B.g6.1D(B,E)});k.gR=k.3e.2V("1s.15-1N-1G-1R");k.gP=k.3e.2V("1s.15-1N-4d-1R");k.3e.2V(".15-1N-7i").21("ky",u(E){18 B.fS.1D(B,E)}).21("kB",u(E){18 B.fT.1D(B,E)}).21("2k",u(E){18 B.gb.1D(B,E)});k.87(k.1R);k.88(k.1R);k.8d(k.1R);k.9k(k.1R);k.9d(k.1R);k.aj(k.1R);k.9b(k.1R);if(D.bd){k.3e.1d({1o:"2m",4L:"7K"})}1p{A(k.1c).21(D.gn+".1N",u(E){18 B.gc.1D(B,E)})}},5C:u(){k.3e.2M();k.1c.5b("1N").2H(".1N")},87:u(B){p C=k.6V(B);k.3T.eq(1).29(C.r).3X().eq(2).29(C.g).3X().eq(3).29(C.b).3X()},88:u(B){k.3T.eq(4).29(B.h).3X().eq(5).29(B.s).3X().eq(6).29(B.b).3X()},8d:u(B){k.3T.eq(0).29(k.5M(B)).3X()},9d:u(B){k.cz.1d("ax","#"+k.5M({h:B.h,s:2g,b:2g}));k.gJ.1d({1a:1q(3i*B.s/2g,10),1b:1q(3i*(2g-B.b)/2g,10)})},9k:u(B){k.8c.1d("1b",1q(3i-3i*B.h/7g,10))},aj:u(B){k.gP.1d("ax","#"+k.5M(B))},9b:u(B){k.gR.1d("ax","#"+k.5M(B))},g2:u(B){p C=B.d6||B.6O||-1;if((C>=k.cH&&C<=90)||C==32){18 1h}},3F:u(D,C){p B;C=C||D.1m;if(C.2K.7u.6d("-5P")>0){k.1R=B=k.aD(k.1C);k.87(B.1R);k.88(B)}1p{if(C.2K.7u.6d("-4s")>0){k.1R=B=k.au({h:1q(k.3T.eq(4).29(),10),s:1q(k.3T.eq(5).29(),10),b:1q(k.3T.eq(6).29(),10)});k.87(B);k.8d(B)}1p{k.1R=B=k.9l(k.gr({r:1q(k.3T.eq(1).29(),10),g:1q(k.3T.eq(2).29(),10),b:1q(k.3T.eq(3).29(),10)}));k.8d(B);k.88(B)}}k.9d(B);k.9k(B);k.9b(B);k.8a("62",D,{19:k.19,4s:B,5P:k.5M(B),5E:k.6V(B)})},ag:u(C){p B=k.1R;k.87(B);k.88(B);k.8d(B);k.9k(B);k.9d(B);k.9b(B);k.3T.1z().23("15-1N-3p")},6h:u(B){k.cH=B.1m.2K.7u.6d("-5P")>0?70:65;k.3T.1z().23("15-1N-3p");A(B.1m.2K).1E("15-1N-3p")},g4:u(D){p C=A(D.1m).1z().2V("1v").3p(),B=k;k.6U={el:A(D.1m).1z().1E("15-1N-41"),1L:D.1m.2K.7u.6d("-4s-h")>0?7g:(D.1m.2K.7u.6d("-4s")>0?2g:5L),y:D.2C,5K:C,29:1q(C.29(),10)};A(1k).21("6b.4X",u(E){18 B.g9.1D(B,E)});A(1k).21("6L.4X",u(E){18 B.g5.1D(B,E)});18 1h},g5:u(B){k.6U.5K.29(1u.1L(0,1u.1P(k.6U.1L,1q(k.6U.29+B.2C-k.6U.y,10))));k.3F.2s(k,[B,k.6U.5K.3w(0)]);18 1h},g9:u(B){k.6U.el.23("15-1N-41").2V("1v").3p();k.3F.2s(k,[B,k.6U.5K.3w(0)]);A(1k).2H("6b.4X");A(1k).2H("6L.4X");18 1h},g6:u(C){k.cB={y:k.3e.2V("1s.15-1N-8c").1f().1b};k.3F.2s(k,[C,k.3T.eq(4).29(1q(7g*(3i-1u.1L(0,1u.1P(3i,(C.2C-k.cB.y))))/3i,10)).3w(0)]);p B=k;A(1k).21("6b.4X",u(D){18 B.fP.1D(B,D)});A(1k).21("6L.4X",u(D){18 B.fY.1D(B,D)});18 1h},fY:u(B){k.3F.2s(k,[B,k.3T.eq(4).29(1q(7g*(3i-1u.1L(0,1u.1P(3i,(B.2C-k.cB.y))))/3i,10)).3w(0)]);18 1h},fP:u(B){A(1k).2H("6b.4X");A(1k).2H("6L.4X");18 1h},fL:u(C){p B=k;k.9w={4q:k.3e.2V("1s.15-1N-1R").1f()};k.3F.2s(k,[C,k.3T.eq(6).29(1q(2g*(3i-1u.1L(0,1u.1P(3i,(C.2C-k.9w.4q.1b))))/3i,10)).3X().eq(5).29(1q(2g*(1u.1L(0,1u.1P(3i,(C.2U-k.9w.4q.1a))))/3i,10)).3w(0)]);A(1k).21("6b.4X",u(D){18 B.fR.1D(B,D)});A(1k).21("6L.4X",u(D){18 B.gF.1D(B,D)});18 1h},gF:u(B){k.3F.2s(k,[B,k.3T.eq(6).29(1q(2g*(3i-1u.1L(0,1u.1P(3i,(B.2C-k.9w.4q.1b))))/3i,10)).3X().eq(5).29(1q(2g*(1u.1L(0,1u.1P(3i,(B.2U-k.9w.4q.1a))))/3i,10)).3w(0)]);18 1h},fR:u(B){A(1k).2H("6b.4X");A(1k).2H("6L.4X");18 1h},fS:u(B){k.3e.2V(".15-1N-7i").1E("15-1N-3p")},fT:u(B){k.3e.2V(".15-1N-7i").23("15-1N-3p")},gb:u(C){p B=k.1R;k.bo=B;k.aj(B);k.8a("7i",C,{19:k.19,4s:B,5P:k.5M(B),5E:k.6V(B)});18 1h},gc:u(F){k.8a("8z",F,{19:k.19,4s:k.1R,5P:k.5M(k.1R),5E:k.6V(k.1R)});p G=k.1c.1f();p E=k.gy();p D=G.1b+k.1c[0].3J;p C=G.1a;if(D+gw>E.t+1u.1P(E.h,E.ih)){D-=k.1c[0].3J+gw}if(C+gv>E.l+1u.1P(E.w,E.iw)){C-=gv}k.3e.1d({1a:C+"2Y",1b:D+"2Y"});if(k.8a("4G",F,{19:k.19,4s:k.1R,5P:k.5M(k.1R),5E:k.6V(k.1R)})!=1h){k.3e.4G()}p B=k;A(1k).21("5S.1N",u(H){18 B.gu.1D(B,H)});18 1h},gu:u(B){if(!k.gs(k.3e[0],B.1m,k.3e[0])){if(k.8a("4b",B,{19:k.19,4s:k.1R,5P:k.5M(k.1R),5E:k.6V(k.1R)})!=1h){k.3e.4b()}A(1k).2H("5S.1N")}},gs:u(D,C,B){if(D==C){18 1t}if(D.aF&&!A.2y.b3){18 D.aF(C)}if(D.aE){18!!(D.aE(C)&16)}p E=C.2K;4c(E&&E!=B){if(E==D){18 1t}E=E.2K}18 1h},gy:u(){p E,C,B,F,D,G;if(1k.3B){E=1k.3B.1W;C=1k.3B.2b;B=1k.3B.9u;F=1k.3B.5a}1p{E=1k.1S.1W;C=1k.1S.2b;B=1k.1S.9u;F=1k.1S.5a}D=gD.7R||1k.3B.8V||1k.1S.8V||0;G=gD.7m||1k.3B.82||1k.1S.82||0;18{t:E,l:C,w:B,h:F,iw:D,ih:G}},au:u(B){18{h:1u.1P(7g,1u.1L(0,B.h)),s:1u.1P(2g,1u.1L(0,B.s)),b:1u.1P(2g,1u.1L(0,B.b))}},gr:u(B){18{r:1u.1P(5L,1u.1L(0,B.r)),g:1u.1P(5L,1u.1L(0,B.g)),b:1u.1P(5L,1u.1L(0,B.b))}},gq:u(B){p B=1q(((B.6d("#")>-1)?B.ct(1):B),16);18{r:B>>16,g:(B&l2)>>8,b:(B&5L)}},aD:u(B){18 k.9l(k.gq(B))},9l:u(C){p B={};B.b=1u.1L(1u.1L(C.r,C.g),C.b);B.s=(B.b<=0)?0:1u.2G(2g*(B.b-1u.1P(1u.1P(C.r,C.g),C.b))/B.b);B.b=1u.2G((B.b/5L)*2g);if((C.r==C.g)&&(C.g==C.b)){B.h=0}1p{if(C.r>=C.g&&C.g>=C.b){B.h=60*(C.g-C.b)/(C.r-C.b)}1p{if(C.g>=C.r&&C.r>=C.b){B.h=60+60*(C.g-C.r)/(C.g-C.b)}1p{if(C.g>=C.b&&C.b>=C.r){B.h=gh+60*(C.b-C.r)/(C.g-C.r)}1p{if(C.b>=C.g&&C.g>=C.r){B.h=bU+60*(C.b-C.g)/(C.b-C.r)}1p{if(C.b>=C.r&&C.r>=C.g){B.h=gg+60*(C.r-C.g)/(C.b-C.g)}1p{if(C.r>=C.b&&C.b>=C.g){B.h=cr+60*(C.r-C.b)/(C.r-C.g)}1p{B.h=0}}}}}}}B.h=1u.2G(B.h);18 B},6V:u(B){p D={};p H=1u.2G(B.h);p G=1u.2G(B.s*5L/2g);p C=1u.2G(B.b*5L/2g);if(G==0){D.r=D.g=D.b=C}1p{p I=C;p F=(5L-G)*C/5L;p E=(I-F)*(H%60)/60;if(H==7g){H=0}if(H<60){D.r=I;D.b=F;D.g=F+E}1p{if(H<gh){D.g=I;D.b=F;D.r=I-E}1p{if(H<bU){D.g=I;D.r=F;D.b=F+E}1p{if(H<gg){D.b=I;D.r=F;D.g=I-E}1p{if(H<cr){D.b=I;D.g=F;D.r=F+E}1p{if(H<7g){D.r=I;D.g=F;D.b=I-E}1p{D.r=0;D.g=0;D.b=0}}}}}}}18{r:1u.2G(D.r),g:1u.2G(D.g),b:1u.2G(D.b)}},ge:u(B){p C=[B.r.7L(16),B.g.7L(16),B.b.7L(16)];A.1K(C,u(D,E){if(E.1w==1){C[D]="0"+E}});18 C.6y("")},5M:u(B){18 k.ge(k.6V(B))},kU:u(B){if(2v B=="3W"){B=k.aD(B)}1p{if(B.r!=2a&&B.g!=2a&&B.b!=2a){B=k.9l(B)}1p{if(B.h!=2a&&B.s!=2a&&B.b!=2a){B=k.au(B)}1p{18 k}}}k.1R=B;k.bo=B;k.87(B);k.88(B);k.8d(B);k.9k(B);k.9d(B);k.aj(B);k.9b(B)}});A.2d(A.15.1N,{3V:{gn:"2k",1R:"hE",bd:1h}})})(2j);(u(A){A.fn.bc=A.fn.bc||u(B){18 k.1K(u(){A(k).5I(B).eq(0).dh(k).2M()})};A.4e("15.41",{5N:{},15:u(B){18{19:k.19,1M:k.2f,1C:k.19.2x!="8f"||!k.19.2x?1u.2G(k.1C(1n,k.19.2x=="5O"?"y":"x")):{x:1u.2G(k.1C(1n,"x")),y:1u.2G(k.1C(1n,"y"))},8E:k.gt()}},1T:u(C,B){A.15.2r.1D(k,C,[B,k.15()]);k.1c.2Q(C=="aJ"?C:"aJ"+C,[B,k.15()],k.19[C])},5C:u(){k.1c.23("15-41 15-41-24").5b("41").2H(".41");if(k.1M&&k.1M.1w){k.1M.bc("a");k.1M.1K(u(){A(k).1x("4A").8e()})}k.bf&&k.bf.2M()},7q:u(B,C){A.4e.5T.7q.2s(k,4y);if(/1P|1L|7b/.1H(B)){k.bM()}if(B=="8E"){C?k.1M.1w==2&&k.bK():k.gx()}},5i:u(){p B=k;k.1c.1E("15-41");k.bM();k.1M=A(k.19.1M,k.1c);if(!k.1M.1w){B.1M=B.bf=A(B.19.3n||[0]).b6(u(){p D=A("<1s/>").1E("15-41-1M").3k(B.1c);if(k.id){D.4Z("id",k.id)}18 D[0]})}p C=u(D){k.1c=A(D);k.1c.1x("4A",k);k.19=B.19;k.1c.21("5S",u(){if(B.2f){k.af(B.2f)}B.6h(k,1t)});k.8j()};A.2d(C.5T,A.15.4A,{6q:u(D){18 B.fO.1D(B,D,k.1c[0])},6k:u(D){18 B.fX.1D(B,D,k.1c[0])},5w:u(D){18 B.bJ.1D(B,D,k.1c[0])},9a:u(){18 1t},4J:u(D){k.bi(D)}});A(k.1M).1K(u(){1G C(k)}).aW(\'<a gd="fZ:hT(0)" 3r="hS:5H;bw:5H;"></a>\').1z().21("3p",u(D){B.6h(k.bN)}).21("af",u(D){B.ag(k.bN)}).21("8s",u(D){if(!B.19.h1){18 B.gB(D.6O,k.bN)}});k.1c.21("5S.41",u(D){B.gC.2s(B,[D]);B.2f.1x("4A").4J(D);B.al=B.al+1});A.1K(k.19.3n||[],u(D,E){B.9e(E.2R,D,1t)});if(!6z(k.19.gA)){k.9e(k.19.gA,0,1t)}k.6N=A(k.1M[0]);if(k.1M.1w==2&&k.19.8E){k.bK()}},bM:u(){p B=k.1c[0],C=k.19;k.6J={1e:k.1c.43(),1g:k.1c.48()};A.2d(C,{2x:C.2x||(B.5z<B.3J?"5O":"bD"),1L:!6z(1q(C.1L,10))?{x:1q(C.1L,10),y:1q(C.1L,10)}:({x:C.1L&&C.1L.x||2g,y:C.1L&&C.1L.y||2g}),1P:!6z(1q(C.1P,10))?{x:1q(C.1P,10),y:1q(C.1P,10)}:({x:C.1P&&C.1P.x||0,y:C.1P&&C.1P.y||0})});C.6I={x:C.1L.x-C.1P.x,y:C.1L.y-C.1P.y};C.3t={x:C.3t&&C.3t.x||1q(C.3t,10)||(C.7b?C.6I.x/(C.7b.x||1q(C.7b,10)||C.6I.x):0),y:C.3t&&C.3t.y||1q(C.3t,10)||(C.7b?C.6I.y/(C.7b.y||1q(C.7b,10)||C.6I.y):0)}},gB:u(F,E){p C=F;if(/(33|34|35|36|37|38|39|40)/.1H(C)){p G=k.19,B,I;if(/(35|36)/.1H(C)){B=(C==35)?G.1L.x:G.1P.x;I=(C==35)?G.1L.y:G.1P.y}1p{p H=/(34|37|40)/.1H(C)?"-=":"+=";p D=/(37|38|39|40)/.1H(C)?"ak":"fN";B=H+k[D]("x");I=H+k[D]("y")}k.9e({x:B,y:I},E);18 1h}18 1t},6h:u(B,C){k.2f=A(B).1E("15-41-1M-7V");if(C){k.2f.1z()[0].3p()}},ag:u(B){A(B).23("15-41-1M-7V");if(k.2f&&k.2f[0]==B){k.6N=k.2f;k.2f=1n}},gC:u(C){p D=[C.2U,C.2C];p B=1h;k.1M.1K(u(){if(k==C.1m){B=1t}});if(B||k.19.24||!(k.2f||k.6N)){18}if(!k.2f&&k.6N){k.6h(k.6N,1t)}k.1f=k.1c.1f();k.9e({y:k.5U(C.2C-k.1f.1b-k.2f[0].3J/2,"y"),x:k.5U(C.2U-k.1f.1a-k.2f[0].5z/2,"x")},1n,!k.19.6T)},bK:u(){if(k.5g){18}k.5g=A("<1s></1s>").1E("15-41-8E").1d({1o:"2n"}).3k(k.1c);k.ao()},gx:u(){k.5g.2M();k.5g=1n},ao:u(){p C=k.19.2x=="5O"?"1b":"1a";p B=k.19.2x=="5O"?"1g":"1e";k.5g.1d(C,(1q(A(k.1M[0]).1d(C),10)||0)+k.74(0,k.19.2x=="5O"?"y":"x")/2);k.5g.1d(B,(1q(A(k.1M[1]).1d(C),10)||0)-(1q(A(k.1M[0]).1d(C),10)||0))},gt:u(){18 k.5g?k.5U(1q(k.5g.1d(k.19.2x=="5O"?"1g":"1e"),10),k.19.2x=="5O"?"y":"x"):1n},fV:u(){18 k.1M.bO(k.2f[0])},1C:u(D,B){if(k.1M.1w==1){k.2f=k.1M}if(!B){B=k.19.2x=="5O"?"y":"x"}p C=A(D!=2a&&D!==1n?k.1M[D]||D:k.2f);if(C.1x("4A").an){18 1q(C.1x("4A").an[B],10)}1p{18 1q(((1q(C.1d(B=="x"?"1a":"1b"),10)/(k.6J[B=="x"?"1e":"1g"]-k.74(D,B)))*k.19.6I[B])+k.19.1P[B],10)}},5U:u(C,B){18 k.19.1P[B]+(C/(k.6J[B=="x"?"1e":"1g"]-k.74(1n,B)))*k.19.6I[B]},4O:u(C,B){18((C-k.19.1P[B])/k.19.6I[B])*(k.6J[B=="x"?"1e":"1g"]-k.74(1n,B))},9h:u(D,B){if(k.5g){if(k.2f[0]==k.1M[0]&&D>=k.4O(k.1C(1),B)){D=k.4O(k.1C(1,B)-k.ak(B),B)}if(k.2f[0]==k.1M[1]&&D<=k.4O(k.1C(0),B)){D=k.4O(k.1C(0,B)+k.ak(B),B)}}if(k.19.3n){p C=k.19.3n[k.fV()];if(D<k.4O(C.1P,B)){D=k.4O(C.1P,B)}1p{if(D>k.4O(C.1L,B)){D=k.4O(C.1L,B)}}}18 D},9i:u(C,B){if(C>=k.6J[B=="x"?"1e":"1g"]-k.74(1n,B)){C=k.6J[B=="x"?"1e":"1g"]-k.74(1n,B)}if(C<=0){C=0}18 C},74:u(C,B){18 A(C!=2a&&C!==1n?k.1M[C]:k.2f)[0]["1f"+(B=="x"?"jl":"jm")]},ak:u(B){18 k.19.3t[B]||1},fN:u(B){18 10},fO:u(C,B){p D=k.19;if(D.24){18 1h}k.6J={1e:k.1c.43(),1g:k.1c.48()};if(!k.2f){k.6h(k.6N,1t)}k.1f=k.1c.1f();k.bS=k.2f.1f();k.75={1b:C.2C-k.bS.1b,1a:C.2U-k.bS.1a};k.al=k.1C();k.1T("2R",C);k.bJ(C,B);18 1t},fX:u(B){k.1T("2S",B);if(k.al!=k.1C()){k.1T("62",B)}k.6h(k.2f,1t);18 1h},bJ:u(E,D){p F=k.19;p B={1b:E.2C-k.1f.1b-k.75.1b,1a:E.2U-k.1f.1a-k.75.1a};if(!k.2f){k.6h(k.6N,1t)}B.1a=k.9i(B.1a,"x");B.1b=k.9i(B.1b,"y");if(F.3t.x){p C=k.5U(B.1a,"x");C=1u.2G(C/F.3t.x)*F.3t.x;B.1a=k.4O(C,"x")}if(F.3t.y){p C=k.5U(B.1b,"y");C=1u.2G(C/F.3t.y)*F.3t.y;B.1b=k.4O(C,"y")}B.1a=k.9h(B.1a,"x");B.1b=k.9h(B.1b,"y");if(F.2x!="5O"){k.2f.1d({1a:B.1a})}if(F.2x!="bD"){k.2f.1d({1b:B.1b})}k.2f.1x("4A").an={x:1u.2G(k.5U(B.1a,"x"))||0,y:1u.2G(k.5U(B.1b,"y"))||0};if(k.5g){k.ao()}k.1T("aJ",E);18 1h},9e:u(F,E,G){p H=k.19;k.6J={1e:k.1c.43(),1g:k.1c.48()};if(E==2a&&!k.2f&&k.1M.1w!=1){18 1h}if(E==2a&&!k.2f){E=0}if(E!=2a){k.2f=k.6N=A(k.1M[E]||E)}if(F.x!==2a&&F.y!==2a){p B=F.x,I=F.y}1p{p B=F,I=F}if(B!==2a&&B.67!=g0){p D=/^\\-\\=/.1H(B),C=/^\\+\\=/.1H(B);if(D||C){B=k.1C(1n,"x")+1q(B.7C(D?"=":"+=",""),10)}1p{B=6z(1q(B,10))?2a:1q(B,10)}}if(I!==2a&&I.67!=g0){p D=/^\\-\\=/.1H(I),C=/^\\+\\=/.1H(I);if(D||C){I=k.1C(1n,"y")+1q(I.7C(D?"=":"+=",""),10)}1p{I=6z(1q(I,10))?2a:1q(I,10)}}if(H.2x!="5O"&&B!==2a){if(H.3t.x){B=1u.2G(B/H.3t.x)*H.3t.x}B=k.4O(B,"x");B=k.9i(B,"x");B=k.9h(B,"x");H.3q?k.2f.2S().3q({1a:B},(1u.4w(1q(k.2f.1d("1a"))-B))*(!6z(1q(H.3q))?H.3q:5)):k.2f.1d({1a:B})}if(H.2x!="bD"&&I!==2a){if(H.3t.y){I=1u.2G(I/H.3t.y)*H.3t.y}I=k.4O(I,"y");I=k.9i(I,"y");I=k.9h(I,"y");H.3q?k.2f.2S().3q({1b:I},(1u.4w(1q(k.2f.1d("1b"))-I))*(!6z(1q(H.3q))?H.3q:5)):k.2f.1d({1b:I})}if(k.5g){k.ao()}k.2f.1x("4A").an={x:1u.2G(k.5U(B,"x"))||0,y:1u.2G(k.5U(I,"y"))||0};if(!G){k.1T("2R",1n);k.1T("2S",1n);k.1T("62",1n);k.1T("aJ",1n)}}});A.15.41.cS="1C";A.15.41.3V={1M:".15-41-1M",6T:1,3q:1h}})(2j);(u($){p 6X="1i";u 8Z(){k.g3=1h;k.7U=1n;k.6n=[];k.7k=1h;k.6G=1h;k.cW="15-1i-1s";k.cM="15-1i-3s";k.d9="15-1i-5m";k.69="15-1i-4J";k.d7="15-1i-iG";k.de="15-1i-84";k.d4="15-1i-24";k.cO="15-1i-5X";k.aa="15-1i-4d-2e";k.cX=[];k.cX[""]={fu:"iu",ft:"iC 7v 4d 1j",fG:"gE",fI:"gE iA 62",6t:"&#dg;iy",fe:"7a 7v g1 26",6u:"&#dg;&#dg;",fd:"7a 7v g1 1Z",6H:"iv&#dq;",fa:"7a 7v 66 26",6W:"&#dq;&#dq;",f7:"7a 7v 66 1Z",7z:"it",fi:"7a 7v 4d 26",3O:["i9","i6","ie","ig","gj","io","il","j9","hg","hi","hq","gX"],5p:["gV","h7","h8","hU","gj","hW","hK","hy","hA","hI","hG","le"],fQ:"7a a gl 26",gf:"7a a gl 1Z",dN:"l8",8P:"kL l3 7v 1Z",4h:["kI","kZ","l1","kW","kV","kT","kS"],4x:["kF","kO","lc","jP","jQ","jO","jN"],aT:["jZ","jY","jX","jV","jW","jw","jy"],b0:"kD 8U as jz 6P 2e",7B:"ae 8U, M d",7G:"b5/dd/77",4t:0,2X:"ae a 1j",4T:1h};k.4C={79:"3p",54:"4G",dt:{},5G:1n,9m:"",6Q:"...",8t:"",e1:1h,9g:1t,cY:1h,9F:1h,6Z:1h,7I:1h,dn:1h,g7:1t,gk:1t,9t:1h,gp:"-10:+10",96:1t,8v:1h,6S:1h,93:1h,b7:k.aX,4F:"+10",31:1h,fJ:k.7B,2A:1n,2L:1n,3j:"jH",9y:1n,8z:1n,6E:1n,fW:1n,9K:1n,fM:1,a9:0,6m:1,6l:12,4I:1h,9P:" - ",9Q:"",7W:""};$.2d(k.4C,k.cX[""]);k.2o=$(\'<1s id="\'+k.cW+\'" 3r="4L: 5H;"></1s>\')}$.2d(8Z.5T,{5t:"jB",di:u(){if(k.g3){ku.di.2s("",4y)}},kc:u(1U){8m(k.4C,1U||{});18 k},fK:u(1m,1U){p 8k=1n;1F(az in k.4C){p aH=1m.kf("1j:"+az);if(aH){8k=8k||{};ar{8k[az]=l4(aH)}aq(ec){8k[az]=aH}}}p 2E=1m.2E.4z();p 3s=(2E=="1s"||2E=="3m");if(!1m.id){1m.id="dp"+ ++k.bj}p v=k.cP($(1m),3s);v.1U=$.2d({},1U||{},8k||{});if(2E=="1v"){k.fo(1m,v)}1p{if(3s){k.dZ(1m,v)}}},cP:u(1m,3s){p id=1m[0].id.7C(/([:\\[\\]\\.])/g,"\\\\\\\\$1");18{id:id,1v:1m,4g:0,3S:0,4a:0,2c:0,2i:0,3s:3s,2o:(!3s?k.2o:$(\'<1s 1X="\'+k.cM+\'"></1s>\'))}},fo:u(1m,v){p 1v=$(1m);if(1v.5n(k.5t)){18}p 9m=k.1r(v,"9m");p 4T=k.1r(v,"4T");if(9m){1v[4T?"9U":"dh"](\'<3m 1X="\'+k.d9+\'">\'+9m+"</3m>")}p 79=k.1r(v,"79");if(79=="3p"||79=="8f"){1v.3p(k.7O)}if(79=="4D"||79=="8f"){p 6Q=k.1r(v,"6Q");p 8t=k.1r(v,"8t");p 4J=$(k.1r(v,"e1")?$("<8N/>").1E(k.69).4Z({bC:8t,e6:6Q,8x:6Q}):$(\'<4D 3K="4D"></4D>\').1E(k.69).2B(8t==""?6Q:$("<8N/>").4Z({bC:8t,e6:6Q,8x:6Q})));1v[4T?"9U":"dh"](4J);4J.2k(u(){if($.1i.7k&&$.1i.7X==1m){$.1i.68()}1p{$.1i.7O(1m)}18 1h})}1v.1E(k.5t).8s(k.b9).cR(k.d0).21("a2.1i",u(76,5e,1C){v.1U[5e]=1C}).21("dr.1i",u(76,5e){18 k.1r(v,5e)});$.1x(1m,6X,v)},dZ:u(1m,v){p df=$(1m);if(df.5n(k.5t)){18}df.1E(k.5t).5m(v.2o).21("a2.1i",u(76,5e,1C){v.1U[5e]=1C}).21("dr.1i",u(76,5e){18 k.1r(v,5e)});$.1x(1m,6X,v);k.cL(v,k.cx(v));k.5k(v)},ka:u(v){p 3G=k.8u(v);v.2o.1e(3G[1]*$(".15-1i",v.2o[0]).1e())},k9:u(1v,e7,6E,1U,4q){p v=k.dU;if(!v){p id="dp"+ ++k.bj;k.5F=$(\'<1v 3K="47" id="\'+id+\'" 1A="1" 3r="1o: 2n; 1b: -fc;"/>\');k.5F.8s(k.b9);$("1S").5m(k.5F);v=k.dU=k.cP(k.5F,1h);v.1U={};$.1x(k.5F[0],6X,v)}8m(v.1U,1U||{});k.5F.29(e7);k.4E=(4q?(4q.1w?4q:[4q.2U,4q.2C]):1n);if(!k.4E){p aU=3R.7R||1k.3B.8V||1k.1S.8V;p aV=3R.7m||1k.3B.82||1k.1S.82;p 7h=1k.3B.2b||1k.1S.2b;p 7l=1k.3B.1W||1k.1S.1W;k.4E=[(aU/2)-2g+7h,(aV/2)-3i+7l]}k.5F.1d("1a",k.4E[0]+"2Y").1d("1b",k.4E[1]+"2Y");v.1U.6E=6E;k.6G=1t;k.2o.1E(k.d7);k.7O(k.5F[0]);if($.9J){$.9J(k.2o)}$.1x(k.5F[0],6X,v);18 k},kx:u(1m){p $1m=$(1m);if(!$1m.5n(k.5t)){18}p 2E=1m.2E.4z();$.5b(1m,6X);if(2E=="1v"){$1m.8n("."+k.d9).2M().3X().8n("."+k.69).2M().3X().23(k.5t).2H("3p",k.7O).2H("8s",k.b9).2H("cR",k.d0)}1p{if(2E=="1s"||2E=="3m"){$1m.23(k.5t).b1()}}},kA:u(1m){p $1m=$(1m);if(!$1m.5n(k.5t)){18}p 2E=1m.2E.4z();if(2E=="1v"){1m.24=1h;$1m.8n("4D."+k.69).1K(u(){k.24=1h}).3X().8n("8N."+k.69).1d({3N:"1.0",2p:""})}1p{if(2E=="1s"||2E=="3m"){$1m.cJ("."+k.d4).2M()}}k.6n=$.b6(k.6n,u(1C){18(1C==1m?1n:1C)})},kn:u(1m){p $1m=$(1m);if(!$1m.5n(k.5t)){18}p 2E=1m.2E.4z();if(2E=="1v"){1m.24=1t;$1m.8n("4D."+k.69).1K(u(){k.24=1t}).3X().8n("8N."+k.69).1d({3N:"0.5",2p:"4K"})}1p{if(2E=="1s"||2E=="3m"){p 3s=$1m.cJ("."+k.cM);p 1f=3s.1f();p ba={1a:0,1b:0};3s.5I().1K(u(){if($(k).1d("1o")=="2m"){ba=$(k).1f();18 1h}});$1m.jE(\'<1s 1X="\'+k.d4+\'" 3r="\'+($.2y.4V?"aw-1R: 8O; ":"")+"1e: "+3s.1e()+"2Y; 1g: "+3s.1g()+"2Y; 1a: "+(1f.1a-ba.1a)+"2Y; 1b: "+(1f.1b-ba.1b)+\'2Y;"></1s>\')}}k.6n=$.b6(k.6n,u(1C){18(1C==1m?1n:1C)});k.6n[k.6n.1w]=1m},dF:u(1m){if(!1m){18 1h}1F(p i=0;i<k.6n.1w;i++){if(k.6n[i]==1m){18 1t}}18 1h},3U:u(1m){ar{18 $.1x(1m,6X)}aq(ec){8G"fy 1V 1x 1F k 1i"}},jG:u(1m,3E,1C){p 1U=3E||{};if(2v 3E=="3W"){1U={};1U[3E]=1C}p v=k.3U(1m);if(v){if(k.7U==v){k.68(1n)}8m(v.1U,1U);p 1j=1G 1Q();8m(v,{3y:1n,5c:1n,5A:1n,3o:1n,4g:1j.2P(),3S:1j.30(),4a:1j.2w(),3L:1j.2P(),4i:1j.30(),42:1j.2w(),2c:1j.30(),2i:1j.2w()});k.5k(v)}},jA:u(1m){p v=k.3U(1m);if(v){k.5k(v)}},jt:u(1m,1j,5s){p v=k.3U(1m);if(v){k.cL(v,1j,5s);k.5k(v);k.d2(v)}},js:u(1m){p v=k.3U(1m);if(v&&!v.3s){k.da(v)}18(v?k.d1(v):1n)},b9:u(e){p v=$.1i.3U(e.1m);p 5J=1t;if($.1i.7k){7D(e.6O){1I 9:$.1i.68(1n,"");1O;1I 13:$.1i.dj(e.1m,v.3S,v.4a,$("4u.15-1i-8w-7y-3z",v.2o)[0]);18 1h;1O;1I 27:$.1i.68(1n,$.1i.1r(v,"3j"));1O;1I 33:$.1i.4Q(e.1m,(e.3Z?-$.1i.1r(v,"6l"):-$.1i.1r(v,"6m")),"M");1O;1I 34:$.1i.4Q(e.1m,(e.3Z?+$.1i.1r(v,"6l"):+$.1i.1r(v,"6m")),"M");1O;1I 35:if(e.3Z){$.1i.cZ(e.1m)}5J=e.3Z;1O;1I 36:if(e.3Z){$.1i.dk(e.1m)}5J=e.3Z;1O;1I 37:if(e.3Z){$.1i.4Q(e.1m,-1,"D")}5J=e.3Z;1O;1I 38:if(e.3Z){$.1i.4Q(e.1m,-7,"D")}5J=e.3Z;1O;1I 39:if(e.3Z){$.1i.4Q(e.1m,+1,"D")}5J=e.3Z;1O;1I 40:if(e.3Z){$.1i.4Q(e.1m,+7,"D")}5J=e.3Z;1O;4K:5J=1h}}1p{if(e.6O==36&&e.3Z){$.1i.7O(k)}1p{5J=1h}}if(5J){e.5Z();e.jr()}},d0:u(e){p v=$.1i.3U(e.1m);p 64=$.1i.f3($.1i.1r(v,"7G"));p d3=97.ju(e.d6==2a?e.6O:e.d6);18 e.3Z||(d3<" "||!64||64.6d(d3)>-1)},7O:u(1v){1v=1v.1m||1v;if(1v.2E.4z()!="1v"){1v=$("1v",1v.2K)[0]}if($.1i.dF(1v)||$.1i.7X==1v){18}p v=$.1i.3U(1v);p 8z=$.1i.1r(v,"8z");8m(v.1U,(8z?8z.2s(1v,[1v,v]):{}));$.1i.68(1n,"");$.1i.7X=1v;$.1i.da(v);if($.1i.6G){1v.1C=""}if(!$.1i.4E){$.1i.4E=$.1i.dm(1v);$.1i.4E[1]+=1v.3J}p 4j=1h;$(1v).5I().1K(u(){4j|=$(k).1d("1o")=="5y";18!4j});if(4j&&$.2y.7f){$.1i.4E[0]-=1k.3B.2b;$.1i.4E[1]-=1k.3B.1W}p 1f={1a:$.1i.4E[0],1b:$.1i.4E[1]};$.1i.4E=1n;v.3y=1n;v.2o.1d({1o:"2n",4L:"7K",1b:"-jJ"});$.1i.5k(v);v.2o.1e($.1i.8u(v)[1]*$(".15-1i",v.2o[0])[0].5z);1f=$.1i.dI(v,1f,4j);v.2o.1d({1o:($.1i.6G&&$.9J?"85":(4j?"5y":"2n")),4L:"5H",1a:1f.1a+"2Y",1b:1f.1b+"2Y"});if(!v.3s){p 54=$.1i.1r(v,"54")||"4G";p 3j=$.1i.1r(v,"3j");p 7n=u(){$.1i.7k=1t;if($.2y.4V&&1q($.2y.8h)<7){$("9f.15-1i-by").1d({1e:v.2o.1e()+4,1g:v.2o.1g()+4})}};if($.aS&&$.aS[54]){v.2o.4G(54,$.1i.1r(v,"dt"),3j,7n)}1p{v.2o[54](3j,7n)}if(3j==""){7n()}if(v.1v[0].3K!="4m"){v.1v[0].3p()}$.1i.7U=v}},5k:u(v){p cQ={1e:v.2o.1e()+4,1g:v.2o.1g()+4};v.2o.b1().5m(k.fs(v)).2V("9f.15-1i-by").1d({1e:cQ.1e,1g:cQ.1g});p 3G=k.8u(v);v.2o[(3G[0]!=1||3G[1]!=1?"2D":"2M")+"dE"]("15-1i-jU");v.2o[(k.1r(v,"4T")?"2D":"2M")+"dE"]("15-1i-k0");if(v.1v&&v.1v[0].3K!="4m"){$(v.1v[0]).3p()}},dI:u(v,1f,4j){p 4q=v.1v?k.dm(v.1v[0]):1n;p aU=3R.7R||1k.3B.8V;p aV=3R.7m||1k.3B.82;p 7h=1k.3B.2b||1k.1S.2b;p 7l=1k.3B.1W||1k.1S.1W;if(k.1r(v,"4T")||(1f.1a+v.2o.1e()-7h)>aU){1f.1a=1u.1L((4j?0:7h),4q[0]+(v.1v?v.1v.1e():0)-(4j?7h:0)-v.2o.1e()-(4j&&$.2y.7f?1k.3B.2b:0))}1p{1f.1a-=(4j?7h:0)}if((1f.1b+v.2o.1g()-7l)>aV){1f.1b=1u.1L((4j?0:7l),4q[1]-(4j?7l:0)-(k.6G?0:v.2o.1g())-(4j&&$.2y.7f?1k.3B.1W:0))}1p{1f.1b-=(4j?7l:0)}18 1f},dm:u(78){4c(78&&(78.3K=="4m"||78.l9!=1)){78=78.fl}p 1o=$(78).1f();18[1o.1a,1o.1b]},68:u(1v,3j){p v=k.7U;if(!v||(1v&&v!=$.1x(1v,6X))){18}p 4I=k.1r(v,"4I");if(4I&&v.6e){k.aC("#"+v.id,k.7E(v,v.3L,v.4i,v.42))}v.6e=1h;if(k.7k){3j=(3j!=1n?3j:k.1r(v,"3j"));p 54=k.1r(v,"54");p 7n=u(){$.1i.cV(v)};if(3j!=""&&$.aS&&$.aS[54]){v.2o.4b(54,$.1i.1r(v,"dt"),3j,7n)}1p{v.2o[(3j==""?"4b":(54=="kK"?"kQ":(54=="kY"?"kR":"4b")))](3j,7n)}if(3j==""){k.cV(v)}p 9K=k.1r(v,"9K");if(9K){9K.2s((v.1v?v.1v[0]:1n),[(v.1v?v.1v.29():""),v])}k.7k=1h;k.7X=1n;v.1U.84=1n;if(k.6G){k.5F.1d({1o:"2n",1a:"0",1b:"-fc"});if($.9J){$.kH();$("1S").5m(k.2o)}}k.6G=1h}k.7U=1n},cV:u(v){v.2o.23(k.d7).2H(".15-1i");$("."+k.de,v.2o).2M()},dB:u(76){if(!$.1i.7U){18}p $1m=$(76.1m);if(($1m.5I("#"+$.1i.cW).1w==0)&&!$1m.5n($.1i.5t)&&!$1m.5n($.1i.69)&&$.1i.7k&&!($.1i.6G&&$.9J)){$.1i.68(1n,"")}},4Q:u(id,1f,5l){p 1m=$(id);p v=k.3U(1m[0]);k.aB(v,1f,5l);k.5k(v)},dk:u(id){p 1m=$(id);p v=k.3U(1m[0]);if(k.1r(v,"dn")&&v.3L){v.4g=v.3L;v.2c=v.3S=v.4i;v.2i=v.4a=v.42}1p{p 1j=1G 1Q();v.4g=1j.2P();v.2c=v.3S=1j.30();v.2i=v.4a=1j.2w()}k.9v(v);k.4Q(1m)},cG:u(id,5h,5l){p 1m=$(id);p v=k.3U(1m[0]);v.aA=1h;v["2W"+(5l=="M"?"fB":"fA")]=v["hD"+(5l=="M"?"fB":"fA")]=1q(5h.19[5h.hH].1C);k.9v(v);k.4Q(1m)},cq:u(id){p 1m=$(id);p v=k.3U(1m[0]);if(v.1v&&v.aA&&!$.2y.4V){v.1v[0].3p()}v.aA=!v.aA},dv:u(id,2e){p 1m=$(id);p v=k.3U(1m[0]);v.1U.4t=2e;k.5k(v)},dj:u(id,26,1Z,4u){if($(4u).5n(k.cO)){18}p 1m=$(id);p v=k.3U(1m[0]);p 4I=k.1r(v,"4I");if(4I){v.6e=!v.6e;if(v.6e){$(".15-1i 4u",v.2o).23(k.aa);$(4u).1E(k.aa)}}v.4g=v.3L=$("a",4u).2B();v.3S=v.4i=26;v.4a=v.42=1Z;if(v.6e){v.5c=v.5A=v.3o=1n}1p{if(4I){v.5c=v.3L;v.5A=v.4i;v.3o=v.42}}k.aC(id,k.7E(v,v.3L,v.4i,v.42));if(v.6e){v.3y=1G 1Q(v.42,v.4i,v.3L);k.5k(v)}1p{if(4I){v.4g=v.3L=v.3y.2P();v.3S=v.4i=v.3y.30();v.4a=v.42=v.3y.2w();v.3y=1n;if(v.3s){k.5k(v)}}}},cZ:u(id){p 1m=$(id);p v=k.3U(1m[0]);if(k.1r(v,"cY")){18}v.6e=1h;v.5c=v.5A=v.3o=v.3y=1n;k.aC(1m,"")},aC:u(id,56){p 1m=$(id);p v=k.3U(1m[0]);56=(56!=1n?56:k.7E(v));if(k.1r(v,"4I")&&56){56=(v.3y?k.7E(v,v.3y):56)+k.1r(v,"9P")+56}if(v.1v){v.1v.29(56)}k.d2(v);p 6E=k.1r(v,"6E");if(6E){6E.2s((v.1v?v.1v[0]:1n),[56,v])}1p{if(v.1v){v.1v.4J("62")}}if(v.3s){k.5k(v)}1p{if(!v.6e){k.68(1n,k.1r(v,"3j"));k.7X=v.1v[0];if(2v(v.1v[0])!="8q"){v.1v[0].3p()}k.7X=1n}}},d2:u(v){p 9Q=k.1r(v,"9Q");if(9Q){p 7W=k.1r(v,"7W");p 1j=k.d1(v);56=(es(1j)?(!1j[0]&&!1j[1]?"":k.5q(7W,1j[0],k.53(v))+k.1r(v,"9P")+k.5q(7W,1j[1]||1j[0],k.53(v))):k.5q(7W,1j,k.53(v)));$(9Q).1K(u(){$(k).29(56)})}},hZ:u(1j){p 2e=1j.8l();18[(2e>0&&2e<6),""]},aX:u(1j){p 5D=1G 1Q(1j.2w(),1j.30(),1j.2P(),(1j.i0()/-60));p 8L=1G 1Q(5D.2w(),1-1,4);p 4t=8L.8l()||7;8L.aI(8L.2P()+1-4t);if(4t<4&&5D<8L){5D.aI(5D.2P()-3);18 $.1i.aX(5D)}1p{if(5D>1G 1Q(5D.2w(),12-1,28)){4t=1G 1Q(5D.2w()+1,1-1,4).8l()||7;if(4t>4&&(5D.8l()||7)<4t-3){18 1}}}18 1u.i2(((5D-8L)/hN)/7)+1},7B:u(1j,v){18 $.1i.5q($.1i.1r(v,"7B"),1j,$.1i.53(v))},db:u(3g,1C,1U){if(3g==1n||1C==1n){8G"cK 4y"}1C=(2v 1C=="8q"?1C.7L():1C+"");if(1C==""){18 1n}p 4F=(1U?1U.4F:1n)||k.4C.4F;p 4x=(1U?1U.4x:1n)||k.4C.4x;p 4h=(1U?1U.4h:1n)||k.4C.4h;p 5p=(1U?1U.5p:1n)||k.4C.5p;p 3O=(1U?1U.3O:1n)||k.4C.3O;p 1Z=-1;p 26=-1;p 2e=-1;p 72=-1;p 4M=1h;p 4H=u(3u){p 4B=(2N+1<3g.1w&&3g.3l(2N+1)==3u);if(4B){2N++}18 4B};p 8D=u(3u){4H(3u);p d5=(3u=="@"?14:(3u=="y"?4:(3u=="o"?3:2)));p 1A=d5;p 6i=0;4c(1A>0&&58<1C.1w&&1C.3l(58)>="0"&&1C.3l(58)<="9"){6i=6i*10+1q(1C.3l(58++));1A--}if(1A==d5){8G"fy 9s at 1o "+58}18 6i};p cI=u(3u,a6,ac){p 9H=(4H(3u)?ac:a6);p 1A=0;1F(p j=0;j<9H.1w;j++){1A=1u.1L(1A,9H[j].1w)}p 3E="";p eE=58;4c(1A>0&&58<1C.1w){3E+=1C.3l(58++);1F(p i=0;i<9H.1w;i++){if(3E==9H[i]){18 i+1}}1A--}8G"gZ 3E at 1o "+eE};p aK=u(){if(1C.3l(58)!=3g.3l(2N)){8G"gY 4M at 1o "+58}58++};p 58=0;1F(p 2N=0;2N<3g.1w;2N++){if(4M){if(3g.3l(2N)=="\'"&&!4H("\'")){4M=1h}1p{aK()}}1p{7D(3g.3l(2N)){1I"d":2e=8D("d");1O;1I"D":cI("D",4x,4h);1O;1I"o":72=8D("o");1O;1I"m":26=8D("m");1O;1I"M":26=cI("M",5p,3O);1O;1I"y":1Z=8D("y");1O;1I"@":p 1j=1G 1Q(8D("@"));1Z=1j.2w();26=1j.30()+1;2e=1j.2P();1O;1I"\'":if(4H("\'")){aK()}1p{4M=1t}1O;4K:aK()}}}if(1Z<2g){1Z+=1G 1Q().2w()-1G 1Q().2w()%2g+(1Z<=4F?0:-2g)}if(72>-1){26=1;2e=72;do{p cN=k.7A(1Z,26-1);if(2e<=cN){1O}26++;2e-=cN}4c(1t)}p 1j=1G 1Q(1Z,26-1,2e);if(1j.2w()!=1Z||1j.30()+1!=26||1j.2P()!=2e){8G"cK 1j"}18 1j},hM:"77-b5-dd",jp:"D, dd M 77",iZ:"77-b5-dd",iY:"D, d M y",i4:"8U, dd-M-y",j3:"D, d M y",iX:"D, d M 77",iW:"D, d M 77",iS:"D, d M y",iV:"@",iT:"77-b5-dd",5q:u(3g,1j,1U){if(!1j){18""}p 4x=(1U?1U.4x:1n)||k.4C.4x;p 4h=(1U?1U.4h:1n)||k.4C.4h;p 5p=(1U?1U.5p:1n)||k.4C.5p;p 3O=(1U?1U.3O:1n)||k.4C.3O;p 4H=u(3u){p 4B=(2N+1<3g.1w&&3g.3l(2N+1)==3u);if(4B){2N++}18 4B};p 9Y=u(3u,1C,ey){p 6i=""+1C;if(4H(3u)){4c(6i.1w<ey){6i="0"+6i}}18 6i};p d8=u(3u,1C,a6,ac){18(4H(3u)?ac[1C]:a6[1C])};p 50="";p 4M=1h;if(1j){1F(p 2N=0;2N<3g.1w;2N++){if(4M){if(3g.3l(2N)=="\'"&&!4H("\'")){4M=1h}1p{50+=3g.3l(2N)}}1p{7D(3g.3l(2N)){1I"d":50+=9Y("d",1j.2P(),2);1O;1I"D":50+=d8("D",1j.8l(),4x,4h);1O;1I"o":p 72=1j.2P();1F(p m=1j.30()-1;m>=0;m--){72+=k.7A(1j.2w(),m)}50+=9Y("o",72,3);1O;1I"m":50+=9Y("m",1j.30()+1,2);1O;1I"M":50+=d8("M",1j.30(),5p,3O);1O;1I"y":50+=(4H("y")?1j.2w():(1j.f0()%2g<10?"0":"")+1j.f0()%2g);1O;1I"@":50+=1j.59();1O;1I"\'":if(4H("\'")){50+="\'"}1p{4M=1t}1O;4K:50+=3g.3l(2N)}}}}18 50},f3:u(3g){p 64="";p 4M=1h;1F(p 2N=0;2N<3g.1w;2N++){if(4M){if(3g.3l(2N)=="\'"&&!4H("\'")){4M=1h}1p{64+=3g.3l(2N)}}1p{7D(3g.3l(2N)){1I"d":1I"m":1I"y":1I"@":64+="iE";1O;1I"D":1I"M":18 1n;1I"\'":if(4H("\'")){64+="\'"}1p{4M=1t}1O;4K:64+=3g.3l(2N)}}}18 64},1r:u(v,3E){18 v.1U[3E]!==2a?v.1U[3E]:k.4C[3E]},da:u(v){p 7G=k.1r(v,"7G");p 6M=v.1v?v.1v.29().6p(k.1r(v,"9P")):1n;v.5c=v.5A=v.3o=1n;p 1j=5G=k.cx(v);if(6M.1w>0){p 1U=k.53(v);if(6M.1w>1){1j=k.db(7G,6M[1],1U)||5G;v.5c=1j.2P();v.5A=1j.30();v.3o=1j.2w()}ar{1j=k.db(7G,6M[0],1U)||5G}aq(e){k.di(e);1j=5G}}v.4g=1j.2P();v.2c=v.3S=1j.30();v.2i=v.4a=1j.2w();v.3L=(6M[0]?1j.2P():0);v.4i=(6M[0]?1j.30():0);v.42=(6M[0]?1j.2w():0);k.aB(v)},cx:u(v){p 1j=k.9r(k.1r(v,"5G"),1G 1Q());p 2A=k.6g(v,"1P",1t);p 2L=k.6g(v,"1L");1j=(2A&&1j<2A?2A:1j);1j=(2L&&1j>2L?2L:1j);18 1j},9r:u(1j,5G){p ew=u(1f){p 1j=1G 1Q();1j.e2(1j.go()+1f);18 1j};p eA=u(1f,dc){p 1j=1G 1Q();p 1Z=1j.2w();p 26=1j.30();p 2e=1j.2P();p ds=/([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;p 4B=ds.ez(1f);4c(4B){7D(4B[2]||"d"){1I"d":1I"D":2e+=1q(4B[1]);1O;1I"w":1I"W":2e+=1q(4B[1])*7;1O;1I"m":1I"M":26+=1q(4B[1]);2e=1u.1P(2e,dc(1Z,26));1O;1I"y":1I"Y":1Z+=1q(4B[1]);2e=1u.1P(2e,dc(1Z,26));1O}4B=ds.ez(1f)}18 1G 1Q(1Z,26,2e)};1j=(1j==1n?5G:(2v 1j=="3W"?eA(1j,k.7A):(2v 1j=="9s"?(6z(1j)?5G:ew(1j)):1j)));18(1j&&1j.7L()=="cK 1Q"?5G:1j)},cL:u(v,1j,5s){p 5f=!(1j);p f6=v.3S;p fz=v.4a;1j=k.9r(1j,1G 1Q());v.4g=v.3L=1j.2P();v.2c=v.3S=v.4i=1j.30();v.2i=v.4a=v.42=1j.2w();if(k.1r(v,"4I")){if(5s){5s=k.9r(5s,1n);v.5c=5s.2P();v.5A=5s.30();v.3o=5s.2w()}1p{v.5c=v.3L;v.5A=v.4i;v.3o=v.42}}if(f6!=v.3S||fz!=v.4a){k.9v(v)}k.aB(v);if(v.1v){v.1v.29(5f?"":k.7E(v)+(!k.1r(v,"4I")?"":k.1r(v,"9P")+k.7E(v,v.5c,v.5A,v.3o)))}},d1:u(v){p ai=(!v.42||(v.1v&&v.1v.29()=="")?1n:1G 1Q(v.42,v.4i,v.3L));if(k.1r(v,"4I")){18[v.3y||ai,(!v.3o?v.3y||ai:1G 1Q(v.3o,v.5A,v.5c))]}1p{18 ai}},fs:u(v){p 6Y=1G 1Q();6Y=1G 1Q(6Y.2w(),6Y.30(),6Y.2P());p 31=k.1r(v,"31");p 2X=k.1r(v,"2X")||"&#bI;";p 4T=k.1r(v,"4T");p 5f=(k.1r(v,"cY")?"":\'<1s 1X="15-1i-5f"><a 5B="2j.1i.cZ(\\\'#\'+v.id+"\');\\""+k.4R(31,v.id,k.1r(v,"ft"),2X)+">"+k.1r(v,"fu")+"</a></1s>");p bT=\'<1s 1X="15-1i-hJ">\'+(4T?"":5f)+\'<1s 1X="15-1i-i3"><a 5B="2j.1i.68();"\'+k.4R(31,v.id,k.1r(v,"fI"),2X)+">"+k.1r(v,"fG")+"</a></1s>"+(4T?5f:"")+"</1s>";p 84=k.1r(v,"84");p 9g=k.1r(v,"9g");p 9F=k.1r(v,"9F");p 6Z=k.1r(v,"6Z");p 7I=k.1r(v,"7I");p 3G=k.8u(v);p a9=k.1r(v,"a9");p 6m=k.1r(v,"6m");p 6l=k.1r(v,"6l");p dM=(3G[0]!=1||3G[1]!=1);p 9Z=(!v.3L?1G 1Q(l7,9,9):1G 1Q(v.42,v.4i,v.3L));p 2A=k.6g(v,"1P",1t);p 2L=k.6g(v,"1L");p 2c=v.2c-a9;p 2i=v.2i;if(2c<0){2c+=12;2i--}if(2L){p 9T=1G 1Q(2L.2w(),2L.30()-3G[1]+1,2L.2P());9T=(2A&&9T<2A?2A:9T);4c(1G 1Q(2i,2c,1)>9T){2c--;if(2c<0){2c=11;2i--}}}p 6t=k.1r(v,"6t");6t=(!6Z?6t:k.5q(6t,1G 1Q(2i,2c-6m,1),k.53(v)));p 6u=(7I?k.1r(v,"6u"):"");6u=(!6Z?6u:k.5q(6u,1G 1Q(2i,2c-6l,1),k.53(v)));p 5v=\'<1s 1X="15-1i-5v">\'+(k.c0(v,-1,2i,2c)?(7I?"<a 5B=\\"2j.1i.4Q(\'#"+v.id+"\', -"+6l+", \'M\');\\""+k.4R(31,v.id,k.1r(v,"fd"),2X)+">"+6u+"</a>":"")+"<a 5B=\\"2j.1i.4Q(\'#"+v.id+"\', -"+6m+", \'M\');\\""+k.4R(31,v.id,k.1r(v,"fe"),2X)+">"+6t+"</a>":(9F?"":"<3h>"+6u+"</3h><3h>"+6t+"</3h>"))+"</1s>";p 6H=k.1r(v,"6H");6H=(!6Z?6H:k.5q(6H,1G 1Q(2i,2c+6m,1),k.53(v)));p 6W=(7I?k.1r(v,"6W"):"");6W=(!6Z?6W:k.5q(6W,1G 1Q(2i,2c+6l,1),k.53(v)));p 66=\'<1s 1X="15-1i-66">\'+(k.c0(v,+1,2i,2c)?"<a 5B=\\"2j.1i.4Q(\'#"+v.id+"\', +"+6m+", \'M\');\\""+k.4R(31,v.id,k.1r(v,"fa"),2X)+">"+6H+"</a>"+(7I?"<a 5B=\\"2j.1i.4Q(\'#"+v.id+"\', +"+6l+", \'M\');\\""+k.4R(31,v.id,k.1r(v,"f7"),2X)+">"+6W+"</a>":""):(9F?"":"<3h>"+6H+"</3h><3h>"+6W+"</3h>"))+"</1s>";p 7z=k.1r(v,"7z");p dl=(k.1r(v,"dn")&&v.3L?9Z:6Y);7z=(!6Z?7z:k.5q(7z,dl,k.53(v)));p 2B=(84?\'<1s 1X="\'+k.de+\'">\'+84+"</1s>":"")+(9g&&!v.3s?bT:"")+\'<1s 1X="15-1i-la">\'+(4T?66:5v)+(k.ch(v,dl)?\'<1s 1X="15-1i-4d"><a 5B="2j.1i.dk(\\\'#\'+v.id+"\');\\""+k.4R(31,v.id,k.1r(v,"fi"),2X)+">"+7z+"</a></1s>":"")+(4T?5v:66)+"</1s>";p 4t=k.1r(v,"4t");p 96=k.1r(v,"96");p 4h=k.1r(v,"4h");p 4x=k.1r(v,"4x");p aT=k.1r(v,"aT");p 3O=k.1r(v,"3O");p 9y=k.1r(v,"9y");p 8v=k.1r(v,"8v");p 6S=k.1r(v,"6S");p 93=k.1r(v,"93");p b7=k.1r(v,"b7")||k.aX;p 8P=k.1r(v,"8P");p 5Q=(31?k.1r(v,"b0")||2X:"");p 7B=k.1r(v,"fJ")||k.7B;p 5s=v.5c?1G 1Q(v.3o,v.5A,v.5c):9Z;1F(p 7H=0;7H<3G[0];7H++){1F(p 7M=0;7M<3G[1];7M++){p 8i=1G 1Q(2i,2c,v.4g);2B+=\'<1s 1X="15-1i-jK-26\'+(7M==0?" 15-1i-1G-7H":"")+\'">\'+k.ga(v,2c,2i,2A,2L,8i,7H>0||7M>0,31,2X,3O)+\'<gI 1X="15-1i" jL="0" jM="0"><dD><am 1X="15-1i-8x-7H">\'+(93?"<4u"+k.4R(31,v.id,8P,2X)+">"+k.1r(v,"dN")+"</4u>":"");1F(p 63=0;63<7;63++){p 2e=(63+4t)%7;p b0=(5Q.6d("8U")>-1?5Q.7C(/8U/,4h[2e]):5Q.7C(/D/,4x[2e]));2B+="<4u"+((63+4t+6)%7>=5?\' 1X="15-1i-6P-3X-7y"\':"")+">"+(!96?"<3m":"<a 5B=\\"2j.1i.dv(\'#"+v.id+"\', "+2e+\');"\')+k.4R(31,v.id,b0,2X)+\' 8x="\'+4h[2e]+\'">\'+aT[2e]+(96?"</a>":"</3m>")+"</4u>"}2B+="</am></dD><gG>";p cT=k.7A(2i,2c);if(2i==v.4a&&2c==v.3S){v.4g=1u.1P(v.4g,cT)}p b4=(k.gH(2i,2c)-4t+7)%7;p 9c=1G 1Q(2i,2c,1-b4);p 8g=1G 1Q(2i,2c,1-b4);p 4o=8g;p dH=(dM?6:1u.jI((b4+cT)/7));1F(p cU=0;cU<dH;cU++){2B+=\'<am 1X="15-1i-8w-7H">\'+(93?\'<4u 1X="15-1i-6P-7M"\'+k.4R(31,v.id,8P,2X)+">"+b7(4o)+"</4u>":"");1F(p 63=0;63<7;63++){p 98=(9y?9y.2s((v.1v?v.1v[0]:1n),[4o]):[1t,""]);p 6R=(4o.30()!=2c);p 5X=6R||!98[0]||(2A&&4o<2A)||(2L&&4o>2L);2B+=\'<4u 1X="15-1i-8w-7y\'+((63+4t+6)%7>=5?" 15-1i-6P-3X-7y":"")+(6R?" 15-1i-kp-26":"")+(4o.59()==8i.59()&&2c==v.3S?" 15-1i-8w-7y-3z":"")+(5X?" "+k.cO:"")+(6R&&!6S?"":" "+98[1]+(4o.59()>=9Z.59()&&4o.59()<=5s.59()?" "+k.aa:"")+(4o.59()==6Y.59()?" 15-1i-6Y":""))+\'"\'+((!6R||6S)&&98[2]?\' 8x="\'+98[2]+\'"\':"")+(5X?(8v?" cm=\\"2j(k).1z().1E(\'15-1i-6P-3z\');\\" cn=\\"2j(k).1z().23(\'15-1i-6P-3z\');\\"":""):" cm=\\"2j(k).1E(\'15-1i-8w-7y-3z\')"+(8v?".1z().1E(\'15-1i-6P-3z\')":"")+";"+(!31||(6R&&!6S)?"":"2j(\'#15-1i-5Q-"+v.id+"\').2B(\'"+(7B.2s((v.1v?v.1v[0]:1n),[4o,v])||2X)+"\');")+"\\" cn=\\"2j(k).23(\'15-1i-8w-7y-3z\')"+(8v?".1z().23(\'15-1i-6P-3z\')":"")+";"+(!31||(6R&&!6S)?"":"2j(\'#15-1i-5Q-"+v.id+"\').2B(\'"+2X+"\');")+\'" 5B="2j.1i.dj(\\\'#\'+v.id+"\',"+2c+","+2i+\', k);"\')+">"+(6R?(6S?4o.2P():"&#bI;"):(5X?4o.2P():"<a>"+4o.2P()+"</a>"))+"</4u>";9c.aI(9c.2P()+1);8g.e2(8g.go()+1);4o=(9c>8g?9c:8g)}2B+="</am>"}2c++;if(2c>11){2c=0;2i++}2B+="</gG></gI></1s>"}}2B+=(31?\'<1s 3r="5f: 8f;"></1s><1s id="15-1i-5Q-\'+v.id+\'" 1X="15-1i-5Q">\'+2X+"</1s>":"")+(!9g&&!v.3s?bT:"")+\'<1s 3r="5f: 8f;"></1s>\'+($.2y.4V&&1q($.2y.8h)<7&&!v.3s?\'<9f bC="fZ:1h;" 1X="15-1i-by"></9f>\':"");18 2B},ga:u(v,2c,2i,2A,2L,8i,bk,31,2X,3O){2A=(v.3y&&2A&&8i<2A?8i:2A);p 9t=k.1r(v,"9t");p 2B=\'<1s 1X="15-1i-i5">\';p 7x="";if(bk||!k.1r(v,"g7")){7x+=3O[2c]+"&#bI;"}1p{p fU=(2A&&2A.2w()==2i);p gz=(2L&&2L.2w()==2i);7x+=\'<5h 1X="15-1i-1G-26" gm="2j.1i.cG(\\\'#\'+v.id+"\', k, \'M\');\\" 5B=\\"2j.1i.cq(\'#"+v.id+"\');\\""+k.4R(31,v.id,k.1r(v,"fQ"),2X)+">";1F(p 26=0;26<12;26++){if((!fU||26>=2A.30())&&(!gz||26<=2L.30())){7x+=\'<89 1C="\'+26+\'"\'+(26==2c?\' 2W="2W"\':"")+">"+3O[26]+"</89>"}}7x+="</5h>"}if(!9t){2B+=7x}if(bk||!k.1r(v,"gk")){2B+=2i}1p{p 6K=k.1r(v,"gp").6p(":");p 1Z=0;p 3o=0;if(6K.1w!=2){1Z=2i-10;3o=2i+10}1p{if(6K[0].3l(0)=="+"||6K[0].3l(0)=="-"){1Z=3o=1G 1Q().2w();1Z+=1q(6K[0],10);3o+=1q(6K[1],10)}1p{1Z=1q(6K[0],10);3o=1q(6K[1],10)}}1Z=(2A?1u.1L(1Z,2A.2w()):1Z);3o=(2L?1u.1P(3o,2L.2w()):3o);2B+=\'<5h 1X="15-1i-1G-1Z" gm="2j.1i.cG(\\\'#\'+v.id+"\', k, \'Y\');\\" 5B=\\"2j.1i.cq(\'#"+v.id+"\');\\""+k.4R(31,v.id,k.1r(v,"gf"),2X)+">";1F(;1Z<=3o;1Z++){2B+=\'<89 1C="\'+1Z+\'"\'+(1Z==2i?\' 2W="2W"\':"")+">"+1Z+"</89>"}2B+="</5h>"}if(9t){2B+=7x}2B+="</1s>";18 2B},4R:u(31,id,47,2X){18(31?" cm=\\"2j(\'#15-1i-5Q-"+id+"\').2B(\'"+(47||2X)+"\');\\" cn=\\"2j(\'#15-1i-5Q-"+id+"\').2B(\'"+2X+"\');\\"":"")},aB:u(v,1f,5l){p 1Z=v.2i+(5l=="Y"?1f:0);p 26=v.2c+(5l=="M"?1f:0);p 2e=1u.1P(v.4g,k.7A(1Z,26))+(5l=="D"?1f:0);p 1j=1G 1Q(1Z,26,2e);p 2A=k.6g(v,"1P",1t);p 2L=k.6g(v,"1L");1j=(2A&&1j<2A?2A:1j);1j=(2L&&1j>2L?2L:1j);v.4g=1j.2P();v.2c=v.3S=1j.30();v.2i=v.4a=1j.2w();if(5l=="M"||5l=="Y"){k.9v(v)}},9v:u(v){p cD=k.1r(v,"fW");if(cD){cD.2s((v.1v?v.1v[0]:1n),[v.4a,v.3S+1,v])}},8u:u(v){p 3G=k.1r(v,"fM");18(3G==1n?[1,1]:(2v 3G=="9s"?[1,3G]:3G))},6g:u(v,g8,gQ){p 1j=k.9r(k.1r(v,g8+"1Q"),1n);if(1j){1j.jF(0);1j.kl(0);1j.ki(0);1j.kj(0)}18(!gQ||!v.3y?1j:(!1j||v.3y>1j?v.3y:1j))},7A:u(1Z,26){18 32-1G 1Q(1Z,26,32).2P()},gH:u(1Z,26){18 1G 1Q(1Z,26,1).8l()},c0:u(v,1f,e5,dS){p 3G=k.8u(v);p 1j=1G 1Q(e5,dS+(1f<0?1f:3G[1]),1);if(1f<0){1j.aI(k.7A(1j.2w(),1j.30()))}18 k.ch(v,1j)},ch:u(v,1j){p 8r=(!v.3y?1n:1G 1Q(v.4a,v.3S,v.4g));8r=(8r&&v.3y<8r?v.3y:8r);p 2A=8r||k.6g(v,"1P");p 2L=k.6g(v,"1L");18((!2A||1j>=2A)&&(!2L||1j<=2L))},53:u(v){p 4F=k.1r(v,"4F");4F=(2v 4F!="3W"?4F:1G 1Q().2w()%2g+1q(4F,10));18{4F:4F,4x:k.1r(v,"4x"),4h:k.1r(v,"4h"),5p:k.1r(v,"5p"),3O:k.1r(v,"3O")}},7E:u(v,2e,26,1Z){if(!2e){v.3L=v.4g;v.4i=v.3S;v.42=v.4a}p 1j=(2e?(2v 2e=="8q"?2e:1G 1Q(1Z,26,2e)):1G 1Q(v.42,v.4i,v.3L));18 k.5q(k.1r(v,"7G"),1j,k.53(v))}});u 8m(1m,86){$.2d(1m,86);1F(p 3E in 86){if(86[3E]==1n||86[3E]==2a){1m[3E]=86[3E]}}18 1m}u es(a){18(a&&(($.2y.b3&&2v a=="8q"&&a.1w)||(a.67&&a.67.7L().3u(/\\c4\\(\\)/))))}$.fn.1i=u(19){if(!$.1i.bg){$(1k.1S).5m($.1i.2o).5S($.1i.dB);$.1i.bg=1t}p cl=c4.5T.6D.1D(4y,1);if(2v 19=="3W"&&(19=="jx"||19=="2P")){18 $.1i["aO"+19+"8Z"].2s($.1i,[k[0]].cw(cl))}18 k.1K(u(){2v 19=="3W"?$.1i["aO"+19+"8Z"].2s($.1i,[k].cw(cl)):$.1i.fK(k,19)})};$.1i=1G 8Z();$.1i.bg=1h;$.1i.bj=1G 1Q().59()})(2j);(u(A){A.4e("15.3P",{5i:u(){k.fv=k.19.8Q;p B=k,C=k.19,E=(1G 1Q()).59()+1u.jT(),D=C.47||"0%";k.1c.1E("15-3P").1e(C.1e);A.2d(k,{7V:1h,8K:0,8F:0,7F:E,57:A(\'<1s 1X="15-3P-57 15-4m"></1s>\').1d({1e:"2O",3H:"4m",2T:2g}),7w:A(\'<1s 1X="15-3P-47"></1s>\').2B(D).1d({1e:"2O",3H:"4m"}),dz:A(\'<1s 1X="15-3P-47 15-3P-47-jS"></1s>\').2B(D).1d({1e:k.1c.1e()}),8Y:A(\'<1s 1X="15-3P-aW"></1s>\')});k.8Y.5m(k.57.5m(k.7w.1E(C.eX)),k.dz).3k(k.1c);2j.9I[k.7F]=u(M,N,L,K,J){p I=C.f1,G=C.1e,H=((I>G?G:I)/G),F=1u.2G(M/H)*H;18 F>1?1:F}},5N:{},15:u(B){18{7F:k.7F,19:k.19,1c:k.57,7w:k.7w,8K:k.8K,8F:k.8F}},1T:u(C,B){A.15.2r.1D(k,C,[B,k.15()]);k.1c.2Q(C=="3P"?C:["3P",C].6y(""),[B,k.15()],k.19[C])},5C:u(){k.2S();k.1c.23("15-3P 15-3P-24").5b("3P").2H(".3P").2V(".15-3P-aW").2M();fH 2j.9I[k.7F]},bz:u(){k.1c.23("15-3P-24");k.24=1h},bA:u(){k.1c.1E("15-3P-24");k.24=1t},2R:u(){p B=k,C=k.19;if(k.24){18}B.7V=1t;83(u(){B.7V=1h},C.3j);k.bn();k.1T("2R",k.15());18 1h},bn:u(){p C=k,D=k.19,B=D.8Q;k.57.3q({1e:D.1e},{3j:B,9I:k.7F,fh:u(G,E){C.cg((G/D.1e)*2g);p F=((1G 1Q().59())-E.kM);D.8Q=B-F},hF:u(){fH 2j.9I[C.7F];C.bl();if(C.7V){C.2S();C.bn()}}})},bl:u(){if(k.24){18}k.57.2S();k.1T("bl",k.15())},2S:u(){k.57.2S();k.57.1e(0);k.7w.1e(0);k.57.1E("15-4m");k.19.8Q=k.fv;k.1T("2S",k.15())},cg:u(B){if(k.57.is(".15-4m")){k.57.23("15-4m")}k.8F=B>2g?2g:B;k.8K=(k.8F/2g)*k.19.1e;k.57.1e(k.8K);k.7w.1e(k.8K);if(k.19.8E&&!k.19.47){k.7w.2B(1u.2G(k.8F)+"%")}k.1T("cg",k.15())}});A.15.3P.3V={1e:cr,3j:jj,8Q:eZ,f1:1,8E:1t,47:"",1E:"",eX:""}})(2j);',62,1317,'||||||||||||||||||||this|||||var|||||function|inst||||||||||||||||||||||||||||||||||||ui|||return|options|left|top|element|css|width|offset|height|false|datepicker|date|document|helper|target|null|position|else|parseInt|_get|div|true|Math|input|length|data|resizable|parent|size|containment|value|call|addClass|for|new|test|case|currentItem|each|max|handle|colorpicker|break|min|Date|color|body|_propagate|settings|instance|scrollTop|class|items|year||bind|helperProportions|removeClass|disabled||month|||val|undefined|scrollLeft|drawMonth|extend|day|currentHandle|100|containers|drawYear|jQuery|click|item|relative|absolute|dpDiv|cursor|draggable|plugin|apply|sortable|ddmanager|typeof|getFullYear|axis|browser|offsetParent|minDate|html|pageY|add|nodeName|grid|round|unbind|originalPosition|resize|parentNode|maxDate|remove|iFormat|0px|getDate|triggerHandler|start|stop|zIndex|pageX|find|selected|initStatus|px|margins|getMonth|showStatus|||||||||placeholder|selectable|overflowY|overflowX|picker|positionAbs|format|label|150|duration|appendTo|charAt|span|handles|endYear|focus|animate|style|inline|stepping|match|unselecting|get|auto|rangeStart|over|scroll|documentElement|scrollSpeed|scrollSensitivity|name|_change|numMonths|overflow|cursorAt|offsetHeight|type|currentDay|autocomplete|opacity|monthNames|progressbar|right|window|selectedMonth|fields|_getInst|defaults|string|end|nw|ctrlKey||slider|currentYear|outerWidth|se|||text|outerHeight|sw|selectedYear|hide|while|current|widget|bottom|selectedDay|dayNames|currentMonth|isFixed|ne|push|hidden|selecting|printDate|cssPosition|pos|visible|hsb|firstDay|td|_convertPositionTo|abs|dayNamesShort|arguments|toLowerCase|mouse|matches|_defaults|button|_pos|shortYearCutoff|show|lookAhead|rangeSelect|trigger|default|display|literal|containerCache|_translateValue|snapElements|_adjustDate|_addStatus|droppable|isRTL|ghost|msie|originalSize|cpSlider|Autocompleter|attr|output|continue|tolerance|_getFormatConfig|showAnim|4px|dateStr|bar|iValue|getTime|scrollHeight|removeData|endDay|isover|key|clear|rangeElement|select|_init|ACTIVE|_updateDatepicker|period|append|hasClass|result|monthNamesShort|formatDate|delay|endDate|markerClassName|aspectRatio|prev|_mouseDrag|alsoResize|fixed|offsetWidth|endMonth|onclick|destroy|checkDate|rgb|_dialogInput|defaultDate|none|parents|handled|field|255|_HSBToHex|plugins|vertical|hex|status|scope|mousedown|prototype|_convertValue|drag|snap|unselectable|accept|preventDefault||tagName|change|dow|chars||next|constructor|_hideDatepicker|_triggerClass|_mouseStarted|mouseup|original|indexOf|stayOpen|floating|_getMinMaxDate|_focus|num|proportionallyResize|_mouseStop|stepBigMonths|stepMonths|_disabledInputs|knobHandles|split|_mouseStart|widgetName|HTML|prevText|prevBigText|sort|isout|drop|join|isNaN|sizeDiff|droppables|0pt|slice|onSelect|revert|_inDialog|nextText|realMax|actualSize|years|mousemove|dates|previousHandle|keyCode|week|buttonText|otherMonth|showOtherMonths|distance|currentIncrement|_HSBToRGB|nextBigText|PROP_NAME|today|navigationAsDateFormat||multipleSeparator|doy|startselected|_handleSize|clickOffset|event|yy|obj|showOn|Show|steps|filter|url|borderLeftWidth|opera|360|scrollX|submit|maxlength|_datepickerShowing|scrollY|innerHeight|postProcess|borderTopWidth|marginRight|_setData|cancel|_generatePosition|marginBottom|className|the|textElement|monthHtml|cell|currentText|_getDaysInMonth|dateStatus|replace|switch|_formatDate|identifier|dateFormat|row|showBigPrevNext|_zIndex|block|toString|col|_cursor|_showDatepicker|cancelHelperRemoval|dragging|innerWidth|connectWith|isFunction|_curInst|active|altFormat|_lastInput|currentContainer|clone|_opacity|_clear|clientHeight|setTimeout|prompt|static|props|_fillRGBFields|_fillHSBFields|option|_trigger|maxHeight|hue|_fillHexFields|_mouseDestroy|both|utcDate|version|selectedDate|_mouseInit|inlineSettings|getDay|extendRemove|siblings|parentData|overflowXOffset|object|newMinDate|keydown|buttonImage|_getNumberOfMonths|highlightWeek|days|title|overflowYOffset|beforeShow|intersect|isOver|borderDif|getNumber|range|percentState|throw|stack|disableSelection|cssNamespace|pixelState|firstMon|_handles|img|transparent|weekStatus|interval|beforeStop|trim|out|DD|clientWidth|refreshPositions|counter|wrapper|Datepicker||knob|proportions|showWeeks|deactivate|update|changeFirstDay|String|daySettings|_mouseUp|_mouseCapture|_setNewColor|tzDate|_setSelector|moveTo|iframe|closeAtTop|_translateRange|_translateLimits|cssCache|_setHue|_RGBToHSB|appendText|iframeFix|uiHash|cacheLength|prepareOffsets|_determineDate|number|showMonthAfterYear|scrollWidth|_notifyChange|currentSelector|multiple|beforeShowDay|activate|_proportionallyResize|hasScroll|refresh|marginTop|marginLeft|hideIfNoPrevNext|minHeight|names|easing|blockUI|onClose|minWidth|_aspectRatio|textarea|absolutePosition|rangeSeparator|altField|offsetParentBorders|containerOffset|maxDraw|before|highlight|search|sortables|formatNumber|currentDate|snapping|parse|setData|matchCase|scrollLeftParent|formatMatch|shortNames|formatResult|selectees|showCurrentAtPos|_currentClass|1px|longNames|mouseDownOnSelect|Select|blur|_blur|shiftKey|startDate|_setCurrentColor|_oneStep|firstValue|tr|sliderValue|_updateRange|containerPosition|catch|try|||_fixHSB|mouseDelayMet|background|backgroundColor|scrollTopParent|attrName|_selectingMonthYear|_adjustInstDate|_selectDate|_HexToHSB|compareDocumentPosition|contains|_mouseDownEvent|attrValue|setDate|slide|checkLiteral|andSelf|maxWidth|_refreshItems|_|activeClass|hoverClass|sortIndicator|effects|dayNamesMin|browserWidth|browserHeight|wrap|iso8601Week|dropBehaviour|resizing|dayStatus|empty|not|safari|leadDays|mm|map|calculateWeek|containerSize|_doKeyDown|relOffset|_mouseMoveDelegate|unwrap|flat|_nodeName|generated|initialized|preserveCursor|_mouseDown|uuid|secondary|pause|_getData|_animate|origColor|originalElement|_updateCache|_mouseUpDelegate|dragged|touch|flushCache|domPosition|border|autohide|cover|enable|disable|pointer|src|horizontal|widgetEventPrefix|BACKSPACE|clearTimeout|containerElement|xa0|_drag|_createRange|loadingClass|_initBoundaries|firstChild|index|source|updateOriginalPosition|documentScroll|handleOffset|controls|180|alsoresize|selectFirst|borderRight|li|elementOffset|_canAdjustMonth|1000|guess|borderLeft|Array|custom|borderBottom|_getItemsAsjQuery|_helper|_out|matchContains|opos|minChars|_over|metaKey|formatItem|progress|_isInRange|padding|Selection|selectableunselecting|otherArgs|onmouseover|onmouseout|margin|COMMA|_clickMonthYear|300|_mouseDistanceMet|substring|_mouseDelayMet|TAB|concat|_getDefaultDate|borderTop|selector|UP|currentHue|DOWN|onChange|removeChild|knobTheme|_selectMonthYear|charMin|getName|children|Invalid|_setDate|_inlineClass|dim|_unselectableClass|_newInst|dims|keypress|getter|daysInMonth|dRow|_tidyDialog|_mainDivId|regional|mandatory|_clearDate|_doKeyPress|_getDate|_updateAlternate|chr|_disableClass|origSize|charCode|_dialogClass|formatName|_appendClass|_setDateFromField|parseDate|getDaysInMonth||_promptClass|divSpan|x3c|after|log|_selectDay|_gotoToday|gotoDate|_findPos|gotoCurrent|||x3e|getData|pattern|showOptions|500|_changeFirstDay|direction|_rearrange|_noFinalSort|textBg|dropOnEmpty|_checkExternalClick|appendChild|thead|Class|_isDisabledDatepicker|_storedCSS|numRows|_checkOffset|serialize|toArray|down|isMultiMonth|weekHeader|receive|setOptions|resultsClass|mouseover|curMonth|matchSubset|_dialogInst|flush|populate|load|LI|_inlineDatepicker|pageDown|buttonImageOnly|setUTCDate|pageUp|bgiframe|curYear|alt|dateText|Cache|RETURN|ESC|_contactContainers|err|PAGEDOWN|188|off|PAGEUP|unautocomplete|form|extraParams|autoFill||strong|mustMatch|inputClass|DEL||dataType|isArray|_intersectsWith|_drop|_deactivate|offsetNumeric|_activate|len|exec|offsetString|droppablesLoop|greedy|greedyChild|iInit|originalMousePosition|_updateRatio|_renderAxis|defaultTheme|F2F2F2|solid|8px|shouldRevert|connectToSortable|selectstart|on|_mouseUnselectable|MozUserSelect|5000px|metadata|getterSetter|widgetBaseClass|_mouseMove|textClass|snapItem|200|getYear|increment|snapMode|_possibleChars|release|_respectSize|origMonth|nextBigStatus|toleranceElement|refreshContainers|nextStatus|splice|100px|prevBigStatus|prevStatus|createElement|visibility|step|currentStatus|_intersectsWithEdge|_createPlaceholder|nextSibling|innerHTML||_connectDatepicker|_removeCurrentsFromItems|connected|expression|_generateHTML|clearStatus|clearText|_interval|autoHide|_renderProxy|Missing|origYear|Year|Month|unselected|autoRefresh|sender|fit|closeText|delete|closeStatus|statusForDate|_attachDatepicker|_downSelector|numberOfMonths|_pageStep|_start|_upHue|monthStatus|_upSelector|_enterSubmit|_leaveSubmit|inMinYear|_handleIndex|onChangeMonthYear|_stop|_moveHue|javascript|Number|previous|_keyDown|debug|_downIncrement|_moveIncrement|_downHue|changeMonth|minMax|_upIncrement|_generateMonthYearHeader|_clickSubmit|_show|href|_RGBToHex|yearStatus|240|120||May|changeYear|different|onchange|eventName|getUTCDate|yearRange|_HexToRGB|_fixRGB|_isChildOf|_getRange|_hide|356|176|_removeRange|_getScroll|inMaxYear|startValue|_keydown|_click|self|Close|_moveSelector|tbody|_getFirstDayOfMonth|table|selectorIndic|emptyList|selectionStart|createTextRange|character|setSelectionRange|currentColor|checkRange|newColor|INSERT|toggle|selectablestart|Jan|clientX|December|Unexpected|Unknown|dir|noKeyboard|borderBottomWidth|ESCAPE|paddingTop|HOME|borderRightWidth|Feb|Mar|hover|LEFT|canvas|zoom|all|110|NUMPAD_DIVIDE|September|808080|October|NUMPAD_DECIMAL|Bottom|Right|Left|Top|NUMPAD_ADD|107|November|paddingRight|paddingBottom|tabbable|selectee|animateEasing|slow|animateDuration|Aug|dotted|Sep|swing|tabIndex|draw|ff0000|complete|Nov|selectedIndex|Oct|control|Jul|expr|ATOM|86400000|DELETE|END|ENTER|paddingLeft|outline|void|Apr|CONTROL|Jun|black|CAPS_LOCK|noWeekends|getTimezoneOffset|instanceof|floor|close|RFC_850|header|February|fix|gen|January|inner|backgroundImage|outer||March||April||inArray|fromSortable|makeArray|July|toSortable||June|sortreceive|eventPrefix|rgba||Today|Clear|Next||mozilla|Prev|_mouseDelayTimer|without|which|Erase|enableSelection|0123456789|001|dialog|snapTolerance|fff|revertDuration|invalid|valid|group|Function|NUMPAD_MULTIPLY|108|NUMPAD_ENTER|106|RSS|W3C|NUMPAD_SUBTRACT|TIMESTAMP|RFC_2822|RFC_1123|RFC_822|ISO_8601|111|started|fontSize|RFC_1036|proxy|DEDEDE|109|PAGE_DOWN|SHIFT|August|RIGHT|SPACE|dropdeactivate|dropover|dropout|dropactivate|clientY|dragstart|PERIOD|3000|PAGE_UP|Width|Height|sortactivate|190|COOKIE|selectableselecting|stopPropagation|_getDateDatepicker|_setDateDatepicker|fromCharCode|keyboard|Fr|isDisabled|Sa|first|_refreshDatepicker|hasDatepicker|timestamp|ajax|prepend|setHours|_changeDatepicker|normal|ceil|1000px|one|cellpadding|cellspacing|Sat|Fri|Wed|Thu|insertBefore|back|random|multi|We|Th|Tu|Mo|Su|rtl|mode|abort|substr|collapse|ul|moveStart|moveEnd|selectionEnd|_dialogDatepicker|_inlineShow|toUpperCase|setDefaults|autocompleteshow|autocompletehide|getAttribute|odd|even|setSeconds|setMilliseconds|clearfix|setMinutes|results|_disableDatepicker|loading|other|success|port|limit|400|console|Done|state|_destroyDatepicker|mouseenter|RegExp|_enableDatepicker|mouseleave|up|Set|522|Sun|float|unblockUI|Sunday|selectablestop|slideDown|Week|startTime|selectableselected|Mon|attribute|slideUp|fadeOut|Saturday|Friday|setColor|Thursday|Wednesday|forcePointerForContainers|fadeIn|Monday|10000|Tuesday|65280|of|eval|semi|dynamic|9999|Wk|nodeType|links|selectableunselected|Tue|_preserveHelperProportions|Dec'.split('|'),0,{}))