PageSourceSearch

https://aarughatmun.gov.np/sites/aarughatmun.gov.np/files/js/js_FQ3Dha2YV7aP6KyjhZIgsZycL-UMwT1bbqdFEgbUSw4.js

js aarughatmun.gov.np collected 2026-10-02 22:47:45 UTC 50,883 bytes, 609 lines download raw bytes

vendor: 13,057 bytes, lines 1-61
1/*! jQuery UI - v1.10.2 - 2013-03-14
2* http://jqueryui.com
3* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
4(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);;
5/*! jQuery UI - v1.10.2 - 2013-03-14
6* http://jqueryui.com
7* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
8(function(e,t){var i=0,s=Array.prototype.slice,n=e.cleanData;e.cleanData=function(t){for(var i,s=0;null!=(i=t[s]);s++)try{e(i).triggerHandler("remove")}catch(a){}n(t)},e.widget=function(i,s,n){var a,r,o,h,l={},u=i.split(".")[0];i=i.split(".")[1],a=u+"-"+i,n||(n=s,s=e.Widget),e.expr[":"][a.toLowerCase()]=function(t){return!!e.data(t,a)},e[u]=e[u]||{},r=e[u][i],o=e[u][i]=function(e,i){return this._createWidget?(arguments.length&&this._createWidget(e,i),t):new o(e,i)},e.extend(o,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),h=new s,h.options=e.widget.extend({},h.options),e.each(n,function(i,n){return e.isFunction(n)?(l[i]=function(){var e=function(){return s.prototype[i].apply(this,arguments)},t=function(e){return s.prototype[i].apply(this,e)};return function(){var i,s=this._super,a=this._superApply;return this._super=e,this._superApply=t,i=n.apply(this,arguments),this._super=s,this._superApply=a,i}}(),t):(l[i]=n,t)}),o.prototype=e.widget.extend(h,{widgetEventPrefix:r?h.widgetEventPrefix:i},l,{constructor:o,namespace:u,widgetName:i,widgetFullName:a}),r?(e.each(r._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete r._childConstructors):s._childConstructors.push(o),e.widget.bridge(i,o)},e.widget.extend=function(i){for(var n,a,r=s.call(arguments,1),o=0,h=r.length;h>o;o++)for(n in r[o])a=r[o][n],r[o].hasOwnProperty(n)&&a!==t&&(i[n]=e.isPlainObject(a)?e.isPlainObject(i[n])?e.widget.extend({},i[n],a):e.widget.extend({},a):a);return i},e.widget.bridge=function(i,n){var a=n.prototype.widgetFullName||i;e.fn[i]=function(r){var o="string"==typeof r,h=s.call(arguments,1),l=this;return r=!o&&h.length?e.widget.extend.apply(null,[r].concat(h)):r,o?this.each(function(){var s,n=e.data(this,a);return n?e.isFunction(n[r])&&"_"!==r.charAt(0)?(s=n[r].apply(n,h),s!==n&&s!==t?(l=s&&s.jquery?l.pushStack(s.get()):s,!1):t):e.error("no such method '"+r+"' for "+i+" widget instance"):e.error("cannot call methods on "+i+" prior to initialization; "+"attempted to call method '"+r+"'")}):this.each(function(){var t=e.data(this,a);t?t.option(r||{})._init():e.data(this,a,new n(r,this))}),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,s){s=e(s||this.defaultElement||this)[0],this.element=e(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),s!==this&&(e.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===s&&this.destroy()}}),this.document=e(s.style?s.ownerDocument:s.document||s),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(i,s){var n,a,r,o=i;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof i)if(o={},n=i.split("."),i=n.shift(),n.length){for(a=o[i]=e.widget.extend({},this.options[i]),r=0;n.length-1>r;r++)a[n[r]]=a[n[r]]||{},a=a[n[r]];if(i=n.pop(),s===t)return a[i]===t?null:a[i];a[i]=s}else{if(s===t)return this.options[i]===t?null:this.options[i];o[i]=s}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,s,n){var a,r=this;"boolean"!=typeof i&&(n=s,s=i,i=!1),n?(s=a=e(s),this.bindings=this.bindings.add(s)):(n=s,s=this.element,a=this.widget()),e.each(n,function(n,o){function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?r[o]:o).apply(r,arguments):t}"string"!=typeof o&&(h.guid=o.guid=o.guid||h.guid||e.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?a.delegate(c,u,h):s.bind(u,h)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var r,o=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}})})(jQuery);;
9/*jslint browser: true */ /*global jQuery: true */
10
11/**
12 * jQuery Cookie plugin
13 *
14 * Copyright (c) 2010 Klaus Hartl (stilbuero.de)
15 * Dual licensed under the MIT and GPL licenses:
16 * http://www.opensource.org/licenses/mit-license.php
17 * http://www.gnu.org/licenses/gpl.html
18 *
19 */
20
21// TODO JsDoc
22
23/**
24 * Create a cookie with the given key and value and other optional parameters.
25 *
26 * @example $.cookie('the_cookie', 'the_value');
27 * @desc Set the value of a cookie.
28 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
29 * @desc Create a cookie with all available options.
30 * @example $.cookie('the_cookie', 'the_value');
31 * @desc Create a session cookie.
32 * @example $.cookie('the_cookie', null);
33 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
34 *       used when the cookie was set.
35 *
36 * @param String key The key of the cookie.
37 * @param String value The value of the cookie.
38 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
39 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
40 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
41 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
42 *                             when the the browser exits.
43 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
44 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
45 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
46 *                        require a secure protocol (like HTTPS).
47 * @type undefined
48 *
49 * @name $.cookie
50 * @cat Plugins/Cookie
51 * @author Klaus Hartl/[email protected]
52 */
53
54/**
55 * Get the value of a cookie with the given key.
56 *
57 * @example $.cookie('the_cookie');
58 * @desc Get the value of a cookie.
59 *
60 * @param String key The key of the cookie.
61 * @return The value of the cookie.
62 * @type String
63 *
64 * @name $.cookie
65 * @cat Plugins/Cookie
66 * @author Klaus Hartl/[email protected]
67 */
68jQuery.cookie = function (key, value, options) {
69
70    // key and value given, set cookie...
71    if (arguments.length > 1 && (value === null || typeof value !== "object")) {
72        options = jQuery.extend({}, options);
73
74        if (value === null) {
75            options.expires = -1;
76        }
77
78        if (typeof options.expires === 'number') {
79            var days = options.expires, t = options.expires = new Date();
80            t.setDate(t.getDate() + days);
81        }
82
83        return (document.cookie = [
84            encodeURIComponent(key), '=',
85            options.raw ? String(value) : encodeURIComponent(String(value)),
86            options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
87            options.path ? '; path=' + options.path : '',
88            options.domain ? '; domain=' + options.domain : '',
89            options.secure ? '; secure' : ''
90        ].join(''));
91    }
92
93    // key and possibly options given, get cookie...
94    options = value || {};
95    var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
96    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
97};
98;
99(function ($) {
100  Drupal.viewsSlideshow = Drupal.viewsSlideshow || {};
101
102  /**
103   * Views Slideshow Controls
104   */
105  Drupal.viewsSlideshowControls = Drupal.viewsSlideshowControls || {};
106
107  /**
108   * Implement the play hook for controls.
109   */
110  Drupal.viewsSlideshowControls.play = function (options) {
111    // Route the control call to the correct control type.
112    // Need to use try catch so we don't have to check to make sure every part
113    // of the object is defined.
114    try {
115      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].play == 'function') {
116        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].play(options);
117      }
118    }
119    catch(err) {
120      // Don't need to do anything on error.
121    }
122
123    try {
124      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].play == 'function') {
125        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].play(options);
126      }
127    }
128    catch(err) {
129      // Don't need to do anything on error.
130    }
131  };
132
133  /**
134   * Implement the pause hook for controls.
135   */
136  Drupal.viewsSlideshowControls.pause = function (options) {
137    // Route the control call to the correct control type.
138    // Need to use try catch so we don't have to check to make sure every part
139    // of the object is defined.
140    try {
141      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].pause == 'function') {
142        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].pause(options);
143      }
144    }
145    catch(err) {
146      // Don't need to do anything on error.
147    }
148
149    try {
150      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].pause == 'function') {
151        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].pause(options);
152      }
153    }
154    catch(err) {
155      // Don't need to do anything on error.
156    }
157  };
158
159
160  /**
161   * Views Slideshow Text Controls
162   */
163
164  // Add views slideshow api calls for views slideshow text controls.
165  Drupal.behaviors.viewsSlideshowControlsText = {
166    attach: function (context) {
167
168      // Process previous link
169      $('.views_slideshow_controls_text_previous:not(.views-slideshow-controls-text-previous-processed)', context).addClass('views-sli
169deshow-controls-text-previous-processed').each(function() {
170        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_previous_', '');
171        $(this).click(function() {
172          Drupal.viewsSlideshow.action({ "action": 'previousSlide', "slideshowID": uniqueID });
173          return false;
174        });
175      });
176
177      // Process next link
178      $('.views_slideshow_controls_text_next:not(.views-slideshow-controls-text-next-processed)', context).addClass('views-slideshow-controls-text-next-processed').each(function() {
179        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_next_', '');
180        $(this).click(function() {
181          Drupal.viewsSlideshow.action({ "action": 'nextSlide', "slideshowID": uniqueID });
182          return false;
183        });
184      });
185
186      // Process pause link
187      $('.views_slideshow_controls_text_pause:not(.views-slideshow-controls-text-pause-processed)', context).addClass('views-slideshow-controls-text-pause-processed').each(function() {
188        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_pause_', '');
189        $(this).click(function() {
190          if (Drupal.settings.viewsSlideshow[uniqueID].paused) {
191            Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": uniqueID, "force": true });
192          }
193          else {
194            Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": uniqueID, "force": true });
195          }
196          return false;
197        });
198      });
199    }
200  };
201
202  Drupal.viewsSlideshowControlsText = Drupal.viewsSlideshowControlsText || {};
203
204  /**
205   * Implement the pause hook for text controls.
206   */
207  Drupal.viewsSlideshowControlsText.pause = function (options) {
208    var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : '';
209    $('#views_slideshow_controls_text_pause_' + options.slideshowID + ' a').text(pauseText);
210    $('#views_slideshow_controls_text_pause_' + options.slideshowID).removeClass('views-slideshow-controls-text-status-play');
211    $('#views_slideshow_controls_text_pause_' + options.slideshowID).addClass('views-slideshow-controls-text-status-pause');
212  };
213
214  /**
215   * Implement the play hook for text controls.
216   */
217  Drupal.viewsSlideshowControlsText.play = function (options) {
218    var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : '';
219    $('#views_slideshow_controls_text_pause_' + options.slideshowID + ' a').text(playText);
220    $('#views_slideshow_controls_text_pause_' + options.slideshowID).removeClass('views-slideshow-controls-text-status-pause');
221    $('#views_slideshow_controls_text_pause_' + options.slideshowID).addClass('views-slideshow-controls-text-status-play');
222  };
223
224  // Theme the resume control.
225  Drupal.theme.prototype.viewsSlideshowControlsPause = function () {
226    return Drupal.t('Resume');
227  };
228
229  // Theme the pause control.
230  Drupal.theme.prototype.viewsSlideshowControlsPlay = function () {
231    return Drupal.t('Pause');
232  };
233
234  /**
235   * Views Slideshow Pager
236   */
237  Drupal.viewsSlideshowPager = Drupal.viewsSlideshowPager || {};
238
239  /**
240   * Implement the transitionBegin hook for pagers.
241   */
242  Drupal.viewsSlideshowPager.transitionBegin = function (options) {
243    // Route the pager call to the correct pager type.
244    // Need to use try catch so we don't have to check to make sure every part
245    // of the object is defined.
246    try {
247      if (typeof Drupal.settings.viewsSlideshowPager != "undefined" && typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin == 'function') {
248        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin(options);
249        if (Drupal.settings.viewsSlideshowPager[options.slideshowID].top.master_pager === 1) {
250          $.each(Drupal.settings.viewsSlideshow, function(i, obj) {
251            if (i != options.slideshowID) {
252              options.slideshowID = i;
253              options.action = 'goToSlide';
254              Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide(options);
255            }
256          });
257        }
258      }
259    }
260    catch(err) {
261      // Don't need to do anything on error.
262    }
263
264    try {
265      if (typeof Drupal.settings.viewsSlideshowPager != "undefined" && typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin == 'function') {
266        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin(options);
267        if (Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.master_pager === 1) {
268          $.each(Drupal.settings.viewsSlideshow, function(i, obj) {
269            if (i != options.slideshowID) {
270              options.slideshowID = i;
271              options.action = 'goToSlide';
272              Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide(options);
273            }
274          });
275        }
276      }
277    }
278    catch(err) {
279      // Don't need to do anything on error.
280    }
281  };
282
283  /**
284   * Implement the goToSlide hook for pagers.
285   */
286  Drupal.viewsSlideshowPager.goToSlide = function (options) {
287    // Route the pager call to the correct pager type.
288    // Need to use try catch so we don't have to check to make sure every part
289    // of the object is defined.
290    try {
291      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide == 'function') {
292        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide(options);
293      }
294    }
295    catch(err) {
296      // Don't need to do anything on error.
297    }
298
299    try {
300      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide == 'function') {
301        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide(options);
302      }
303    }
304    catch(err) {
305      // Don't need to do anything on error.
306    }
307  };
308
309  /**
310   * Implement the previousSlide hook for pagers.
311   */
312  Drupal.viewsSlideshowPager.previousSlide = function (options) {
313    // Route the pager call to the correct pager type.
314    // Need to use try catch so we don't have to check to make sure every part
315    // of the object is defined.
316    try {
317      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide == 'function') {
318        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide(options);
319      }
320    }
321    catch(err) {
322      // Don't need to do anything on error.
323    }
324
325    try {
326      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide == 'function') {
327        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide(options);
328      }
329    }
330    catch(err) {
331      // Don't need to do anything on error.
332    }
333  };
334
335  /**
336   * Implement the nextSlide hook for pagers.
337   */
338  Drupal.viewsSlideshowPager.nextSlide = function (options) {
339    // Route the pager call to the correct pager type.
340    // Need to use try catch so we don't have to check to make sure every part
341    // of the object is defined.
342    try {
343      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide == 'function') {
344        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide(options);
345      }
346    }
347    catch(err) {
348      // Don't need to do anything on error.
349    }
350
351    try {
352      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide == 'function') {
353        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide(options);
354      }
355    }
356    catch(err) {
357      // Don't need to do anything on error.
358    }
359  };
360
361
362  /**
363   * Views Slideshow Pager Fields
364   */
365
366  // Add views slideshow api calls for views slideshow pager fields.
367  Drupal.behaviors.viewsSlideshowPagerFields = {
368    attach: function (context) {
369      // Process pause on hover.
370      $('.views_slideshow_pager_field:not(.views-slideshow-pager-field-processed)', context).addClass('views-slideshow-pager-field-processed').each(function() {
371        // Parse out the location and unique id from the full id.
372        var pagerInfo = $(this).attr('id').split('_');
373        var location = pagerInfo[2];
374        pagerInfo.splice(0, 3);
375        var uniqueID = pagerInfo.join('_');
376
377        // Add the activate and pause on pager hover event to each pager item.
378        if (Drupal.settings.viewsSlideshowPagerFields[uniqueID][location].activatePauseOnHover) {
379          $(this).children().each(function(index, pagerItem) {
380            var mouseIn = function() {
381              Drupal.viewsSlideshow.action({ "action": 'goToSlide', "slideshowID": uniqueID, "slideNum": index });
382              Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": uniqueID });
383            };
384
385            var mouseOut = function() {
386              Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": uniqueID });
387            };
388
389            if (jQuery.fn.hoverIntent) {
390              $(pagerItem).hoverIntent(mouseIn, mouseOut);
391            }
392            else {
393              $(pagerItem).hover(mouseIn, mouseOut);
394            }
395          });
396        }
397        else {
398          $(this).children().each(function(index, pagerItem) {
399            $(pagerItem).click(function() {
400              Drupal.viewsSlideshow.action({ "action": 'goToSlide', "slideshowID": uniqueID, "slideNum": index });
401            });
402          });
403        }
404      });
405    }
406  };
407
408  Drupal.viewsSlideshowPagerFields = Drupal.viewsSlideshowPagerFields || {};
409
410  /**
411   * Implement the transitionBegin hook for pager fields pager.
412   */
413  Drupal.viewsSlideshowPagerFields.transitionBegin = function (options) {
414    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
415      // Remove active class from pagers
416      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
417
418      // Add active class to active pager.
419      $('#views_slideshow_pager_field_item_'+ pagerLocation + '_' + options.slideshowID + '_' + options.slideNum).addClass('active');
420    }
421  };
422
423  /**
424   * Implement the goToSlide hook for pager fields pager.
425   */
426  Drupal.viewsSlideshowPagerFields.goToSlide = function (options) {
427    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
428      // Remove active class from pagers
429      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
430
431      // Add active class to active pager.
432      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + options.slideNum).addClass('active');
433    }
434  };
435
436  /**
437   * Implement the previousSlide hook for pager fields pager.
438   */
439  Drupal.viewsSlideshowPagerFields.previousSlide = function (options) {
440    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
441      // Get the current active pager.
442      var pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"].active').attr('id').replace('views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_', '');
443
444      // If we are on the first pager then activate the last pager.
445      // Otherwise activate the previous pager.
446      if (pagerNum == 0) {
447        pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').length() - 1;
448      }
449      else {
450        pagerNum--;
451      }
452
453      // Remove active class from pagers
454      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
455
456      // Add active class to active pager.
457      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + pagerNum).addClass('active');
458    }
459  };
460
461  /**
462   * Implement the nextSlide hook for pager fields pager.
463   */
464  Drupal.viewsSlideshowPagerFields.nextSlide = function (options) {
465    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
466      // Get the current active pager.
467      var pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"].active').attr('id').replace('views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_', '');
468      var totalPagers = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').length();
469
470      // If we are on the last pager then activate the first pager.
471      // Otherwise activate the next pager.
472      pagerNum++;
473      if (pagerNum == totalPagers) {
474        pagerNum = 0;
475      }
476
477      // Remove active class from pagers
478      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
479
480      // Add active class to active pager.
481      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + slideNum).addClass('active');
482    }
483  };
484
485
486  /**
487   * Views Slideshow Slide Counter
488   */
489
490  Drupal.viewsSlideshowSlideCounter = Drupal.viewsSlideshowSlideCounter || {};
491
492  /**
493   * Implement the transitionBegin for the slide counter.
494   */
495  Drupal.viewsSlideshowSlideCounter.transitionBegin = function (options) {
496    $('#views_slideshow_slide_counter_' + options.slideshowID + ' .num').text(options.slideNum + 1);
497  };
498
499  /**
500   * This is used as a router to process actions for the slideshow.
501   */
502  Drupal.viewsSlideshow.action = function (options) {
503    // Set default values for our return status.
504    var status = {
505      'value': true,
506      'text': ''
507    };
508
509    // If an action isn't specified return false.
510    if (typeof options.action == 'undefined' || options.action == '') {
511      status.value = false;
512      status.text =  Drupal.t('There was no action specified.');
513      return error;
514    }
515
516    // If we are using pause or play switch paused state accordingly.
517    if (options.action == 'pause') {
518      Drupal.settings.viewsSlideshow[options.slideshowID].paused = 1;
519      // If the calling method is forcing a pause then mark it as such.
520      if (options.force) {
521        Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce = 1;
522      }
523    }
524    else if (options.action == 'play') {
525      // If the slideshow isn't forced pause or we are forcing a play then play
526      // the slideshow.
527      // Otherwise return telling the calling method that it was forced paused.
528      if (!Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce || options.force) {
529        Drupal.settings.viewsSlideshow[options.slideshowID].paused = 0;
530        Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce = 0;
531      }
532      else {
533        status.value = false;
534        status.text += ' ' + Drupal.t('This slideshow is forced paused.');
535        return status;
536      }
537    }
538
539    // We use a switch statement here mainly just to limit the type of actions
540    // that are available.
541    switch (options.action) {
542      case "goToSlide":
543      case "transitionBegin":
544      case "transitionEnd":
545        // The three methods above require a slide number. Checking if it is
546        // defined and it is a number that is an integer.
547        if (typeof options.slideNum == 'undefined' || typeof options.slideNum !== 'number' || parseInt(options.slideNum) != (options.slideNum - 0)) {
548          status.value = false;
549          status.text = Drupal.t('An invalid integer was specified for slideNum.');
550        }
551      case "pause":
552      case "play":
553      case "nextSlide":
554      case "previousSlide":
555        // Grab our list of methods.
556        var methods = Drupal.settings.viewsSlideshow[options.slideshowID]['methods'];
557
558        // if the calling method specified methods that shouldn't be called then
559        // exclude calling them.
560        var excludeMethodsObj = {};
561        if (typeof options.excludeMethods !== 'undefined') {
562          // We need to turn the excludeMethods array into an object so we can use the in
563          // function.
564          for (var i=0; i < excludeMethods.length; i++) {
565            excludeMethodsObj[excludeMethods[i]] = '';
566          }
567        }
568
569        // Call every registered method and don't call excluded ones.
570        for (i = 0; i < methods[options.action].length; i++) {
571          if (Drupal[methods[options.action][i]] != undefined && typeof Drupal[methods[options.action][i]][options.action] == 'function' && !(methods[options.action][i] in excludeMethodsObj)) {
572            Drupal[methods[options.action][i]][options.action](options);
573          }
574        }
575        break;
576
vendor: 8,839 bytes, lines 577-589
577      // If it gets here it's because it's an invalid action.
578      default:
579        status.value = false;
580        status.text = Drupal.t('An invalid action "!action" was specified.', { "!action": options.action });
581    }
582    return status;
583  };
584})(jQuery);
585;
586/*! jQuery UI - v1.10.2 - 2013-03-14
587* http://jqueryui.com
588* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
589(function(t,e){function i(){return++n}function s(t){return t.hash.length>1&&decodeURIComponent(t.href.replace(a,""))===decodeURIComponent(location.href.replace(a,""))}var n=0,a=/#.*$/;t.widget("ui.tabs",{version:"1.10.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var i=this.options.active,s=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(s,a){return t(a).attr("aria-controls")===n?(i=s,!1):e}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=this.tabs.length?0:!1)),i!==!1&&(i=this.tabs.index(this.tabs.eq(i)),-1===i&&(i=s?!1:0)),!s&&i===!1&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(i){var s=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(s),a=!0;if(!this._handlePageNav(i)){switch(i.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:a=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return i.preventDefault(),clearTimeout(this.activating),this._activate(n),e;case t.ui.keyCode.ENTER:return i.preventDefault(),clearTimeout(this.activating),this._activate(n===this.options.active?!1:n),e;default:return}i.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,a),i.ctrlKey||(s.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(i){return i.altKey&&i.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):i.altKey&&i.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):e},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,i){return"active"===t?(this._activate(i),e):"disabled"===t?(this._setupDisabled(i),e):(this._super(t,i),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",i),i||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(i),"heightStyle"===t&&this._setupHeightStyle(i),e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,n){var a,o,r,h=t(n).uniqueId().attr("id"),l=t(n).closest("li"),u=l.attr("aria-controls");s(n)?(a=n.hash,o=e.element.find(e._sanitizeSelector(a))):(r=e._tabId(l),a="#"+r,o=e.element.find(a),o.length||(o=e._createPanel(r),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":a.substring(1),"aria-labelledby":h}),o.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,s=0;i=this.tabs[s];s++)e===!0||-1!==t.inArray(s,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),a=n.closest("li"),o=a[0]===s[0],r=o&&i.collapsible,h=r?t():this._getPanelForTab(a),l=s.length?this._getPanelForTab(s):t(),u={oldTab:s,oldPanel:l,newTab:r?t():a,newPanel:h};e.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||this._trigger("beforeActivate",e,u)===!1||(i.active=r?!1:this.tabs.index(a),this.active=o?t():a,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(a),e),this._toggle(e,u))},_toggle:function(e,i){function s(){a.running=!1,a._trigger("activate",e,i)}function n(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&a.options.show?a._show(o,a.options.show,s):(o.show(),s())}var a=this,o=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),n()),r.attr({"aria-expanded":"false","aria-hidden":"true"}
589),i.oldTab.attr("aria-selected","false"),o.length&&r.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var s=this.options.disabled;s!==!1&&(i===e?s=!1:(i=this._getIndex(i),s=t.isArray(s)?t.map(s,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(s))},disable:function(i){var s=this.options.disabled;if(s!==!0){if(i===e)s=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,s))return;s=t.isArray(s)?t.merge([i],s).sort():[i]}this._setupDisabled(s)}},load:function(e,i){e=this._getIndex(e);var n=this,a=this.tabs.eq(e),o=a.find(".ui-tabs-anchor"),r=this._getPanelForTab(a),h={tab:a,panel:r};s(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(a.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){r.html(t),n._trigger("load",i,h)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&n.panels.stop(!1,!0),a.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href"),beforeSend:function(e,a){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:a},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})})(jQuery);;
590
591/*
592 * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
593 * http://benalman.com/projects/jquery-bbq-plugin/
594 *
595 * Copyright (c) 2010 "Cowboy" Ben Alman
596 * Dual licensed under the MIT and GPL licenses.
597 * http://benalman.com/about/license/
598 */
599(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M<N?O[P]||(R[M+1]&&isNaN(R[M+1])?{}:[]):J}}else{if($.isArray(H[P])){H[P].push(J)}else{if(H[P]!==i){H[P]=[H[P],J]}else{H[P]=J}}}}else{if(P){H[P]=F?i:""}}});return H};
599function z(H,F,G){if(F===i||typeof F==="boolean"){G=F;F=a[H?D:A]()}else{F=E(F)?F.replace(H?w:x,""):F}return l(F,G)}l[A]=B(z,0);l[D]=v=B(z,1);$[y]||($[y]=function(F){return $.extend(C,F)})({a:k,base:k,iframe:t,img:t,input:t,form:"action",link:k,script:t});j=$[y];function s(I,G,H,F){if(!E(H)&&typeof H!=="object"){F=H;H=G;G=i}return this.each(function(){var L=$(this),J=G||j()[(this.nodeName||"").toLowerCase()]||"",K=J&&L.attr(J)||"";L.attr(J,a[I](K,H,F))})}$.fn[A]=B(s,A);$.fn[D]=B(s,D);b.pushState=q=function(I,F){if(E(I)&&/^#/.test(I)&&F===i){F=2}var H=I!==i,G=c(p[g][k],H?I:{},H?F:2);p[g][k]=G+(/#/.test(G)?"":"#")};b.getState=u=function(F,G){return F===i||typeof F==="boolean"?v(F):v(G)[F]};b.removeState=function(F){var G={};if(F!==i){G=u();$.each($.isArray(F)?F:arguments,function(I,H){delete G[H]})}q(G,2)};e[d]=$.extend(e[d],{add:function(F){var H;function G(J){var I=J[D]=c();J.getState=function(K,L){return K===i||typeof K==="boolean"?l(I,K):l(I,L)[K]};H.apply(this,arguments)}if($.isFunction(F)){H=F;return G}else{H=F.handler;F.handler=G}}})})(jQuery,this);
600/*
601 * jQuery hashchange event - v1.2 - 2/11/2010
602 * http://benalman.com/projects/jquery-hashchange-plugin/
603 *
604 * Copyright (c) 2010 "Cowboy" Ben Alman
605 * Dual licensed under the MIT and GPL licenses.
606 * http://benalman.com/about/license/
607 */
608(function($,i,b){var j,k=$.event.special,c="location",d="hashchange",l="href",f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e="on"+d in i&&!h;function a(m){m=m||i[c][l];return m.replace(/^[^#]*#?(.*)$/,"$1")}$[d+"Delay"]=100;k[d]=$.extend(k[d],{setup:function(){if(e){return false}$(j.start)},teardown:function(){if(e){return false}$(j.stop)}});j=(function(){var m={},r,n,o,q;function p(){o=q=function(s){return s};if(h){n=$('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}};o(a())}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
609;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.