1(function(e){var n=e.fn.jquery.split('.'),t=parseInt(n[0]),i=parseInt(n[1]),r=parseInt(n[2]),f=(r.toString()!==n[2]);if((t>3)||(t===3&&i>4)||(t===3&&i===4&&r>0)||(t===3&&i===4&&r===0&&!f)){return};e.extend=e.fn.extend=function(){var o,r,f,t,a,s,n=arguments[0]||{},i=1,l=arguments.length,u=!1;if(typeof n==='boolean'){u=n;n=arguments[i]||{};i++};if(typeof n!=='object'&&!e.isFunction(n)){n={}};if(i===l){n=this;i--};for(;i<l;i++){if((o=arguments[i])!=null){for(r in o){t=o[r];if(r==='__proto__'||n===t){continue};if(u&&t&&(e.isPlainObject(t)||(a=e.isArray(t)))){f=n[r];if(a&&!e.isArray(f)){s=[]} 2else if(!a&&!e.isPlainObject(f)){s={}} 3else{s=f};a=!1;n[r]=e.extend(u,s,t)} 4else if(t!==undefined){n[r]=t}}}};return n}})(jQuery);;/*})'"*/ 5(function(t){var o=t.fn.jquery.split('.'),e=parseInt(o[0]),r=parseInt(o[1]);if((e>3)||(e===3&&r>=5)){return};var c=['a','abbr','address','article','aside','audio','b','bdi','bdo','blockquote','button','canvas','caption','cite','code','data','datalist','dd','del','details','dfn','div','dl','dt','em','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','header','hgroup','i','ins','kbd','label','legend','li','main','map','mark','menu','meter','nav','ol','optgroup','option','output','p','picture','pre','progress','q','rp','rt','ruby','s','samp','section','select','small','source','span','strong','sub','summary','sup','table','tbody','td','tfoot','th','thead','time','tr','u','ul','var','video'],i='('+c.join('|')+')',p='[\\x20\\t\\r\\n\\f]',s=new RegExp('<'+i+'\\/>','gi'),b=new RegExp('<'+i+'('+p+'[^>]*)\\/>','gi'),a;if(e<3){a=/<([\w:]+)/} 6else if(r<4){a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i} 7else{a=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i};var u=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;t.extend({htmlPrefilter:function(t){var i=(a.exec(t)||['',''])[1].toLowerCase();if((i==='option'||i==='optgroup')&&t.match(/<\/?select/i)){t=''};t=t.replace(s,'<$1></$1>');t=t.replace(b,'<$1$2></$1>');if((e===1&&r<12)||(e===2&&r<2)){var c=t.replace(u,'<$1></$2>');if(c!==t){var n={thead:[1,'<table>','</table>'],col:[2,'<table><colgroup>','</colgroup></table>'],tr:[2,'<table><tbody>','</tbody></table>'],td:[3,'<table><tbody><tr>','</tr></tbody></table>'],};n.tbody=n.tfoot=n.colgroup=n.caption=n.thead;n.th=n.td;var o=function(t){var e=n[i];if(e){t=e[1]+t+e[2]};return t},l=function(t){var e=window.document.implementation.createHTMLDocument('');e.body.innerHTML=t;return e.body?e.body.innerHTML:''},d=l(o(t)),f=l(o(c));if(f===''||d===''||(f!==d)){t=''}}};return t}});if((e===1&&r<12)||(e===2&&r<2)){var f=t.fn.html;t.fn.extend({html:function(e){if(typeof e==='string'){e=t.htmlPrefilter(e)};return f.apply(this,arguments.length?[e]:[])}});var n=/<|&#?\w+;/;if(e===1&&r<9){var d=t.clean;t.extend({'clean':function(e,i,o,l){for(var a=0,r;(r=e[a])!=null;a++){if(typeof r==='string'&&n.test(r)){e[a]=r=t.htmlPrefilter(r)}};return d.call(this,e,i,o,l)}})} 8else{var l=t.buildFragment;t.extend({'buildFragment':function(e,i,o,d){var f=e.length;for(var a=0;a<f;a++){var r=e[a];if(r||r===0){if(t.type(r)!=='object'&&n.test(r)){e[a]=r=t.htmlPrefilter(r)}}};return l.call(this,e,i,o,d)}})}}})(jQuery);;/*})'"*/ 9/*! jQuery UI - v1.10.2 - 2013-03-14 10* http://jqueryui.com 11* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 12(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
vendor: 9,299 bytes, lines 12-21
12)&&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); 13;/*})'"*/;/*})'"*/ 14/*! jQuery UI - v1.10.2 - 2013-03-14 15* http://jqueryui.com 16* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 17(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); 18;/*})'"*/;/*})'"*/ 19;if(typeof Object.assign!='function'){Object.assign=function(n){'use strict';if(n==null){throw new TypeError('Cannot convert undefined or null to object')};n=Object(n);for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t!=null){for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r)){n[r]=t[r]}}}};return n}};;/*})'"*/ 20/* Riot v2.3.17, @license MIT */ 21!function(t,e){"use strict";function n(t,e,n){var r={};return r[t.key]=e,t.pos&&(r[t.pos]=n),r}function r(t,e){for(var n,r=e.length,o=t.length;r>o;)n=e[--r],e.splice(r,1),n.unmount()}
21function o(t,e){Object.keys(t.tags).forEach(function(n){var r=t.tags[n];O(r)?g(r,function(t){N(t,n,e)}):N(r,n,e)})}function i(t,e,n){var r,o=t._root;for(t._virts=[];o;)r=o.nextSibling,n?e.insertBefore(o,n._root):e.appendChild(o),t._virts.push(o),o=r}function u(t,e,n,r){for(var o,i=t._root,u=0;r>u;u++)o=i.nextSibling,e.insertBefore(i,n._root),i=o}function a(t,e,a){m(t,"each");var c,f=typeof b(t,"no-reorder")!==Y||m(t,"no-reorder"),l=S(t),p=Z[l]||{tmpl:t.outerHTML},d=nt.test(l),g=t.parentNode,h=document.createTextNode(""),v=w(t),y="option"===l.toLowerCase(),x=[],_=[],N="VIRTUAL"==t.tagName;a=ut.loopKeys(a),g.insertBefore(h,t),e.one("before-mount",function(){t.parentNode.removeChild(t),g.stub&&(g=e.root)}).on("update",function(){var m=ut(a.val,e),b=document.createDocumentFragment();O(m)||(c=m||!1,m=c?Object.keys(m).map(function(t){return n(a,t,m[t])}):[]);for(var w=0,C=m.length;C>w;w++){var L=m[w],S=f&&L instanceof Object&&!c,T=_.indexOf(L),M=~T&&S?T:w,A=x[M];L=!c&&a.key?n(a,L,w):L,!S&&!A||S&&!~T||!A?(A=new s(p,{parent:e,isLoop:!0,hasImpl:!!Z[l],root:d?g:t.cloneNode(),item:L},t.innerHTML),A.mount(),N&&(A._root=A.root.firstChild),w!=x.length&&x[w]?(N?i(A,g,x[w]):g.insertBefore(A.root,x[w].root),_.splice(w,0,L)):N?i(A,b):b.appendChild(A.root),x.splice(w,0,A),M=w):A.update(L,!0),M!==w&&S&&x[w]&&(N?u(A,g,x[w],t.childNodes.length):g.insertBefore(A.root,x[w].root),a.pos&&(A[a.pos]=w),x.splice(w,0,x.splice(M,1)[0]),_.splice(w,0,_.splice(M,1)[0]),!v&&A.tags&&o(A,w)),A._item=L,E(A,"_parent",e)}if(r(m,x),y){if(g.appendChild(b),g.length){var j,R=g.options;for(g.selectedIndex=j=-1,w=0;w<R.length;w++)(R[w].selected=R[w].__selected)&&0>j&&(g.selectedIndex=j=w)}}else g.insertBefore(b,h);v&&(e.tags[l]=x),_=m.slice()})}function c(t,e,n,r){R(t,function(t){if(1==t.nodeType){if(t.isLoop=t.isLoop||t.parentNode&&t.parentNode.isLoop||b(t,"each")?1:0,n){var o=w(t);o&&!t.isLoop&&n.push(C(o,{root:t,parent:e},t.innerHTML,e))}t.isLoop&&!r||K(t,e,[])}})}function f(t,e,n){function r(t,e,r){ut.hasExpr(e)&&n.push(T({dom:t,expr:e},r))}R(t,function(t){var n,o=t.nodeType;return 3==o&&"STYLE"!=t.parentNode.tagName&&r(t,t.nodeValue),1==o?(n=b(t,"each"))?(a(t,e,n),!1):(g(t.attributes,function(e){var n=e.name,o=n.split("__")[1];return r(t,e.value,{attr:o||n,bool:o}),o?(m(t,n),!1):void 0}),w(t)?!1:void 0):void 0})}function s(t,n,r){function o(){var t=N&&_?p:w||p;g(k.attributes,function(e){var n=e.value;b[y(e.name)]=ut.hasExpr(n)?ut(n,t):n}),g(Object.keys(F),function(e){b[y(e)]=ut(F[e],t)})}function i(t){for(var e in C)typeof p[e]!==tt&&A(p,e)&&(p[e]=t[e])}function u(){p.parent&&_&&g(Object.keys(p.parent),function(t){var e=!M(rt,t)&&M(P,t);(typeof p[t]===tt||e)&&(e||P.push(t),p[t]=p.parent[t])})}function a(t){p.update(t,!0)}function s(t){if(g(R,function(e){e[t?"mount":"unmount"]()}),w){var e=t?"on":"off";_?w[e]("unmount",p.unmount):w[e]("update",a)[e]("unmount",p.unmount)}}var l,p=V.observable(this),b=B(n.opts)||{},w=n.parent,_=n.isLoop,N=n.hasImpl,C=j(n.item),S=[],R=[],k=n.root,H=k.tagName.toLowerCase(),F={},P=[];t.name&&k._tag&&k._tag.unmount(!0),this.isMounted=!1,k.isLoop=_,k._tag=this,E(this,"_riot_id",++z),T(this,{parent:w,root:k,opts:b,tags:{}},C),g(k.attributes,function(t){var e=t.value;ut.hasExpr(e)&&(F[t.name]=e)}),l=at(t.tmpl,r),E(this,"update",function(t,e){return t=j(t),u(),t&&v(C)&&(i(t),C=t),T(p,t),o(),p.trigger("update",t),d(S,p),e&&p.parent?p.parent.one("updated",function(){p.trigger("updated")}):ft(function(){p.trigger("updated")}),this}),E(this,"mixin",function(){return g(arguments,function(t){var e;t=typeof t===Y?V.mixin(t):t,h(t)?(e=new t,t=t.prototype):e=t,g(Object.getOwnPropertyNames(t),function(t){"init"!=t&&(p[t]=h(e[t])?e[t].bind(p):e[t])}),e.init&&e.init.bind(p)()}),this}),E(this,"mount",function(){o();var e=V.mixin(Q);if(e&&p.mixin(e),t.fn&&t.fn.call(p,b),f(l,p,S),s(!0),t.attrs&&$(t.attrs,function(t,e){x(k,t,e)}),(t.attrs||N)&&f(p.root,p,S),p.parent&&!_||p.update(C),p.trigger("before-mount"),_&&!N)k=l.firstChild;else{for(;l.firstChild;)k.appendChild(l.firstChild);k.stub&&(k=w.root)}E(p,"root",k),_&&c(p.root,p.parent,null,!0),!p.parent||p.parent.isMounted?(p.isMounted=!0,p.trigger("mount")):p.parent.one("mount",function(){I(p.root)||(p.parent.isMounted=p.isMounted=!0,p.trigger("mount"))})}),E(this,"unmount",function(t){var n,r=k,o=r.parentNode,i=U.indexOf(p);if(p.trigger("before-unmount"),~i&&U.splice(i,1),this._virts&&g(this._virts,function(t){t.parentNode&&t.parentNode.removeChild(t)}),o){if(w)n=L(w),O(n.tags[H])?g(n.tags[H],function(t,e){t._riot_id==p._riot_id&&n.tags[H].splice(e,1)}):n.tags[H]=e;else for(;r.firstChild;)r.removeChild(r.firstChild);t?m(o,"riot-tag"):o.removeChild(r)}p.trigger("unmount"),s(),p.off("*"),p.isMounted=!1,delete k._tag}),c(l,this,R)}function l(e,n,r,o){r[e]=function(e){var i,u=o._parent,a=o._item;if(!a)for(;u&&!a;)a=u._item,u=u._parent;e=e||t.event,A(e,"currentTarget")&&(e.currentTarget=r),A(e,"target")&&(e.target=e.srcElement),A(e,"which")&&(e.which=e.charCode||e.keyCode),e.item=a,n.call(o,e)===!0||/radio|check/.test(r.type)||(e.preventDefault&&e.preventDefault(),e.returnValue=!1),e.preventUpdate||(i=a?L(u):o,i.update())}}function p(t,e,n){t&&(t.insertBefore(n,e),t.removeChild(e))}function d(t,e){g(t,function(t,n){var r=t.dom,o=t.attr,i=ut(t.expr,e),u=t.dom.parentNode;if(t.bool?(i=!!i,"selected"===o&&(r.__selected=i)):null==i&&(i=""),t.value!==i){if(t.value=i,!o)return i+="",void(u&&("TEXTAREA"===u.tagName?(u.value=i,ot||(r.nodeValue=i)):r.nodeValue=i));if("value"===o)return void(r.value=i);if(m(r,o),h(i))l(o,i,r,e);else if("if"==o){var a=t.stub,c=function(){p(a.parentNode,a,r)},f=function(){p(r.parentNode,r,a)};i?a&&(c(),r.inStub=!1,I(r)||R(r,function(t){t._tag&&!t._tag.isMounted&&(t._tag.isMounted=!!t._tag.trigger("mount"))})):(a=t.stub=a||document.createTextNode(""),r.parentNode?f():(e.parent||e).one("updated",f),r.inStub=!0)}else"show"===o?r.style.display=i?"":"none":"hide"===o?r.style.display=i?"none":"":t.bool?(r[o]=i,i&&x(r,o,o)):(0===i||i&&typeof i!==J)&&(D(o,G)&&o!=W&&(o=o.slice(G.length)),x(r,o,i))}})}function g(t,e){for(var n,r=t?t.length:0,o=0;r>o;o++)n=t[o],null!=n&&e(n,o)===!1&&o--;return t}function h(t){return typeof t===et||!1}function v(t){return t&&typeof t===J}function m(t,e){t.removeAttribute(e)}function y(t){return t.replace(/-(\w)/g,function(t,e){return e.toUpperCase()})}function b(t,e){return t.getAttribute(e)}function x(t,e,n){t.setAttribute(e,n)}function w(t){return t.tagName&&Z[b(t,X)||b(t,W)||t.tagName.toLowerCase()]}function _(t,e,n){var r=n.tags[e];r?(O(r)||r!==t&&(n.tags[e]=[r]),M(n.tags[e],t)||n.tags[e].push(t)):n.tags[e]=t}function N(t,e,n){var r,o=t.parent;o&&(r=o.tags[e],O(r)?r.splice(n,0,r.splice(r.indexOf(t),1)[0]):_(t,e,o))}function C(t,e,n,r){var o=new s(t,e,n),i=S(e.root),u=L(r);return o.parent=u,o._parent=r,_(o,i,u),u!==r&&_(o,i,r),e.root.innerHTML="",o}function L(t){for(var e=t;!w(e.root)&&e.parent;)e=e.parent;return e}function E(t,e,n,r){return Object.defineProperty(t,e,T({value:n,enumerable:!1,writable:!1,
21configurable:!1},r)),t}function S(t){var e=w(t),n=b(t,"name"),r=n&&!ut.hasExpr(n)?n:e?e.name:t.tagName.toLowerCase();return r}function T(t){for(var e,n=arguments,r=1;r<n.length;++r)if(e=n[r])for(var o in e)A(t,o)&&(t[o]=e[o]);return t}function M(t,e){return~t.indexOf(e)}function O(t){return Array.isArray(t)||t instanceof Array}function A(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return typeof t[e]===tt||n&&n.writable}function j(t){if(!(t instanceof s||t&&typeof t.trigger==et))return t;var e={};for(var n in t)M(rt,n)||(e[n]=t[n]);return e}function R(t,e){if(t){if(e(t)===!1)return;for(t=t.firstChild;t;)R(t,e),t=t.nextSibling}}function $(t,e){for(var n,r=/([-\w]+) ?= ?(?:"([^"]*)|'([^']*)|({[^}]*}))/g;n=r.exec(t);)e(n[1].toLowerCase(),n[2]||n[3]||n[4])}function I(t){for(;t;){if(t.inStub)return!0;t=t.parentNode}return!1}function k(t){return document.createElement(t)}function H(t,e){return(e||document).querySelectorAll(t)}function F(t,e){return(e||document).querySelector(t)}function B(t){function e(){}return e.prototype=t,new e}function P(t){return b(t,"id")||b(t,"name")}function K(t,e,n){var r,o=P(t),i=function(i){M(n,o)||(r=O(i),i?(!r||r&&!M(i,t))&&(r?i.push(t):e[o]=[i,t]):e[o]=t)};o&&(ut.hasExpr(o)?e.one("mount",function(){o=P(t),i(e[o])}):i(e[o]))}function D(t,e){return t.slice(0,e.length)===e}function q(t,e,n){var r=Z[e],o=t._innerHTML=t._innerHTML||t.innerHTML;return t.innerHTML="",r&&t&&(r=new s(r,{root:t,opts:n},o)),r&&r.mount&&(r.mount(),M(U,r)||U.push(r)),r}var V={version:"v2.3.17",settings:{}},z=0,U=[],Z={},Q="__global_mixin",G="riot-",W=G+"tag",X="data-is",Y="string",J="object",tt="undefined",et="function",nt=/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?|opt(?:ion|group))$/,rt=["_item","_id","_parent","update","root","mount","unmount","mixin","isMounted","isLoop","tags","parent","opts","trigger","on","off","one"],ot=0|(t&&t.document||{}).documentMode;V.observable=function(t){t=t||{};var e={},n=Array.prototype.slice,r=function(t,e){t.replace(/\S+/g,e)};return Object.defineProperties(t,{on:{value:function(n,o){return"function"!=typeof o?t:(r(n,function(t,n){(e[t]=e[t]||[]).push(o),o.typed=n>0}),t)},enumerable:!1,writable:!1,configurable:!1},off:{value:function(n,o){return"*"!=n||o?r(n,function(t){if(o)for(var n,r=e[t],i=0;n=r&&r[i];++i)n==o&&r.splice(i--,1);else delete e[t]}):e={},t},enumerable:!1,writable:!1,configurable:!1},one:{value:function(e,n){function r(){t.off(e,r),n.apply(t,arguments)}return t.on(e,r)},enumerable:!1,writable:!1,configurable:!1},trigger:{value:function(o){for(var i,u=arguments.length-1,a=new Array(u),c=0;u>c;c++)a[c]=arguments[c+1];return r(o,function(r){i=n.call(e[r]||[],0);for(var o,u=0;o=i[u];++u){if(o.busy)return;o.busy=1,o.apply(t,o.typed?[r].concat(a):a),i[u]!==o&&u--,o.busy=0}e["*"]&&"*"!=r&&t.trigger.apply(t,["*",r].concat(a))}),t},enumerable:!1,writable:!1,configurable:!1}}),t},function(e){function n(t){return t.split(/[\/?#]/)}function r(t,e){var n=new RegExp("^"+e[C](/\*/g,"([^/?#]+?)")[C](/\.\./,".*")+"$"),r=t.match(n);return r?r.slice(1):void 0}function o(t,e){var n;return function(){clearTimeout(n),n=setTimeout(t,e)}}function i(t){g=o(l,1),M[_](L,g),M[_](E,g),O[_]($,p),t&&l(!0)}function u(){this.$=[],e.observable(this),k.on("stop",this.s.bind(this)),k.on("emit",this.e.bind(this))}function a(t){return t[C](/^\/|\/$/,"")}function c(t){return"string"==typeof t}function f(t){return(t||j.href||"")[C](b,"")}function s(t){return"#"==h[0]?(t||j.href||"").split(h)[1]||"":f(t)[C](h,"")}function l(t){var e=0==B;if(!(B>=T)&&(B++,F.push(function(){var e=s();(t||e!=v)&&(k[S]("emit",e),v=e)}),e)){for(;F.length;)F[0](),F.shift();B=0}}function p(t){if(!(1!=t.which||t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented)){for(var e=t.target;e&&"A"!=e.nodeName;)e=e.parentNode;!e||"A"!=e.nodeName||e[N]("download")||!e[N]("href")||e.target&&"_self"!=e.target||-1==e.href.indexOf(j.href.match(b)[0])||(e.href==j.href||e.href.split("#")[0]!=j.href.split("#")[0]&&("#"==h||0===f(e.href).indexOf(h))&&d(s(e.href),e.title||O.title))&&t.preventDefault()}}function d(t,e,n){return A?(t=h+a(t),e=e||O.title,n?A.replaceState(null,e,t):A.pushState(null,e,t),O.title=e,H=!1,l(),H):k[S]("emit",s(t))}var g,h,v,m,y,b=/^.+?\/+[^\/]+/,x="EventListener",w="remove"+x,_="add"+x,N="hasAttribute",C="replace",L="popstate",E="hashchange",S="trigger",T=3,M="undefined"!=typeof t&&t,O="undefined"!=typeof document&&document,A=M&&history,j=M&&(A.location||M.location),R=u.prototype,$=O&&O.ontouchstart?"touchstart":"click",I=!1,k=e.observable(),H=!1,F=[],B=0;R.m=function(t,e,n){!c(t)||e&&!c(e)?e?this.r(t,e):this.r("@",t):d(t,e,n||!1)},R.s=function(){this.off("*"),this.$=[]},R.e=function(t){this.$.concat("@").some(function(e){var n=("@"==e?m:y)(a(t),a(e));return"undefined"!=typeof n?(this[S].apply(null,[e].concat(n)),H=!0):void 0},this)},R.r=function(t,e){"@"!=t&&(t="/"+a(t),this.$.push(t)),this.on(t,e)};var P=new u,K=P.m.bind(P);K.create=function(){var t=new u;return t.m.stop=t.s.bind(t),t.m.bind(t)},K.base=function(t){h=t||"#",v=s()},K.exec=function(){l(!0)},K.parser=function(t,e){t||e||(m=n,y=r),t&&(m=t),e&&(y=e)},K.query=function(){var t={},e=j.href||v;return e[C](/[?&](.+?)=([^&]*)/g,function(e,n,r){t[n]=r}),t},K.stop=function(){I&&(M&&(M[w](L,g),M[w](E,g),O[w]($,p)),k[S]("stop"),I=!1)},K.start=function(t){I||(M&&("complete"==document.readyState?i(t):M[_]("load",function(){setTimeout(function(){i(t)},1)})),I=!0)},K.base(),K.parser(),e.route=K}(V);var it=function(t){function e(t){return t}function n(t,e){return e||(e=m),new RegExp(t.source.replace(/{/g,e[2]).replace(/}/g,e[3]),t.global?f:"")}function r(t){if(t===g)return h;var e=t.split(" ");if(2!==e.length||/[\x00-\x1F<>a-zA-Z0-9'",;\\]/.test(t))throw new Error('Unsupported brackets "'+t+'"');return e=e.concat(t.replace(/(?=[[\]()*+?.^$|])/g,"\\").split(" ")),e[4]=n(e[1].length>1?/{[\S\s]*?}/:h[4],e),e[5]=n(t.length>3?/\\({|})/g:h[5],e),e[6]=n(h[6],e),e[7]=RegExp("\\\\("+e[3]+")|([[({])|("+e[3]+")|"+p,f),e[8]=t,e}function o(t){return t instanceof RegExp?a(t):m[t]}function i(t){(t||(t=g))!==m[8]&&(m=r(t),a=t===g?e:n,m[9]=a(h[9]),m[10]=a(h[10])),v=t}function u(t){var e;t=t||{},e=t.brackets,Object.defineProperty(t,"brackets",{set:i,get:function(){return v},enumerable:!0}),c=t,i(e)}var a,c,f="g",s=/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g,l=/"[^"\\]*(?:\\[\S\s][^"\\]*)*"|'[^'\\]*(?:\\[\S\s][^'\\]*)*'/g,p=l.source+"|"+/(?:\breturn\s+|(?:[$\w\)\]]|\+\+|--)\s*(\/)(?![*\/]))/.source+"|"+/\/(?=[^*\/])[^[\/\\]*(?:(?:\[(?:\\.|[^\]\\]*)*\]|\\.)[^[\/\\]*)*?(\/)[gim]*/.source,d={"(":RegExp("([()])|"+p,f),"[":RegExp("([[\\]]
21)|"+p,f),"{":RegExp("([{}])|"+p,f)},g="{ }",h=["{","}","{","}",/{[^}]*}/,/\\([{}])/g,/\\({)|{/g,RegExp("\\\\(})|([[({])|(})|"+p,f),g,/^\s*{\^?\s*([$\w]+)(?:\s*,\s*(\S+))?\s+in\s+(\S.*)\s*}/,/(^|[^\\]){=[\S\s]*?}/],v=t,m=[];return o.split=function(t,e,n){function r(t){e||u?f.push(t&&t.replace(n[5],"$1")):f.push(t)}function o(t,e,n){var r,o=d[e];for(o.lastIndex=n,n=1;(r=o.exec(t))&&(!r[1]||(r[1]===e?++n:--n)););return n?t.length:o.lastIndex}n||(n=m);var i,u,a,c,f=[],s=n[6];for(u=a=s.lastIndex=0;i=s.exec(t);){if(c=i.index,u){if(i[2]){s.lastIndex=o(t,i[2],s.lastIndex);continue}if(!i[3])continue}i[1]||(r(t.slice(a,c)),a=s.lastIndex,s=n[6+(u^=1)],s.lastIndex=a)}return t&&a<t.length&&r(t.slice(a)),f},o.hasExpr=function(t){return m[4].test(t)},o.loopKeys=function(t){var e=t.match(m[9]);return e?{key:e[1],pos:e[2],val:m[0]+e[3].trim()+m[1]}:{val:t.trim()}},o.hasRaw=function(t){return m[10].test(t)},o.array=function(t){return t?r(t):m},Object.defineProperty(o,"settings",{set:u,get:function(){return c}}),o.settings="undefined"!=typeof V&&V.settings||{},o.set=i,o.R_STRINGS=l,o.R_MLCOMMS=s,o.S_QBLOCKS=p,o}(),ut=function(){function e(t,e){return t?(a[t]||(a[t]=r(t))).call(e,n):t}function n(t,n){e.errorHandler&&(t.riotData={tagName:n&&n.root&&n.root.tagName,_riot_id:n&&n._riot_id},e.errorHandler(t))}function r(t){var e=o(t);return"try{return "!==e.slice(0,11)&&(e="return "+e),new Function("E",e+";")}function o(t){var e,n=[],r=it.split(t.replace(/\u2057/g,'"'),1);if(r.length>2||r[0]){var o,u,a=[];for(o=u=0;o<r.length;++o)e=r[o],e&&(e=1&o?i(e,1,n):'"'+e.replace(/\\/g,"\\\\").replace(/\r\n?|\n/g,"\\n").replace(/"/g,'\\"')+'"')&&(a[u++]=e);e=2>u?a[0]:"["+a.join(",")+'].join("")'}else e=i(r[1],0,n);return n[0]&&(e=e.replace(f,function(t,e){return n[e].replace(/\r/g,"\\r").replace(/\n/g,"\\n")})),e}function i(t,e,n){function r(e,n){var r,o=1,i=s[e];for(i.lastIndex=n.lastIndex;r=i.exec(t);)if(r[0]===e)++o;else if(!--o)break;n.lastIndex=o?t.length:i.lastIndex}if("="===t[0]&&(t=t.slice(1)),t=t.replace(c,function(t,e){return t.length>2&&!e?"�"+(n.push(t)-1)+"~":t}).replace(/\s+/g," ").trim().replace(/\ ?([[\({},?\.:])\ ?/g,"$1")){for(var o,i=[],a=0;t&&(o=t.match(l))&&!o.index;){var f,p,d=/,|([[{(])|$/g;for(t=RegExp.rightContext,f=o[2]?n[o[2]].slice(1,-1).trim().replace(/\s+/g," "):o[1];p=(o=d.exec(t))[1];)r(p,d);p=t.slice(0,o.index),t=RegExp.rightContext,i[a++]=u(p,1,f)}t=a?a>1?"["+i.join(",")+'].join(" ").trim()':i[0]:u(t,e)}return t}function u(t,e,n){var r;return t=t.replace(d,function(t,e,n,o,i){return n&&(o=r?0:o+t.length,"this"!==n&&"global"!==n&&"window"!==n?(t=e+'("'+n+p+n,o&&(r="."===(i=i[o])||"("===i||"["===i)):o&&(r=!g.test(i.slice(o)))),t}),r&&(t="try{return "+t+"}catch(e){E(e,this)}"),n?t=(r?"function(){"+t+"}.call(this)":"("+t+")")+'?"'+n+'":""':e&&(t="function(v){"+(r?t.replace("return ","v="):"v=("+t+")")+';return v||v===0?v:""}.call(this)'),t}var a={};e.haveRaw=it.hasRaw,e.hasExpr=it.hasExpr,e.loopKeys=it.loopKeys,e.errorHandler=null;var c=RegExp(it.S_QBLOCKS,"g"),f=/\x01(\d+)~/g,s={"(":/[()]/g,"[":/[[\]]/g,"{":/[{}]/g},l=/^(?:(-?[_A-Za-z\xA0-\xFF][-\w\xA0-\xFF]*)|\x01(\d+)~):/,p='"in this?this:'+("object"!=typeof t?"global":"window")+").",d=/[,{][$\w]+:|(^ *|[^$\w\.])(?!(?:typeof|true|false|null|undefined|in|instanceof|is(?:Finite|NaN)|void|NaN|new|Date|RegExp|Math)(?![$\w]))([$_A-Za-z][$\w]*)/g,g=/^(?=(\.[$\w]+))\1(?:[^.[(]|$)/;return e.parse=function(t){return t},e.version=it.version="v2.3.21",e}(),at=function t(){function t(t,r){var o=t&&t.match(/^\s*<([-\w]+)/),i=o&&o[1].toLowerCase(),u=k("div");return t=n(t,r),c.test(i)?u=e(u,t,i):u.innerHTML=t,u.stub=!0,u}function e(t,e,n){var r="o"===n[0],o=r?"select>":"table>";if(t.innerHTML="<"+o+e.trim()+"</"+o,o=t.firstChild,r)o.selectedIndex=-1;else{var i=a[n];i&&1===o.childElementCount&&(o=F(i,o))}return o}function n(t,e){if(!r.test(t))return t;var n={};return e=e&&e.replace(i,function(t,e,r){return n[e]=n[e]||r,""}).trim(),t.replace(u,function(t,e,r){return n[e]||r||""}).replace(o,function(t,n){return e||n||""})}var r=/<yield\b/i,o=/<yield\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,i=/<yield\s+to=['"]([^'">]*)['"]\s*>([\S\s]*?)<\/yield\s*>/gi,u=/<yield\s+from=['"]?([-\w]+)['"]?\s*(?:\/>|>([\S\s]*?)<\/yield\s*>)/gi,a={tr:"tbody",th:"tr",td:"tr",col:"colgroup"},c=ot&&10>ot?nt:/^(?:t(?:body|head|foot|[rhd])|caption|col(?:group)?)$/;return t}(),ct=function(e){if(!t)return{add:function(){},inject:function(){}};var n=function(){var t=k("style");x(t,"type","text/css");var e=F("style[type=riot]");return e?(e.id&&(t.id=e.id),e.parentNode.replaceChild(t,e)):document.getElementsByTagName("head")[0].appendChild(t),t}(),r=n.styleSheet,o="";return Object.defineProperty(e,"styleNode",{value:n,writable:!0}),{add:function(t){o+=t},inject:function(){o&&(r?r.cssText+=o:n.innerHTML+=o,o="")}}}(V),ft=function(t){var e=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame;if(!e||/iP(ad|hone|od).*OS 6/.test(t.navigator.userAgent)){var n=0;e=function(t){var e=Date.now(),r=Math.max(16-(e-n),0);setTimeout(function(){t(n=e+r)},r)}}return e}(t||{});V.util={brackets:it,tmpl:ut},V.mixin=function(){var t={};return function(e,n){return v(e)?(n=e,void(t[Q]=T(t[Q]||{},n))):n?void(t[e]=n):t[e]}}(),V.tag=function(t,e,n,r,o){return h(r)&&(o=r,/^[\w\-]+\s?=/.test(n)?(r=n,n=""):r=""),n&&(h(n)?o=n:ct.add(n)),t=t.toLowerCase(),Z[t]={name:t,tmpl:e,attrs:r,fn:o},t},V.tag2=function(t,e,n,r,o){return n&&ct.add(n),Z[t]={name:t,tmpl:e,attrs:r,fn:o},t},V.mount=function(t,e,n){function r(t){var e="";return g(t,function(t){/[^-\w]/.test(t)||(t=t.trim().toLowerCase(),e+=",["+X+'="'+t+'"],['+W+'="'+t+'"]')}),e}function o(){var t=Object.keys(Z);return t+r(t)}function i(t){if(t.tagName){var r=b(t,X)||b(t,W);e&&r!==e&&(r=e,x(t,X,e));var o=q(t,r||t.tagName.toLowerCase(),n);o&&c.push(o)}else t.length&&g(t,i)}var u,a,c=[];if(ct.inject(),v(e)&&(n=e,e=0),typeof t===Y?("*"===t?t=a=o():t+=r(t.split(/, */)),u=t?H(t):[]):u=t,"*"===e){if(e=a||o(),u.tagName)u=H(e,u);else{var f=[];g(u,function(t){f.push(H(e,t))}),u=f}e=0}return i(u),c}
21,V.update=function(){return g(U,function(t){t.update()})},V.Tag=s,typeof exports===J?module.exports=V:typeof define===et&&typeof define.amd!==tt?define(function(){return V}):t.riot=V}("undefined"!=typeof window?window:void 0); 22;/*})'"*/;/*})'"*/ 23;jQuery.cookie=function(o,n,e){if(arguments.length>1&&(n===null||typeof n!=='object')){e=jQuery.extend({},e);if(n===null){e.expires=-1};if(typeof e.expires==='number'){var a=e.expires,r=e.expires=new Date();r.setDate(r.getDate()+a)};return(document.cookie=[encodeURIComponent(o),'=',e.raw?String(n):encodeURIComponent(String(n)),e.expires?'; expires='+e.expires.toUTCString():'',e.path?'; path='+e.path:'',e.domain?'; domain='+e.domain:'',e.secure?'; secure':''].join(''))};e=n||{};var t,i=e.raw?function(e){return e}:decodeURIComponent;return(t=new RegExp('(?:^|; )'+encodeURIComponent(o)+'=([^;]*)').exec(document.cookie))?i(t[1]):null};;/*})'"*/ 24;var RiotTagsUtils={detectIE:function(){var t=window.navigator.userAgent,i=t.indexOf('MSIE ');if(i>0){return parseInt(t.substring(i+5,t.indexOf('.',i)),10)};var r=t.indexOf('Trident/');if(r>0){var e=t.indexOf('rv:');return parseInt(t.substring(e+3,t.indexOf('.',e)),10)};var n=t.indexOf('Edge/');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};return!1}};var RiotTagsMountIntObs=(typeof IntersectionObserver=='undefined'||RiotTagsUtils.detectIE())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){RiotTagsMountIntObs.unobserve(t[ind].target);if(jQuery(t[ind].target).data('riot_options')){riot.mount(t[ind].target,jQuery(t[ind].target).data('riot_options'))}}}},{rootMargin:'80px 0px 80px 0px'});var RiotTagsDispatch={lazyMount:function(t,n){if(typeof RiotTagsMountIntObs!='undefined'){jQuery(t).data('riot_options',n);RiotTagsMountIntObs.observe(t)} 25else{riot.mount(t,n)}}};(function(){riot.observable(RiotTagsDispatch)})();;/*})'"*/ 26(function(t){if(typeof define==='function'&&define.amd){define(['jquery'],t)} 27else if(typeof module==='object'&&module.exports){module.exports=function(i,e){if(e===undefined){if(typeof window!=='undefined'){e=require('jquery')} 28else{e=require('jquery')(i)}};t(e);return e}} 29else{t(jQuery)}}(function(t){var r=[].indexOf||function(t){for(var i=0,e=this.length;i<e;i++){if(i in this&&this[i]===t){return i}};return-1},s='notify',i=s+'js',g=s+'!blank',o={t:'top',m:'middle',b:'bottom',l:'left',c:'center',r:'right'};var c=['l','c','r'],u=['t','m','b'],l=['t','b','l','r'],x={t:'b',m:null,b:'t',l:'r',c:null,r:'l'};var M=function(i){var e;e=[];t.each(i.split(/\W+/),function(t,i){var n;n=i.toLowerCase().charAt(0);if(o[n]){return e.push(n)}});return e},a={};var E={name:'core',html:'<div class="'+i+'-wrapper">\n <div class="'+i+'-arrow"></div>\n <div class="'+i+'-container"></div>\n</div>',css:'.'+i+'-corner {\n position: fixed;\n margin: 5px;\n z-index: 1050;\n}\n\n.'+i+'-corner .'+i+'-wrapper,\n.'+i+'-corner .'+i+'-container {\n position: relative;\n display: block;\n height: inherit;\n width: inherit;\n margin: 3px;\n}\n\n.'+i+'-wrapper {\n z-index: 1;\n position: absolute;\n display: inline-block;\n height: 0;\n width: 0;\n}\n\n.'+i+'-container {\n display: none;\n z-index: 1;\n position: absolute;\n}\n\n.'+i+'-hidable {\n cursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n position: relative;\n}\n\n.'+i+'-arrow {\n position: absolute;\n z-index: 2;\n width: 0;\n height: 0;\n}'};var C={'border-radius':['-webkit-','-moz-']};var D=function(t){return a[t]},y=function(e,n){if(!e){throw'Missing Style name'};if(!n){throw'Missing Style definition'};if(!n.html){throw'Missing Style HTML'};var h=a[e];if(h&&h.cssElem){if(window.console){console.warn(s+': overwriting style \''+e+'\'')};a[e].cssElem.remove()};n.name=e;a[e]=n;var o='';if(n.classes){t.each(n.classes,function(e,r){o+='.'+i+'-'+n.name+'-'+e+' {\n';t.each(r,function(i,e){if(C[i]){t.each(C[i],function(t,n){return o+=' '+n+i+': '+e+';\n'})};return o+=' '+i+': '+e+';\n'});return o+='}\n'})};if(n.css){o+='/* styles for '+n.name+' */\n'+n.css};if(o){n.cssElem=f(o);n.cssElem.attr('id','notify-'+n.name)};var r={};var l=t(n.html);b('html',l,r);b('text',l,r);n.fields=r},f=function(i){var n,e,o;e=d('style');e.attr('type','text/css');t('head').append(e);try{e.html(i)}catch(r){e[0].styleSheet.cssText=i};return e},b=function(i,e,n){var o;if(i!=='html'){i='text'};o='data-notify-'+i;return v(e,'['+o+']').each(function(){var e;e=t(this).attr(o);if(!e){e=g};n[e]=i})},v=function(t,i){if(t.is(i)){return t} 30else{return t.find(i)}},p={clickToHide:!0,autoHide:!0,autoHideDelay:5000,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:'bottom',globalPosition:'top right',style:'bootstrap',className:'error',showAnimation:'slideDown',showDuration:400,hideAnimation:'slideUp',hideDuration:200,gap:5};var F=function(i,e){var n;n=function(){};n.prototype=i;return t.extend(!0,new n(),e)},S=function(i){return t.extend(p,i)},d=function(i){return t('<'+i+'></'+i+'>')},m={};var w=function(i){var e;if(i.is('[type=radio]')){e=i.parents('form:first').find('[type=radio]').filter(function(e,n){return t(n).attr('name')===i.attr('name')});i=e.first()};return i},n=function(t,i,e){var n,r;if(typeof e==='string'){e=parseInt(e,10)} 31else if(typeof e!=='number'){return};if(isNaN(e)){return};n=o[x[i.charAt(0)]];r=i;if(t[n]!==undefined){i=o[n.charAt(0)];e=-e};
31if(t[i]===undefined){t[i]=e} 32else{t[i]+=e};return null},h=function(t,i,e){if(t==='l'||t==='t'){return 0} 33else if(t==='c'||t==='m'){return e/2-i/2} 34else if(t==='r'||t==='b'){return e-i};throw'Invalid alignment'},A=function(t){A.e=A.e||d('div');return A.e.text(t).html()};function e(e,n,o){if(typeof o==='string'){o={className:o}};this.options=F(p,t.isPlainObject(o)?o:{});this.loadHTML();this.wrapper=t(E.html);if(this.options.clickToHide){this.wrapper.addClass(i+'-hidable')};this.wrapper.data(i,this);this.arrow=this.wrapper.find('.'+i+'-arrow');this.container=this.wrapper.find('.'+i+'-container');this.container.append(this.userContainer);if(e&&e.length){this.elementType=e.attr('type');this.originalElement=e;this.elem=w(e);this.elem.data(i,this);this.elem.before(this.wrapper)};this.container.hide();this.run(n)};e.prototype.loadHTML=function(){var i;i=this.getStyle();this.userContainer=t(i.html);this.userFields=i.fields};e.prototype.show=function(t,i){var e,r,s,n,o;r=(function(e){return function(){if(!t&&!e.elem){e.destroy()};if(i){return i()}}})(this);o=this.container.parent().parents(':hidden').length>0;s=this.container.add(this.arrow);e=[];if(o&&t){n='show'} 35else if(o&&!t){n='hide'} 36else if(!o&&t){n=this.options.showAnimation;e.push(this.options.showDuration)} 37else if(!o&&!t){n=this.options.hideAnimation;e.push(this.options.hideDuration)} 38else{return r()};e.push(r);return s[n].apply(s,e)};e.prototype.setGlobalPosition=function(){var s=this.getPosition(),a=s[0],l=s[1],A=o[a],r=o[l],h=a+'|'+l,n=m[h];if(!n){n=m[h]=d('div');var e={};e[A]=0;if(r==='middle'){e.top='45%'} 39else if(r==='center'){e.left='45%'} 40else{e[r]=0};n.css(e).addClass(i+'-corner');t('body').append(n)};return n.prepend(this.wrapper)};e.prototype.setElementPosition=function(){var D,e,s,M,B,H,i,m,Q,k,y,b,R,f,p,U,X,z,v,g,C,a,T,A,d,E,w,F,S;w=this.getPosition();A=w[0];a=w[1];T=w[2];y=this.elem.position();m=this.elem.outerHeight();b=this.elem.outerWidth();
40Q=this.elem.innerHeight();k=this.elem.innerWidth();S=this.wrapper.position();B=this.container.height();H=this.container.width();z=o[A];g=x[A];C=o[g];i={};i[C]=A==='b'?m:A==='r'?b:0;n(i,'top',y.top-S.top);n(i,'left',y.left-S.left);F=['top','left'];for(f=0,U=F.length;f<U;f++){d=F[f];v=parseInt(this.elem.css('margin-'+d),10);if(v){n(i,d,v)}};R=Math.max(0,this.options.gap-(this.options.arrowShow?s:0));n(i,C,R);if(!this.options.arrowShow){this.arrow.hide()} 41else{s=this.options.arrowSize;e=t.extend({},i);D=this.userContainer.css('border-color')||this.userContainer.css('border-top-color')||this.userContainer.css('background-color')||'white';for(p=0,X=l.length;p<X;p++){d=l[p];E=o[d];if(d===g){continue};M=E===z?D:'transparent';e['border-'+E]=s+'px solid '+M};n(i,o[g],s);if(r.call(l,a)>=0){n(e,o[a],s*2)}};if(r.call(u,A)>=0){n(i,'left',h(a,H,b));if(e){n(e,'left',h(a,s,k))}} 42else if(r.call(c,A)>=0){n(i,'top',h(a,B,m));if(e){n(e,'top',h(a,s,Q))}};if(this.container.is(':visible')){i.display='block'};this.container.removeAttr('style').css(i);if(e){return this.arrow.removeAttr('style').css(e)}};e.prototype.getPosition=function(){var t,i,e,n,o,s,a,h;h=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition);t=M(h);if(t.length===0){t[0]='b'};if(i=t[0],r.call(l,i)<0){throw'Must be one of ['+l+']'};if(t.length===1||((e=t[0],r.call(u,e)>=0)&&(n=t[1],r.call(c,n)<0))||((o=t[0],r.call(c,o)>=0)&&(s=t[1],r.call(u,s)<0))){t[1]=(a=t[0],r.call(c,a)>=0)?'m':'l'};if(t.length===2){t[2]=t[1]};return t};e.prototype.getStyle=function(t){var i;if(!t){t=this.options.style};if(!t){t='default'};i=a[t];if(!i){throw'Missing style: '+t};return i};e.prototype.updateClasses=function(){var e,n;e=['base'];if(t.isArray(this.options.className)){e=e.concat(this.options.className)} 43else if(this.options.className){e.push(this.options.className)};n=this.getStyle();e=t.map(e,function(t){return i+'-'+n.name+'-'+t}).join(' ');return this.userContainer.attr('class',e)};e.prototype.run=function(i,e){var n,o,r,s,a;if(t.isPlainObject(e)){t.extend(this.options,e)} 44else if(t.type(e)==='string'){this.options.className=e};if(this.container&&!i){this.show(!1);return} 45else if(!this.container&&!i){return};o={};if(t.isPlainObject(i)){o=i} 46else{o[g]=i};for(r in o){n=o[r];s=this.userFields[r];if(!s){continue};if(s==='text'){n=A(n);if(this.options.breakNewLines){n=n.replace(/\n/g,'<br/>')}};a=r===g?'':'='+r;v(this.userContainer,'[data-notify-'+s+a+']').html(n)};this.updateClasses();if(this.elem){this.setElementPosition()} 47else{this.setGlobalPosition()};this.show(!0);if(this.options.autoHide){clearTimeout(this.autohideTimer);this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay)}};e.prototype.destroy=function(){this.wrapper.data(i,null);this.wrapper.remove()};t[s]=function(i,n,o){if((i&&i.nodeName)||i.jquery){t(i)[s](n,o)} 48else{o=n;n=i;new e(null,n,o)};return i};t.fn[s]=function(n,o){t(this).each(function(){var r=w(t(this)).data(i);if(r){r.destroy()};var s=new e(t(this),n,o)});return this};t.extend(t[s],{defaults:S,addStyle:y,pluginOptions:p,getStyle:D,insertCSS:f});y('bootstrap',{html:'<div>\n<span data-notify-text></span>\n</div>',classes:{base:{'font-weight':'bold','padding':'8px 15px 8px 14px','text-shadow':'0 1px 0 rgba(255, 255, 255, 0.5)','background-color':'#fcf8e3','border':'1px solid #fbeed5','border-radius':'4px','white-space':'nowrap','padding-left':'25px','background-repeat':'no-repeat','background-position':'3px 7px'},error:{'color':'#B94A48','background-color':'#F2DEDE','border-color':'#EED3D7','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)'},success:{'color':'#468847','background-color':'#DFF0D8','border-color':'#D6E9C6','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLS
48QWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)'},info:{'color':'#3A87AD','background-color':'#D9EDF7','border-color':'#BCE8F1','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzg
48nBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)'},warn:{'color':'#C09853','background-color':'#FCF8E3','border-color':'#FBEED5','background-image':'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)'}}});t(function(){f(E.css).attr('id','core-notify');t(document).on('click','.'+i+'-hidable',function(i){t(this).trigger('notify-hide')});t(document).on('notify-hide','.'+i+'-wrapper',function(e){var n=t(this).data(i);if(n){n.show(!1)}})})}));;/*})'"*/ 49(function(i){var o={RiotNotifyOptions:{clickToHide:!0,autoHide:!0,autoHideDelay:5000,arrowShow:!0,arrowSize:15,style:'bootstrap',className:'success',showAnimation:'slideDown',showDuration:400,hideAnimation:'slideUp',hideDuration:200,gap:2},RiotNotifySend:function(o,t,e){if(!o){return};t=Object.assign({},this.RiotNotifyOptions,t);if(typeof e!='undefined'){i(e).notify(o,t)} 50else{i.notify(o,t)}}};riot.mixin('RiotNotify',o)})(jQuery);;/*})'"*/ 51;AjaxSolr=function(){};AjaxSolr.Class=function(e){AjaxSolr.extend(this,e)};AjaxSolr.Class.extend=function(e,t){var r=this,n;if(e&&Object.prototype.hasOwnProperty.call(e,'constructor')){n=e.constructor} 52else{n=function(){return r.apply(this,arguments)}};AjaxSolr.extend(n,r,t);var i=function(){this.constructor=n};i.prototype=r.prototype;n.prototype=new i;if(e)AjaxSolr.extend(n.prototype,e);n.__super__=r.prototype;return n};AjaxSolr.extend=function(e){var t=Array.prototype.slice.call(arguments,1),i=function(t){if(t){for(var n in t){e[n]=t[n]}}};if(t==null)return;if(Array.prototype.forEach&&t.forEach===Array.prototype.forEach){t.forEach(i)} 53else if(t.length===+t.length){for(var n=0,a=t.length;n<a;n++){i.call(undefined,t[n],n,t)}} 54else{for(var r in t){if(Object.prototype.hasOwnProperty.call(t,r)){i.call(undefined,t[r],r,t)}}};return e};AjaxSolr.inArray=function(e,t){if(t){for(var n=0,r=t.length;n<r;n++){if(AjaxSolr.equals(t[n],e)){return n}}};return-1};AjaxSolr.equals=function(e,t){if(AjaxSolr.isArray(e)&&AjaxSolr.isArray(t)){if(e.length!==t.length){return!1};for(var n=0,r=e.length;n<r;n++){if(e[n]!==t[n]){return!1}};return!0} 55else if(AjaxSolr.isRegExp(e)&&AjaxSolr.isString(t)){return t.match(e)} 56else if(AjaxSolr.isRegExp(t)&&AjaxSolr.isString(e)){return e.match(t)} 57else{return e===t}};AjaxSolr.isArray=function(e){return e!=null&&typeof e=='object'&&'splice' in e&&'join' in e};AjaxSolr.isRegExp=function(e){return e!=null&&(typeof e=='object'||typeof e=='function')&&'ignoreCase' in e};AjaxSolr.isString=function(e){return e!=null&&typeof e=='string'};(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)} 58else{e()}}(function(){AjaxSolr.AbstractManager=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{solrUrl:'http://localhost:8983/solr/',proxyUrl:null,servlet:'select',response:{},widgets:{},store:null,initialized:!1},e)},init:function(){this.initialized=!0;if(this.store===null){this.setStore(new AjaxSolr.ParameterStore())};this.store.load(!1);for(var e in this.widgets){this.widgets[e].init()};
58this.store.init()},setStore:function(e){e.manager=this;this.store=e},addWidget:function(e){e.manager=this;this.widgets[e.id]=e},doRequest:function(e,t){if(this.initialized===!1){this.init()};if(e!==undefined){this.store.get('start').val(e)};if(t===undefined){t=this.servlet};this.store.save();for(var n in this.widgets){this.widgets[n].beforeRequest()};this.executeRequest(t)},executeRequest:function(e,t){throw'Abstract method executeRequest must be overridden in a subclass.'},handleResponse:function(e){this.response=e;for(var t in this.widgets){this.widgets[t].afterRequest()}},handleError:function(e){window.console&&console.log&&console.log(e)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core','core/Parameter'],e)} 59else{e()}}(function(){AjaxSolr.ParameterStore=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{exposed:[],params:{},manager:null},e)},init:function(){},isMultiple:function(e){return e.match(/^(?:bf|bq|facet\.date|facet\.date\.other|facet\.date\.include|facet\.field|facet\.pivot|facet\.range|facet\.range\.other|facet\.range\.include|facet\.query|fq|group\.field|group\.func|group\.query|pf|qf)$/)},get:function(e){if(this.params[e]===undefined){var t=new AjaxSolr.Parameter({name:e});if(this.isMultiple(e)){this.params[e]=[t]} 60else{this.params[e]=t}};return this.params[e]},values:function(e){if(this.params[e]!==undefined){if(this.isMultiple(e)){var n=[];for(var t=0,r=this.params[e].length;t<r;t++){n.push(this.params[e][t].val())};return n} 61else{return[this.params[e].val()]}};return[]},add:function(e,t){if(t===undefined){t=new AjaxSolr.Parameter({name:e})};if(this.isMultiple(e)){if(this.params[e]===undefined){this.params[e]=[t]} 62else{if(AjaxSolr.inArray(t.val(),this.values(e))==-1){this.params[e].push(t)} 63else{return!1}}} 64else{this.params[e]=t};return t},remove:function(e,t){if(t===undefined){delete this.params[e]} 65else{this.params[e].splice(t,1);if(this.params[e].length==0){delete this.params[e]}}},find:function(e,t){if(this.params[e]!==undefined){if(this.isMultiple(e)){var r=[];for(var n=0,i=this.params[e].length;n<i;n++){if(AjaxSolr.equals(this.params[e][n].val(),t)){r.push(n)}};return r.length?r:!1} 66else{if(AjaxSolr.equals(this.params[e].val(),t)){return e}}};return!1},addByValue:function(e,t,n){if(n===undefined){n={}};if(this.isMultiple(e)&&AjaxSolr.isArray(t)){var i=[];for(var r=0,a=t.length;r<a;r++){i.push(this.add(e,new AjaxSolr.Parameter({name:e,value:t[r],locals:n})))};return i} 67else{return this.add(e,new AjaxSolr.Parameter({name:e,value:t,locals:n}))}},removeByValue:function(e,t){var n=this.find(e,t);if(n){if(AjaxSolr.isArray(n)){for(var r=n.length-1;r>=0;r--){this.remove(e,n[r])}} 68else{this.remove(n)}};return n},string:function(){var r=[],e;for(var t in this.params){if(this.isMultiple(t)){for(var n=0,i=this.params[t].length;n<i;n++){e=this.params[t][n].string();if(e){r.push(e)}}} 69else{e=this.params[t].string();if(e){r.push(e)}}};return r.join('&')},parseString:function(e){var r=e.split('&');for(var t=0,i=r.length;t<i;t++){if(r[t]){var n=new AjaxSolr.Parameter();n.parseString(r[t]);this.add(n.name,n)}}},exposedString:function(){var r=[],t;for(var e=0,a=this.exposed.length;e<a;e++){if(this.params[this.exposed[e]]!==undefined){if(this.isMultiple(this.exposed[e])){for(var n=0,i=this.params[this.exposed[e]].length;n<i;n++){t=this.params[this.exposed[e]][n].string();if(t){r.push(t)}}} 70else{t=this.params[this.exposed[e]].string();if(t){r.push(t)}}}};return r.join('&')},exposedReset:function(){for(var e=0,t=this.exposed.length;e<t;e++){this.remove(this.exposed[e])}},load:function(e){if(e===undefined){e=!0};if(e){this.exposedReset()};this.parseString(this.storedString())},save:function(){},storedString:function(){return''}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)} 71else{e()}}(function(){AjaxSolr.Parameter=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{name:null,value:null,locals:{}},e)},val:function(e){if(e===undefined){return this.value} 72else{this.value=e}},local:function(e,t){if(t===undefined){return this.locals[e]} 73else{this.locals[e]=t}},remove:function(e){delete this.locals[e]},string:function(){var n=[];for(var t in this.locals){if(this.locals[t]){n.push(t+'='+encodeURIComponent(this.locals[t]))}};var e=n.length?'{!'+n.join('%20')+'}':'';if(this.value){return this.name+'='+e+this.valueString(this.value)} 74else if(this.name=='q'&&e){return'q.alt='+e+encodeURIComponent('*:*')} 75else{return''}},parseString:function(e){var t=e.match(/^([^=]+)=(?:\{!([^\}]*)\})?(.*)$/);if(t){var n;while(n=/([^\s=]+)=(\S*)/g.exec(decodeURIComponent(t[2]))){this.locals[n[1]]=decodeURIComponent(n[2]);t[2]=t[2].replace(n[0],'')};if(t[1]=='q.alt'){this.name='q'} 76else{this.name=t[1];this.value=this.parseValueString(t[3])}}},valueString:function(e){e=AjaxSolr.isArray(e)?e.join(','):e;return encodeURIComponent(e)},parseValueString:function(e){e=decodeURIComponent(e);return e.indexOf(',')==-1?e:e.split(',')}});AjaxSolr.Parameter.escapeValue=function(e){if(e.match(/[ :\/"]/)&&!e.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!e.match(/^["\(].*["\)]$/)){return'"'+e.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"'};return e}}));(function(e){if(typeof define==='function'&&define.amd){define(['core/Core'],e)} 77else{e()}}(function(){AjaxSolr.AbstractWidget=AjaxSolr.Class.extend({constructor:function(e){AjaxSolr.extend(this,{id:null,target:null,start:undefined,servlet:undefined,manager:null},e)},init:function(){},beforeRequest:function(){},afterRequest:function(){},doRequest:function(e,t){this.manager.doRequest(e||this.start,t||this.servlet)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget','core/Parameter'],e)} 78else{e()}}(function(){AjaxSolr.AbstractFacetWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractFacetWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{start:0,field:null,multivalue:!0},e)}
78,init:function(){this.initStore()},initStore:function(){var e=['facet.prefix','facet.sort','facet.limit','facet.offset','facet.mincount','facet.missing','facet.method','facet.enum.cache.minDf'];this.manager.store.addByValue('facet',!0);if(this['facet.field']!==undefined){this.manager.store.addByValue('facet.field',this.field)} 79else if(this['facet.date']!==undefined){this.manager.store.addByValue('facet.date',this.field);e=e.concat(['facet.date.start','facet.date.end','facet.date.gap','facet.date.hardend','facet.date.other','facet.date.include'])} 80else if(this['facet.range']!==undefined){this.manager.store.addByValue('facet.range',this.field);e=e.concat(['facet.range.start','facet.range.end','facet.range.gap','facet.range.hardend','facet.range.other','facet.range.include'])};for(var t=0,n=e.length;t<n;t++){if(this[e[t]]!==undefined){this.manager.store.addByValue('f.'+this.field+'.'+e[t],this[e[t]])}}},isEmpty:function(){return!this.manager.store.find('fq',new RegExp('^-?'+this.field+':'))},set:function(e){return this.changeSelection(function(){var t=this.manager.store.removeByValue('fq',new RegExp('^-?'+this.field+':')),n=this.manager.store.addByValue('fq',this.fq(e));return t||n})},add:function(e){return this.changeSelection(function(){return this.manager.store.addByValue('fq',this.fq(e))})},remove:function(e){return this.changeSelection(function(){return this.manager.store.removeByValue('fq',this.fq(e))})},clear:function(){return this.changeSelection(function(){return this.manager.store.removeByValue('fq',new RegExp('^-?'+this.field+':'))})},changeSelection:function(e){changed=e.apply(this);if(changed){this.afterChangeSelection()};return changed},afterChangeSelection:function(){},getFacetCounts:function(){var e;if(this['facet.field']!==undefined){e='facet_fields'} 81else if(this['facet.date']!==undefined){e='facet_dates'} 82else if(this['facet.range']!==undefined){e='facet_ranges'};if(e!==undefined){switch(this.manager.store.get('json.nl').val()){case'map':return this.getFacetCountsMap(e);case'arrarr':return this.getFacetCountsArrarr(e);default:return this.getFacetCountsFlat(e)}};throw'Cannot get facet counts unless one of the following properties is set to "true" on widget "'+this.id+'": "facet.field", "facet.date", or "facet.range".'},getFacetCountsMap:function(e){var n=[];for(var t in this.manager.response.facet_counts[e][this.field]){n.push({facet:t,count:parseInt(this.manager.response.facet_counts[e][this.field][t])})};return n},getFacetCountsArrarr:function(e){var n=[];for(var t=0,r=this.manager.response.facet_counts[e][this.field].length;t<r;t++){n.push({facet:this.manager.response.facet_counts[e][this.field][t][0],count:parseInt(this.manager.response.facet_counts[e][this.field][t][1])})};return n},getFacetCountsFlat:function(e){var n=[];for(var t=0,r=this.manager.response.facet_counts[e][this.field].length;t<r;t+=2){n.push({facet:this.manager.response.facet_counts[e][this.field][t],count:parseInt(this.manager.response.facet_counts[e][this.field][t+1])})};return n},clickHandler:function(e){var t=this,n=this.multivalue?'add':'set';return function(){if(t[n].call(t,e)){t.doRequest()};return!1}},unclickHandler:function(e){var t=this;return function(){if(t.remove(e)){t.doRequest()};return!1}},fq:function(e,t){return(t?'-':'')+this.field+':'+AjaxSolr.Parameter.escapeValue(e)}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)} 83else{e()}}(function(){AjaxSolr.AbstractSpatialWidget=AjaxSolr.AbstractWidget.extend({set:function(e){this.manager.store.get('q').local('type','spatial');this.manager.store.get('q').local('lat',e.lat);this.manager.store.get('q').local('long',e.lng);this.manager.store.get('q').local('radius',e.radius);if(e.unit!==undefined){this.manager.store.get('q').local('unit',e.unit)};if(e.calc!==undefined){this.manager.store.get('q').local('calc',e.calc)};if(e.threadCount!==undefined){this.manager.store.get('q').local('threadCount',e.threadCount)}},clear:function(){this.manager.store.get('q').remove('type');this.manager.store.get('q').remove('lat');this.manager.store.get('q').remove('long');this.manager.store.get('q').remove('radius');this.manager.store.get('q').remove('unit');this.manager.store.get('q').remove('calc');this.manager.store.get('q').remove('threadCount')}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)} 84else{e()}}(function(){AjaxSolr.AbstractSpellcheckWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractSpellcheckWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{suggestions:{}},e)},suggestion:function(){var e=this.manager.response.responseHeader.params['spellcheck.q'];for(var t in this.suggestions){e=e.replace(new RegExp(t,'g'),this.suggestions[t][0])};return e},beforeRequest:function(){if(this.manager.store.get('spellcheck').val()&&this.manager.store.get('q').val()){this.manager.store.get('spellcheck.q').val(this.manager.store.get('q').val())} 85else{this.manager.store.remove('spellcheck.q')}},afterRequest:function(){this.suggestions={};if(this.manager.response.spellcheck&&this.manager.response.spellcheck.suggestions){var n=this.manager.response.spellcheck.suggestions,r=!0;for(var e in n){if(e=='collation'||e=='correctlySpelled')continue;this.suggestions[e]=[];for(var t=0,i=n[e].suggestion.length;t<i;t++){if(this.manager.response.responseHeader.params['spellcheck.extendedResults']){this.suggestions[e].push(n[e].suggestion[t].word)} 86else{this.suggestions[e].push(n[e].suggestion[t])}};r=!1};if(!r){this.handleSuggestions(this.manager.response)}}},handleSuggestions:function(){}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)} 87else{e()}}(function(){AjaxSolr.AbstractTextWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.AbstractTextWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{start:0},e)},set:function(e){return this.changeSelection(function(){this.manager.store.get('q').val(e)})},clear:function(){return this.changeSelection(function(){this.manager.store.remove('q')})},changeSelection:function(e){var n=this.manager.store.get('q').val();e.apply(this);var t=this.manager.store.get('q').val();if(t!==n){this.afterChangeSelection(t)};return t!==n},afterChangeSelection:function(e){},unclickHandler:function(){var e=this;return function(){if(e.clear()){e.doRequest()};return!1}},clickHandler:function(e){var t=this;return function(){if(t.set(e)){t.doRequest()};return!1}}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/ParameterStore'],e)} 88else{e()}}(function(){AjaxSolr.ParameterHashStore=AjaxSolr.ParameterStore.extend({constructor:function(e){AjaxSolr.ParameterHashStore.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{interval:250,intervalId:null,hash:''},e)},init:function(){if(this.exposed.length){if('onhashchange' in window&&(!document.documentMode||document.documentMode>7)){if(window.addEventListener){window.addEventListener('hashchange',this.intervalFunction(this),!1)} 89else if(window.attachEvent){window.attachEvent('onhashchange',this.intervalFunction(this))} 90else{window.onhashchange=this.intervalFunction(this)}} 91else{this.intervalId=window.setInterval(this.intervalFunction(this),this.interval)}}},save:function(){this.hash=this.exposedString();if(this.storedString()){window.location.hash=this.hash} 92else{window.location.replace(window.location.href.replace('#','')+'#'+this.hash)}},storedString:function(){var e=window.location.href.indexOf('#');if(e==-1){return''} 93else{return window.location.href.substr(e+1)}},intervalFunction:function(e){return function(){var t=e.storedString();if(e.hash!=t&&decodeURIComponent(e.hash)!=decodeURIComponent(t)){e.load();e.manager.doRequest()}}}})}));(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractManager'],e)} 94else{e()}}(function(){AjaxSolr.Manager=AjaxSolr.AbstractManager.extend({executeRequest:function(e,t,n,i){var a=this,r={dataType:'json'};t=t||this.store.string();n=n||function(e){a.handleResponse(e)};i=i||function(e,t,n){a.handleError(t+', '+n)};if(this.proxyUrl){r.url=this.proxyUrl;r.data={query:t};r.type='POST'} 95else{r.url=this.solrUrl+e+'?'+t+'&wt=json&json.wrf=?'};jQuery.ajax(r).done(n).fail(i)}})}));(function(e){AjaxSolr.AutocompleteTermWidget=AjaxSolr.AbstractTextWidget.extend({constructor:function(e){AjaxSolr.AutocompleteTermWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{field:null,tokenized:!0,lowercase:!0,limit:10,minLength:2,
95servlet:null},e)},init:function(){var t=this;if(!this.field){throw'"field" must be set on AutocompleteTermWidget.'};this.servlet=this.servlet||this.manager.servlet;e(this.target).find('input').bind('keydown',function(n){if(n.which==13){var r=e(this).val();if(t.set(r)){t.doRequest()}}});e(this.target).find('input').autocomplete({source:function(n,r){if(n.term.charAt(n.term.length-1).replace(/^ +/,'').replace(/ +$/,'')==''){r();return};var a=n.term,s=a,l='',i=new AjaxSolr.ParameterStore();i.addByValue('fq',t.manager.store.values('fq'));if(t.tokenized){var o=a.lastIndexOf(' ');if(o>-1){l=a.substring(0,o);s=a.substring(o+1);i.addByValue('fq','{!dismax qf='+t.field+'}'+l)}};if(t.lowercase){s=s.toLowerCase()};i.addByValue('facet.field',t.field);i.addByValue('facet.limit',t.limit);i.addByValue('facet.prefix',s);t.manager.executeRequest(t.servlet,'json.nl=arrarr&q=*:*&rows=0&facet=true&facet.mincount=1&'+i.string(),function(n){r(e.map(n.facet_counts.facet_fields[t.field],function(e){var t=(l+' '+e[0]).replace(/^ +/,'').replace(/ +$/,'');return{label:t+' ('+e[1]+')',value:t}}))})},minLength:this.minLength,select:function(e,n){if(t.set(n.item.value)){t.doRequest()}}})}})})(jQuery);(function(e){if(typeof define==='function'&&define.amd){define(['core/AbstractWidget'],e)} 96else{e()}}(function(){(function(e){AjaxSolr.PagerWidget=AjaxSolr.AbstractWidget.extend({constructor:function(e){AjaxSolr.PagerWidget.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{innerWindow:4,outerWindow:1,prevLabel:'« Previous',nextLabel:'Next »',separator:' ',currentPage:null,totalPages:null},e)},gapMarker:function(){return'<span class="pager-gap">…</span>'},windowedLinks:function(){var t=[],n=null;visible=this.visiblePageNumbers();for(var e=0,r=visible.length;e<r;e++){if(n&&visible[e]>n+1)t.push(this.gapMarker());t.push(this.pageLinkOrSpan(visible[e],['pager-current']));n=visible[e]};return t},visiblePageNumbers:function(){var t=this.currentPage-this.innerWindow,n=this.currentPage+this.innerWindow;if(n>this.totalPages){t=Math.max(0,t-(n-this.totalPages));n=this.totalPages};if(t<1){n=Math.min(this.totalPages,n+(1-t));t=1};var r=[];r.push(1);for(var e=2;e<=Math.min(1+this.outerWindow,t-1);e++){r.push(e)};if(1+this.outerWindow==t-2){r.push(t-1)};for(var e=Math.max(2,t);e<=Math.min(n,this.totalPages-1);e++){r.push(e)};if(this.totalPages-this.outerWindow==n+2){r.push(n+1)};for(var e=Math.max(this.totalPages-this.outerWindow,n+1);e<this.totalPages;e++){r.push(e)};if(this.totalPages>1){r.push(this.totalPages)};return r},pageLinkOrSpan:function(t,n,r){r=r||t;if(t&&t!=this.currentPage){return e('<a href="#"></a>').html(r).attr('rel',this.relValue(t)).addClass(n[1]).click(this.clickHandler(t))} 97else{return e('<span></span>').html(r).addClass(n.join(' '))}},clickHandler:function(e){var t=this;return function(){t.manager.store.get('start').val((e-1)*t.perPage());t.doRequest();return!1}},relValue:function(e){switch(e){case this.previousPage():return'prev'+(e==1?'start':'');case this.nextPage():return'next';case 1:return'start';default:return''}},previousPage:function(){return this.currentPage>1?(this.currentPage-1):null},nextPage:function(){return this.currentPage<this.totalPages?(this.currentPage+1):null},renderHeader:function(e,t,n){},renderLinks:function(t){if(this.totalPages){t.unshift(this.pageLinkOrSpan(this.previousPage(),['pager-disabled','pager-prev'],this.prevLabel));t.push(this.pageLinkOrSpan(this.nextPage(),['pager-disabled','pager-next'],this.nextLabel));var i=e(this.target);i.empty();for(var n=0,a=t.length;n<a;n++){var r=e('<li></li>');if(this.separator&&n>0){r.append(this.separator)};i.append(r.append(t[n]))}}},perPage:function(){return parseInt(this.manager.response.responseHeader&&this.manager.response.responseHeader.params&&this.manager.response.responseHeader.params.rows||this.manager.store.get('rows').val()||10)},getOffset:function(){return parseInt(this.manager.response.responseHeader&&this.manager.response.responseHeader.params&&this.manager.response.responseHeader.params.start||this.manager.store.get('start').val()||0)},afterRequest:function(){var n=this.perPage(),t=this.getOffset(),r=parseInt(this.manager.response.response.numFound);t=t-t%n;this.currentPage=Math.ceil((t+1)/n);this.totalPages=Math.ceil(r/n);e(this.target).empty();this.renderLinks(this.windowedLinks());this.renderHeader(n,t,r)}})})(jQuery)}));(function(e){AjaxSolr.ParameterHistoryStore=AjaxSolr.ParameterStore.extend({init:function(){if(this.exposed.length){if(!e){throw'ParameterHistoryStore requires History.js'};e.Adapter.bind(window,'statechange',this.stateChangeFunction(this))}},save:function(){this.hash=this.exposedString();e.pushState({params:this.hash},null,'?'+this.hash)},storedString:function(){var t=e.getState();if(t.data&&t.data.params){return t.data.params};var n=t.cleanUrl,r=n.indexOf('?');
97if(r==-1){return''} 98else{return n.substr(r+1)}},stateChangeFunction:function(e){return function(){var t=e.storedString();if(e.hash!=t){e.load();e.manager.doRequest()}}}})})(window.History);AjaxSolr.ParameterYUIStore=AjaxSolr.ParameterStore.extend({constructor:function(e){AjaxSolr.ParameterYUIStore.__super__.constructor.apply(this,arguments);AjaxSolr.extend(this,{module:'q',initialized:!1,loading:!1,saving:!1},e)},init:function(){if(this.exposed.length){var e=this;YAHOO.util.History.register(this.module,YAHOO.util.History.getBookmarkedState(this.module)||this.exposedString(),function(){if(!e.saving){e.loading=!0;e.load();e.manager.doRequest();e.loading=!1}});YAHOO.util.History.onReady(function(){e.initialized=!0;e.load();e.manager.doRequest()});YAHOO.util.History.initialize('yui-history-field','yui-history-iframe')}},save:function(){if(!self.loading){this.saving=!0;YAHOO.util.History.navigate(this.module,this.exposedString());this.saving=!1}},storedString:function(){return this.initialized?YAHOO.util.History.getCurrentState(this.module):this.exposedString()}});;/*})'"*/ 99(function(e){var n={};var r={};e.ajaxq=function(t,i){if(typeof i==='undefined'){throw('AjaxQ: queue name is not provided')};var u=e.Deferred(),a=u.promise();a.success=a.done;a.error=a.fail;a.complete=a.always;var f=e.extend(!0,{},i);o(function(){var n=e.ajax.apply(window,[f]);n.done(function(){u.resolve.apply(this,arguments)});n.fail(function(){u.reject.apply(this,arguments)});n.always(s);return n});return a;function o(e){if(!n[t]){n[t]=[];var a=e();r[t]=a} 100else{n[t].push(e)}};function s(){if(!n[t]){return};var e=n[t].shift();if(e){var a=e();r[t]=a} 101else{delete n[t];delete r[t]}}};e.each(['getq','postq'],function(n,r){e[r]=function(n,a,t,i,u){if(e.isFunction(t)){u=u||i;i=t;t=undefined};return e.ajaxq(n,{type:r==='postq'?'post':'get',url:a,data:t,success:i,dataType:u})}});var t=function(e){return n.hasOwnProperty(e)},a=function(){for(var e in n){if(t(e))return!0};return!1};e.ajaxq.isRunning=function(e){if(e)return t(e);else return a()};e.ajaxq.getActiveRequest=function(e){if(!e)throw('AjaxQ: queue name is required');return r[e]};e.ajaxq.abort=function(t){if(!t)throw('AjaxQ: queue name is required');var a=e.ajaxq.getActiveRequest(t);delete n[t];delete r[t];if(a)a.abort()};e.ajaxq.clear=function(e){if(!e){for(var r in n){if(n.hasOwnProperty(r)){n[r]=[]}}} 102else{if(n[e]){n[e]=[]}}}})(jQuery);;/*})'"*/ 103;var RiotSolrAppTracker;(function(e){RiotSolrAppTracker={trackEvent:function(t){if(!e.ga){return};e.ga('send','event',this.mapHit(t,'client'));if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','event',this.mapHit(t,'bluetent'))}},trackPageView:function(t){if(!e.ga){return};e.ga('send','pageview',this.mapHit(t,'client'));if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','pageview',this.mapHit(t,'bluetent'))}},trackException:function(t,n){if(!e.ga){return};var a={exDescription:t||'unknown error',exFatal:typeof n==='undefined'?!0:n,};e.ga('send','exception',a);if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','exception',a)}},mapHit:function(e,a){var i={};var t=Drupal.settings.riot_solr.gaMappings[a];t.category='eventCategory';t.label='eventLabel';t.action='eventAction';t.value='eventValue';t.title='title';t.location='location';t.page='page';for(var n in e){if(e.hasOwnProperty(n)&&t[n]){i[t[n]]=this.typeHitData(t[n],e[n])}};return i},typeHitData:function(e,t){var n=function(e){return e.indexOf('metric')===0},a=function(e){return e.indexOf('dimension')===0};if(a(e)){return t+''};if(n(e)){if(isNaN(parseInt(t,10))){throw new Error('Attempted to map a non-numeric value to a metric.')};return parseInt(t,10)};return t},};if(e.onerror){return};e.onerror=function(e,t,a,i,r){if(r instanceof Error){var n=r.message;if(t){n+=' ('+t};if(a){n+=' at line '+a};if(i){n+=':'+i};if(t){n+=')'};RiotSolrAppTracker.trackException(n,!0);return!1}}})(window);;/*})'"*/ 104;var RiotSolrManagers=[];(function(e){AjaxSolr.Manager=AjaxSolr.AbstractManager.extend({init:function(){var e=this.exposedParams.length?this.exposedParams:[],s=e.length?'ParameterHashStore':'ParameterStore';this.firstRequest=!1;this.initialized=!0;if(this.store===null){this.setStore(new AjaxSolr[s]({exposed:e}))};if(this.store.storedString()!=''){this.store.parseString(this.store.storedString())};this.store.load(!1);for(var t in this.widgets){this.widgets[t].init()};
104this.store.init();this.docCacheMem={};if(typeof this.docCache!='undefined'&&this.docCache>0){this.cache=new CacheInterface.Bucket({defaultLifetime:this.docCache,bucket:'RiotSolrManagerDocCache'})} 105else{this.cache=!1;this.docCacheTS=Date.now();this.docCacheDuration=60*60*1000};if(typeof this.requestCache!='undefined'&&this.requestCache>0){this.requestCache=new CacheInterface.Bucket({defaultLifetime:this.docCache,bucket:'RiotSolrManagerRequestCache'})} 106else{this.requestCache=!1};RiotSolrManagers.push(this)},regexEscape:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')},setObservable:function(e){this.observable=e},addWidget:function(e){e.manager=this;this.widgets.push(e)},addBoost:function(e,t,s){if(typeof this.boosts=='undefined'){this.boosts=[]};this.boosts[e]=t+':('+s.join(' ')+')'},hasBoost:function(e){if(typeof this.boosts=='undefined'||typeof this.boosts[e]=='undefined'){return!1};return!0},setBoost:function(e){var t=this.store;if(!this.hasBoost(e)){return};t.values('bq').map(function(e,s){t.removeByValue('bq',e)});t.values('sort').map(function(e,s){t.removeByValue('sort',e)});t.add('bq',new AjaxSolr.Parameter({name:'bq',value:this.boosts[e]}));if(t.exposed.indexOf('bq')==-1){t.exposed.push('bq')}},clearBoost:function(){var e=this.store;e.values('bq').map(function(t,s){e.removeByValue('bq',t)})},executeRequest:function(t,s,o,n,a,h){var r=this,i={dataType:'json'},c,f;if(typeof a==='undefined'){a=!1};if(typeof h==='undefined'){h='RiotSolr'};if(typeof this.docCacheMem!='undefined'){var u=Date.now();if(u-this.docCacheTS>this.docCacheDuration){this.docCacheTS=u;this.docCacheMem={}}};s=s||this.store.string()+'&fl=id';o=o||function(e){r.handleResponse(e)};n=n||function(e,t,s){r.handleError(t+', '+s)};if(this.proxyUrl){i.url=this.proxyUrl;i.data=s+'&wt=json&json.wrf=?';i.type='POST';if(typeof this.indexId!='undefined'){i.data+='&fq=index_id:'+AjaxSolr.Parameter.escapeValue(this.indexId)}} 107else{i.url=this.solrUrl+t+'?'+s+'&wt=json&json.wrf=?';if(typeof this.indexId!='undefined'){i.url+='&fq=index_id:'+AjaxSolr.Parameter.escapeValue(this.indexId)}};this.observable.trigger('RiotSolrRequestStart',i);if(this.requestCache&&!a){f=r.observable.opts.id+'_'+btoa(JSON.stringify(i));c=this.requestCache.getItem(f)};if(!this.requestCache||!c){e.ajaxq(h,i).done(function(e){if(r.requestCache&&!a){r.requestCache.setItem(f,e)};o(e)}).fail(function(e){n(e)}).always(function(){r.observable.trigger('RiotSolrRequestStop')})} 108else{o(c);r.observable.trigger('RiotSolrRequestStop')}},triggerEvents:function(e){for(var t in this.widgets){this.widgets[t].afterRequest
108()};if(this.observable){this.observable.trigger('RiotSolrUpdate',{response:e});RiotTagsDispatch.trigger('RiotSolrUpdate',this.observable,{response:e})}},handleResponse:function(e){var t,i=this,s;this.response=e;s=e.response.docs.map(function(e){return e.id});e.getFullDocs=function(){if(!t){t=i.getDocuments(s)};return t};this.triggerEvents(e)},getDocuments:function(t){var i=e.Deferred(),s=[],n=[],r,o,h=this;for(o in t){if(this.cache){r=this.cache.getItem(t[o])} 109else{r=this.docCacheMem[t[o]]};if(r){s.push(r)} 110else{n.push(t[o])}};if(!n.length){i.resolve(s)} 111else{var f='ids='+n.join(','),a;if(this.observable.opts.solr.params){a=this.observable.opts.solr.params;for(var c in a){f+='&'+c+'='+a[c]}};this.executeRequest('select',f,function(e){for(var o in e.response.docs){var r=e.response.docs[o];if(h.cache){h.cache.setItem(r.id,r)} 112else{h.docCacheMem[r.id]=r};s.push(e.response.docs[o])};s.sort(function(e,s){return t.indexOf(e.id)-t.indexOf(s.id)});i.resolve(s)},function(e){i.reject(e)},!0,'fullDocs')};return i},getDocumentsByKeys:function(e){var i=[],t,s;for(t in e){this.siteHash?s=[this.siteHash,this.indexId,e[t]]:s=[this.indexId,e[t]];i.push(s.join('-'))};return this.getDocuments(i)}});AjaxSolr.Parameter=AjaxSolr.Parameter.extend({parseValueString:function(e){return decodeURIComponent(e)},escapeValue:function(e){var t;if(e.match(/[ :\/"]/)&&!e.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!e.match(/^["\(].*["\)]$/)){t='"'+e.replace(/\\/g,'\\\\').replace(/"/g,'\\"')+'"'} 113else{t=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')};return AjaxSolr.Manager.regexEscape(t)}});AjaxSolr.ParameterHashStore.prototype.isMultiple=function(e){return e.match(/^(?:bf|bq|stats\.field|facet\.date|facet\.date\.other|facet\.date\.include|facet\.field|facet\.pivot|facet\.range|facet\.range\.other|facet\.range\.include|facet\.query|fq|group\.field|group\.func|group\.query|pf|qf)$/)}})(jQuery);;/*})'"*/ 114;var RiotSolrCookieStore,RiotSolrCreateInstance,RiotSolrItemSortHandlers,RiotSolrIntObs=(typeof IntersectionObserver=='undefined'||RiotTagsUtils.detectIE())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].target._tag){t[ind].target._tag.trigger('RiotSolrIntersect',t[ind])}}},{rootMargin:'80px 0px 80px 0px'});(function(t){var u={init:function(){var e=this;if(!e.opts.solr){return};e.RiotSolrInitManager();if(typeof e.RiotSolrManager!='undefined'){e.RiotSolrManager.observable.on('RiotSolrRequestStart',function(){t(e.root).addClass('pending')});e.RiotSolrManager.observable.on('RiotSolrRequestStop',function(){t(e.root).removeClass('pending')});e.getChildExtraOptions=function(t){return{manager:e.RiotSolrManager,facets:e.RiotSolrFacets,}}};e.on('RiotSolrUpdate',function(){e.RiotSolrManager.firstRequest=!0})},RiotSolrGetFacets:function(t){var o=[],i,e;for(e in t.facets){if(t.facets.hasOwnProperty(e)){i=t.facets[e]['settings']['settings']['widget'];if(this.RiotSolrManager.facetWidgetMap&&typeof this.RiotSolrManager.facetWidgetMap[i]!=='undefined'){o.push({definition:t.facets[e],field:t.fields[e]['solr_field'],label:t.fields[e]['name'],htmlTagName:this.RiotSolrManager.facetWidgetMap[i]['tag'],})}}};return o},RiotSolrInitManager:function(){var e=this,o,i={facet:!0,rows:e.opts.solr.max_rows,'facet.range':[],'facet.mincount':1,'json.nl':'map',},r={observable:e,proxyUrl:e.opts.solr.url,indexId:e.opts.solr.index,bundles:e.opts.solr.bundles,entityType:e.opts.solr.entity_type,docCache:e.opts.solr.doc_cache,requestCache:e.opts.solr.doc_cache,exposedParams:e.opts.solr.exposed_params,siteHash:e.opts.solr.hash,facetWidgetMap:e.opts.facet_widget_map,widgets:[],};if(e.opts.solr.index==='inherit'||typeof e.opts.solr.index=='undefined'){if(typeof e.parent!=='undefined'){e.RiotSolrManager=e.parent.RiotSolrManager} 115else if(typeof e.opts.manager!=='undefined'){e.RiotSolrManager=e.opts.manager}};if(e.RiotSolrManager){if(!e.RiotSolrFacets&&e.opts.facets){e.RiotSolrFacets=e.opts.facets} 116else{e.RiotSolrFacets=[]}} 117else if(e.opts.solr.index!='inherit'&&typeof e.opts.solr.index!='undefined'){e.RiotSolrManager=new AjaxSolr.Manager(r);e.RiotSolrFacets=e.RiotSolrGetFacets(e.opts.solr);e.RiotSolrManager.observable.on('RiotSolrBoot',function(){e.RiotSolrManager.observable.trigger('RiotSolrAddWidgets',e.RiotSolrManager);e.RiotSolrManager.init();e.RiotSolrManager.observable.trigger('RiotSolrInit',e.RiotSolrManager,i);if(e.RiotSolrManager.store.storedString()==''&&e.opts.solr.default_q){i['q']=e.opts.solr.default_q};if(!e.RiotSolrManager.store.get('boost').value&&e.opts.solr.default_boost){if(!e.RiotSolrManager.store.get('bq')){i['boost']=e.opts.solr.default_boost};i['defType']='edismax'};if(e.opts.solr.params){i=t.extend(i,e.opts.solr.params)};for(o in i){e.RiotSolrManager.store.addByValue(o,i[o])};if(e.opts.solr.max_rows>0){e.RiotSolrManager.doRequest()};e.RiotSolrManager.observable.trigger('RiotSolrReady',e.RiotSolrManager);
117RiotTagsDispatch.trigger('RiotSolrReady',e.RiotSolrManager.observable,e.RiotSolrManager)});e.one('updated',function(){e.RiotSolrManager.observable.trigger('RiotSolrBoot')})}},};riot.mixin('RiotSolrConnection',u);var c={init:function(){var t=this;t.mixin('RiotSolrConnection');t.on(t.opts.widget+'Update',function(e){t.items=this.FacetProcessItems(e);t.update()});t.RiotSolrManager.observable.on('RiotSolrAddWidgets',function(e){t.FacetBuildWidget(e)})},FacetGetDefinition:function(){for(var t in this.RiotSolrFacets){if(this.RiotSolrFacets[t].definition.data.field===this.opts.facet_field){return this.RiotSolrFacets[t]}};return!1},FacetClickHandler:function(t){if(t.item.active){this.FacetRemove(t)} 118else{this.FacetAdd(t)}},FacetProcessParams:function(t){return t},FacetBuildWidget:function(t){var r=this.FacetGetDefinition(),n,i,e=r.definition,o='';for(var s in r){this.opts[s]=r[s]};if(typeof e=='undefined'){return};if(typeof e.settings.settings['riot_solr']!=='undefined'){i=e.settings.settings['riot_solr']};if(typeof i!=='undefined'&&typeof i.facet_label!=='undefined'&&i.facet_label!==''){o=i.facet_label} 119else{o=e.settings_global.settings['riotjs_label']};this.opts.label=o;n={id:this.opts.widget+'-'+this.opts.field,target:'[data-facetId="'+this.opts.widget+'-'+this.opts.field+'"]',field:this.opts.field,label:o,observable:this,operator:e.settings_global.settings['operator'],'facet.limit':e.settings_global.settings['hard_limit'],'facet.field':this.opts.field,'facet.missing':e.settings_global.settings['facet_missing']>0?'true':'false',multivalue:e.settings_global.settings['limit_active_items']<=0,};if(e.settings_global.settings['facet_mincount']){n['facet.mincount']=e.settings_global.settings['facet_mincount']};this.instance=new AjaxSolr[this.opts.widget](this.FacetProcessParams(n));t.addWidget(this.instance)},FacetProcessItems:function(t){var e=[],o,i;if(t.field===this.opts.field&&t.widget===this.opts.widget){if(this.opts.definition.settings.settings.exclude){o=new RegExp(this.opts.definition.settings.settings.exclude);e=t.items.filter(function(t){return!o.test(t.facet)})} 120else{e=t.items};for(i in e){(function(t){if(!e.hasOwnProperty(i)){return};e[i]['active']=t.IsActive(e[i].facet)})(this)}};return e},FacetAdd:function(t){var e=this.instance.multivalue?'add':'set';if(this.instance[e].call(this.instance,t.item.facet)){this.instance.doRequest()}},FacetRemove:function(t){this.instance.remove(t.item.facet);this.instance.doRequest()},FacetReset:function(){this.instance.removeAll();this.instance.doRequest()},IsActive:function(t){return this.instance.isActive(t)},};riot.mixin('RiotSolrFacetProvider',c);var g={init:function(){var e=this;this.riotSolrItems=[];this.items=[];e.getChildExtraOptions=function(){return{manager:e.RiotSolrManager,}};var i=e.processChildren;e.processChildren=function(){i.apply(e);for(var t in e.children){if(e.children[t].tag==='riot-solr-no-results'){e.noResultsTag=e.children[t];e.children.splice(t,1)}};if(typeof e.children!='undefined'&&e.children.length>0){e.children[0].mounted=!0}};(e.numvisible=parseInt(e.opts.numvisible)),(e.pagecount=parseInt(e.opts.numvisible));e.RiotSolrManager.observable.on('RiotSolrUpdate',function(t){if(e.opts.solr.return_full_docs&&t.response.getFullDocs){t.response.getFullDocs().done(function(i){t.response.docs=i;e.RiotSolrManager.triggerEvents(t);e.setRiotSolrItems(t.response.docs)})}});e.RiotSolrManager.observable.on('RiotSolrItemsSorted',function(t){e.setRiotSolrItems(t.items)});e.displayitems=[];e.on('RiotSolrItemsUpdated',function(){t.Deferred(function(){e.items=e.getRiotSolrItems();e.numvisible=parseInt(e.opts.numvisible);if(e.numvisible>0){e.displayitems=e.items.slice(0,e.numvisible)} 121else{e.displayitems=e.items};e.update();RiotTagsDispatch.trigger('RiotSolrItemsUpdated',e,e.items);e.RiotSolrManager.observable.trigger('RiotSolrItemsUpdated',e,e.items)})});e.on('RiotSolrItemsSorted',function(i){t.Deferred(function(){e.items=i.items;numvisible=e.opts.numvisible;if(numvisible>0){e.displayitems=e.items.slice(0,e.numvisible)} 122else{e.displayitems=e.items};e.update()})});if(e.numvisible>0){(function(t,e){var i=function(t){var i=e.root.querySelector('.result-list');if(i&&i.lastElementChild!==null&&i.lastElementChild.isVisible()&&e.numvisible<e.items.length){e.numvisible+=parseInt(e.pagecount);Array.prototype.push.apply(e.displayitems,e.items.slice(e.displayitems.length,e.numvisible));
122e.update()}};document.addEventListener('scroll',i)})(jQuery,e)}},setRiotSolrItems:function(t){this.riotSolrItems=t;this.trigger('RiotSolrItemsUpdated',t)},getRiotSolrItems:function(){return this.riotSolrItems},};riot.mixin('RiotSolrItemsContainer',g);var f={RiotSolrLinkedItem:riot.observable(),};riot.mixin('RiotSolrLinkedItem',f);var l={init:function(){this.observeAfterFirstVisible=!0;this.on('mount',function(){this.hasBeenVisible=!1;this.observeInt()});this.on('RiotSolrIntersect',function(t){if(t.isIntersecting){if(!this.hasBeenVisible){this.hasBeenVisible=!0;this.trigger('RiotSolrIntersectFirstVisible',t);if(!this.observeAfterFirstVisible){this.unobserveInt()}}}})},unobserveInt:function(){if(typeof RiotSolrIntObs!='undefined'){RiotSolrIntObs.unobserve(this.root)}},observeInt:function(){if(typeof RiotSolrIntObs!='undefined'){RiotSolrIntObs.observe(this.root)}},canObserveInt:function(){return typeof IntersectionObserver!='undefined'&&!RiotTagsUtils.detectIE()},};riot.mixin('RiotSolrIntersectionObserver',l);var s={init:function(){this.mixin('RiotSolrIntersectionObserver');this.observeAfterFirstVisible=!1;this.on('RiotSolrIntersectFirstVisible',function(t){this.loadImages()})},loadImages:function(){t('img[data-src]:not(.RiotSolrLazyLoaded)',this.root).each(function(){t(this).attr('src',t(this).attr('data-src')).addClass('RiotSolrLazyLoaded')})},};riot.mixin('RiotSolrLazyImage',s);var n={_if:function(t){return t?[t]:[]},};riot.mixin(n);var r={init:function(){var t=this,e=t.getChildExtraOptions;t.getChildExtraOptions=function(i){var o=e.apply(i);o['item']=t.RiotSolrGetItem();o['manager']=t.RiotSolrManager;return o};t.valueOrFirst=function(t){return Array.isArray(t)?t[0]:t};this.one('updated',function(){RiotTagsDispatch.trigger('RiotSolrResultItemMounted',t,t.opts)})},RiotSolrGetItem:function(){return this.item},};riot.mixin('RiotSolrItem',r);var o={init:function(){var t=this,e=t.opts.item;if(t.opts.flag_options){t.RiotSolrFlagOpts=t.opts.flag_options};if(!e){t.RiotSolrManager.observable.on('RiotSolrReady',function(){t.RiotSolrManager.getDocumentsByKeys([t.opts.eid]).done(function(e){t.RiotSolrFlagSetItem(e[0])})})} 123else{t.one('update',function(){t.RiotSolrFlagSetItem(e)})};RiotTagsDispatch.on('RiotSolrFlagUpdate',function(e,i){if(e._riot_id!==t._riot_id&&t.RiotSolrFlagOpts.namespace===i&&t.flagItemID===e.flagItemID){t.RiotSolrFlagClass=e.RiotSolrFlagClass;t.RiotSolrFlagText=e.RiotSolrFlagText;t.update()}})},RiotSolrFlagSetItem:function(t){this.flagItemID=t[this.RiotSolrFlagOpts.key]+'';this.RiotSolrFlagInitStore();if(this.RiotSolrFlagStore.has(this.flagItemID)){this.RiotSolrFlagText=this.RiotSolrFlagOpts.text.unflag;this.RiotSolrFlagClass=this.RiotSolrFlagOpts.classes.unflag} 124else{this.RiotSolrFlagText=this.RiotSolrFlagOpts.text.flag;this.RiotSolrFlagClass=this.RiotSolrFlagOpts.classes.flag};this.update()},RiotSolrFlagInitStore:function(){this.RiotSolrFlagStore=RiotSolrCreateInstance(this.RiotSolrFlagOpts.store,this.RiotSolrFlagOpts.namespace)},RiotSolrFlagOpts:{text:{flag:'Flag',unflag:'Unflag',},classes:{flag:'rs-flag',unflag:'rs-unflag',},namespace:'riot_solr_flag_items',store:'RiotSolrCookieStore',key:'id',},RiotSolrHandleFlag:function(t){var e=this,i=e.RiotSolrFlagStore;if(i.has(e.flagItemID)){i.remove(e.flagItemID);e.RiotSolrFlagText=e.RiotSolrFlagOpts.text.flag;e.RiotSolrFlagClass=e.RiotSolrFlagOpts.classes.flag} 125else{i.add(e.flagItemID);e.RiotSolrFlagText=e.RiotSolrFlagOpts.text.unflag;e.RiotSolrFlagClass=e.RiotSolrFlagOpts.classes.unflag};RiotTagsDispatch.trigger('RiotSolrFlagUpdate',this,this.RiotSolrFlagOpts.namespace);e.update()},};riot.mixin('RiotSolrFlag',o);var i={init:function(){var t=this,e;t.RiotSolrManager.observable.on('RiotSolrInit',function(e){t.RiotSolrManager.setStore(new AjaxSolr.ParameterStore());t.RiotSolrManager.store.load(!1);t.RiotSolrManager.store.init()});if(t.opts.flag_options){t.RiotSolrFlagOpts=t.opts.flag_options};t.showItems=!1;t.RiotSolrFlagStore=RiotSolrCreateInstance(t.opts.flag_options.store,t.opts.flag_options.namespace);e=function(){t.RiotSolrFlagCounterUpdate()};RiotTagsDispatch.on('RiotSolrFlagUpdate',e);t.one('update',function(){t.RiotSolrFlagCount=t.RiotSolrFlagStore.get().length});t.one('updated',function(){t.root.addEventListener('mouseenter',function(){t.showItems=!0;e()});t.root.addEventListener('mouseleave',function(){t.showItems=!1;
125t.update()})});t.on('unmount',function(){RiotTagsDispatch.off('RiotSolrFlagUpdate',e)})},RiotSolrFlagOpts:{text:{flag:'Flag',unflag:'Unflag',},classes:{flag:'rs-flag',unflag:'rs-unflag',},namespace:'riot_solr_flag_items',store:'RiotSolrCookieStore',key:'id',},RiotSolrFlagHandler:function(t){var e=this.RiotSolrManager,i,o;e.response=t;o=t.response.docs.map(function(t){return t.id});t.getFullDocs=function(){if(!i){i=e.getDocuments(o)};return i};e.widgets.map(function(t){t.afterRequest()});this.update()},RiotSolrFlagCounterUpdate:function(){var t=this.RiotSolrFlagStore.get(),e=this,i='rows='+t.length+'&fq='+e.RiotSolrFlagOpts.key+':('+t.join(' OR ')+')';e.RiotSolrFlagCount=t.length;if(t.length>0){e.RiotSolrManager.executeRequest('select',i,this.RiotSolrFlagHandler)} 126else{e.setRiotSolrItems([])}},RiotSolrFlagCounterViewPage:function(){var e,t,i;if(!this.opts.flag_options.path){return};t=this.RiotSolrFlagStore.get();if(t.length>0){e=this.opts.flag_options.path;i='{!tag=RiotSolrWidget q.op=OR}'+this.RiotSolrFlagOpts.key+':('+t.join(' OR ')+')';window.location.href=e+'#q='+i}},};riot.mixin('RiotSolrFlagCounter',i);RiotSolrCreateInstance=function(t){var e=Array.prototype.slice.call(arguments,1);return new window[t](e)};RiotSolrCookieStore=function(e){var i=e,o=[],n,r=function(){n=t.cookie(i);o[i]=n?t.parseJSON(n):[]},s=function(){t.cookie(i,JSON.stringify(o[i]),{path:'/'})};this.get=function(){r();return o[i]};this.add=function(t){r();if(o[i].indexOf(t)===-1){o[i].push(t);s()};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Add '+i,eventLabel:t,nonInteraction:1,})} 127else if(typeof _gaq!=='undefined'){_gaq.push(['_trackEvent','RiotSolr Flag','Add '+i,t,0,!0])}};this.remove=function(t){r();var e=o[i].indexOf(t);if(e!==-1){o[i].splice(e,1);s()};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Remove '+i,eventLabel:t,nonInteraction:1,})} 128else if(typeof _gaq!=='undefined'){_gaq.push(['_trackEvent','RiotSolr Flag','Remove '+i,t,0,!0])}};this.reset=function(){o[i]=[];s()};this.has=function(t){r();return this.indexOf.call(o[i],t)!==-1};this.indexOf=function(t){var e;if(typeof Array.prototype.indexOf==='function'){e=Array.prototype.indexOf} 129else{e=function(t){var e=-1,i=-1;for(e=0;e<this.length;e++){if(this[e]===t){i=e;break}};return i}};return e.call(this,t)}};RiotSolrItemSortHandlers={sortNumeric:{primer:function(t){return parseFloat(t)},callback:function(t,e,i){var o=this,r=!i?1:-1;t.sort(function(t,i){return(t=o.primer(t[e])),(i=o.primer(i[e])),r*((t>i)-(i>t))});return t},},sortLexicographic:{primer:function(t){if(typeof t==='string'){return t.trim()} 130else if(Array.isArray(t)){return t[0].trim()}},callback:function(t,e,i){var o=this;t.sort(function(t,i){return(t=o.primer(t[e])),(i=o.primer(i[e])),t.toLowerCase().localeCompare(i)});if(i){t.reverse()};return t},},sortRandom:{primer:function(){var e=9999,t=1;return Math.floor(Math.random()*(e-t))+t},callback:function(t,e,i){var o=this,r=!i?1:-1;t.sort(function(){return(a=o.primer()),(b=o.primer()),r*((a>b)-(b>a))});return t},},};Element.prototype.isVisible=function(){'use strict';function e(r,n,a,u,l,f,g){var s=r.parentNode,c=2;if(!o(r)){return!1};if(!i(r)){return!1};if(9===s.nodeType){return!0};if('0'===t(r,'opacity')||'none'===t(r,'display')||'hidden'===t(r,'visibility')){return!1};if('undefined'===typeof n||'undefined'===typeof a||'undefined'===typeof u||'undefined'===typeof l||'undefined'===typeof f||'undefined'===typeof g){n=r.offsetTop;l=r.offsetLeft;u=n+r.offsetHeight;a=l+r.offsetWidth;f=r.offsetWidth;g=r.offsetHeight};if(s){if('hidden'===t(s,'overflow')||'scroll'===t(s,'overflow')||'hidden'===t(s,'overflow-y')||'scroll'===t(s,'overflow-y')){if(l+c>s.offsetWidth+s.scrollLeft||l+f-c<s.scrollLeft||n+c>s.offsetHeight+s.scrollTop||n+g-c<s.scrollTop){return!1}};if(r.offsetParent===s){l+=s.offsetLeft;n+=s.offsetTop};return e(s,n,a,u,l,f,g)};return!0};function t(t,e){if(window.getComputedStyle){return document.defaultView.getComputedStyle(t,null)[e]};if(t.currentStyle){return t.currentStyle[e]}};function i(t){while((t=t.parentNode)){if(t==document){return!0}};return!1};function o(t){var e=2,i=t.getBoundingClientRect(),o=i.top-e<=(window.innerHeight||document.documentElement.clientHeight)&&i.bottom>=0-e&&i.left-e<=(window.innerWidth||document.documentElement.clientWidth)&&i.right>=0-e;return o};return e(this)};
130var e={RiotSolrUtils:{debounce:function(t,e,i){var o;return function(){var r=this,n=arguments;clearTimeout(o);o=setTimeout(function(){o=null;if(!i)t.apply(r,n)},e);if(i&&!o)t.apply(r,n)}}}};riot.mixin('RiotSolrUtils',e)})(jQuery);;/*})'"*/ 131;riot.tag('subtag','',function(t){var n=t.tag;if(typeof n!='undefined'){(function(e,i){var o={};if(typeof t.options!=='undefined'){o=e.extend(o,t.options)};riot.mount(i.root,n,o)})(jQuery,this)}});;/*})'"*/ 132/*! jQuery UI - v1.10.2 - 2013-03-14 133* http://jqueryui.com 134* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 135(function(t){var e,i,s,n,a="ui-button ui-widget ui-state-default ui-corner-all",o="ui-state-hover ui-state-active ",r="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},l=function(e){var i=e.name,s=e.form,n=t([]);return i&&(i=i.replace(/'/g,"\\'"),n=s?t(s).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),n};t.widget("ui.button",{version:"1.10.2",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,h),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var o=this,r=this.options,c="checkbox"===this.type||"radio"===this.type,u=c?"":"ui-state-active",d="ui-state-focus";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(a).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(u)}).bind("click"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){o.buttonElement.addClass(d)}).bind("blur"+this.eventNamespace,function(){o.buttonElement.removeClass(d)}),c&&(this.element.bind("change"+this.eventNamespace,function(){n||o.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){r.disabled||(n=!1,i=t.pageX,s=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){r.disabled||(i!==t.pageX||s!==t.pageY)&&(n=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return r.disabled||n?!1:undefined}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled||n)return!1;t(this).addClass("ui-state-active"),o.buttonElement.attr("aria-pressed","true");var e=o.element[0];l(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return r.disabled?!1:(t(this).addClass("ui-state-active"),e=this,o.document.one("mouseup",function(){e=null}),undefined)}).bind("mouseup"+this.eventNamespace,function(){return r.disabled?!1:(t(this).removeClass("ui-state-active"),undefined)}).bind("keydown"+this.eventNamespace,function(e){return r.disabled?!1:((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"),undefined)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(
vendor: 26,918 bytes, lines 135-150
135),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(a+" "+o+" "+r).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(e?this.element.prop("disabled",!0):this.element.prop("disabled",!1),undefined):(this._resetButton(),undefined)},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?l(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),undefined;var e=this.buttonElement.removeClass(r),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,a=[];s.primary||s.secondary?(this.options.text&&a.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(a.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{version:"1.10.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery); 136;/*})'"*/;/*})'"*/ 137/*! jQuery UI - v1.10.2 - 2013-03-14 138* http://jqueryui.com 139* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 140(function(e){var t=!1;e(document).mouseup(function(){t=!1}),e.widget("ui.mouse",{version:"1.10.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):undefined}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,n=1===i.which,a="string"==typeof this.options.cancel&&i.target.nodeName?e(i.target).closest(this.options.cancel).length:!1;return n&&!a&&this._mouseCapture(i)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=this._mouseStart(i)!==!1,!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0)):!0}},_mouseMove:function(t){return e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery); 141;/*})'"*/;/*})'"*/ 142/*! jQuery UI - v1.10.2 - 2013-03-14 143* http://jqueryui.com 144* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 145(function(e){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){e("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",t,s)===!1)return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i,s=this,n=!1,a=!1;for(e.ui.ddmanager&&!this.options.dropBehaviour&&(a=e.ui.ddmanager.drop(this,t)),this.dropped&&(a=this.dropped,this.dropped=!1),i=this.element[0];i&&(i=i.parentNode);)i===document&&(n=!0);return n||"original"!==this.options.helper?("invalid"===this.options.revert&&!a||"valid"===this.options.revert&&a||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,a)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger("stop",t)!==!1&&s._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1):!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var i=this.options,s=e.isFunction(i.helper)?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s,n=this.options;if("parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=["document"===n.containment?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"===n.containment?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"===n.containment?0:e(window).scrollLeft())+e("document"===n.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"===n.containment?0:e(window).scrollTop())+(e("document"===n.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||n.containment.constructor===Array)n.containment.constructor===Array&&(this.containment=n.containment);else{if(i=e(n.containment),s=i[0],!s)return;t="hidden"!==e(s).css("overflow"),this.containment=[(parseInt(e(s).css("borderLeftWidth"),10)||0)+(parseInt(e(s).css("paddingLeft"),10)||0),(parseInt(e(s).css("borderTopWidth"),10)||0)+(parseInt(e(s).css("paddingTop"),10)||0),(t?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(e(s).css("borderRightWidth"),10)||0)-(parseInt(e(s).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(e(s).css("borderBottomWidth"),10)||0)-(parseInt(e(s).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(t,i){i||(i=this.position);var s="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s}},_generatePosition:function(t){var i,s,n,a,o=this.options,r="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName),l=t.pageX,u=t.pageY;return this.originalPosition&&(this.containment&&(this.relative_container?(s=this.relative_container.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(u=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(u=i[3]+this.offset.click.top)),o.grid&&(n=o.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,u=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-o.grid[1]:n+o.grid[1]:n,a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-o.grid[0]:a+o.grid[0]:a)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s]),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var s=e(this).data("ui-draggable"),n=s.options,a=e.extend({},i,{item:s.element});s.sortables=[],e(n.connectToSortable).each(function(){var i=e.data(this,"ui-sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,a))})},stop:function(t,i){var s=e(this).data("ui-draggable"),n=e.extend({},i,{item:s.element});e.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,n))})},drag:function(t,i){var s=e(this).data("ui-draggable"),n=this;e.each(s.sortables,function(){var a=!1,o=this;this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(a=!0,e.each(s.sortables,function(){return this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])&&(a=!1),a})),a?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(n).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",t),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",t),s.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),i=e(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&"HTML"!==t.scrollParent[0].tagName&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var i=e(this).data("ui-draggable"),s=i.options,n=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-t.pageY<s.scrollSensitivity?i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(i.scrollParent[0].scrollTop=n=i.scrollParent[0].scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-t.pageX<s.scrollSensitivity?i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(i.scrollParent[0].scrollLeft=n=i.scrollParent[0].scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(document).scrollTop()<s.scrollSensitivity?n=e(document).scrollTop(e(document).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<s.scrollSensitivity&&(n=e(document).scrollTop(e(document).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(document).scrollLeft()<s.scrollSensitivity?n=e(document).scrollLeft(e(document).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<s.scrollSensitivity&&(n=e(document).scrollLeft(e(document).scrollLeft()+s.scrollSpeed)))),n!==!1&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(){var t=e(this).data("ui-draggable"),i=t.options;t.snapElements=[],e(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=e(this),s=i.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:s.top,left:s.left})})},drag:function(t,i){var s,n,a,o,r,h,l,u,c,d,p=e(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,y=i.offset.top,b=y+p.helperProportions.height;for(c=p.snapElements.length-1;c>=0;c--)r=p.snapElements[c].left,h=r+p.snapElements[c].width,l=p.snapElements[c].top,u=l+p.snapElements[c].height,g>r-m&&h+m>g&&y>l-m&&u+m>y||g>r-m&&h+m>g&&b>l-m&&u+m>b||v>r-m&&h+m>v&&y>l-m&&u+m>y||v>r-m&&h+m>v&&b>l-m&&u+m>b?("inner"!==f.snapMode&&(s=m>=Math.abs(l-b),n=m>=Math.abs(u-y),a=m>=Math.abs(r-v),o=m>=Math.abs(h-g),s&&(i.position.top=p._convertPositionTo("relative",{top:l-p.helperProportions.height,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r-p.helperProportions.width}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h}).left-p.margins.left)),d=s||n||a||o,"outer"!==f.snapMode&&(s=m>=Math.abs(l-y),n=m>=Math.abs(u-b),a=m>=Math.abs(r-g),o=m>=Math.abs(h-v),s&&(i.position.top=p._convertPositionTo("relative",{top:l,left:0}).top-p.margins.top),n&&(i.position.top=p._convertPositionTo("relative",{top:u-p.helperProportions.height,left:0}).top-p.margins.top),a&&(i.position.left=p._convertPositionTo("relative",{top:0,left:r}).left-p.margins.left),o&&(i.position.left=p._convertPositionTo("relative",{top:0,left:h-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[c].snapping&&(s||n||a||o||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=s||n||a||o||d):(p.snapElements[c].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,t,e.extend(p._uiHash(),{snapItem:p.snapElements[c].item})),p.snapElements[c].snapping=!1)}}),e.ui.plugin.add("draggable","stack",{start:function(){var t,i=this.data("ui-draggable").options,s=e.makeArray(e(i.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});s.length&&(t=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(i){e(this).css("zIndex",t+i)}),this.css("zIndex",t+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i){var s=e(i.helper),n=e(this).data("ui-draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(t,i){var s=e(this).data("ui-draggable").options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}})})(jQuery); 146;/*})'"*/;/*})'"*/ 147/*! jQuery UI - v1.10.2 - 2013-03-14 148* http://jqueryui.com 149* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 150(function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function s(e,i){return parseInt(t.css(e,i),10)||0}function n(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(a!==e)return a;var i,s,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=n.children()[0];return t("body").append(n),i=o.offsetWidth,n.css("overflow","scroll"),s=o.offsetWidth,i===s&&(s=n[0].clientWidth),n.remove(),a=i-s},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),s=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,a="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:a?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]);return{element:i,isWindow:s,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s?i.width():i.outerWidth(),height:s?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var a,p,m,g,v,_,b=t(e.of),y=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(y),x=(e.collision||"flip").split(" "),k={};return _=n(b),b[0].preventDefault&&(e.at="left top"),p=_.width,m=_.height,g=_.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,s=(e[this]||"").split(" ");1===s.length&&(s=l.test(s[0])?s.concat(["center"]):c.test(s[0])?["center"].concat(s):["center","center"]),s[0]=l.test(s[0])?s[0]:"center",s[
vendor: 1,314 bytes, line 150
1501]=c.test(s[1])?s[1]:"center",t=u.exec(s[0]),i=u.exec(s[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(s[0])[0],d.exec(s[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),a=i(k.at,p,m),v.left+=a[0],v.top+=a[1],this.each(function(){var n,l,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=s(this,"marginLeft"),_=s(this,"marginTop"),D=u+f+s(this,"marginRight")+w.width,T=d+_+s(this,"marginBottom")+w.height,C=t.extend({},v),M=i(k.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?C.left-=u:"center"===e.my[0]&&(C.left-=u/2),"bottom"===e.my[1]?C.top-=d:"center"===e.my[1]&&(C.top-=d/2),C.left+=M[0],C.top+=M[1],t.support.offsetFractions||(C.left=h(C.left),C.top=h(C.top)),n={marginLeft:f,marginTop:_},t.each(["left","top"],function(i,s){t.ui.position[x[i]]&&t.ui.position[x[i]][s](C,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:n,collisionWidth:D,collisionHeight:T,offset:[a[0]+M[0],a[1]+M[1]],my:e.my,at:e.at,within:y,elem:c})}),e.using&&(l=function(t){var i=g.left-C.left,s=i+p-u,n=g.top-C.top,a=n+m-d,h={target:{element:b,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:C.left,top:C.top,width:u,height:d},horizontal:0>s?"left":i>0?"right":"center",vertical:0>
vendor: 10,909 bytes, lines 150-156
150a?"top":n>0?"bottom":"middle"};u>p&&p>r(i+s)&&(h.horizontal="center"),d>m&&m>r(n+a)&&(h.vertical="middle"),h.important=o(r(i),r(s))>o(r(n),r(a))?"horizontal":"vertical",e.using.call(this,t,h)}),c.offset(t.extend(C,{using:l}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-o-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-o-a,(0>i||r(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>r(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-o-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>c?(s=t.top+p+f+m+e.collisionHeight-o-a,t.top+p+f+m>c&&(0>s||r(c)>s)&&(t.top+=p+f+m)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+m-h,t.top+p+f+m>u&&(i>0||u>r(i))&&(t.top+=p+f+m))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,s,n,a,o=document.getElementsByTagName("body")[0],r=document.createElement("div");e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(a in s)e.style[a]=s[a];e.appendChild(r),i=o||document.documentElement,i.insertBefore(e,i.firstChild),r.style.cssText="position: absolute; left: 10.7432222px;",n=t(r).offset().left,t.support.offsetFractions=n>10&&11>n,e.innerHTML="",i.removeChild(e)}()})(jQuery); 151;/*})'"*/;/*})'"*/ 152(function(n){var i=n.ui.version.split('.'),t=parseInt(i[0]),f=parseInt(i[1]);if((t>1)||(t===1&&f>=13)){return};var e=n.fn.position;n.fn.extend({'position':function(i){if(typeof i==='undefined'){return e.call(this)};var t=typeof i.of==='string'?n(document).find(i.of):n(i.of);i.of=(t[0]===undefined)?null:t;return e.call(this,i)}})})(jQuery);;/*})'"*/ 153/*! jQuery UI - v1.10.2 - 2013-03-14 154* http://jqueryui.com 155* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 156(function(e){function t(e){return parseInt(e,10)||0}function i(e){return!isNaN(parseInt(e,10))}e.widget("ui.resizable",e.ui.mouse,{version:"1.10.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var t,i,s,n,a,o=this,r=this.options;if(this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{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"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={},i=0;t.length>i;i++)s=e.trim(t[i]),a="ui-resizable-"+s,n=e("<div class='ui-resizable-handle "+a+"'></div>"),n.css({zIndex:r.zIndex}),"se"===s&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(n);this._renderAxis=function(t){var i,s,n,a;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=e(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(s=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(n,a),this._proportionallyResize()),e(this.handles[i]).length},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(e(this).removeClass("ui-resizable-autohide"),o._handles.show())}).mouseleave(function(){r.disabled||o.resizing||(e(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var i,s,n=!1;for(i in this.handles)s=e(this.handles[i])[0],(s===t.target||e.contains(s,t.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(i){var s,n,a,o=this.options,r=this.element.position(),h=this.element;return this.resizing=!0,/absolute/.test(h.css("position"))?h.css({position:"absolute",top:h.css("top"),left:h.css("left")}):h.is(".ui-draggable")&&h.css({position:"absolute",top:r.top,left:r.left}),this._renderProxy(),s=t(this.helper.css("left")),n=t(this.helper.css("top")),o.containment&&(s+=e(o.containment).scrollLeft()||0,n+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:s,top:n},this.size=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalSize=this._helper?{width:h.outerWidth(),height:h.outerHeight()}:{width:h.width(),height:h.height()},this.originalPosition={left:s,top:n},this.sizeDiff={width:h.outerWidth()-h.width(),height:h.outerHeight()-h.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),h.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(t){var i,s=this.helper,n={},a=this.originalMousePosition,o=this.axis,r=this.position.top,h=this.position.left,l=this.size.width,u=this.size.height,c=t.pageX-a.left||0,d=t.pageY-a.top||0,p=this._change[o];return p?(i=p.apply(this,[t,c,d]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),this.position.top!==r&&(n.top=this.position.top+"px"),this.position.left!==h&&(n.left=this.position.left+"px"),this.size.width!==l&&(n.width=this.size.width+"px"),this.size.height!==u&&(n.height=this.size.height+"px"),s.css(n),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||this._trigger("resize",t,this.ui()),!1):!1},_mouseStop:function(t){this.resizing=!1;var i,s,n,a,o,r,h,l=this.options,u=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&e.ui.hasScroll(i[0],"left")?0:u.sizeDiff.height,a=s?0:u.sizeDiff.width,o={width:u.helper.width()-a,height:u.helper.height()-n},r=parseInt(u.element.css("left"),10)+(u.position.left-u.originalPosition.left)||null,h=parseInt(u.element.css("top"),10)+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(e.extend(o,{top:h,left:r})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,s,n,a,o,r=this.options;o={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:1/0,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,s=o.maxHeight*this.aspectRatio,a=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),o.maxWidth>s&&(o.maxWidth=s),o.maxHeight>a&&(o.maxHeight=a)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),i(e.left)&&(this.position.left
156=e.left),i(e.top)&&(this.position.top=e.top),i(e.height)&&(this.size.height=e.height),i(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,s=this.size,n=this.axis;return i(e.height)?e.width=e.height*this.aspectRatio:i(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(s.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(s.height-e.height),e.left=t.left+(s.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,s=this.axis,n=i(e.width)&&t.maxWidth&&t.maxWidth<e.width,a=i(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=i(e.width)&&t.minWidth&&t.minWidth>e.width,r=i(e.height)&&t.minHeight&&t.minHeight>e.height,h=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,u=/sw|nw|w/.test(s),c=/nw|ne|n/.test(s);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),a&&(e.height=t.maxHeight),o&&u&&(e.left=h-t.minWidth),n&&u&&(e.left=h-t.maxWidth),r&&c&&(e.top=l-t.minHeight),a&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var e,t,i,s,n,a=this.helper||this.element;for(e=0;this._proportionallyResizeElements.length>e;e++){if(n=this._proportionallyResizeElements[e],!this.borderDif)for(this.borderDif=[],i=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],s=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;i.length>t;t++)this.borderDif[t]=(parseInt(i[t],10)||0)+(parseInt(s[t],10)||0);n.css({height:a.height()-this.borderDif[0]-this.borderDif[2]||0,width:a.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).data("ui-resizable"),s=i.options,n=i._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),o=a&&e.ui.hasScroll(n[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-o},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,u=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(h,u&&l?{top:u,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var i,s,n,a,o,r,h,l=e(this).data("ui-resizable"),u=l.options,c=l.element,d=u.containment,p=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;p&&(l.containerElement=e(p),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(i=e(p),s=[],e(["Top","Right","Left","Bottom"]).each(function(e,n){s[e]=t(i.css("padding"+n))}),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},n=l.containerOffset,a=l.containerSize.height,o=l.containerSize.width,r=e.ui.hasScroll(p,"left")?p.scrollWidth:o,h=e.ui.hasScroll(p)?p.scrollHeight:a,l.parentData={element:p,left:n.left,top:n.top,width:r,height:h}))},resize:function(t){var i,s,n,a,o=e(this).data("ui-resizable"),r=o.options,h=o.containerOffset,l=o.position,u=o._aspectRatio||t.shiftKey,c={top:0,left:0},d=o.containerElement;
vendor: 14,851 bytes, lines 156-161
156d[0]!==document&&/static/.test(d.css("position"))&&(c=h),l.left<(o._helper?h.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-h.left:o.position.left-c.left),u&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=r.helper?h.left:0),l.top<(o._helper?h.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-h.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?h.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,i=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),s=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-h.top)+o.sizeDiff.height),n=o.containerElement.get(0)===o.element.parent().get(0),a=/relative|absolute/.test(o.containerElement.css("position")),n&&a&&(i-=o.parentData.left),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,u&&(o.size.height=o.size.width/o.aspectRatio)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,u&&(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,o=e(t.helper),r=o.offset(),h=o.outerWidth()-t.sizeDiff.width,l=o.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof i.alsoResize||i.alsoResize.parentNode?s(i.alsoResize):i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,function(e){s(e)})},resize:function(t,i){var s=e(this).data("ui-resizable"),n=s.options,a=s.originalSize,o=s.originalPosition,r={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0},h=function(t,s){e(t).each(function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),a={},o=s&&s.length?s:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var i=(n[t]||0)+(r[t]||0);i&&i>=0&&(a[t]=i||null)}),t.css(a)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?h(n.alsoResize):e.each(n.alsoResize,function(e,t){h(e,t)})},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),i=t.options,s=t.size,n=t.originalSize,a=t.originalPosition,o=t.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,h=r[0]||1,l=r[1]||1,u=Math.round((s.width-n.width)/h)*h,c=Math.round((s.height-n.height)/l)*l,d=n.width+u,p=n.height+c,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=h),v&&(p+=l),f&&(d-=h),m&&(p-=l),/^(se|s|e)$/.test(o)?(t.size.width=d,t.size.height=p):/^(ne)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.top=a.top-c):/^(sw)$/.test(o)?(t.size.width=d,t.size.height=p,t.position.left=a.left-u):(t.size.width=d,t.size.height=p,t.position.top=a.top-c,t.position.left=a.left-u)}})})(jQuery); 157;/*})'"*/;/*})'"*/ 158/*! jQuery UI - v1.10.2 - 2013-03-14 159* http://jqueryui.com 160* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 161(function(t){var e={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.2",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||t(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),undefined):(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._trigger("open"),undefined)},_focusTabbable:function(){var t=this.element.find("[autofocus]");t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement,i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),undefined;if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(n.focus(1),e.preventDefault()):(s.focus(1),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html(" "),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this.uiDialog.removeClass("ui-dialog-buttons"),undefined):(t.each(i,function(i,s){var n,a;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,s.click=function(){n.apply(e.element[0],arguments)},a={icons:s.icons,text:s.showText},delete s.icons,delete s.showText,t("<button></button>",s).button(a).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),undefined)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,a){s.position=[a.position.left-i.document.scrollLeft(),a.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,a=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:o,start:function(s,n){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,a){s.height=t(this).height(),s.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(a))}}).css("position",a)},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(s){var n=this,a=!1,o={};t.each(s,function(t,s){n._setOption(t,s),t in e&&(a=!0),t in i&&(o[t]=s)}),a&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,s,n=this.uiDialog;"dialogClass"===t&&n.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&(i=n.is(":data(ui-draggable)"),i&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(s=n.is(":data(ui-resizable)"),s&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||e===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(s){e._allowInteraction(s)||(s.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,s=[],n=[0,0];
161i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(s=i.split?i.split(" "):[i[0],i[1]],1===s.length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),i={my:s[0]+(0>n[0]?n[0]:"+"+n[0])+" "+s[1]+(0>n[1]?n[1]:"+"+n[1]),at:s.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})})(jQuery); 162;/*})'"*/;/*})'"*/ 163(function(t){var i=t.ui.dialog.version.split('.'),e=parseInt(i[0]),o=parseInt(i[1]);if(e===1&&o<13){var p=t.ui.dialog.prototype._setOption,s=t.ui.dialog.prototype._createTitlebar;t.extend(t.ui.dialog.prototype,{_createTitlebar:function(){if(this.options.closeText){this.options.closeText=Drupal.checkPlain(this.options.closeText)};s.apply(this,arguments)},_setOption:function(t,i){if(t==='title'||t=='closeText'){if(i){i=Drupal.checkPlain(i)}};p.apply(this,[t,i])}});if(e===1&&o<10){var a=t.ui.dialog.prototype._create;t.extend(t.ui.dialog.prototype,{_create:function(){if(!this.options.title){var t=this.element.attr('title');if(typeof t!=='string'){t=''};this.options.title=t};this.options.title=Drupal.checkPlain(this.options.title);a.apply(this,arguments)},})}}})(jQuery);;/*})'"*/ 164/*! jQuery UI - v1.10.2 - 2013-03-14 165* http://jqueryui.com 166* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 167(function(t,e){function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(a.inline?e.parent()[0]:a.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))})}function n(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}t.extend(t.ui,{datepicker:{version:"1.10.2"}});var a,r="datepicker",o=(new Date).getTime();t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return n(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,a;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),a=this._newInst(t(e),n),a.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,a):n&&this._inlineDatepicker(e,a)},_newInst:function(e,i){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,r,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[o?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.focus(this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:n,title:n}):n)),e[o?"before":"after"](i.trigger),i.trigger.click(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,a=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},a.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,r,i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,a,o){var h,l,c,u,d,p=this._dialogInst;return p||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},t.data(this._dialogInput[0],r,p)),n(p.settings,a||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],r,p),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,r);s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,r),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("
167keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,s,n=t(e),a=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),a=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,r)}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,s,a){var r,o,h,l,c=this._getInst(i);return 2===arguments.length&&"string"==typeof s?"defaults"===s?t.extend({},t.datepicker._defaults):c?"all"===s?t.extend({},c.settings):this._get(c,s):null:(r=s||{},"string"==typeof s&&(r={},r[s]=a),c&&(this._curInst===c&&this._hideDatepicker(),o=this._getDateDatepicker(i,!0),h=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),n(c.settings,r),null!==h&&r.dateFormat!==e&&r.minDate===e&&(c.settings.minDate=this._formatDate(c,h)),null!==l&&r.dateFormat!==e&&r.maxDate===e&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),c),this._autoSize(c),this._setDate(c,o),this._updateAlternate(c),this._updateDatepicker(c)),e)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,a=t.datepicker._getInst(e.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv),n[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,n[0]),i=t.datepicker._get(a,"onSelect"),i?(s=t.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[s,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(i){var s,n,a=t.datepicker._getInst(i.target);return t.datepicker._get(a,"constrainInput")?(s=t.datepicker._possibleChars(t.datepicker._get(a,"dateFormat")),n=String.fromCharCode(null==i.charCode?i.keyCode:i.charCode),i.ctrlKey||i.metaKey||" ">n||!s||s.indexOf(n)>-1):e},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0}
vendor: 1,735 bytes, line 167
167,_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,s,a,r,o,h,l;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),s=t.datepicker._get(i,"beforeShow"),a=s?s.apply(e,[e,i]):{},a!==!1&&(n(i.settings,a),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),o={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),o=t.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(h=t.datepicker._get(i,"showAnim"),l=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?i.dpDiv.show(h,t.datepicker._get(i,"showOptions"),l):i.dpDiv[h||"show"](h?l:null),i.input.is(":visible")&&!i.input.is(":disabled")&&i.input.focus(),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,a=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,s=this._getNumberOfMonths(e),n=s[1],r=17;
vendor: 21,249 bytes, lines 167-168
167e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",r*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!==document.activeElement&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_getBorders:function(t){var e=function(t){return{thin:1,medium:2,thick:3}[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-r:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+a>l&&l>a?Math.abs(a+o):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,a,o=this._curInst;!o||e&&o!==t.data(e,r)||this._datepickerShowing&&(i=this._get(o,"showAnim"),s=this._get(o,"duration"),n=function(){t.datepicker._tidyDialog(o)},t.effects&&(t.effects.effect[i]||t.effects[i])?o.dpDiv.hide(i,t.datepicker._get(o,"showOptions"),s,n):o.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),a=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(a,i+("M"===s?this._get(a,"showCurrentAtPos"):0),s),this._updateDatepicker(a))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),a=this._getInst(n[0]);a["selected"+("M"===s?"Month":"Year")]=a["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(n)},_selectDay:function(e,i,s,n){var a,r=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(a=this._getInst(r[0]),a.selectedDay=a.currentDay=t("a",n).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),a=this._getInst(n[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),s=this._get(a,"onSelect"),s?s.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,a=this._get(e,"altField");a&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(a).each(function(){t(this).val(n)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(i,s,n){if(null==i||null==s)throw"Invalid arguments";if(s="object"==typeof s?""+s:s+"",""===s)return null;var a,r,o,h,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,m=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,_=-1,b=-1,y=!1,w=function(t){var e=i.length>a+1&&i.charAt(a+1)===t;return e&&a++,e},k=function(t){var e=w(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n=RegExp("^\\d{1,"+i+"}"),a=s.substring(l).match(n);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(i,n,a){var r=-1,o=t.map(w(i)?a:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(o,function(t,i){var n=i[1];return s.substr(l,n.length).toLowerCase()===n.toLowerCase()?(r=i[0],l+=n.length,!1):e}),-1!==r)return r+1;throw"Unknown name at position "+l},D=function(){if(s.charAt(l)!==i.charAt(a))throw"Unexpected literal at position "+l;l++};for(a=0;i.length>a;a++)if(y)"'"!==i.charAt(a)||w("'")?D():y=!1;else switch(i.charAt(a)){case"d":_=k("d");break;case"D":x("D",d,p);break;case"o":b=k("o");break;case"m":v=k("m");break;case"M":v=x("M",f,m);break;case"y":g=k("y");break;case"@":h=new Date(k("@")),g=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"!":h=new Date((k("!")-this._ticksTo1970)/1e4),g=h.getFullYear(),v=h.getMonth()+1,_=h.getDate();break;case"'":w("'")?D():y=!0;break;default:D()}if(s.length>l&&(o=s.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=g?0:-100)),b>-1)for(v=1,_=b;;){if(r=this._getDaysInMonth(g,v-1),r>=_)break;v++,_-=r}if(h=this._daylightSavingAdjust(new Date(g,v-1,_)),h.getFullYear()!==g||h.getMonth()+1!==v||h.getDate()!==_)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,a);break;case"o":u+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),r,o);break;case"y":u+=h("y")?e.getFullYear():(10>e.getYear()%100?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),a=n,r=this._getFormatConfig(t);try{a=this.parseDate(i,s,r)||n}catch(o){s=e?"":s}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=s?a.getDate():0,t.currentMonth=s?a.getMonth():0,t.currentYear=s?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},a=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,a=n.getFullYear(),r=n.getMonth(),o=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":o+=parseInt(l[1],10);break;case"w":case"W":o+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r));break;case"y":case"Y":a+=parseInt(l[1],10),o=Math.min(o,t.datepicker._getDaysInMonth(a,r))}l=h.exec(i)}return new Date(a,r,o)},r=null==i||""===i?s:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return r=r&&"Invalid Date"==""+r?s:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,a=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),n===t.selectedMonth&&a===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+o].datepicker._adjustDate(s,-i,"M")},next:function(){window["DP_jQuery_"+o].datepicker._adjustDate(s,+i,"M")},hide:function(){window["DP_jQuery_"+o].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+o].datepicker._gotoToday(s)},selectDay:function(){return window["DP_jQuery_"+o].datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+o].datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+o].datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,a,r,o,h,l,c,u,d,p,f,m,g,v,_,b,y,w,k,x,D,T,C,S,M,N,I,P,A,z,H,E,F,O,W,j,R=new Date,L=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),Y=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),J=this._get(t,"hideIfNoPrevNext"),Q=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),U=this._get(t,"stepMonths"),q=1!==K[0]||1!==K[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(t,"min"),$=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),$)for(e=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-K[0]*K[1]+1,$.getDate())),e=G&&G>e?G:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=Q?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-U,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":J?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=Q?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+U,1)),this._getFormatConfig(t)):n,a=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":J?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",r=this._get(t,"currentText"),o=this._get(t,"gotoCurrent")&&t.currentDay?X:L,r=Q?this.formatDate(r,o,this._getFormatConfig(t)):r,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(t,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;K[0]>k;k++){for(x="",this.maxRows=4,D=0;K[1]>D;D++){if(T=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),C=" ui-corner-all",S="",q){if(S+="<div class='ui-datepicker-group",K[1]>1)switch(D){case 0:S+=" ui-datepicker-group-first",C=" ui-corner-"+(Y?"right":"left");break;case K[1]-1:S+=" ui-datepicker-group-last",C=" ui-corner-"+(Y?"left":"right");break;default:S+=" ui-datepicker-group-middle",C=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+C+"'>"+(/all|left/.test(C)&&0===k?Y?a:s:"")+(/all|right/.test(C)&&0===k?Y?s:a:"")+this._generateMonthYearHeader(t,Z,te,G,$,k>0||D>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",M=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)N=(w+c)%7,M+="<th"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[N]+"'>"+p[N]+"</span></th>";for(S+=M+"</tr></thead><tbody>",I=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),P=(this._getFirstDayOfMonth(te,Z)-c+7)%7,A=Math.ceil((P+I)/7),z=q?this.maxRows>A?this.maxRows:A:A,this.maxRows=z,H=this._daylightSavingAdjust(new Date(te,Z,1-P)),E=0;z>E;E++){for(S+="<tr>",F=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(H)+"</td>":"",w=0;7>w;w++)O=g?g.apply(t.input?t.input[0]:null,[H]):[!0,""],W=H.getMonth()!==Z,j=W&&!_||!O[0]||G&&G>H||$&&H>$,F+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(W?" ui-datepicker-other-month":"")+(H.getTime()===T.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===H.getTime()&&b.getTime()===T.getTime()?" "+this._dayOverClass:"")+(j?" "+this._unselectableClass+" ui-state-disabled":"")+(W&&!v?"":" "+O[1]+(H.getTime()===X.getTime()?" "+this._currentClass:"")+(H.getTime()===L.getTime()?" ui-datepicker-today":""))+"'"+(W&&!v||!O[2]?"":" title='"+O[2].replace(/'/g,"'")+"'")+(j?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(W&&!v?" ":j?"<span class='ui-state-default'>"+H.getDate()+"</span>":"<a class='ui-state-default"+(H.getTime()===L.getTime()?" ui-state-highlight":"")+(H.getTime()===X.getTime()?" ui-state-active":"")+(W?" ui-priority-secondary":"")+"' href='#'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H);S+=F+"</tr>"}Z++,Z>11&&(Z=0,te++),S+="</tbody></table>"+(q?"</div>"+(K[0]>0&&D===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=S}y+=x}return y+=l,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,a,r,o){var h,l,c,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(a||!g)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>"); 168y+="</select>"}if(_||(b+=y+(!a&&g&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",a||!v)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),m=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,m=n?Math.min(m,n.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!a&&g&&v?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"===i?e:0),n=t.drawMonth+("M"===i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),r=null,o=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=s),i[1].match(/[+\-].*/)&&(o+=s)),(!n||e.getTime()>=n.getTime())&&(!a||e.getTime()<=a.getTime())&&(!r||e.getFullYear()>=r)&&(!o||o>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);
168var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.2",window["DP_jQuery_"+o]=t})(jQuery); 169;/*})'"*/;/*})'"*/ 170(function(e,t){var r=e.ui.datepicker.version.split('.'),n=parseInt(r[0]),i=parseInt(r[1]);if((n>1)||(n===1&&i>=13)){return};var a=e.datepicker._get;e.extend(e.datepicker,{_get:function(i,n){var r=a.call(this,i,n);if(n==='altField'){r=e(document).find(r)} 171else if(e.inArray(n,['appendText','buttonText','prevText','currentText','nextText','closeText'])!==-1){r=t.checkPlain(r)};return r}})})(jQuery,Drupal);;/*})'"*/ 172/*! 173 * jQuery Form Plugin 174 * version: 2.69 (06-APR-2011) 175 * @requires jQuery v1.3.2 or later 176 * 177 * Examples and documentation at: http://malsup.com/jquery/form/ 178 * Dual licensed under the MIT and GPL licenses: 179 * http://www.opensource.org/licenses/mit-license.php 180 * http://www.gnu.org/licenses/gpl.html 181 */ 182(function(a){function b(){if(a.fn.ajaxSubmit.debug){var b="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.ajaxSubmit=function(c){function r(){function t(){if(!j.aborted){var c=i.contentWindow?i.contentWindow.document:i.contentDocument?i.contentDocument:i.document;if(!c||c.location.href==e.iframeSrc)if(!m)return;i.detachEvent?i.detachEvent("onload",t):i.removeEventListener("load",t,!1);var d=!0;try{if(m)throw"timeout";var f=e.dataType=="xml"||c.XMLDocument||a.isXMLDoc(c);b("isXml="+f);if(!f&&window.opera&&(c.body==null||c.body.innerHTML=="")&&--s){b("requeing onLoad callback, DOM not available"),setTimeout(t,250);return}j.responseText=c.body?c.body.innerHTML:c.documentElement?c.documentElement.innerHTML:null,j.responseXML=c.XMLDocument?c.XMLDocument:c,j.getResponseHeader=function(a){var b={"content-type":e.dataType};return b[a]};var g=/(json|script)/.test(e.dataType);if(g||e.textarea){var l=c.getElementsByTagName("textarea")[0];if(l)j.responseText=l.value;else if(g){var n=c.getElementsByTagName("pre")[0],o=c.getElementsByTagName("body")[0];n?j.responseText=n.textContent:o&&(j.responseText=o.innerHTML)}}else e.dataType=="xml"&&!j.responseXML&&j.responseText!=null&&(j.responseXML=u(j.responseText));q=w(j,e.dataType,e)}catch(p){b("error caught:",p),d=!1,j.error=p,e.error&&e.error.call(e.context,j,"error",p),k&&a.event.trigger("ajaxError",[j,e,p])}j.aborted&&(b("upload aborted"),d=!1),d&&(e.success&&e.success.call(e.context,q,"success",j),k&&a.event.trigger("ajaxSuccess",[j,e])),k&&a.event.trigger("ajaxComplete",[j,e]),k&&!--a.active&&a.event.trigger("ajaxStop"),e.complete&&e.complete.call(e.context,j,d?"success":"error"),setTimeout(function(){h.removeData("form-plugin-onload"),h.remove(),j.responseXML=null},100)}}function p(){var b=l.attr("target"),c=l.attr("action");d.setAttribute("target",f),d.getAttribute("method")!="POST"&&d.setAttribute("method","POST"),d.getAttribute("action")!=e.url&&d.setAttribute("action",e.url),e.skipEncodingOverride||l.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),e.timeout&&setTimeout(function(){m=!0,t()},e.timeout);var g=[];try{if(e.extraData)for(var j in e.extraData)g.push(a('<input type="hidden" name="'+j+'" value="'+e.extraData[j]+'" />').appendTo(d)[0]);h.appendTo("body"),i.attachEvent?i.attachEvent("onload",t):i.addEventListener("load",t,!1),d.submit()}finally{d.setAttribute("action",c),b?d.setAttribute("target",b):l.removeAttr("target"),a(g).remove()}}var d=l[0];if(a(":input[name=submit],:input[id=submit]",d).length)alert('Error: Form elements must not have name or id of "submit".');else{var e=a.extend(!0,{},a.ajaxSettings,c);e.context=e.context||e;var f="jqFormIO"+(new Date).getTime(),g="_"+f,h=a('<iframe id="'+f+'" name="'+f+'" src="'+e.iframeSrc+'" />'),i=h[0];h.css({position:"absolute",top:"-1000px",left:"-1000px"});var j={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){b("aborting upload...");var c="aborted";this.aborted=1,h.attr("src",e.iframeSrc),j.error=c,e.error&&e.error.call(e.context,j,"error",c),k&&a.event.trigger("ajaxError",[j,e,c]),e.complete&&e.complete.call(e.context,j,"error")}},k=e.global;k&&!(a.active++)&&a.event.trigger("ajaxStart"),k&&a.event.trigger("ajaxSend",[j,e]);
182if(e.beforeSend&&e.beforeSend.call(e.context,j,e)===!1){e.global&&a.active--;return}if(j.aborted)return;var m=0,n=d.clk;if(n){var o=n.name;o&&!n.disabled&&(e.extraData=e.extraData||{},e.extraData[o]=n.value,n.type=="image"&&(e.extraData[o+".x"]=d.clk_x,e.extraData[o+".y"]=d.clk_y))}e.forceSync?p():setTimeout(p,10);var q,r,s=50,u=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&b.documentElement.nodeName!="parsererror"?b:null},v=a.parseJSON||function(a){return window.eval("("+a+")")},w=function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0,g=f?b.responseXML:b.responseText;f&&g.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror"),d&&d.dataFilter&&(g=d.dataFilter(g,c)),typeof g=="string"&&(c==="json"||!c&&e.indexOf("json")>=0?g=v(g):(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(g));return g}}}if(!this.length){b("ajaxSubmit: skipping submit process - no element selected");return this}typeof c=="function"&&(c={success:c});var d=this.attr("action"),e=typeof d=="string"?a.trim(d):"";e&&(e=(e.match(/^([^#]+)/)||[])[1]),e=e||window.location.href||"",c=a.extend(!0,{url:e,success:a.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c);var f={};this.trigger("form-pre-serialize",[this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1){b("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g,h,i=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(g in c.data)if(c.data[g]instanceof Array)for(var j in c.data[g])i.push({name:g,value:c.data[g][j]});else h=c.data[g],h=a.isFunction(h)?h():h,i.push({name:g,value:h})}if(c.beforeSubmit&&c.beforeSubmit(i,this,c)===!1){b("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[i,this,c,f]);if(f.veto){b("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var k=a.param(i);c.type.toUpperCase()=="GET"?(c.url+=(c.url.indexOf("?")>=0?"&":"?")+k,c.data=null):c.data=k;var l=this,m=[];c.resetForm&&m.push(function(){l.resetForm()}),c.clearForm&&m.push(function(){l.clearForm()});if(!c.dataType&&c.target){var n=c.success||function(){};m.push(function(b){var d=c.replaceTarget?"replaceWith":"html";a(c.target)[d](b).each(n,arguments)})}else c.success&&m.push(c.success);c.success=function(a,b,d){var e=c.context||c;for(var f=0,g=m.length;f<g;f++)m[f].apply(e,[a,b,d||l,l])};var o=a("input:file",this).length>0,p="multipart/form-data",q=l.attr("enctype")==p||l.attr("encoding")==p;c.iframe!==!1&&(o||c.iframe||q)?c.closeKeepAlive?a.get(c.closeKeepAlive,r):r():a.ajax(c),this.trigger("form-submit-notify",[this,c]);return this},a.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!a.isReady&&d.s){b("DOM not ready, queuing ajaxForm"),a(function(){a(d.s,d.c).ajaxForm(c)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(c))}).bind("click.form-plugin",function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(":submit");if(e.length==0)return;c=e[0]}var f=this;f.clk=c;if(c.type=="image")if(b.offsetX!=undefined)f.clk_x=b.offsetX,f.clk_y=b.offsetY;else if(typeof a.fn.offset=="function"){var g=d.offset();f.clk_x=b.pageX-g.left,f.clk_y=b.pageY-g.top}else f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})},a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},a.fn.formToArray=function(b){var c=[];if(this.length===0)return c;var d=this[0],e=b?d.getElementsByTagName("*"):d.elements;if(!e)return c;var f,g,h,i,j,k,l;
182for(f=0,k=e.length;f<k;f++){j=e[f],h=j.name;if(!h)continue;if(b&&d.clk&&j.type=="image"){!j.disabled&&d.clk==j&&(c.push({name:h,value:a(j).val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}));continue}i=a.fieldValue(j,!0);if(i&&i.constructor==Array)for(g=0,l=i.length;g<l;g++)c.push({name:h,value:i[g]});else i!==null&&typeof i!="undefined"&&c.push({name:h,value:i})}if(!b&&d.clk){var m=a(d.clk),n=m[0];h=n.name,h&&!n.disabled&&n.type=="image"&&(c.push({name:h,value:m.val()}),c.push({name:h+".x",value:d.clk_x},{name:h+".y",value:d.clk_y}))}return c},a.fn.formSerialize=function(b){return a.param(this.formToArray(b))},a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var d=this.name;if(!!d){var e=a.fieldValue(this,b);if(e&&e.constructor==Array)for(var f=0,g=e.length;f<g;f++)c.push({name:d,value:e[f]});else e!==null&&typeof e!="undefined"&&c.push({name:this.name,value:e})}});return a.param(c)},a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;d<e;d++){var f=this[d],g=a.fieldValue(f,b);if(g===null||typeof g=="undefined"||g.constructor==Array&&!g.length)continue;
182g.constructor==Array?a.merge(c,g):c.push(g)}return c},a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();c===undefined&&(c=!0);if(c&&(!d||b.disabled||e=="reset"||e=="button"||(e=="checkbox"||e=="radio")&&!b.checked||(e=="submit"||e=="image")&&b.form&&b.form.clk!=b||f=="select"&&b.selectedIndex==-1))return null;if(f=="select"){var g=b.selectedIndex;if(g<0)return null;var h=[],i=b.options,j=e=="select-one",k=j?g+1:i.length;for(var l=j?g:0;l<k;l++){var m=i[l];if(m.selected){var n=m.value;n||(n=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value);if(j)return n;h.push(n)}}return h}return a(b).val()},a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})},a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();a=="text"||a=="password"||b=="textarea"?this.value="":a=="checkbox"||a=="radio"?this.checked=!1:b=="select"&&(this.selectedIndex=-1)})},a.fn.resetForm=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})},a.fn.enable=function(a){a===undefined&&(a=!0);return this.each(function(){this.disabled=!a})},a.fn.selected=function(b){b===undefined&&(b=!0);return this.each(function(){var c=this.type;if(c=="checkbox"||c=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){var d=a(this).parent("select");b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(!1),this.selected=b}})}})(jQuery) 183;/*})'"*/;/*})'"*/ 184(function(t){Drupal.behaviors.formSingleSubmit={attach:function(){function a(a){var e=t(a.currentTarget),r=e.serialize(),i=e.attr('data-drupal-form-submit-last');if(i===r){a.preventDefault()} 185else{e.attr('data-drupal-form-submit-last',r)}};t('body').once('form-single-submit').delegate('form:not([method~="GET"])','submit.singleSubmit',a)}}})(jQuery);;/*})'"*/ 186(function(t){Drupal.honeypot={};Drupal.honeypot.timestampJS=new Date();Drupal.behaviors.honeypotJS={attach:function(e,a){t('form.honeypot-timestamp-js').once('honeypot-timestamp').bind('submit',function(){var e=t(this).find('input[name="honeypot_time"]');e.attr('value',Drupal.behaviors.honeypotJS.getIntervalTimestamp())})},getIntervalTimestamp:function(){var t=new Date(),e=Math.floor((t-Drupal.honeypot.timestampJS)/1000);return Drupal.settings.honeypot.jsToken+'|'+e}};if(Drupal.ajax&&Drupal.ajax.prototype&&Drupal.ajax.prototype.beforeSubmit){Drupal.ajax.prototype.honeypotOriginalBeforeSubmit=Drupal.ajax.prototype.beforeSubmit;Drupal.ajax.prototype.beforeSubmit=function(e,a,o){if(this.form&&t(this.form).hasClass('honeypot-timestamp-js')){for(key in e){if(e[key].name=='honeypot_time'&&e[key].value=='no_js_available'){e[key].value=Drupal.behaviors.honeypotJS.getIntervalTimestamp()}}};return Drupal.ajax.prototype.honeypotOriginalBeforeSubmit(e,a,o)}}}(jQuery));;/*})'"*/ 187(function(a){var e=a.ajax.prototype.beforeSerialize;a.ajax.prototype.beforeSerialize=function(t,r){e.call(this,t,r);r.data['ajax_page_state[jquery_version]']=a.settings.ajaxPageState.jquery_version}})(Drupal);;/*})'"*/ 188(function(t,o){o.behaviors.bt_leads_antibot_workaround={attach:function(i,e){t('body').once(function(){const targetNode=document.getElementsByTagName('body')[0];const config={attributes:!1,childList:!0,subtree:!1};const callback=(mutationList,observer)=>{for(const mutation of mutationList){if(mutation.type==='childList'){let $form=t('body > div.reveal-modal form[id^=bt-leads]');if(!$form.length){return};t.get('/bt-leads-antibot-workaround').done(function(t){let initBehavior=!1;if(typeof o.antibot==='undefined'){let antibotScript=document.createElement('script');antibotScript.src='/sites/all/modules/contrib/antibot/js/antibot.js';document.head.appendChild(antibotScript);initBehavior=!0};setTimeout(function(){let data2=t;if(initBehavior){o.behaviors.antibot.attach(document)};e.antibot=e.antibot??{};e.antibot.forms={...(e.antibot.forms??{}),...data2};e.antibot.human=!1;o.antibot.unlockForms()},0)})}}};const observer=new MutationObserver(callback);observer.observe(targetNode,config)})}}})(jQuery,Drupal);;/*})'"*/ 189(function(e){Drupal.behaviors.vrfusionSiteAlterQuickSearch={attach:function(t,o){e("body").once("EnhancedRiotSolrFacetSelect-Post").on("EnhancedRiotSolrFacetSelect-Post",function(e){let items=e.EnhancedRiotSolrFacetSelect.items;let keys=Array.from(items.keys());let newItems=keys.reduce(function(t,e){if(!e){t[e]=items[e]} 190else{items[e].facetLabel=items[e].facet;t[parseInt(items[e].facet)]=items[e]};return t},[]);items=[];for(let newKey in newItems){if(!newItems[newKey]){continue};items[items.length]=newItems[newKey]};e.EnhancedRiotSolrFacetSelect.items=items;setTimeout(function(){},500)});let addLogic=function(){let selectControl=e("select[data-facetid='EnhancedRiotSolrFacetList-is_rc_core_lodging_product$occ_total']");let items=selectControl.find("option");if(items.length<=1){setTimeout(addLogic,500);return};let max=0;items.each(function(t,o){let val=parseInt(e(this).attr("value"));if(isNaN(val)){return};if(val>max){max=val}});e("body").once("EnhancedRiotSolrFacetGroup").data("is_rc_core_lodging_product$occ_total",max).on("EnhancedRiotSolrFacetGroup",function(t){let max=e("body").data("is_rc_core_lodging_product$occ_total");let daPath=decodeURIComponent(t.EnhancedRiotSolrFacetGroup.path);daPath=daPath.replace(/(is_rc_core_lodging_product\$occ_total:)(\d+)/g,"$1[$2 TO "+max+"]");t.EnhancedRiotSolrFacetGroup.path=daPath})};addLogic()}}})(jQuery);;/*})'"*/ 191(function(t){Drupal.behaviors.vrfusion_site_searches_treatments={attach:function(e,c){t('body').once(function(){new MutationObserver(function(e){if(!t('enhanced-riot-solr-facet-select select[data-facetid="EnhancedRiotSolrFacetList-is_rc_core_lodging_product$occ_total"] > option:not([value])').length){return};
191let fsLabel=t('enhanced-riot-solr-facet-select select[data-facetid="EnhancedRiotSolrFacetList-is_rc_core_lodging_product$occ_total"] > option:not([value])').html().trim();t('enhanced-riot-solr-facet-select select[data-facetid="EnhancedRiotSolrFacetList-is_rc_core_lodging_product$occ_total"] > option[value]').once().each(function(){t(this).html(fsLabel+': '+t(this).html())})}).observe(document.querySelector('body'),{subtree:!0,childList:!0,characterData:!0,})})}}})(jQuery);;/*})'"*/ 192(function(t){t(document).bind('insertIntoActiveEditor',function(i,t){if(t['fields']['title']&&Drupal.settings.captionFilter.widgets[t['widgetType']]){t['content']='[caption caption="'+t['fields']['title'].replace(/"/g,'\\"')+'"]'+t['content']+'[/caption]'}});Drupal.captionFilter=Drupal.captionFilter||{};Drupal.captionFilter.toHTML=function(t,i){return t.replace(/(?:<p>)?\[caption([^\]]*)\]([\s\S]+?)\[\/caption\](?:<\/p>)?[\s\u00a0]*/g,function(n,c,e){var p,t,a,o;c=c.replace(/\\?'|\\'|\\'/g,''').replace(/\\"|\\"/g,'"');e=e.replace(/\\'|\\'/g,''').replace(/\\"/g,'"');p=c.match(/id=['"]([^'"]+)/i);t=c.match(/align=['"]([^'"]+)/i);ct=c.match(/caption=['"]([^'"]+)/i);a=e.match(/width=['"]([0-9]+)/);p=(p&&p[1])?p[1]:'';t=(t&&t[1])?'caption-'+t[1]:'';ct=(ct&&ct[1])?ct[1].replace(/\\\\"/,'"'):'';a=(a&&a[1])?parseInt(a[1])+'px':'auto';if(i=='tinymce')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else if(i=='ckeditor')o=(t=='caption-center')?'mceTemp mceIEcenter':'mceTemp';else o='';if(ct){return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'<p class="caption-text">'+ct+'</p></div></div></div>'} 193else{return'<div class="caption '+t+' '+o+' draggable"><div class="caption-width-container" style="width: '+a+'"><div class="caption-inner">'+e+'</div></div></div>'}})};Drupal.captionFilter.toTag=function(t){return t.replace(/(<div class="caption [^"]*">)\s*<div[^>]+>\s*<div[^>]+>(.+?)<\/div>\s*<\/div>\s*<\/div>\s*/gi,function(i,a,c){var t;t=a.match(/class=.*?caption-(left|center|right)/i);t=(t&&t[1])?t[1]:'';caption=c.match(/\<p class="caption-text"\>(.*)\<\/p\>/);caption_html=(caption&&caption[0])?caption[0]:'';caption=(caption&&caption[1])?caption[1].replace(/"/g,'\\"'):'';c=c.replace(caption_html,'');return'[caption'+(caption?(' caption="'+caption+'"'):'')+(t?(' align="'+t+'"'):'')+']'+c+'[/caption]'})}})(jQuery);;/*})'"*/ 194(function(a,l){l.behaviors.bt_callout_banner={attach:function(e,o){var n=function(){var l=a.cookie('bt_callout_banner');if(l==='closed'){a('.block-bt-callout-banner-callout-banner').addClass('closed');a('body').removeClass('has-callout-banner')}},l=a('.block-bt-callout-banner-callout-banner .callout-close');if(l.length){if(!l.hasClass('bt_callout_banner-processed')){l.on('click',function(){a.cookie('bt_callout_banner','closed',{expires:7,path:'/'});n();return!1}).addClass('bt_callout_banner-processed')}};n()}}})(jQuery,Drupal);;/*})'"*/ 195[].filter||(Array.prototype.filter=function(e,t,a,r,c){a=this;r=[];for(c in a)~~c+''==c&&c>=0&&e.call(t,a[c],+c,a)&&r.push(a[c]);return r});if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(e){'use strict';if(this==null){throw new TypeError()};var r=Object(this),c=r.length>>>0;if(c===0){return-1};var t=c;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0} 196else{if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}}};var a=t>=0?Math.min(t,c-1):c-Math.abs(t);for(;a>=0;a--){if(a in r&&r[a]===e){return a}};return-1}}(function(e){Drupal.rc_ua={trackAddtoCartFunc:function(e,t,a){var r,c,o='rc.ecom.addToCart';if(t.parents('[data-rc-ua-ecommerce-detail]').length>0){c='Details'} 197else{if(t.parents().find('.ui-dialog').length>0){o='rc.ecom.addToCartQuote';c='Detailed Quote'} 198else{var n=t.parents('[data-rc-ua-ecommerce-impression]').data('data-rc-ua-ecommerce-list');c='List: '+n}};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){r={'event':o,'eventCategory':'eCommerce','eventAction':'Add to Cart from '+c,'eventLabel':e.id,'ecommerce':{'add':{'products':[e]}},'eventCallback':a,'callback':a};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(r)} 199else{ga('ec:addProduct',e);ga('ec:setAction','add');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Add to Cart from '+c,'eventLabel':e.id,'eventValue':Math.round(e.price),'hitCallback':a})};ga4.event({event:'add_to_cart',value:Math.round(e.price),eventAction:'Add to Cart from '+c,eventCategory:'eCommerce',eventLabel:e.id,items:[e]})},trackCheckoutStepFunc:function(e,t,a){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){dlo=Object.assign({},t,{'callback':a,'eventCallback':a,'eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step});window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(dlo)} 200else{ga('ec:addProduct',e.product);ga('ec:setAction','checkout',{'step':e.step});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Checkout Step','eventLabel':e.step,'eventValue':Math.round(e.product.price),'hitCallback':a})};ga4.event({value:Math.round(e.product.price),items:[e.product],step:e.step,event:'begin_checkout',eventCategory:'eCommerce',eventAction:'Checkout Step',eventLabel:e.step,})}};Drupal.behaviors.rc_ua={initProductClicks:function(t,a){e('[data-rc-ua-ecommerce-click-path]:not([data-rc-ua-ecommerce-click-path=""])',t).once('rc_ua_initProductClicks',function(){var a=e(this).attr('data-rc-ua-ecommerce-click-path'),t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),c=this;e('a',this).each(function(){var c=e(this).attr('href');if(c!==undefined&&c.indexOf(a)==0){e(this).click(function(a){a.preventDefault();var c=e(this).attr('href'),r=e(this);if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){obj={'event':'rc.ecom.productClick','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'ecommerce':{'click':{'actionField':{list:t.list,position:t.position},'products':[t]}},'eventCallback':function(){if(r.attr('target')==='_blank'){let anchor=d
200ocument.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()} 201else{window.location=c}}};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(obj)} 202else{ga('ec:addProduct',t);ga('ec:setAction','click',{list:t.list});ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Click','eventLabel':t.id,'eventValue':null,'hitCallback':function(){if(r.attr('target')==='_blank'){let anchor=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()} 203else{window.location=c}}});ga4.event({event:'select_item',eventCategory:'eCommerce',eventAction:'Product Click',eventLabel:t.id,items:[t],});setTimeout(function(){if(r.attr('target')==='_blank'){let anchor=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()} 204else{window.location=c}},2000)}})}})})},initProductLists:function(t,a){if(Drupal.settings.rc_ua.rc_ua_tracking_method!='ua'){return};e('[data-rc-ua-ecommerce-list]:not([data-rc-ua-ecommerce-list=""])',t).once('rc_ua_trackProductLists',function(){var t=e(this).attr('data-rc-ua-ecommerce-list'),a=parseInt(e(this).attr('data-rc-ua-ecommerce-list-start'));e('[data-rc-ua-ecommerce-impression]',this).each(function(c,r){e(this).data('data-rc-ua-ecommerce-list',t);e(this).data('data-rc-ua-ecommerce-list-pos',a+c+1)})})},trackProductImpressions:function(t,a){var u=!1,s=10,o=0,d=e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).length,n=0,r=[],c=[],i=function(e){return e.filter(function(e,t,a){return a.lastIndexOf(e)===t})};e('[data-rc-ua-ecommerce-impression]:not([data-rc-ua-ecommerce-impression=""])',t).once('rc_ua_trackProductImpressions',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-impression')),a=e(this).data('data-rc-ua-ecommerce-list-pos'),d=e(this).data('data-rc-ua-ecommerce-list');if(typeof(d)!='undefined'&&d){t.list=d};if(typeof(a)!='undefined'&&a){t.pos=a};if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({eventLabel:t.list,eventCategory:'eCommerce',eventAction:'Product Impressions','event':'rc.ecom.impressions','ecommerce':{'impressions':[t]}})} 205else{ga('ec:addImpression',t);o++;r.push(t.list);if((o%s)==0){c=i(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists: '+c.join(),'eventValue':null,'nonInteraction':1});n=n+o;o=0;r=[]};u=!0};c=i(r);ga4.event({event:'view_item',eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:'Lists: '+c.join(),items:[t]})});if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'&&u&&n<d){c=i(r);ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Impressions','eventLabel':'Lists:'+c.join(),'eventValue':null,'nonInteraction':1})}},trackProductDetails:function(t,a){e('[data-rc-ua-ecommerce-detail]:not([data-rc-ua-ecommerce-detail=""])',t).once('rc_ua_trackProductDetails',function(){var t=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-detail'));if(Drupal.settings.rc_ua.rc_ua_tracking_method==='ua'){ga('ec:addProduct',t);ga('ec:setAction','detail');ga('send',{'hitType':'event','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'nonInteraction':1})} 206else if(Drupal.settings.rc_ua.rc_ua_tracking_method==='tm'){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.productDetails','eventCategory':'eCommerce','eventAction':'Product Detail View','eventLabel':t.id,'eventValue':Math.round(t.price),'ecommerce':{'detail':{'products':[t]}}})};ga4.event({event:'view_item',value:Math.round(t.price),items:[t],eventCategory:'eCommerce',eventAction:'Product Impressions',eventLabel:t.id})})},trackAddToCart:function(t,a){var c;e('[data-rc-ua-ecommerce-submit-addtocart]:not([data-rc-ua-ecommerce-submit-addtocart=""])',t).once('rc_ua_trackSubmitAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-addtocart'));e(this).on('submit',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var a=function(){e(t).addClass('rc-ua-tracked-item');e('.form-submit',t).click()};Drupal.rc_ua.trackAddtoCartFunc(c,e(this),a)}})});e('[data-rc-ua-ecommerce-click-addtocart]:not([data-rc-ua-ecommerce-click-addtocart=""])',t).once('rc_ua_trackClickAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-addtocart'));e(this).on('click',function(){var t=this;if(!e(this).hasClass('rc-ua-tracked-item')){var a=function(){e(t).addClass('rc-ua-tracked-item');e(t).click()};Drupal.rc_ua.trackAddtoCartFunc(c,e(this),a)}})});
206e('[data-rc-ua-ecommerce-addtocart]:not([data-rc-ua-ecommerce-addtocart=""])',t).once('rc_ua_trackAddToCart',function(){c=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-addtocart'));Drupal.rc_ua.trackAddtoCartFunc(c,e(this))})},trackCheckoutSteps:function(t,c){var a,r,o;e('[data-rc-ua-ecommerce-submit-checkoutsteps]:not([data-rc-ua-ecommerce-submit-checkoutsteps=""])',t).once('rc_ua_trackSubmitCheckoutSteps',function(){e(this).submit(function(t){var c=this;if(!e(this).hasClass('rc-ua-tracked-item')){o=function(){e(c).addClass('rc-ua-tracked-item');e('.form-submit',c).last().trigger('click')};a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-submit-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(a,r,o)}})});e('[data-rc-ua-ecommerce-click-checkoutsteps]:not([data-rc-ua-ecommerce-click-checkoutsteps=""])',t).once('rc_ua_trackClickCheckoutSteps',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-click-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};e(this).on('click',function(){Drupal.rc_ua.trackCheckoutStepFunc(a,r)})});e('[data-rc-ua-ecommerce-checkoutsteps]:not([data-rc-ua-ecommerce-checkoutsteps=""])',t).once('rc_ua_trackCheckoutSteps',function(){a=e.parseJSON(e(this).attr('data-rc-ua-ecommerce-checkoutsteps'));r={'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':a.step},'products':[a.product]}}};Drupal.rc_ua.trackCheckoutStepFunc(a,r)})},attach:function(e,t){if(Drupal.settings.rc_ua.rc_ua_tracking_method=='ua'&&typeof ga!='undefined'){ga('require','ec')}
206 207else if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){if(typeof(window[Drupal.settings.rc_ua.rc_ua_tm_datalayer])=='undefined'){return}} 208else if(Drupal.settings.rc_ua.rc_ua_tracking_method!='tm'){return};this.initProductClicks(e,t);this.initProductLists(e,t);this.trackProductImpressions(e,t);this.trackProductDetails(e,t);this.trackAddToCart(e,t);this.trackCheckoutSteps(e,t)}}})(jQuery);;/*})'"*/ 209;var RCRiotTrackingUtils={createProduct:function(t,e){if(!Drupal.settings.riotSolrTracker||!Drupal.settings.riotSolrTracker[t.item.index_id]){return!1};var r=Drupal.settings.riotSolrTracker[t.item.index_id],i;if(!t.item[r.field]){return!1};i=t.getItemPriceRange(t.item.item_id).shift();var a={'name':t.item[r.name],'id':t.item[r.field],'price':i!==null?i.p:'','brand':t.item[r.enhanced_ecomm.brand],'variant':t.item[r.enhanced_ecomm.variant],};return Object.assign({},a,e||{})},trackCheckoutStep:function(t,r,i){if(!window[Drupal.settings.rc_ua.rc_ua_tm_datalayer]){return};var e=this.createProduct(t,r);if(!e){return};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.checkout','ecommerce':{'checkout':{'actionField':{'step':i},'products':[e]}}})},trackAddToCart:function(t,r){if(!window[Drupal.settings.rc_ua.rc_ua_tm_datalayer]){return};var e=this.createProduct(t,r);if(!e){return};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.addToCart','ecommerce':{'add':{'products':[e]}}})}};(function(){if(typeof riot!=='undefined'){riot.mixin('RCRiotTrackingUtils',RCRiotTrackingUtils)}})();;/*})'"*/ 210;var RCGTMItemImpressionTracker={track:function(t){var e=this.formatObject(t);if(e&&window[Drupal.settings.rc_ua.rc_ua_tm_datalayer]){window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push({'event':'rc.ecom.impressions','ecommerce':{'impressions':[e]}})}},formatObject:function(t){return RCRiotTrackingUtils.createProduct(t,{'list':t.opts.optionset_name,'position':this.getItemResultIndex(t)})},getItemResultIndex:function(t){var e=[].slice.call(t.root.parentElement.children);return e.indexOf(t.root)},formatDate:function(t){var n=new Date(t),e=''+(n.getMonth()+1),r=''+n.getDate(),a=n.getFullYear();if(e.length<2)e='0'+e;if(r.length<2)r='0'+r;return[a,e,r].join('-')}};(function(){if(typeof RiotTagsDispatch==='undefined'){return!1};RiotTagsDispatch.on('RiotSolrTrackers',function(t){t.push(RCGTMItemImpressionTracker)})})();;/*})'"*/ 211(function(e){Drupal.behaviors.btmNTWIInitialize={attach:function(t,e){if(typeof NavisConvertTagToPhoneNumberBasic!='undefined'&&'btm_ntwi' in e){if(e.btm_ntwi.use_own_block){Drupal.btmNTWI.processPhoneNumbers(t,e)} 212else{Drupal.btmNTWI.processPhoneNumbersLegacy(t,e)};if(e.btm_ntwi.set_keyword){Drupal.btmNTWI.setKeywordsOnForms(t,e)};if(e.btm_ntwi.set_market_fields==!0){Drupal.btmNTWI.setHiddenPhoneNumberField('market_source');Drupal.btmNTWI.setHiddenPhoneNumberField('market')}}}};Drupal.behaviors.btmNTWISendConfirmation={attach:function(t,e){if(typeof SendNavisConfirmationNumber!=='undefined'&&typeof e.btm_ntwi!=='undefined'&&e.btm_ntwi.hasOwnProperty('confirmation_id')){SendNavisConfirmationNumber(e.btm_ntwi.confirmation_id)}}};Drupal.btmNTWI={setHiddenPhoneNumberField:function(t){e('input[name="'+t+'"]').val(NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()))},setKeywordsOnForms:function(t,i){switch(i.btm_ntwi.form_type){case'entityform':var n=ReadNavisTagCookie();e(i.btm_ntwi.keyword_selector+' input',t).attr('id','navis-keyword');NavisSetHiddenKeywordField('navis-keyword');break;case'webform':NavisSetHiddenKeywordField(i.btm_ntwi.keyword_selector);break}},processPhoneNumbers:function(t,i){var o=i.btm_ntwi.large_selector,a=i.btm_ntwi.small_selector,r=NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),n=FormatPhone(r,'(###) ###-####');if(i.btm_ntwi.use_callto){e(o,t).attr('href','callto:'+r)};e(o,t).html(n);e(a,t).attr('href','tel:'+n);e(a,t).html(n)},processPhoneNumbersLegacy:function(t,i){var n=NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie()),o=FormatPhone(n,'(###) ###-####');e('span.navis-phone-number',t).html(o);if(i.btm_ntwi.hasOwnProperty('mobile_enabled')&&i.btm_ntwi.mobile_enabled==!0){e('a#mobile-phone-button').attr('href','tel:'+n)}}}})(jQuery);;/*})'"*/ 213(function(t){var o=function(){var t=window.navigator.userAgent,n=t.indexOf('MSIE ');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};var i=t.indexOf('Trident/');if(i>0){var r=t.indexOf('rv:');return parseInt(t.substring(r+3,t.indexOf('.',r)),10)};var e=t.indexOf('Edge/');if(e>0){return parseInt(t.substring(e+5,t.indexOf('.',e)),10)};return!1},s=!0,n=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){a(t[ind].target);n.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var e=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){i(t[ind].target);e.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var a=function(e){var r=t(e),n;if(s){d(r)} 214else{n=r.attr('data-srcset');if(n){n='srcset="'+n+'" '};t('<img src="'+r.attr('data-src')+'" '+n+'/>').on('load',function(){d(r)})}};function d(t){var n=t.attr('data-src'),e=t.attr('data-srcset');t.attr('src',n);t.addClass('bto-lazy-loaded');if(e){t.attr('srcset',e)}};var r=function(r){t('img[data-src].bto-lazy',r).once('btoLazyLoad',function(){if(typeof n!='undefined'){n.observe(this)} 215else{a(this)}});t('div.bto-lazy-jump',r).once('btoLazyLoad',function(){if(typeof e!='undefined'){e.observe(this)} 216else{i(this)}})},i=function(e){t.get(t(e).attr('data-bto-jump-select'),function(n){var r=t(n);t(r).addClass('bto-lazy-loaded');t(e).replaceWith(r);Drupal.attachBehaviors(r,Drupal.settings)})};Drupal.behaviors.btoLazyLoad={attach:function(t){r(t)}};r(document);t(document).ready(function(){s=!1})})(jQuery);;/*})'"*/ 217riot.tag2('riot-solr-flag-counter', '<section> <span> <a onclick="{RiotSolrFlagCounterViewPage}" href="{RiotSolrFlagPath}"><i></i><span class="flag-count">{RiotSolrFlagCount}</span><span class="favorites-label">{opts.txt.counter_label}</span></a> </span> <div class="{show-items: showItems, flag-items: true}"> <div class="flag-items-wrapper"> <subtag each="{item in items}" tag="{parent.children[0].tag}" options="{Object.assign({}, parent.children[0].options, { \'item\': item })}"> </subtag> </div> </div> </section>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } riot-solr-flag-counter,[data-is="riot-solr-flag-counter"]{ display: block; position: relative; }
217 riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ position: absolute; z-index: 93; right: 0; display: none; padding-top: 10px; min-width: 300px; top: 79px; } @media only screen and (max-width: 64em) { riot-solr-flag-counter .flag-items,[data-is="riot-solr-flag-counter"] .flag-items{ display: none !important; } } riot-solr-flag-counter .flag-items .flag-items-wrapper,[data-is="riot-solr-flag-counter"] .flag-items .flag-items-wrapper{ background: white; box-shadow: 0px 1px 3px rgba(17, 17, 17, 0.35); position: relative; } riot-solr-flag-counter .flag-items.show-items,[data-is="riot-solr-flag-counter"] .flag-items.show-items{ display: block; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"],[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]{ display: block; padding: 10px 15px; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content:after,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .tag-content a.image-wrap{ display: block; width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding: 0; background-color: rgba(17, 17, 17, 0.1); } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] img,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] img{ display: block; height: auto; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] h4,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] h4{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; margin-top: 2px; font-size: 18px; text-align: left; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] p,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] p{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; margin: 0; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-right: 0; float: right; clear: right; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: 100%; } riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:hover,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"] .more-link a:active,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"] .more-link a:active{ background-color: #db1a00; } riot-solr-flag-counter .flag-items riot-solr-result-item:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items riot-solr-result-item:first-of-type:before,riot-solr-flag-counter .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [riot-tag="riot-solr-result-item"]:first-of-type:before,riot-solr-flag-counter .flag-items [data-is="riot-solr-result-item"]:first-of-type:before,[data-is="riot-solr-flag-counter"] .flag-items [data-is="riot-solr-result-item"]:first-of-type:before{ content: \'\'; display: block; width: 0; height: 0; border-style: solid; border-width: 10px; border-color: rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) rgba(17, 17, 17, 0.1) rgba(255, 255, 255, 0); position: absolute; right: 25px; top: -20px; }', '', function(opts) { 218 this.mixin('RiotTagsChildren'); 219 this.mixin('RiotSolrConnection'); 220 this.mixin('RiotSolrItemsContainer'); 221 this.mixin('RiotSolrFlagCounter'); 222}); 223;/*})'"*/;/*})'"*/ 224(function(o){Drupal.behaviors.CToolsJumpMenu={attach:function(e){o('.ctools-jump-menu-hide').once('ctools-jump-menu').hide();o('.ctools-jump-menu-change').once('ctools-jump-menu').change(function(){var e=o(this).val(),n=e.split('::');if(n[1]){location.href=n[1]} 225else{location.href=e};return!1});o('.ctools-jump-menu-button').once('ctools-jump-menu').click(function(){var t=o(this).parents('form').find('.ctools-jump-menu-select'),e=t.val(),n=e.split('::');if(n[1]){location.href=n[1]} 226else{location.href=e};return!1})}}})(jQuery);;/*})'"*/ 227(function(r){Drupal.progressBar=function(t,i,e,s){var a=this;this.id=t;this.method=e||'GET';this.updateCallback=i;this.errorCallback=s;
227this.element=r('<div class="progress" aria-live="polite"></div>').attr('id',t);this.element.html('<div class="bar"><div class="filled"></div></div><div class="percentage"></div><div class="message"> </div>')};Drupal.progressBar.prototype.setProgress=function(t,i){if(t>=0&&t<=100){r('div.filled',this.element).css('width',t+'%');r('div.percentage',this.element).html(t+'%')};r('div.message',this.element).html(i);if(this.updateCallback){this.updateCallback(t,i,this)}};Drupal.progressBar.prototype.startMonitoring=function(r,t){this.delay=t;this.uri=r;this.sendPing()};Drupal.progressBar.prototype.stopMonitoring=function(){clearTimeout(this.timer);this.uri=null};Drupal.progressBar.prototype.sendPing=function(){if(this.timer){clearTimeout(this.timer)};if(this.uri){var t=this;r.ajax({type:this.method,url:this.uri,data:'',dataType:'json',success:function(r){if(r.status==0){t.displayError(r.data);return};t.setProgress(r.percentage,r.message);t.timer=setTimeout(function(){t.sendPing()},t.delay)},error:function(r){t.displayError(Drupal.ajaxError(r,t.uri))}})}};Drupal.progressBar.prototype.displayError=function(t){var i=r('<div class="messages error"></div>').html(t);r(this.element).before(i).hide();if(this.errorCallback){this.errorCallback(this)}}})(jQuery);;/*})'"*/ 228riot.tag2('rc-riot-order', '<div class="tag-content"> <div if="{order}" class="order"> <a if="{opts.mode == \'widget\'}" class="totals trigger" onclick="{triggerClicked}"><i class="fi-shopping-bag"> </i> <span class="price sub-total" if="{opts.txt.subtot && (order.tot || order.litot)}">{(order.tot || order.litot).toLocaleString(\'en\', {minimumFractionDigits: 0, maximumFractionDigits: 0, style: \'currency\', currency: \'USD\' })} </span><span if="{order.lict > 0}" class="vrweb-collection-block-count">{order.lict}</span></a> <div if="{opts.mode == \'detail\'}" class="order-detail" id="order-detail"> <div class="line-items" if="{order.lis}"> <h5>{opts.txt.summary}</h5> <div class="line-item rc-price" each="{ind, price in order.lis}"> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="teaser-img"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}"><img riot-src="{parent.docs[price.eid][parent.opts.image]}"></a> </div> <div if="{typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.image] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="teaser-img"> <img riot-src="{parent.docs[price.eid][parent.opts.image]}"> </div> <div class="group-summary"> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] != \'undefined\'}" class="name"> <a href="{parent.docs[price.eid][parent.opts.link] + \'#\' + jQuery.param({rcav: JSON.stringify(price.qp) })}">{price.n}</a> </div> <div if="{price.n != \'\' && typeof parent.docs[price.eid] != \'undefined\' && typeof parent.docs[price.eid][parent.opts.link] == \'undefined\'}" class="name"> {price.n} </div> <div class="dates"> <span class="dates" if="{price.bt != price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt)} - {parent.RCRiotUtils.formatTimestamp(price.et, {year: \'numeric\'})}</span> <span class="dates" if="{price.bt == price.et}">{parent.RCRiotUtils.formatTimestamp(price.bt, {year: \'numeric\'})}</span> </div> <span if="{price.dn != \'\'}" class="display-name">{price.dn}</span> <span if="{price.dd != \'\'}" class="display-detail">{price.dd}</span> <span class="trav-wrap"> <span if="{price.qp.rcav.adult > 0}" class="trav adult">{price.qp.rcav.adult} {price.qp.rcav.adult == 1 ? \'Adult\' : \'Adults\'}</span> <span if="{price.qp.rcav.child > 0}" class="trav child">{price.qp.rcav.child} {price.qp.rcav.child == 1 ? \'Child\' : \'Children\'}</span> </span> </div> <div class="details"> <div class="price"> <span if="{price.p != \'\'}" class="price">{parent.RCRiotUtils.formatPrice(price, 2)}</span> <button if="{parent.opts.txt.buy}" data-ind="{ind}" onclick="{parent.buyClick}">{parent.opts.txt.buy}</button> <button if="{parent.opts.txt.quote}" data-price="{price}" onclick="{parent.quoteClicked}" class="quote">{parent.opts.txt.quote} </div> </div> <div class="actions"> <button class="remove" data-ind="{ind}" onclick="{parent.removeClick}
228"> Remove </button> </div> </div> </div> <div if="{activities}" class="activities"> <h5>{opts.txt.activities}</h5> <rc-riot-activity-pane each="{ind, act in activities}" category="{act}" form_settings="{parent.form_settings}" trigger_text="+ {act.n}" combine="{true}"></rc-riot-activity-pane> </div> <div class="totals" if="{(order.tot > 0 || order.litot > 0) && opts.txt.subtot}">{opts.txt.subtot} <div class="total-price">{(order.tot || order.litot).toLocaleString(\'en\', {minimumFractionDigits: 2, maximumFractionDigits: 2, style: \'currency\', currency: \'USD\' })} <sup>{opts.txt.subtotann}</sup></div></div> <div class="actions bottom" if="{order.tot > 0 || order.litot > 0}"> <button if="{opts.txt.checkout}" class="checkout" onclick="{doOrderCheckout}">{opts.txt.checkout}</button> <subtag each="{_if(sharechild)}" tag="rc-riot-share-order" options="{parent.sharechild.options}"></subtag> </div> <div class="actions accom"> <button class="search-accom" onclick="{searchAccom}"> <i> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="search-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="0 0 80.5 84.8" style="enable-background:new 0 0 80.5 84.8;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path class="st0" d="M3,33.4c0,8.1,3.2,15.8,8.9,21.5s13.4,8.9,21.5,8.9c5,0,9.7-1.2,14-3.4l12.7,13.7c1.6,1.7,3.7,2.6,5.9,2.6 c2,0,4-0.7,5.5-2.1c3.2-3,3.4-8,0.4-11.3L59.1,49.6c3.1-4.8,4.7-10.4,4.7-16.2c0-8.1-3.2-15.8-8.9-21.5S41.5,3,33.4,3 s-15.8,3.2-21.5,8.9C6.1,17.7,3,25.3,3,33.4z M18.7,18.8c3.9-3.9,9.2-6.1,14.7-6.1s10.8,2.2,14.7,6.1c8.1,8.1,8.1,21.3,0,29.4 c-3.9,3.9-9.2,6.1-14.7,6.1c-5.5,0-10.8-2.2-14.7-6.1C10.6,40,10.6,26.8,18.7,18.8z"></path> </svg> </i>{opts.txt.search_accom} <span id="search-link-arrow"> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="link-arrow" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="-272 381.7 30.3 50.8" style="enable-background:new -272 381.7 30.3 50.8;" xml:space="preserve" preserveaspectratio="xMaxYMid"> <g> <path class="st0" d="M-263.6,431.1l20.4-20.4c0,0,0.1,0,0.1-0.1c1-1,1.4-2.2,1.4-3.5c0-1.3-0.5-2.5-1.4-3.5c0,0-0.1,0-0.1-0.1 l-20.4-20.4c-1.9-1.9-5.1-1.9-7,0s-1.9,5.1,0,7l17,17l-17,17c-1.9,1.9-1.9,5.1,0,7C-268.6,433-265.5,433-263.6,431.1z"></path> </g> </svg> </span></button> </div> </div> </div> </div>', '.st0{fill:#1b76de;} .st0{fill:#1B76DE;} @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-order,[riot-tag="rc-riot-order"],[data-is="rc-riot-order"]{ display: block; } rc-riot-order .order-detail .md-content,[riot-tag="rc-riot-order"] .order-detail .md-content,[data-is="rc-riot-order"] .order-detail .md-content{ padding-bottom: 50px; } rc-riot-order .actions.accom,[riot-tag="rc-riot-order"] .actions.accom,[data-is="rc-riot-order"] .actions.accom{ padding-top: 10px; } rc-riot-order .search-accom,[riot-tag="rc-riot-order"] .search-accom,[data-is="rc-riot-order"] .search-accom{ background: none; border-radius: none; display: block; color: #ff1e00; position: absolute; margin: auto; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 50px; border-radius: 0; text-align: left; border-top: solid 1px #ff1e00; } rc-riot-order .search-accom #search-link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow{ display: inline-block; width: 10px; height: 12px; position: absolute; bottom: 20px; right: 15px; transition: right .15s ease-out; } rc-riot-order .search-accom #search-link-arrow #link-arrow,[riot-tag="rc-riot-order"] .search-accom #search-link-arrow #link-arrow,[data-is="rc-riot-order"] .search-accom #search-link-arrow #link-arrow{ height: 12px; } rc-riot-order .search-accom:hover,[riot-tag="rc-riot-order"] .search-accom:hover,[data-is="rc-riot-order"] .search-accom:hover,rc-riot-order .search-accom:active,[riot-tag="rc-riot-order"] .search-accom:active,[data-is="rc-riot-order"] .search-accom:active{ background: none; color: #111; }
228 rc-riot-order .search-accom:hover .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:hover .search-link-arrow,[data-is="rc-riot-order"] .search-accom:hover .search-link-arrow,rc-riot-order .search-accom:active .search-link-arrow,[riot-tag="rc-riot-order"] .search-accom:active .search-link-arrow,[data-is="rc-riot-order"] .search-accom:active .search-link-arrow{ right: 25px; } rc-riot-order .search-accom i,[riot-tag="rc-riot-order"] .search-accom i,[data-is="rc-riot-order"] .search-accom i{ display: inline-block; width: 15px; height: 18px; margin-bottom: -3px; margin-right: 6px; } rc-riot-order .line-items > h5,[riot-tag="rc-riot-order"] .line-items > h5,[data-is="rc-riot-order"] .line-items > h5{ color: #111; margin-top: -5px; } rc-riot-order .line-items .line-item,[riot-tag="rc-riot-order"] .line-items .line-item,[data-is="rc-riot-order"] .line-items .line-item{ background: #fff; text-align: left; position: relative; padding: 15px 0; border-top: dotted 1px rgba(17, 17, 17, 0.1); } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item:after,[riot-tag="rc-riot-order"] .line-items .line-item:after,[data-is="rc-riot-order"] .line-items .line-item:after{ content: \'\'; display: block; width: 0; height: 0; clear: both; } } rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ height: auto; color: #111; font-size: 17px; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .name,[riot-tag="rc-riot-order"] .line-items .line-item .name,[data-is="rc-riot-order"] .line-items .line-item .name{ padding-right: 75px; } } rc-riot-order .line-items .line-item .name a,[riot-tag="rc-riot-order"] .line-items .line-item .name a,[data-is="rc-riot-order"] .line-items .line-item .name a{ text-decoration: underline; color: #111; } rc-riot-order .line-items .line-item .name a:hover,[riot-tag="rc-riot-order"] .line-items .line-item .name a:hover,[data-is="rc-riot-order"] .line-items .line-item .name a:hover,rc-riot-order .line-items .line-item .name a:active,[riot-tag="rc-riot-order"] .line-items .line-item .name a:active,[data-is="rc-riot-order"] .line-items .line-item .name a:active{ text-decoration: none; } rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 100%; background-size: auto 30px; padding: 0; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .teaser-img,[riot-tag="rc-riot-order"] .line-items .line-item .teaser-img,[data-is="rc-riot-order"] .line-items .line-item .teaser-img{ width: 33.33333%; float: left; padding-left: 15px; padding-right: 15px; position: relative; padding-left: 0; padding-right: 0; } } rc-riot-order .line-items .line-item span.trav-wrap,[riot-tag="rc-riot-order"] .line-items .line-item span.trav-wrap,[data-is="rc-riot-order"] .line-items .line-item span.trav-wrap,rc-riot-order .line-items .line-item div.dates,[riot-tag="rc-riot-order"] .line-items .line-item div.dates,[data-is="rc-riot-order"] .line-items .line-item div.dates{ font-size: 14px; } rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ position: absolute; top: 20px; right: 5px; display: block; width: 70px; height: 26px; padding: 0; background-size: auto 15px; padding: 0; overflow: hidden; overflow: hidden; font-size: 11px; text-transform: uppercase; letter-spacing: .075em; border: solid 1px #111; color: #111; background: none; min-height: 0px; background-color: #fff; } rc-riot-order .line-items .line-item .actions button:hover,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:hover,[data-is="rc-riot-order"] .line-items .line-item .actions button:hover,rc-riot-order .line-items .line-item .actions button:active,[riot-tag="rc-riot-order"] .line-items .line-item .actions button:active,[data-is="rc-riot-order"] .line-items .line-item .actions button:active{ background-color: #111; color: #fff; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .line-item .actions button,[riot-tag="rc-riot-order"] .line-items .line-item .actions button,[data-is="rc-riot-order"] .line-items .line-item .actions button{ right: 0px; top: 15px; } } rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ color: #111; } @media only screen and (min-width: 36.5625em) { rc-riot-order .line-items .teaser-image,[riot-tag="rc-riot-order"] .line-items .teaser-image,[data-is="rc-riot-order"] .line-items .teaser-image,rc-riot-order .line-items div.dates,[riot-tag="rc-riot-order"] .line-items div.dates,[data-is="rc-riot-order"] .line-items div.dates,rc-riot-order .line-items .name,[riot-tag="rc-riot-order"] .line-items .name,[data-is="rc-riot-order"] .line-items .name,rc-riot-order .line-items div.details,[riot-tag="rc-riot-order"] .line-items div.details,[data-is="rc-riot-order"] .line-items div.details{ width: 66.66667%; float: left; padding-left: 15px; padding-right: 15px; position: relative; float: right; clear: right; } } rc-riot-order .line-items .teaser-image div.price span.price,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price span.price,[data-is="rc-riot-order"] .line-items .teaser-image div.price span.price,rc-riot-order .line-items div.dates div.price span.price,[riot-tag="rc-riot-order"] .line-items div.dates div.price span.price,[data-is="rc-riot-order"] .line-items div.dates div.price span.price,rc-riot-order .line-items .name div.price span.price,[riot-tag="rc-riot-order"] .line-items .name div.price span.price,[data-is="rc-riot-order"] .line-items .name div.price span.price,rc-riot-order .line-items div.details div.price span.price,[riot-tag="rc-riot-order"] .line-items div.details div.price span.price,[data-is="rc-riot-order"] .line-items div.details div.price span.price{ color: #ff1e00; font-size: 18px; font-weight: bold; } rc-riot-order .line-items .teaser-image div.price button,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button,[data-is="rc-riot-order"] .line-items .teaser-image div.price button,rc-riot-order .line-items div.dates div.price button,[riot-tag="rc-riot-order"] .line-items div.dates div.price button,[data-is="rc-riot-order"] .line-items div.dates div.price button,rc-riot-order .line-items .name div.price button,[riot-tag="rc-riot-order"] .line-items .name div.price button,[data-is="rc-riot-order"] .line-items .name div.price button,rc-riot-order .line-items div.details div.price button,[riot-tag="rc-riot-order"] .line-items div.details div.price button,[data-is="rc-riot-order"] .line-items div.details div.price button{ font-size: 13px; text-transform: none; padding: 6px 8px; height: auto; letter-spacing: .03em; margin-bottom: 6px; margin-left: 4px; background: #ff1e00; text-transform: uppercase; min-height: 0; } rc-riot-order .line-items .teaser-image div.price button:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:hover,rc-riot-order .line-items .teaser-image div.price button:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button:active,rc-riot-order .line-items div.dates div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button:hover,rc-riot-order .line-items div.dates div.price button:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button:active,[data-is="rc-riot-order"] .line-items div.dates div.price button:active,rc-riot-order .line-items .name div.price button:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button:hover,[data-is="rc-riot-order"] .line-items .name div.price button:hover,rc-riot-order .line-items .name div.price button:active,[riot-tag="rc-riot-order"] .line-items .name div.price button:active,[data-is="rc-riot-order"] .line-items .name div.price button:active,rc-riot-order .line-items div.details div.price button:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button:hover,[data-is="rc-riot-order"] .line-items div.details div.price button:hover,rc-riot-order .line-items div.details div.price button:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button:active,[data-is="rc-riot-order"] .line-items div.details div.price button:active{ background: #111; } rc-riot-order .line-items .teaser-image div.price button.quote,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote,rc-riot-order .line-items div.dates div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote,rc-riot-order .line-items .name div.price button.quote,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote,[data-is="rc-riot-order"] .line-items .name div.price button.quote,rc-riot-order .line-items div.details div.price button.quote,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote,[data-is="rc-riot-order"] .line-items div.details div.price button.quote{ display: inline; background: none; min-height: 0; padding: 0; height: auto; background: none; color: #ff1e00; text-decoration: underline !important; border-radius: 0; text-transform: none; margin: 0; font-weight: 400; display: block; } rc-riot-order .line-items .teaser-image div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:hover,rc-riot-order .line-items .teaser-image div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,[data-is="rc-riot-order"] .line-items .teaser-image div.price button.quote:active,rc-riot-order .line-items div.dates div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:hover,rc-riot-order .line-items div.dates div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.dates div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.dates div.price button.quote:active,rc-riot-order .line-items .name div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:hover,[data-is="rc-riot-order"] .line-items .name div.price button.quote:hover,rc-riot-order .line-items .name div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items .name div.price button.quote:active,[data-is="rc-riot-order"] .line-items .name div.price button.quote:active,rc-riot-order .line-items div.details div.price button.quote:hover,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:hover,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:hover,rc-riot-order .line-items div.details div.price button.quote:active,[riot-tag="rc-riot-order"] .line-items div.details div.price button.quote:active,[data-is="rc-riot-order"] .line-items div.details div.price button.quote:active{ background: none; text-decoration: none !important; } rc-riot-order .md-close,[riot-tag="rc-riot-order"] .md-close,[data-is="rc-riot-order"] .md-close{ position: absolute; top: 10px; right: 10px; display: block; width: 30px; height: 30px; background: url("/sites/all/modules/bluetent/riot_solr/images/icon-x-black.svg") center no-repeat; padding: 0; background-size: auto 20px; } rc-riot-order .totals,[riot-tag="rc-riot-order"] .totals,[data-is="rc-riot-order"] .totals{ text-align: center; padding-top: 10px; } rc-riot-order .totals .total-price,[riot-tag="rc-riot-order"] .totals .total-price,[data-is="rc-riot-order"] .totals .total-price{ font-size: 24px; color: #ff1e00; } rc-riot-order .actions.bottom,[riot-tag="rc-riot-order"] .actions.bottom,[data-is="rc-riot-order"] .actions.bottom{ text-align: center; padding-bottom: 10px; } rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; font-size: 14px; text-transform: none; padding: 7px 10px; height: auto; letter-spacing: .03em; } rc-riot-order .actions.bottom button:hover,[riot-tag="rc-riot-order"] .actions.bottom button:hover,[data-is="rc-riot-order"] .actions.bottom button:hover,rc-riot-order .actions.bottom button:active,[riot-tag="rc-riot-order"] .actions.bottom button:active,[data-is="rc-riot-order"] .actions.bottom button:active{ background-color: #db1a00; } @media only screen and (min-width: 48em) { rc-riot-order .actions.bottom button,[riot-tag="rc-riot-order"] .actions.bottom button,[data-is="rc-riot-order"] .actions.bottom button{ font-size: 16px; } } .reveal-modal rc-riot-order,.reveal-modal [riot-tag="rc-riot-order"],.reveal-modal [data-is="rc-riot-order"]{ display: block; margin-bottom: 35px; }', 'class="mode-{opts.mode}"', function(opts) { 229 this.mixin('RiotSolrConnection'); 230 this.mixin('RiotSolrItemsContainer'); 231 this.mixin('RCRiotOrder'); 232 this.mixin('RCRiotAvailPricing'); 233 this.mixin('RCRiotUtils'); 234 this.mixin('RiotTagsChildren'); 235 if(typeof RCAddonProvider !== 'undefined') { 236 this.mixin('RCAddonProvider'); 237 } 238 this.classes = { 239 'tag-content': true 240 }; 241 (function($, tag) { 242 var pcFunc = tag.processChildren 243 tag.docs = {} 244 tag.activities = null 245 tag.orderdocs = {} 246 tag.classes['mode-' + opts.mode] = true 247 tag.on('update', function() { 248 tag.order = tag.getOrderData() 249 }) 250 tag.RCRiotOrder.on('OrderUpdated', function(order) {
251 tag.update() 252 }) 253 tag.removeClick = function(e) { 254 tag.removeOrderLineItem(e.item.ind) 255 } 256 tag.buyClick = function(e) { 257 tag.buyOrderLineItem(e.item.ind) 258 } 259 tag.searchAccom = function(e) { 260 tag.doOrderSearch(opts.search_accom_path) 261 } 262 tag.loadShortUrl = function() { 263 tag.getShortUrl().done(function(url) { 264 tag.orderShortUrl = url 265 tag.update() 266 }) 267 } 268 tag.fetchOrderDocs = function() { 269 var od = tag.getOrderData(), p = $.Deferred() 270 var pks = [], 271 self = this; 272 for(ind in od.lis) { 273 pks.push(od.lis[ind].eid) 274 } 275 if(pks.length > 0) { 276 return tag.RiotSolrManager.getDocumentsByKeys(pks) 277 } 278 } 279 tag.triggerClicked = function(e) { 280 RiotTagsModal.mount('rc-riot-order', $.extend({}, opts, {mode: 'detail'}), 'medium') 281 } 282 tag.RCRiotOrder.on('RequestShowOrder', function() { 283 if(tag.opts.mode === 'widget') { 284 tag.triggerClicked() 285 } 286 }) 287 tag.processChildren = function() { 288 pcFunc.call(this) 289 if(tag.hasChildByPlugin('RCRiotActivityPane')) { 290 apchild = tag.getChildByPlugin('RCRiotActivityPane') 291 apchild.mounted = true 292 tag.activities = apchild.options.cats 293 tag.form_settings = apchild.options.form_settings 294 tag.classes['has-activities'] = true 295 } 296 if(tag.hasChildByPlugin('RCRiotShareOrder')) { 297 tag.sharechild = tag.getChildByPlugin('RCRiotShareOrder') 298 tag.sharechild.mounted = true 299 } 300 } 301 tag.quoteClicked = function (e) { 302 $(e.target).addClass('pending').prop('disabled', true) 303 tag.showDetailedQuote(e.item.price, opts.txt.buy != '' ? opts.txt.buy : null).done(function (data) { 304 RiotTagsModal.show($(data.content), 'tiny') 305 }).always(function () { 306 $(e.target).removeClass('pending').prop('disabled', false) 307 }) 308 } 309 if(opts.mode == 'widget') { 310 tag.skip_children = true 311 } else if(typeof tag.opts.eid != 'undefined' && tag.opts.eid != '') { 312 tag.RiotSolrManager.observable.on('RiotSolrBoot', function() { 313 tag.fetchOrderDocs().done(function(docs) { 314 tag.docs = {} 315 for(var ind in docs) { 316 tag.docs[docs[ind][tag.opts.eid]] = docs[ind] 317 } 318 tag.update() 319 }) 320 }) 321 } 322 323 })(jQuery, this); 324}); 325;/*})'"*/;/*})'"*/ 326riot.tag2('rc-riot-avail-pricing', '<div class="tag-content"> <div if="{mode==\'summary\'}" class="{\'price-summary\' : true, \'has-package\' : has_package, \'has-coupon\' : has_coupon, \'has-savings\' : has_savings, \'is-alternate\' : is_alternate}"> {pricing_text} <div class="display-savings" if="{savings_text != \'\'}"> <span>{opts.txt.savings_annot}</span> {savings_text}! </div> <a class="trigger" onclick="{triggerClicked}"> {opts.txt.trigger} <i> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="-285 381.8 40.8 30.7" style="enable-background:new -285 381.8 40.8 30.7;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path d="M-247,386.8h-11.4l-1.4-3.5c-0.3-0.9-1.2-1.5-2.2-1.5h-5c-1,0-1.8,0.5-2.2,1.6l-1.3,3.4h-11.4c-1.6,0-2.9,1.2-2.9,2.9v20 c0,1.6,1.2,2.9,2.9,2.9h35c1.6,0,2.9-1.2,2.9-2.9v-19.7h0.1v-0.2C-244.2,388-245.4,386.8-247,386.8z M-274.9,388.5v22.3h-7.1 c-0.7,0-1.2-0.5-1.2-1.2v-20c0-0.7,0.5-1.1,1.2-1.1H-274.9z M-268.7,386.8l1.2-2.8c0.1-0.2,0.3-0.4,0.5-0.4h5c0.3,0,0.5,0.1,0.6,0.3 l1.2,2.9H-268.7z M-273.2,410.8v-22.3h16.3v22.3H-273.2z M-245.9,389.7v20c0,0.7-0.5,1.2-1.1,1.2h-8.2v-22.3h8.2 C-246.4,388.5-245.9,389-245.9,389.7z"></path> </svg> </i> </a> </div> <div if="{mode==\'detail\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{ind, og in offer_groups}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <button if="{parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> </div> <div if="{mode==\'alternates\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in featuredOfferGroups()}" class="{\'offer-group\': true, og.offerby: true}"> <h5 if="{og.name !=\'\'}">{og.name}</h5> <div each="{price in og.offers}" class="{\'rc-price\': true, \'has-package\': price.has_package, \'is-alternate\' : price.is_alternate}"> <div if="{price.dn.length}" class="display-name">{price.dn}</div> <div if="{parent.parent.opts.show_quote_detail && price.dd.length}" class="display-detail">{price.dd}</div> <div if="{parent.parent.opts.show_quote_savings && price.has_savings}" class="display-savings"> <span>{parent.parent.opts.txt.savings_annot}</span> {parent.parent.RCRiotUtils.formatSavings(price, precision, parent.parent.opts.display_type)} </div> <div class="price"> <span class="original-price" if="{price.s && parent.parent.opts.show_original_price}"> {parent.parent.RCRiotUtils.formatOriginalPrice(price, precision, parent.parent.opts.display_type)} </span> {parent.parent.RCRiotUtils.formatPrice(price, precision, parent.parent.opts.display_type)} <sup if="{parent.parent.opts.txt.annot}"> {parent.parent.opts.txt.annot} </sup> </div> <button if="{parent.parent.opts.show_buy}" data-price="{price}" onclick="{parent.parent.buyClicked}" class="book"> {parent.parent.opts.txt.buy} </button> <button if="{parent.parent.opts.show_add}" data-price="{price}" onclick="{parent.parent.addClicked}" class="add"> {parent.parent.opts.txt.add} </button> <button if="{parent.parent.opts.show_quote_link}" data-price="{price}" onclick="{parent.parent.quoteClicked}" class="quote"> {parent.parent.opts.txt.quote} </button> </div> </div> <div if="{featuredOfferGroups().length < 1}" class="not-available">{opts.txt.not_available}</div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} <i> <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewbox="-285 381.8 40.8 30.7" style="enable-background:new -285 381.8 40.8 30.7;" xml:space="preserve" preserveaspectratio="xMinYMid"> <path d="M-247,386.8h-11.4l-1.4-3.5c-0.3-0.9-1.2-1.5-2.2-1.5h-5c-1,0-1.8,0.5-2.2,1.6l-1.3,3.4h-11.4c-1.6,0-2.9,1.2-2.9,2.9v20 c0,1.6,1.2,2.9,2.9,2.9h35c1.6,0,2.9-1.2,2.9-2.9v-19.7h0.1v-0.2C-244.2,388-245.4,386.8-247,386.8z M-274.9,388.5v22.3h-7.1 c-0.7,0-1.2-0.5-1.2-1.2v-20c0-0.7,0.5-1.1,1.2-1.1H-274.9z M-268.7,386.8l1.2-2.8c0.1-0.2,0.3-0.4,0.5-0.4h5c0.3,0,0.5,0.1,0.6,0.3 l1.2,2.9H-268.7z M-273.2,410.8v-22.3h16.3v22.3H-273.2z M-245.9,389.7v20c0,0.7-0.5,1.2-1.1,1.2h-8.2v-22.3h8.2 C-246.4,388.5-245.9,389-245.9,389.7z"></path> </svg> </i> </a> </div> </div>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } rc-riot-avail-pricing,[data-is="rc-riot-avail-pricing"]{ display: block; } rc-riot-avail-pricing .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-weight: bold; color: #ff1e00; font-size: 16px; padding-top: 7px; } rc-riot-avail-pricing .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ font-size: 14px; color: #ff1e00; letter-spacing: .03em; padding-top: 3px; } rc-riot-avail-pricing .tag-content .price-summary a:hover,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:hover,rc-riot-avail-pricing .tag-content .price-summary a:active,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a:active{ text-decoration: underline; cursor: pointer; } rc-riot-avail-pricing .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 18px; height: 18px; margin-left: 5px; display: block; float: right;
326 margin-top: 1px; } rc-riot-avail-pricing .tag-content .price-summary a i #Layer_1,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i #Layer_1{ fill: #ff1e00; } @media only screen and (min-width: 30.0625em) { rc-riot-avail-pricing .tag-content .price-summary,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary{ font-size: 18px; } rc-riot-avail-pricing .tag-content .price-summary a,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a{ padding-top: 5px; } rc-riot-avail-pricing .tag-content .price-summary a i,[data-is="rc-riot-avail-pricing"] .tag-content .price-summary a i{ width: 22px; margin-top: -1px; } } rc-riot-avail-pricing .tag-content .offer-group > h5,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group > h5{ color: #111; border-bottom: solid 1px rgba(17, 17, 17, 0.1); padding-bottom: 10px; margin-top: -5px; } rc-riot-avail-pricing .tag-content .offer-group .rc-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price{ text-align: center; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button{ text-transform: none; height: auto; background: #ff1e00; color: #fff; letter-spacing: .03em; margin-bottom: 5px; background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 7px 10px; font-size: 14px; min-height: 30px; width: auto; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background-color: #db1a00; } rc-riot-avail-pricing .tag-content .offer-group .rc-price button:hover,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:hover,rc-riot-avail-pricing .tag-content .offer-group .rc-price button:active,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group .rc-price button:active{ background: #111; } rc-riot-avail-pricing .tag-content .offer-group div.price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price{ text-align: center; color: #ff1e00; font-size: 24px; } rc-riot-avail-pricing .tag-content .offer-group div.price .original-price,[data-is="rc-riot-avail-pricing"] .tag-content .offer-group div.price .original-price{ font-size: 0.8em; text-decoration: line-through; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content .rc-price,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content .rc-price{ text-align: center; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote{ display: block; width: 100%; text-align: center; text-decoration: underline; min-height: 0; padding: 0; margin-top: 12px; background: none; box-shadow: none; color: #111; font-weight: 400; } .node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:hover,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:hover,.node-listing.view-mode-full rc-riot-avail-pricing .tag-content button.quote:active,.node-listing.view-mode-full [data-is="rc-riot-avail-pricing"] .tag-content button.quote:active{ text-decoration: none; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-name,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-name{ font-size: 18px; color: #111; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-detail,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-detail{ color: rgba(17, 17, 17, 0.9); } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings{ font-size: 18px; font-weight: 700; padding-top: 7px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ font-size: 20px; padding-bottom: 5px; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .display-savings,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .display-savings,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content div.price,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content div.price{ color: #ff1e00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.book:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.book:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add{ background-color: #ff1e00; border-radius: 3px; color: #fff; display: inline-block; text-align: center; border: none; transition-property: background-color, color; transition-timing-function: ease-in-out; transition-duration: .15s; letter-spacing: .03em; font-family: "Helvetica", Helvetica, "Arial", Arial, sans-serif; line-height: 1.3 !important; padding: 10px 12px; font-size: 15px; min-height: 38px; width: auto; background-color: rgba(255, 255, 255, 0); border: solid 2px #ff1e00; color: #ff1e00; padding: 8px 12px; min-height: 0; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #db1a00; } .reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:hover,.reveal-modal rc-riot-avail-pricing .tag-content .tag-content .rc-price > button.add:active,.reveal-modal [data-is="rc-riot-avail-pricing"] .tag-content .tag-content .rc-price > button.add:active{ background-color: #ff1e00; color: #fff; }', 'class="mode-{mode}"', function(opts) { 327 this.mixin('RCRiotOrder'); 328 this.mixin('RiotNotify'); 329 this.mixin('RCRiotAvailPricing'); 330 this.mixin('RCRiotAvailPricingGrouper'); 331 this.mixin('RCRiotAvailPricingTokenizer'); 332 333 if (typeof RCAddonProvider !== 'undefined') { 334 this.mixin('RCAddonProvider'); 335 } 336 337 (function($, tag) { 338 tag.precision = parseInt(opts.precision, 10) || 0; 339 tag.mode = opts.mode || 'default'; 340 tag.eid = opts.eid || null; 341 tag.pricing = opts.pricing || tag.getItemPricing(tag.eid); 342 tag.offerby = opts.offerby || 'default'; 343 tag.show_buy = (opts && opts.show_buy) || opts.show_buy || false; 344 tag.show_add = (opts && opts.show_add) || opts.show_add || false; 345 tag.has_package = false;
346 tag.has_coupon = false; 347 tag.has_savings = false; 348 tag.has_alternates = false; 349 tag.item = opts.item || null; 350 tag.classes = {}; 351 tag.classes['mode-' + opts.mode] = true; 352 tag.RCRiotAvailPricing.on('PricingChanged', function(data) { 353 tag.pricing = data.pricing['eid-' + tag.eid]; 354 tag.update(); 355 }); 356 tag.on('update', function() { 357 if (typeof tag.pricing != 'undefined') { 358 tag.has_pricing = true; 359 tag.eid = tag.pricing.eid; 360 tag.pricing_text = tag.formatItemPriceRange( 361 tag.eid, 362 0, 363 tag.opts.display_type 364 ); 365 tag.savings_text = tag.formatItemSavingsRange( 366 tag.eid, 367 0, 368 tag.opts.display_type 369 ); 370 } else { 371 tag.has_pricing = false; 372 } 373 tag.offer_groups = (tag.opts.offer_groups) 374 ? tag.opts.offer_groups 375 : tag.processPricing(tag.pricing, tag); 376 tag.classes['has-package'] = tag.has_package; 377 tag.classes['has-coupon'] = tag.has_coupon; 378 tag.classes['has-savings'] = tag.has_savings; 379 tag.classes['is-alternate'] = tag.has_alternates; 380 }); 381 382 tag.addClicked = function(e) { 383 tag.addOrderLineItem(e.item.price).done(function() { 384 tag.showOrderDetail(); 385 }); 386 }; 387 388 tag.buyClicked = function(e) { 389 tag.buyNow(e.item.price); 390 }; 391 392 tag.quoteClicked = function(e) { 393 $(e.target).addClass('pending').prop('disabled', true); 394 tag 395 .showDetailedQuote(e.item.price, opts.show_buy ? opts.txt.buy : null) 396 .done(function(data) { 397 RiotTagsModal.show($(data.content), 'tiny'); 398 }) 399 .always(function() { 400 $(e.target).removeClass('pending').prop('disabled', false); 401 }); 402 }; 403 404 tag.triggerClicked = function(e) { 405 if ( 406 opts.trigger_order && 407 tag.pricing.prices.length == 1 && 408 $('rc-riot-order').length > 0 409 ) { 410 tag.addOrderLineItem(tag.pricing.prices[0]).done(function() { 411 tag.showOrderDetail(); 412 }); 413 } else { 414 tag.popModal(opts); 415 } 416 }; 417 418 tag.getAlternatesOpts = function () { 419 var newOpts = $.extend({}, opts); 420 if (!tag.offer_groups) { 421 return newOpts; 422 } 423 424 newOpts.offer_groups = {}; 425 426 for (group in tag.offer_groups) { 427 if (!tag.offer_groups[group].featured) { 428 newOpts.offer_groups[group] = tag.offer_groups[group]; 429 } 430 } 431 432 return newOpts; 433 }; 434 435 tag.popModal = function (modalOpts) { 436 RiotTagsModal.mount( 437 'rc-riot-avail-pricing', 438 $.extend({}, modalOpts, { mode: 'detail' }), 439 'small' 440 ); 441 }; 442 443 tag.popModalWith = function (modalOpts) { 444 return function (e) { 445 tag.popModal(modalOpts); 446 }; 447 }; 448 })(jQuery, this); 449}); 450;/*})'"*/;/*})'"*/ 451;var LDRCCurrencySymbols={'USD':'$','CAD':'$','EUR':'â¬'};(function(t){var r={RCRiotUtils:{formatTimestamp:function(t,r){return new Date(t).toLocaleString(window.navigator.language,Object.assign({weekday:'short',day:'numeric',month:'short'},r||{}))},formatSavings:function(t,r,n){var e=parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatOriginalPrice:function(t,r,n){var e=parseFloat(t.p)+parseFloat(t.s);return this.formatHelper(e,t,r,n)},formatPrice:function(t,r,n){var e=parseFloat(t.p);return this.formatHelper(e,t,r,n)},formatHelper:function(t,r,n,o){var e='';switch(parseInt(o)){case 8:t=t/this.nightsBetween(r.bt,r.et);e='/nt';break};return''+this.formatCurrency(t,r.c,n)+e},formatCurrency:function(t,r,n){t=parseFloat(t);if(typeof n==='undefined'){n=0};if(this.toLocaleStringSupportsOptions()){return t.toLocaleString('en',{style:'currency',currencyDisplay:'symbol',currency:r,minimumFractionDigits:n,maximumFractionDigits:n})};t.toFixed(n).replace(/./g,function(t,r,n){return r&&t!=='.'&&((n.length-r)%3===0)?','+t:t});
451if(typeof LDRCCurrencySymbols[r]!=='undefined'){return LDRCCurrencySymbols[r]+t};return t},toLocaleStringSupportsOptions:function(){return!!(typeof Intl=='object'&&Intl&&typeof Intl.NumberFormat=='function')},parseQueryParams:function(){var e=window.location.search.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},parseHash:function(){var e=window.location.hash.substring(1),r=e.split('&'),n={};for(var t=0;t<r.length;t++){(function(){var e=r[t].split('=');n[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})()};return n},nightsBetween:function(t,r){var n=Math.round((r-t)/86400/1000);return n},getBuyUrl:function(r){return'/rescms/item/'+r.eid+'/buy?'+t.param(r.qp)}}};riot.mixin('RCRiotUtils',r)})(jQuery);;/*})'"*/ 452(function(t){var e=null,r=null,i={RCRiotOrder:riot.observable(),init:function(){this.mixin('RiotNotify');if(!this.RCRiotUtils){this.mixin('RCRiotUtils')};this.orderStorage='local';this.initOrderData()},addOrderLineItem:function(e){var o,n=this,i,a,s=0;if(this.orderStorage=='local'){i=this.getOrderData();while(typeof a=='undefined'){if(i.lis.hasOwnProperty('ind-'+s)){s++} 453else{a='ind-'+s}};i.lis[a]=e;i.lict++;i.litot+=parseFloat(e.p);this.setOrderData(i);o=t.Deferred();o.resolve(i)} 454else{n=this;o=t.Deferred(function(){r=null;n.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/add',e.qp).done(function(t){n.setOrderData(t);o.resolve(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')}).fail(function(t){o.reject(t)})})};return o},doOrderCheckout:function(){window.location=this.getOrderCheckoutURL()},getShortUrl:function(e){var s=this,o=this.opts.bitly_access_token,i=t.Deferred(),n=location.protocol+'//'+location.host+'/'+e||this.getOrderSearchURL(),a='https://api-ssl.bitly.com/v3/shorten?access_token='+o+'&longUrl='+encodeURIComponent(e||n+'?rcod='+this.getOrderHash());t.getJSON(a,{}).done(function(t){r=t.data.url;i.resolve(t.data.url)}).fail(function(t){i.reject(t)});return i},getOrderHash:function(){return btoa(JSON.stringify(this.getOrderData()))},doOrderSearch:function(t){window.location=t},removeOrderLineItem:function(e){if(this.orderStorage=='local'){var i=this.getOrderData();i.lict--;i.litot-=i.lis[e].p;delete(i.lis[e]);this.setOrderData(i);return t.Deferred(function(){return i})} 455else{var n=this,o=t.Deferred();this.RCRiotOrder.trigger('UpdateStart');t.getJSON('/rcapi/order/remove',{'index':e}).done(function(t){r=null;n.setOrderData(t);o.resolve(t)}).fail(function(t){o.reject(t)}).always(function(){n.RCRiotOrder.trigger('UpdateStop')});return o}},buyOrderLineItem:function(t){var e=this.getOrderData();this.buyNow(e.lis[t])},getOrderCheckoutURL:function(){return'/rescms/order/checkout'},setOrderData:function(t){localStorage.setItem('rcriotorder',JSON.stringify(t));e=t;this.RCRiotOrder.trigger('OrderUpdated',t)},showDetailedQuote:function(e,i){var r=t.Deferred(function(){var o=e.qp;o.buy_text=i;t.getJSON('/rescms/ajax/item/pricing/quote',e.qp).done(function(t){r.resolve(t)}).fail(function(t){r.reject(t)})});return r},showOrderDetail:function(){var t=this;RiotTagsModal.closeAll().done(function(){t.RCRiotOrder.trigger('RequestShowOrder')})},getOrderData:function(){return e},initOrderData:function(){if(e!=null)return;var i=this,o=this.RCRiotUtils.parseHash(),n,r=this.getLocalStorageOrderData();if(o.hasOwnProperty('rcod')){if((typeof r.lict=='undefined'&&r.lict==0)||confirm('This shared order will replace your order in progress. Would you like to proceed?')){n=JSON.parse(atob(o['rcod']));i.setOrderData(n);window.location.hash='';setTimeout(this.showOrderDetail,250)}};if(e==null){if(r.lict){this.setOrderData(r)} 456else if(this.orderStorage=='session'){t.getJSON('/rcapi/order/get').done(function(t){i.setOrderData(t)})} 457else{i.setOrderData({lict:0,lis:{},litot:0})}}},getLocalStorageOrderData:function(){var t={};if(ostr=localStorage.getItem('rcriotorder')){t=JSON.parse(ostr)};return t},buyNow:function(t){window.open(this.RCRiotUtils.getBuyUrl(t)).focus()},getOrderSearchURL:function(){return'/mytrip'},hasOrderLineItems:function(){var t=!1,e=this.getOrderData();if(typeof e.lict!=' undefined'&&parseInt(e.lict)>0){t=!0};return t}};riot.mixin('RCRiotOrder',i)})(jQuery);;/*})'"*/ 458;var RCRiotIsSearching;(function(i){var t,r,e={};var n={RCRiotAvailPricing:riot.observable(),init:function(){var i=this;this.mixin('RCRiotUtils');if(typeof t=='undefined'){i.loadLastSearch();i.loadLastPricing()};
458RiotTagsDispatch.on('BTLeadsShareItems',function(i,t,n){if(n!=='rc_core_item'){return!1};t.items.forEach(function(i,n){if(e['eid-'+i.item_id]){t.items[n].prices=e['eid-'+i.item_id]}})});RiotTagsDispatch.on('RiotSolrCurrentSearchRemoveAll',function(i,t){t.manager.store.remove('rcav')})},formatAvailPrice:function(i,t,e){return!i?'':i.toLocaleString('en',{minimumFractionDigits:t,maximumFractionDigits:t,style:'currency',currency:e||'USD',currencyDisplay:'symbol',useGrouping:!0,})},setAvailPricing:function(i,t){var n={pricing:i,query:t,};e=i;RiotTagsDispatch.trigger('RCRiotPricingChanged',this,n);this.RCRiotAvailPricing.trigger('PricingChanged',n)},getItemPricing:function(i){return this.getAvailPricing()['eid-'+i]},getAvailPricing:function(){return e},storeLastSearch:function(i){localStorage.setItem('rcriotavailpricingparams',JSON.stringify(i))},loadLastSearch:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingparams'));t=i;return i},storeLastPricing:function(i){localStorage.setItem('rcriotavailpricingpricing',JSON.stringify(i))},loadLastPricing:function(){var i=JSON.parse(localStorage.getItem('rcriotavailpricingpricing'));r=i;e=i||{};return i},doSearch:function(e,n,a){t=e;var s=this,c={};a=a||'all';RCRiotIsSearching=!0;document.body.classList.add('rcav-loading-indicator');var o=i.Deferred(function(){s.RCRiotAvailPricing.trigger('SearchStart',e);i.getJSON('/rcapi/item/avail/search',e).done(function(t){i(t).each(function(t,e){var n=null,r=null,c=null;if(this.prices.length>1){switch(a){case'first':this.prices=[this.prices[0]];break;case'low':i(this.prices).each(function(){if(c==null||this.p<c.p){c=this}});this.prices=[c];break;case'low_day':var o=function(i){var t={};var n=[];i.forEach(function(i){if(!t.hasOwnProperty(i.bt)||t[i.bt].p>i.p){t[i.bt]=i}});for(var e in t){if(!t.hasOwnProperty(e)){continue};n.push(t[e])};return n};this.prices=o(this.prices);break}};i(this.prices).each(function(){var t=parseInt(this.p,10),e=parseInt(this.qp.rcav.adult,10)+parseInt(this.qp.rcav.child,10);if(this.qp.senior){e+=parseInt(this.qp.rcav.senior,10)};this.ppp=t/e;if(typeof this.b!='undefined'){this.bt=s.parseDate(this.b);this.et=s.parseDate(this.e);this.nt=((this.et-this.bt)/1000)/86400;this.wk=(this.nt)/7;this.ppn=t/this.nt;this.ppw=t/this.wk;this.pppn=(t/this.nt)/e};if(n==null||this.p<n){n=this.p};if(r==null||this.p>r){r=this.p};this['itemBuyURL']=decodeURIComponent(s.RCRiotUtils.getBuyUrl(this));this['itemURLHash']='#'+i.param({rcav:JSON.stringify(this.qp)})});this.range=[n,r]});r=t;i(t).each(function(i,t){c['eid-'+t.eid]=t});if(n){this.storeLastSearch(e);this.storeLastPricing(c)};s.setAvailPricing(c,e);o.resolve({pricing:c,query:e,})}).always(function(){s.RCRiotAvailPricing.trigger('SearchStop');RCRiotIsSearching=!1;document.body.classList.remove('rcav-loading-indicator')})});return o},getLastSearch:function(){return t},setLastSearch:function(i){t=i},getItemPriceRange:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(e==undefined||e.p>this.p){e=this};if(n==undefined||n.p<this.p){n=this}})};return[e,n]},getItemPriceRangePerNight:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(e==undefined||e.ppn>this.ppn){e=this};if(n==undefined||n.ppn<this.ppn){n=this}})};return[e,n]},getItemPriceRangePerWeek:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(e==undefined||e.ppw>this.ppw){e=this};if(n==undefined||n.ppw<this.ppw){n=this}})};return[e,n]},getItemPriceRangePerPerson:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(e==undefined||e.ppp>this.ppp){e=this};if(n==undefined||n.ppp<this.ppp){n=this}})};return[e,n]},getItemPriceRangePerPersonPerNight:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(e==undefined||e.pppn>this.pppn){e=this};if(n==undefined||n.pppn<this.pppn){n=this}})};return[e,n]},getItemSavingsRange:function(t){var r=this.getItemPricing(t),e=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(typeof this.s!='undefined'&&(e==undefined||e.s>this.s)){e=this};if(typeof this.s!='undefined'&&(n==undefined||n.s<this.s)){n=this}})};return[e,n]},formatItemPriceRange:function(i,t,e){t=isNaN(t)?0:t;var n=this.getItemPriceRange(i),r='';if(n[0].p>0){r=this.RCRiotUtils.formatPrice(n[0],t,e);if(n[0].p!=n[1].p){r+=' - '+this.RCRiotUtils.formatPrice(n[1],t,e)}};return r},formatItemSavingsRange:function(i,t,e){t=isNaN(t)?0:t;var n=this.getItemSavingsRange(i),r='';if(n[1]!=null&&typeof n[1].s!='undefined'&&n[1].s>0){r=this.RCRiotUtils.formatHelper(parseFloat(n[1].s),n[1],t,e)};return r},getLastSearchQuery:function(){return t},getItemHasPackage:function(i){var e=!1,t=this.getItemPricing(i),n;if(typeof t!='undefined'&&typeof t.prices!='undefined'){for(n in t.prices){if(this.getPriceHasPackage(t.prices[n])){e=!0;break}}};return e},getPriceIsAlternate:function(i){return i.qp.rcav.begin!==t.rcav.begin},getPriceHasPackage:function(i){var t=!1;if(typeof i.qp.rcav.IDs!='undefined'&&typeof i.qp.rcav.IDs[2]!='undefined'){t=!0};return t},getPriceHasCoupon:function(i){var t=!1;if(typeof i.qp.rcav.coupon!='undefined'&&i.qp.rcav.coupon!=''){t=!0};return t},getPriceHasSavings:function(i){var t=!1;if(typeof i.s!='undefined'&&parseFloat(i.s)>0){t=!0};return t},parseDate:function(i){var e=new Date(0,0,0,0,0,0,0),t=i.split('-');if(t.length==3){e.setFullYear(t[0],t[1]-1,t[2])} 459else{t=i.split('/');if(t.length==3){e.setFullYear(t[2],t[0]-1,t[1])}};return e.getTime()},};
459riot.mixin('RCRiotAvailPricing',n);i(document).ready(function(){if(typeof RiotSolrItemSortHandlers!=='undefined'){RiotSolrItemSortHandlers['sortPrice']={primer:function(i,t){var e=n.getItemPricing(i);if(e&&e.hasOwnProperty('range')&&Array.isArray(e.range)&&e.range.length>=2){return t?parseFloat(e.range[1]):parseFloat(e.range[0])};return 0},callback:function(i,t,e){var n=this,r=!e?1:-1;i.sort(function(i,a){return(i=n.primer(i[t],e)),(a=n.primer(a[t],e)),r*((i>a)-(a>i))});return i},}}})})(jQuery);;/*})'"*/ 460(function(e){var a=!1,t=!1,n=!1;Drupal.behaviors.rcjs={insuranceCheck:function(t){if(a){return!1};if(typeof Drupal.settings.rcInsuranceStates!='undefined'&&!e.cookie('rcstate')){var i=e('<select><option value="">'+Drupal.settings.rcInsuranceText['sel']+'</option></select>').change(function(){if(e(this).val()!=''){e(this).siblings('button').show()} 461else{e(this).siblings('button').hide()}});for(state in Drupal.settings.rcInsuranceStates){e(i).append(e('<option></option>').attr('value',state).append(Drupal.settings.rcInsuranceStates[state]))};e(i).append(e('<option></option>').attr('value','none').append(Drupal.settings.rcInsuranceText['nl']));var n=e('<div class="rc-insurance-state-select"><span class="copy">'+Drupal.settings.rcInsuranceText['prompt']+'</span></div>');e(n).append(i);e(n).append(e('<button style="display:none;">'+Drupal.settings.rcInsuranceText['button']+'</button>').click(function(){e.cookie('rcstate',e(i).val(),{'path':'/'});e(n).dialog('close').dialog('destroy');e(t).trigger('click')}));e(n).dialog({'modal':1,'title':Drupal.settings.rcInsuranceText['title'],'minWidth':280,'close':function(){a=!1}});a=!0;return!1};if(e(t).is('button')){e(t).parents('form').attr('action',e(t).parents('form').attr('action')+'&province='+e.cookie('rcstate'))} 462else{e(t).attr('href',e(t).attr('href')+'&province='+e.cookie('rcstate'))};return!0},attach:function(a,s){e('.line-item-desc-toggle',a).once('rcjsLineItemDesc',function(){e(this).click(function(){var t=e(this).siblings('.line-item-desc');if(e(t).is(':visible')){e(t).hide(150);e(this).text(e(this).attr('data-show-copy'))} 463else{e(t).show(150);e(this).text(e(this).attr('data-hide-copy'))}})});e('.rcjs-pager',a).once('rcjs-pager-init',function(){e(this).each(function(){e(this).wrapInner('<div class="rcjs-pages"></div>');e('.rcjs-page:gt(0)',this).hide();e('.rcjs-page:eq(0)',this).addClass('active');var t=this,n=function(){var n=e('.rcjs-page.active .rcjs-page-caption',t).filter(':first').html(),a=e('.rcjs-page.active .rcjs-page-caption',t).filter(':last').html();if(n!=a)n=n+' - '+a;e('.rcjs-controls span.title',t).html(n);if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls .prev',t).removeClass('inactive').get(0).removeAttribute('disabled')} 464else{e('.rcjs-controls .prev',t).attr('disabled','disabled').addClass('inactive')};if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls .next',t).removeClass('inactive').get(0).removeAttribute('disabled')} 465else{e('.rcjs-controls .next',t).attr('disabled','disabled').addClass('inactive')}},a=function(){e('.rcjs-controls button',t).attr('disabled','disabled')},i=e('<div class="rcjs-controls"><span class="title"></span></div>').append(e('<button class="prev"><< Prev</button>').click(function(){if(e('.rcjs-page.active',t).prev().length){e('.rcjs-controls span.title',t).html(' ');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).prev().fadeIn(300,n).addClass('active')}).removeClass('active')}})).append(e('<button class="next">Next >></button>').click(function(){if(e('.rcjs-page.active',t).next().length){e('.rcjs-controls span.title',t).html(' ');a();e('.rcjs-page.active',t).fadeOut(300,function(){e(this).next().fadeIn(300,n).addClass('active')}).removeClass('active')}}));e(t).prepend(i);if(e('.rcjs-center',this)){e('.rcjs-center',this).parents('.rcjs-page').each(function(){e(this).siblings().hide().removeClass('active');e(this).show().addClass('active')})};n()})});e('.rc-search-alternate',a).click(function(){if(typeof ga4!=='undefined'){ga4.event({event:'click',location:'rescms_search_alternate',label:e(this).attr('data-alternate-label'),count:Math.round(e(this).attr('data-alternate-count')),eventCategory:'ResCMS Search Alternate',eventAction:'Click',eventLabel:e(this).attr('data-alternate-label'),eventValue:Math.round(e(this).attr('data-alternate-count'))})};if(typeof(ga)!==undefined){var t=this,n={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Click','eventLabel':e(this).attr('data-alternate-label'),'eventValue':Math.round(e(this).attr('data-alternate-count')),'hitCallback':function(){window.location=e(t).attr('href')}};ga('send',n);return!1}});e('.rc-core-search-alternates',a).each(function(){if(typeof ga4!=='undefined'){ga4.event({event:'offer',location:'rescms_search_alternate',value:Math.round(e(this).find('a').length),eventCategory:'ResCMS Search Alternate',eventAction:'Offer',eventLabel:'Offer',eventValue:Math.round(e(this).find('a').length),})};if(typeof(ga)!==undefined){var t={'hitType':'event','eventCategory':'ResCMS Search Alternate','eventAction':'Offer','eventLabel':'Offer','eventValue':Math.round(e(this).find('a').length),'nonInteraction':1};ga('send',t)}});e('.rc-item-quote-link, .rc-item-price-buy button, .rc-trigger-state').click(function(){var e=this;return Drupal.behaviors.rcjs.insuranceCheck(e)});var r=function(){e(this).parents('.rc-core-item-images').find('.first').attr('src',e(this).attr('rel'));e(this).parents('.rc-core-item-images').find('.first-caption').html(e(this).attr('title'))};e('.rcjs-image-thumb',a).hover(r);e('.rc-country-select',a).change(function(){var t=e(this).val();if(t!=''){e('.rc-state-select[rel='+e(this).attr('rel')+']',e(this).parents('fieldset').first()).each(function(){var n=this;e('option',this).remove();e(this).append('<option value=\'0\'>Loading...</option>');e.getJSON('/rescms/order/provinces/'+t,function(t){e('option',n).remove();e(n).append('<option value=\'0\'>Select...</option>');for(code in t){e(n).append('<option value=\''+code+'\'>'+t[code]+'</option>')}})})}});
465if(typeof Drupal.settings.rcInsuranceTIDecline!='undefined'){e('.insurance-ti',a).once('rcInsuranceTI',function(){var a=this,n=e(a);n.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});n.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!t&&((!r.is(':checked')&&n.is('.declinable'))||(r.is(':checked')&&n.is('.acceptable'))||(n.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceTIDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceTIText.declineBtn,click:function(){t=!0;e(this).dialog('destroy');e(s).trigger('click');if(typeof ga4!=='undefined'){ga4.event({event:'decline',value:'insurance',eventCategory:'Insurance',eventAction:'Decline'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Decline'})}}},{text:Drupal.settings.rcInsuranceTIText.acceptBtn,click:function(){t=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')};if(typeof ga4!=='undefined'){ga4.event({event:'purchased',value:'insurance',eventCategory:'Insurance',eventAction:'Purchased'})};if(typeof(ga)!==undefined){ga('send',{'hitType':'event','eventCategory':'Insurance','eventAction':'Purchased'})}}}]})} 466else{return!0};if(!t){i.stopPropagation();i.preventDefault()};return t})})};if(typeof Drupal.settings.rcInsuranceDPDecline!='undefined'){e('.insurance-dp',a).once('rcInsuranceDP',function(){var a=this,t=e(a);t.find('input').next('label').on('click',function(t){t.stopPropagation();t.preventDefault();e(this).prev('input').trigger('mousedown')});t.find('input').on('mousedown',function(i){var r=e(this);if(e(a).is('.forced-choice')&&r.attr('value')==1){return!0};if(!n&&((!r.is(':checked')&&t.is('.declinable'))||(r.is(':checked')&&t.is('.acceptable'))||(t.is('.forced-choice')&&r.attr('value')==-1))){var s=this;e('<div>'+Drupal.settings.rcInsuranceDPDecline+'</div>').dialog({resizable:!1,width:280,modal:!0,buttons:[{text:Drupal.settings.rcInsuranceDPText.declineBtn,click:function(){n=!0;e(this).dialog('destroy');e(s).trigger('click')}},{text:Drupal.settings.rcInsuranceDPText.acceptBtn,click:function(){n=!0;e(this).dialog('destroy');if(e(s).hasClass('form-radio')){e(s).parents('.form-radios').find('input[value=1]').trigger('click')}}}]})} 467else{return!0};if(!n){i.stopPropagation();i.preventDefault()};return n})})};var i=function(){if(e('input[name=\'payment[payment_option]\']:checked').length){var t=e('input[name=\'payment[payment_option]\']:checked').val()} 468else{var t=e('input[name=\'payment[payment_option]\']').val()};e('button[data-later-text]').each(function(){if(t=='cc'||t=='ach'){e(this).text(e(this).attr('data-sps-text'));e('.sps-order-submit-copy').show()} 469else{e(this).text(e(this).attr('data-later-text'));e('.sps-order-submit-copy').hide()}})};e('input[name=\'payment[payment_option]\']').once('rcjs',function(){e(this).on('change',function(){if(e(this).is(':checked')){i()}})});i()}}})(jQuery);;/*})'"*/ 470;riot.tag2('rc-riot-share-order','<div if="{hasOrderLineItems}" class="tag-content"> <button onclick="{triggerClicked}">{opts.txt.trigger}</button> </div>','','',function(t){this.mixin('RCRiotOrder');(function(a,e){e.triggerClicked=function(r){a(r.target).addClass('pending').prop('disabled',!0);a.post('/rescms/order/share',{url:t.share_url,hash:e.getOrderHash(),order:JSON.stringify(e.getOrderData())},null,'json').done(function(r){var e=r.form;e='<p class="shorturl">'+(typeof t.bitly_access_token!='undefined'&&t.bitly_access_token.length>1?'':r.url)+'</p>'+e;if(t.txt.sharedesc.length){e='<p>'+t.txt.sharedesc+'</p>'+e};if(t.txt.sharesub.length){e='<h4>'+t.txt.sharesub+'</h4>'+e};if(t.txt.sharehead.length){e='<h3>'+t.txt.sharehead+'</h3>'+e};var s=RiotTagsModal.show(a(e));Drupal.settings.ajax=Drupal.settings.ajax||{};Drupal.settings.ajax['bt-leads-share-submit-rc-core-order-share']=new Drupal.ajax('bt-leads-share-submit-rc-core-order-share',a('.form-submit',s),{url:'/system/ajax',callback:'bt_leads_share_url_form_submit_ajax'});Drupal.attachBehaviors(s);a('p.shorturl',s).append(r.url);if(typeof btLeadsRecaptchaCallback==='function')btLeadsRecaptchaCallback(s)}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})}})(jQuery,this)});;/*})'"*/ 471(function(i){var t={init:function(){this.one('update',function(){if(!this.skip_children){this.processChildren();this.mountChildren()}});
471this.on('*',this.propagateEvent)},getChildExtraOptions:function(i){return{}},processChildren:function(){this.children=[];if(this.opts&&typeof this.opts.children!='undefined'&&this.opts.children!=null){for(var i in this.opts.children){var t=this.opts.children[i].hasOwnProperty('children')?this.opts.children[i].children:null,n=this.opts.children[i].options;this.children.push({plugin:this.opts.children[i].plugin_id,weight:this.opts.children[i].plugin_weight,options:Object.assign(n,{'children':t},this.getChildExtraOptions(this.opts.children[i])),tag:this.opts.children[i].html_tag})};this.sortChildren()}},hasChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return!0}};return!1},getChildByPlugin:function(i){for(var t in this.children){if(this.children[t].plugin==i){return this.children[t]}};return null},mountChildren:function(){var t=this,n=this.children.length;i(this.children).each(function(){if(!this.mounted){var h=i('<'+this.tag+' />');i(t.root).append(h);riot.mount(h,this.tag,this.options);this.mounted=!0;n--;if(!n){t.trigger('childrenMounted')}};i(t.root).addClass('haschild-'+this.tag)})},sortChildren:function(){this.children.sort(function(i,h){var t=Number(i.weight),n=Number(h.weight);if(t<n){return-1};if(t>n){return 1};return 0})},getChildTags:function(){var t=[];for(var i=0;i<this.root.childNodes.length;i++){if(typeof this.root.childNodes[i]._tag==='object'){t.push(this.root.childNodes[i])}};return t.map(function(i){return i._tag})},propagateEvent:function(){var i=arguments;if(typeof this.getChildTags==='function'){this.getChildTags().map(function(t){t.trigger.apply(t,i)})}}};riot.mixin('RiotTagsChildren',t)})(jQuery);;/*})'"*/ 472(function(a){Drupal.behaviors.csAdaptiveImage={attach:function(t,e){var i=function(t,i){var e='max',r=a(t).attr('data-adaptive-image-breakpoints');if(r){a.each(r.split(' '),function(t,a){if(document.documentElement.clientWidth<=Number(a)&&(e=='max'||Number(a)<Number(e))){e=a}})};if(e!=i){return a(t).attr('data-adaptive-image-'+e+'-img')} 473else{return!1}};a('noscript.adaptive-image',t).once('adaptive-image',function(){var t=i(this);a(this).after(t);Drupal.attachBehaviors(t)});a(window).resize(function(){a('noscript.adaptive-image-processed').each(function(){var e=a(this).next('img.adaptive-image').attr('data-adaptive-image-breakpoint'),t=i(this,e);if(t){a(this).next('img.adaptive-image').replaceWith(t);Drupal.attachBehaviors(t)}})})}}})(jQuery);;/*})'"*/ 474(function(e){Drupal.FieldGroup=Drupal.FieldGroup||{};Drupal.FieldGroup.Effects=Drupal.FieldGroup.Effects||{};Drupal.FieldGroup.groupWithfocus=null;Drupal.FieldGroup.setGroupWithfocus=function(e){e.css({display:'block'});Drupal.FieldGroup.groupWithfocus=e};Drupal.FieldGroup.Effects.processFieldset={execute:function(i,r,t){if(t=='form'){e('fieldset.fieldset',i).once('fieldgroup-effects',function(i){if(e(this).is('.required-fields')&&e(this).find('.form-required').length>0){e('legend span.fieldset-legend',e(this)).eq(0).append(' ').append(e('.form-required').eq(0).clone())};if(e('.error',e(this)).length){e('legend span.fieldset-legend',e(this)).eq(0).addClass('error');Drupal.FieldGroup.setGroupWithfocus(e(this))}})}}};Drupal.FieldGroup.Effects.processAccordion={execute:function(i,r,t){e('div.field-group-accordion-wrapper',i).once('fieldgroup-effects',function(){var r=e(this),o=!1;r.find('.accordion-item').each(function(i){if(e(this).hasClass('field-group-accordion-active')){o=i}});r.accordion({heightStyle:'content',active:o,collapsible:!0,changestart:function(i,r){if(e(this).hasClass('effect-none')){r.options.animated=!1} 475else{r.options.animated='slide'}}});if(t=='form'){var i=!1;r.find('div.field-group-accordion-item').each(function(r){if(e(this).is('.required-fields')&&e(this).find('.form-required').length>0){e('h3.ui-accordion-header a').eq(r).append(' ').append(e('.form-required').eq(0).clone())};if(e('.error',e(this)).length){if(!i){i=e(this).parent().accordion('activate',r)};e('h3.ui-accordion-header').eq(r).addClass('error')}});if(!i){e('.ui-accordion-content-active',i).css({height:'auto',width:'auto',display:'block'})}}})}};Drupal.FieldGroup.Effects.processHtabs={execute:function(i,r,t){if(t=='form'){e('fieldset.horizontal-tabs-pane',i).once('fieldgroup-effects',function(i){if(e(this).is('.required-fields')&&e(this).find('.form-required').length>0){e(this).data('horizontalTab').link.find('strong:first').after(e('.form-required').eq(0).clone()).after(' ')};if(e('.error',e(this)).length){e(this).data('horizontalTab').link.parent().addClass('error');Drupal.FieldGroup.setGroupWithfocus(e(this));e(this).data('horizontalTab').focus()}})}}};Drupal.FieldGroup.Effects.processTabs={execute:function(i,r,t){if(t=='form'){var o=!1;e('fieldset.vertical-tabs-pane',i).once('fieldgroup-effects',function(i){if(e(this).is('.required-fields')&&e(this).find('.form-required').length>0){e(this).data('verticalTab').link.find('strong:first').after(e('.form-required').eq(0).clone()).after(' ')};if(e('.error',e(this)).length){e(this).data('verticalTab').link.parent().addClass('error');if(!o){Drupal.FieldGroup.setGroupWithfocus(e(this));e(this).data('verticalTab').focus();o=!0}}})}}};Drupal.FieldGroup.Effects.processDiv={execute:function(i,r,t){e('div.collapsible',i).once('fieldgroup-effects',function(){var i=e(this),t=e('span.field-group-format-toggler:first',i),r=e('<a class="field-group-format-title" href="#"></a>');r.prepend(t.contents());if(e(this).is('.required-fields')&&e(this).find('.form-required').length>0){r.append(' ').append(e('.form-required').eq(0).clone())};r.appendTo(t);r.click(function(){var r=i.get(0);if(!r.animating){r.animating=!0;var t=i.hasClass('speed-fast')?300:1000;if(i.hasClass('effect-none')&&i.hasClass('speed-none')){e('> .field-group-format-wrapper',r).toggle()} 476else if(i.hasClass('effect-blind')){e('> .field-group-format-wrapper',r).toggle('blind',{},t)} 477else{e('> .field-group-format-wrapper',r).toggle(t)};r.animating=!1};i.toggleClass('collapsed');return!1})})}};Drupal.behaviors.fieldGroup={attach:function(i,r){r.field_group=r.field_group||Drupal.settings.field_group;if(r.field_group==undefined){return};e.each(Drupal.FieldGroup.Effects,function(t){var o=t.toLowerCase().replace('process','');if(r.field_group[o]!=undefined&&e.isFunction(this.execute)){this.execute(i,r,r.field_group[o])}});e('.fieldset-wrapper .fieldset > legend').css({display:'block'});
477e('.vertical-tabs fieldset.fieldset').addClass('default-fallback');e('.group-wrapper .horizontal-tabs-panes > fieldset',i).once('group-wrapper-panes-processed',function(){var i='field_group-'+e(this).attr('id');e(this).attr('id',i)});e('.group-wrapper ul li').once('group-wrapper-ul-processed',function(){var i=e(this).index();e(this).children('a').click(function(){var r=e('.group-wrapper fieldset').get(i),t=e(r).attr('id').replace(/^field_group-/,'').split(' ')[0];window.location.hash=t})})}}})(jQuery);;/*})'"*/ 478/* Modernizr 2.6.2 (Custom Build) | MIT & BSD 479 * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load 480 */ 481;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{dis
vendor: 5,543 bytes, lines 481-486
481play:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7}); 482;/*})'"*/;/*})'"*/ 483;var libFuncName=null;if(typeof jQuery==='undefined'&&typeof Zepto==='undefined'&&typeof $==='function'){libFuncName=$} 484else if(typeof jQuery==='function'){libFuncName=jQuery} 485else if(typeof Zepto==='function'){libFuncName=Zepto} 486else{throw new TypeError()}(function(t,n,e,i){'use strict';n.matchMedia=n.matchMedia||(function(t,n){'use strict';var o,i=t.documentElement,a=i.firstElementChild||i.firstChild,r=t.createElement('body'),e=t.createElement('div');
486e.id='mq-test-1';e.style.cssText='position:absolute;top:-100em';r.style.background='none';r.appendChild(e);return function(t){e.innerHTML='­<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>';i.insertBefore(r,a);o=e.offsetWidth===42;i.removeChild(r);return{matches:o,media:t}}}(e));if(!Array.prototype.filter){Array.prototype.filter=function(t){'use strict';if(this==null){throw new TypeError()};var e=Object(this),a=e.length>>>0;if(typeof t!=='function'){return};var r=[],o=arguments[1];for(var n=0;n<a;n++){if(n in e){var i=e[n];if(t&&t.call(o,i,n,e)){r.push(i)}}};return r}};if(!Function.prototype.bind){Function.prototype.bind=function(t){if(typeof this!=='function'){throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable')};var i=Array.prototype.slice.call(arguments,1),r=this,n=function(){},e=function(){return r.apply(this instanceof n&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))};n.prototype=this.prototype;e.prototype=new n();return e}};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(t){'use strict';if(this==null){throw new TypeError()};var r=Object(this),i=r.length>>>0;if(i===0){return-1};var n=0;if(arguments.length>1){n=Number(arguments[1]);if(n!=n){n=0} 487else if(n!=0&&n!=Infinity&&n!=-Infinity){n=(n>0||-1)*Math.floor(Math.abs(n))}};if(n>=i){return-1};var e=n>=0?n:Math.max(i-Math.abs(n),0);for(;e<i;e++){if(e in r&&r[e]===t){return e}};return-1}};t.fn.stop=t.fn.stop||function(){return this};n.Foundation={name:'Foundation',version:'4.3.1',cache:{},init:function(n,e,a,u,l,r){var o,i=[n,a,u,l],f=[],r=r||!1;if(r)this.nc=r;this.rtl=/rtl/i.test(t('html').attr('dir'));this.scope=n||this.scope;if(e&&typeof e==='string'&&!/reflow/i.test(e)){if(/off/i.test(e))return this.off();o=e.split(' ');if(o.length>0){for(var s=o.length-1;s>=0;s--){f.push(this.init_lib(o[s],i))}}} 488else{if(/reflow/i.test(e))i[1]='reflow';for(var h in this.libs){f.push(this.init_lib(h,i))}};if(typeof e==='function'){i.unshift(e)};return this.response_obj(f,i)},response_obj:function(t,n){for(var e=0,i=n.length;e<i;e++){if(typeof n[e]==='function'){return n[e]({errors:t.filter(function(t){if(typeof t==='string')return t})})}};return t},init_lib:function(t,n){return this.trap(function(){if(this.libs.hasOwnProperty(t)){this.patch(this.libs[t]);return this.libs[t].init.apply(this.libs[t],n)} 489else{return function(){}}}.bind(this),t)},trap:function(t,n){if(!this.nc){try{return t()}catch(e){return this.error({name:n,message:'could not be initialized',more:e.name+' '+e.message})}};return t()},patch:function(t){this.fix_outer(t);t.scope=this.scope;t.rtl=this.rtl},inherit:function(t,n){var i=n.split(' ');for(var e=i.length-1;e>=0;e--){if(this.lib_methods.hasOwnProperty(i[e])){this.libs[t.name][i[e]]=this.lib_methods[i[e]]}}},random_str:function(t){var n='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');if(!t){t=Math.floor(Math.random()*n.length)};var i='';for(var e=0;e<t;e++){i+=n[Math.floor(Math.random()*n.length)]};return i},libs:{},lib_methods:{set_data:function(t,n){var e=[this.name,+new Date(),Foundation.random_str(5)].join('-');Foundation.cache[e]=n;t.attr('data-'+this.name+'-id',e);return n},get_data:function(t){return Foundation.cache[t.attr('data-'+this.name+'-id')]},remove_data:function(n){if(n){delete Foundation.cache[n.attr('data-'+this.name+'-id')];n.attr('data-'+this.name+'-id','')} 490else{t('[data-'+this.name+'-id]').each(function(){delete Foundation.cache[t(this).attr('data-'+this.name+'-id')];t(this).attr('data-'+this.name+'-id','')})}},throttle:function(t,n){var e=null;return function(){var i=this,r=arguments;clearTimeout(e);e=setTimeout(function(){t.apply(i,r)},n)}},data_options:function(n){var r={},i,e,o=(n.attr('data-options')||':').split(';'),s=o.length;function f(t){return!isNaN(t-0)&&t!==null&&t!==''&&t!==!1&&t!==!0};function a(n){if(typeof n==='string')return t.trim(n);return n};for(i=s-1;i>=0;i--){e=o[i].split(':');if(/true/i.test(e[1]))e[1]=!0;if(/false/i.test(e[1]))e[1]=!1;if(f(e[1]))e[1]=parseInt(e[1],10);if(e.length===2&&e[0].length>0){r[a(e[0])]=a(e[1])}};return r},delay:function(t,n){return setTimeout(t,n)},scrollTo:function(e,i,r){if(r<0)return;var a=i-t(n).scrollTop(),o=a/r*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(o,10))){n.scrollTo(0,t(n).scrollTop()+o);this.scrollTo(e,i,r-10)}}.bind(this),10)},scrollLeft:function(t){if(!t.length)return;return('scrollLeft' in t[0])?t[0].scrollLeft:t[0].pageXOffset},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&t.length===0)return!0;for(var n in t){if(hasOwnProperty.call(t,n))return!1};return!0}},fix_outer:function(t){t.outerHeight=function(t,n){if(typeof Zepto==='function'){return t.height()};if(typeof n!=='undefined'){return t.outerHeight(n)};return t.outerHeight()};t.outerWidth=function(t,n){if(typeof Zepto==='function'){return t.width()};if(typeof n!=='undefined'){return t.outerWidth(n)};return t.outerWidth()}},error:function(t){return t.name+' '+t.message+'; '+t.more},off:function(){t(this.scope).off('.fndtn');t(n).off('.fndtn');return!0},zj:t};t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);
490return this.each(function(){Foundation.init.apply(Foundation,[this].concat(t));return this})}}(libFuncName,this,this.document));;/*})'"*/ 491(function(t,e,s,i){'use strict';Foundation.libs.alerts={name:'alerts',version:'4.2.2',settings:{speed:300,callback:function(){}},init:function(s,e,i){this.scope=s||this.scope;if(typeof e==='object'){t.extend(!0,this.settings,e)};if(typeof e!=='string'){if(!this.settings.init){this.events()};return this.settings.init} 492else{return this[e].call(this,i)}},events:function(){var e=this;t(this.scope).on('click.fndtn.alerts','[data-alert] a.close',function(s){s.preventDefault();t(this).closest('[data-alert]').fadeOut(e.speed,function(){t(this).remove();e.settings.callback()})});this.settings.init=!0},off:function(){t(this.scope).off('.fndtn.alerts')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/ 493(function(i,t,e,n){'use strict';Foundation.libs.clearing={name:'clearing',version:'4.3.1',settings:{templates:{viewing:'<a href="#" class="clearing-close">×</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:'.clearing-close',init:!1,locked:!1},init:function(t,e,n){var s=this;Foundation.inherit(this,'set_data get_data remove_data throttle data_options');if(typeof e==='object'){n=i.extend(!0,this.settings,e)};if(typeof e!=='string'){i(this.scope).find('ul[data-clearing]').each(function(){var t=i(this),e=e||{},n=t.find('li'),a=s.get_data(t);if(!a&&n.length>0){e.$parent=t.parent();s.set_data(t,i.extend({},s.settings,e,s.data_options(t)));s.assemble(t.find('li'));if(!s.settings.init){s.events().swipe_events()}}});return this.settings.init} 494else{return this[e].call(this,n)}},events:function(){var e=this;i(this.scope).on('click.fndtn.clearing','ul[data-clearing] li',function(t,n,s){var n=n||i(this),s=s||n,a=n.next('li'),l=e.get_data(n.parent()),r=i(t.target);t.preventDefault();if(!l)e.init();if(s.hasClass('visible')&&n[0]===s[0]&&a.length>0&&e.is_open(n)){s=a;r=s.find('img')};e.open(r,n,s);e.update_paddles(s)}).on('click.fndtn.clearing','.clearing-main-next',function(i){this.nav(i,'next')}.bind(this)).on('click.fndtn.clearing','.clearing-main-prev',function(i){this.nav(i,'prev')}.bind(this)).on('click.fndtn.clearing',this.settings.close_selectors,function(i){Foundation.libs.clearing.close(i,this)}).on('keydown.fndtn.clearing',function(i){this.keydown(i)}.bind(this));i(t).on('resize.fndtn.clearing',function(){this.resize()}.bind(this));this.settings.init=!0;return this},swipe_events:function(){var t=this;i(this.scope).on('touchstart.fndtn.clearing','.visible-img',function(t){if(!t.touches){t=t.originalEvent};var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date()).getTime(),delta_x:0,is_scrolling:n};i(this).data('swipe-transition',e);t.stopPropagation()}).on('touchmove.fndtn.clearing','.visible-img',function(e){if(!e.touches){e=e.originalEvent};if(e.touches.length>1||e.scale&&e.scale!==1)return;var n=i(this).data('swipe-transition');if(typeof n==='undefined'){n={}};n.delta_x=e.touches[0].pageX-n.start_page_x;if(typeof n.is_scrolling==='undefined'){n.is_scrolling=!!(n.is_scrolling||Math.abs(n.delta_x)<Math.abs(e.touches[0].pageY-n.start_page_y))};if(!n.is_scrolling&&!n.active){e.preventDefault();var s=(n.delta_x<0)?'next':'prev';n.active=!0;t.nav(e,s)}}).on('touchend.fndtn.clearing','.visible-img',function(t){i(this).data('swipe-transition',{});t.stopPropagation()})},assemble:function(t){var e=t.parent();e.after('<div id="foundationClearingHolder"></div>');var s=i('#foundationClearingHolder'),a=this.get_data(e),r=e.detach(),n={grid:'<div class="carousel">'+this.outerHTML(r[0])+'</div>',viewing:a.templates.viewing},l='<div class="clearing-assembled"><div>'+n.viewing+n.grid+'</div></div>';return s.after(l).remove()},open:function(i,t,e){var a=e.closest('.clearing-assembled'),r=a.find('div').first(),s=r.find('.visible-img'),n=s.find('img').not(i);if(!this.locked()){n.attr('src',this.load(i)).css('visibility','hidden');this.loaded(n,function(){n.css('visibility','visible');a.addClass('clearing-blackout');r.addClass('clearing-container');s.show();this.fix_height(e).caption(s.find('.clearing-caption'),i).center(n).shift(t,e,function(){e.siblings().removeClass('visible');e.addClass('visible')})}.bind(this))}},close:function(t,e){t.preventDefault();var n=(function(i){if(/blackout/.test(i.selector)){return i} 495else{return i.closest('.clearing-blackout')}}(i(e))),s,a;
495if(e===t.target&&n){s=n.find('div').first();a=s.find('.visible-img');this.settings.prev_index=0;n.find('ul[data-clearing]').attr('style','').closest('.clearing-blackout').removeClass('clearing-blackout');s.removeClass('clearing-container');a.hide()};return!1},is_open:function(i){return i.parent().attr('style').length>0},keydown:function(t){var e=i('.clearing-blackout').find('ul[data-clearing]');if(t.which===39)this.go(e,'next');if(t.which===37)this.go(e,'prev');if(t.which===27)i('a.clearing-close').trigger('click')},nav:function(t,e){var n=i('.clearing-blackout').find('ul[data-clearing]');t.preventDefault();this.go(n,e)},resize:function(){var t=i('.clearing-blackout .visible-img').find('img');if(t.length){this.center(t)}},fix_height:function(t){var e=t.parent().children(),n=this;e.each(function(){var t=i(this),e=t.find('img');if(t.height()>n.outerHeight(e)){t.addClass('fix-height')}}).closest('ul').width(e.length*100+'%');return this},update_paddles:function(i){var t=i.closest('.carousel').siblings('.visible-img');if(i.next().length>0){t.find('.clearing-main-next').removeClass('disabled')} 496else{t.find('.clearing-main-next').addClass('disabled')};if(i.prev().length>0){t.find('.clearing-main-prev').removeClass('disabled')} 497else{t.find('.clearing-main-prev').addClass('disabled')}},center:function(i){if(!this.rtl){i.css({marginLeft:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})} 498else{i.css({marginRight:-(this.outerWidth(i)/2),marginTop:-(this.outerHeight(i)/2)})};return this},load:function(i){if(i[0].nodeName==='A'){var t=i.attr('href')} 499else{var t=i.parent().attr('href')};this.preload(i);if(t)return t;return i.attr('src')},preload:function(i){this.img(i.closest('li').next()).img(i.closest('li').prev())},loaded:function(i,t){function e(){t()};function n(){this.one('load',e);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var i=this.attr('src'),t=i.match(/\?/)?'&':'?';t+='random='+(new Date()).getTime();this.attr('src',i+t)}};if(!i.attr('src')){e();return};if(i[0].complete||i[0].readyState===4){e()} 500else{n.call(i)}},img:function(i){if(i.length){var t=new Image(),e=i.find('a');if(e.length){t.src=e.attr('href')} 501else{t.src=i.find('img').attr('src')}};return this},caption:function(i,t){var e=t.data('caption');if(e){i.html(e).show()} 502else{i.text('').hide()};return this},go:function(i,t){var n=i.find('.visible'),e=n[t]();if(e.length){e.find('img').trigger('click',[n,e])}},shift:function(i,t,e){var n=t.parent(),o=this.settings.prev_index||t.index(),s=this.direction(n,i,t),l=parseInt(n.css('left'),10),a=this.outerWidth(t),r;if(t.index()!==o&&!/skip/.test(s)){if(/left/.test(s)){this.lock();n.animate({left:l+a},300,this.unlock())} 503else if(/right/.test(s)){this.lock();n.animate({left:l-a},300,this.unlock())}} 504else if(/skip/.test(s)){r=t.index()-this.settings.up_count;this.lock();if(r>0){n.animate({left:-(r*a)},300,this.unlock())} 505else{n.animate({left:0},300,this.unlock())}};e()},direction:function(t,e,n){var r=t.find('li'),o=this.outerWidth(r)+(this.outerWidth(r)/4),l=Math.floor(this.outerWidth(i('.clearing-container'))/o)-1,s=r.index(n),a;this.settings.up_count=l;if(this.adjacent(this.settings.prev_index,s)){if((s>l)&&s>this.settings.prev_index){a='right'} 506else if((s>l-1)&&s<=this.settings.prev_index){a='left'} 507else{a=!1}} 508else{a='skip'};this.settings.prev_index=s;return a},adjacent:function(i,t){for(var e=t+1;e>=t-1;e--){if(e===i)return!0};return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(i){return i.outerHTML||new XMLSerializer().serializeToString(i)},off:function(){i(this.scope).off('.fndtn.clearing');i(t).off('.fndtn.clearing');this.remove_data();this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document));;/*})'"*/ 509(function(e,t,s,n){'use strict';Foundation.libs.forms={name:'forms',version:'4.3.1',cache:{},settings:{disable_class:'no-custom',last_combo:null},init:function(t,s,i){if(typeof s==='object'){e.extend(!0,this.settings,s)};if(typeof s!=='string'){if(!this.settings.init){this.events()};this.assemble();return this.settings.init} 510else{return this[s].call(this,i)}},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).each(this.append_custom_markup);e('form.custom select',e(this.scope)).not('[data-customforms="disabled"]').not('.'+this.settings.disable_class).not('[multiple=multiple]').each(this.append_custom_select)}
510,events:function(){var n=this;e(this.scope).on('click.fndtn.forms','form.custom span.custom.checkbox',function(t){t.preventDefault();t.stopPropagation();n.toggle_checkbox(e(this))}).on('click.fndtn.forms','form.custom span.custom.radio',function(t){t.preventDefault();t.stopPropagation();n.toggle_radio(e(this))}).on('change.fndtn.forms','form.custom select',function(t,s){if(e(this).is('[data-customforms="disabled"]'))return;n.refresh_custom_select(e(this),s)}).on('click.fndtn.forms','form.custom label',function(t){if(e(t.target).is('label')){var s=e('#'+n.escape(e(this).attr('for'))).not('[data-customforms="disabled"]'),i,o;if(s.length!==0){if(s.attr('type')==='checkbox'){t.preventDefault();i=e(this).find('span.custom.checkbox');if(i.length===0){i=s.add(this).siblings('span.custom.checkbox').first()};n.toggle_checkbox(i)} 511else if(s.attr('type')==='radio'){t.preventDefault();o=e(this).find('span.custom.radio');if(o.length===0){o=s.add(this).siblings('span.custom.radio').first()};n.toggle_radio(o)}}}}).on('mousedown.fndtn.forms','form.custom div.custom.dropdown',function(){return!1}).on('click.fndtn.forms','form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector',function(t){var o=e(this),s=o.closest('div.custom.dropdown'),a=i(s,'select');if(!s.hasClass('open'))e(n.scope).trigger('click');t.preventDefault();if(!1===a.is(':disabled')){s.toggleClass('open');if(s.hasClass('open')){e(n.scope).on('click.fndtn.forms.customdropdown',function(){s.removeClass('open');e(n.scope).off('.fndtn.forms.customdropdown')})} 512else{e(n.scope).on('.fndtn.forms.customdropdown')};return!1}}).on('click.fndtn.forms touchend.fndtn.forms','form.custom div.custom.dropdown li',function(t){var n=e(this),a=n.closest('div.custom.dropdown'),o=i(a,'select'),c=0;t.preventDefault();t.stopPropagation();if(!e(this).hasClass('disabled')){e('div.dropdown').not(a).removeClass('open');var l=n.closest('ul').find('li.selected');l.removeClass('selected');n.addClass('selected');a.removeClass('open').find('a.current').text(n.text());n.closest('ul').find('li').each(function(e){if(n[0]===this){c=e}});o[0].selectedIndex=c;o.data('prevalue',l.html());if(typeof(s.createEvent)!='undefined'){var d=s.createEvent('HTMLEvents');d.initEvent('change',!0,!0);o[0].dispatchEvent(d)} 513else{o[0].fireEvent('onchange')}}});e(t).on('keydown',function(t){var l=s.activeElement,d=Foundation.libs.forms,o=e('.custom.dropdown.open');if(o.length>0){t.preventDefault();if(t.which===13){o.find('li.selected').trigger('click')};if(t.which===27){o.removeClass('open')};if(t.which>=65&&t.which<=90){var i=d.go_to(o,t.which),n=o.find('li.selected');if(i){n.removeClass('selected');d.scrollTo(i.addClass('selected'),300)}};if(t.which===38){var n=o.find('li.selected'),a=n.prev(':not(.disabled)');if(a.length>0){a.parent()[0].scrollTop=a.parent().scrollTop()-d.outerHeight(a);n.removeClass('selected');a.addClass('selected')}} 514else if(t.which===40){var n=o.find('li.selected'),i=n.next(':not(.disabled)');if(i.length>0){i.parent()[0].scrollTop=i.parent().scrollTop()+d.outerHeight(i);n.removeClass('selected');i.addClass('selected')}}}});this.settings.init=!0},go_to:function(e,t){var i=e.find('li'),n=i.length;if(n>0){for(var s=0;s<n;s++){var o=i.eq(s).text().charAt(0).toLowerCase();if(o===String.fromCharCode(t).toLowerCase())return i.eq(s)}}},scrollTo:function(e,t){if(t<0)return;var s=e.parent(),n=this.outerHeight(e),o=(n*(e.index()))-s.scrollTop(),i=o/t*10;this.scrollToTimerCache=setTimeout(function(){if(!isNaN(parseInt(i,10))){s[0].scrollTop=s.scrollTop()+i;this.scrollTo(e,t-10)}}.bind(this),10)},append_custom_markup:function(t,s){var i=e(s),o=i.attr('type'),n=i.next('span.custom.'+o);if(!i.parent().hasClass('switch')){i.addClass('hidden-field')};if(n.length===0){n=e('<span class="custom '+o+'"></span>').insertAfter(i)};n.toggleClass('checked',i.is(':checked'));n.toggleClass('disabled',i.is(':disabled'))},append_custom_select:function(t,i){var o=Foundation.libs.forms,n=e(i),s=n.next('div.custom.dropdown'),d=s.find('ul'),g=s.find('.current'),u=s.find('.selector'),l=n.find('option'),m=l.filter(':selected'),p=n.attr('class')?n.attr('class').split(' '):[],r=0,c='',a,f=!1;
514if(s.length===0){var h=n.hasClass('small')?'small':n.hasClass('medium')?'medium':n.hasClass('large')?'large':n.hasClass('expand')?'expand':'';s=e('<div class="'+['custom','dropdown',h].concat(p).filter(function(e,t,s){if(e==='')return!1;return s.indexOf(e)===t}).join(' ')+'"><a href="#" class="selector"></a><ul /></div>');u=s.find('.selector');d=s.find('ul');c=l.map(function(){var t=e(this).attr('class')?e(this).attr('class'):'';return'<li class=\''+t+'\'>'+e(this).html()+'</li>'}).get().join('');d.append(c);f=s.prepend('<a href="#" class="current">'+m.html()+'</a>').find('.current');n.after(s).addClass('hidden-field')} 515else{c=l.map(function(){return'<li>'+e(this).html()+'</li>'}).get().join('');d.html('').append(c)};o.assign_id(n,s);s.toggleClass('disabled',n.is(':disabled'));a=d.find('li');o.cache[s.data('id')]=a.length;l.each(function(t){if(this.selected){a.eq(t).addClass('selected');if(f){f.html(e(this).html())}};if(e(this).is(':disabled')){a.eq(t).addClass('disabled')}});if(!s.is('.small, .medium, .large, .expand')){s.addClass('open');var o=Foundation.libs.forms;o.hidden_fix.adjust(d);r=(o.outerWidth(a)>r)?o.outerWidth(a):r;Foundation.libs.forms.hidden_fix.reset();s.removeClass('open')}},assign_id:function(e,t){var s=[+new Date(),Foundation.random_str(5)].join('-');e.attr('data-id',s);t.attr('data-id',s)},refresh_custom_select:function(t,i){var o=this,a=0,s=t.next(),d=t.find('option'),n=s.find('li');if(n.length!==this.cache[s.data('id')]||i){s.find('ul').html('');d.each(function(){var t=e('<li>'+e(this).html()+'</li>');s.find('ul').append(t)});d.each(function(t){if(this.selected){s.find('li').eq(t).addClass('selected');s.find('.current').html(e(this).html())};if(e(this).is(':disabled')){s.find('li').eq(t).addClass('disabled')}});s.removeAttr('style').find('ul').removeAttr('style');s.find('li').each(function(){s.addClass('open');if(o.outerWidth(e(this))>a){a=o.outerWidth(e(this))};s.removeClass('open')});n=s.find('li');this.cache[s.data('id')]=n.length}},toggle_checkbox:function(e){var t=e.prev(),s=t[0];if(!1===t.is(':disabled')){s.checked=((s.checked)?!1:!0);e.toggleClass('checked');t.trigger('change')}},toggle_radio:function(e){var t=e.prev(),s=t.closest('form.custom'),i=t[0];if(!1===t.is(':disabled')){s.find('input[type="radio"][name="'+this.escape(t.attr('name'))+'"]').next().not(e).removeClass('checked');if(!e.hasClass('checked')){e.toggleClass('checked')};i.checked=e.hasClass('checked');t.trigger('change')}},escape:function(e){if(!e)return'';return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var s=this;s.hidden=t.parents();s.hidden=s.hidden.add(t).filter(':hidden');s.hidden.each(function(){var t=e(this);s.tmp.push(t.attr('style'));t.css({'visibility':'hidden','display':'block'})})},reset:function(){var t=this;t.hidden.each(function(s){var i=e(this),o=t.tmp[s];if(o===n)i.removeAttr('style');else i.attr('style',o)});t.tmp=[];t.hidden=null}},off:function(){e(this.scope).off('.fndtn.forms')},reflow:function(){}};var i=function(t,s){var t=t.prev();while(t.length){if(t.is(s))return t;t=t.prev()};return e()}}(Foundation.zj,this,this.document));;/*})'"*/ 516(function(t,a,e){var r='placeholder' in a.createElement('input'),i='placeholder' in a.createElement('textarea'),c=e.fn,u=e.valHooks,n,l;if(r&&i){l=c.placeholder=function(){return this};l.input=l.textarea=!0} 517else{l=c.placeholder=function(){var e=this;e.filter((r?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':o,'blur.placeholder':d}).data('placeholder-enabled',!0).trigger('blur.placeholder');return e};l.input=r;l.textarea=i;n={'get':function(a){var t=e(a);return t.data('placeholder-enabled')&&t.hasClass('placeholder')?'':a.value},'set':function(t,l){var r=e(t);if(!r.data('placeholder-enabled')){return t.value=l};if(l==''){t.value=l;if(t!=a.activeElement){d.call(t)}} 518else if(r.hasClass('placeholder')){o.call(t,!0,l)||(t.value=l)} 519else{t.value=l};return r}};r||(u.input=n);i||(u.textarea=n);e(function(){e(a).delegate('form','submit.placeholder',function(){var a=e('.placeholder',this).each(o);setTimeout(function(){a.each(d)},10)})});e(t).bind('beforeunload.placeholder',function(){e('.placeholder').each(function(){this.value=''})})};function h(a){var t={},l=/^jQuery\d+$/;e.each(a.attributes,function(a,e){if(e.specified&&!l.test(e.name)){t[e.name]=e.value}});return t};function o(l,r){var o=this,t=e(o);if(o.value==t.attr('placeholder')&&t.hasClass('placeholder')){if(t.data('placeholder-password')){t=t.hide().next().show().attr('id',t.removeAttr('id').data('placeholder-id'));if(l===!0){return t[0].value=r};t.focus()} 520else{o.value='';t.removeClass('placeholder');o==a.activeElement&&o.select()}}};function d(){var t,l=this,a=e(l),i=a,r=this.id;if(l.value==''){if(l.type=='password'){if(!a.data('placeholder-textinput')){try{t=a.clone().attr({'type':'text'})}catch(n){t=e('<input>').attr(e.extend(h(this),{'type':'text'}))};t.removeAttr('name').data({'placeholder-password':!0,'placeholder-id':r}).bind('focus.placeholder',o);a.data({'placeholder-textinput':t,'placeholder-id':r}).before(t)};a=a.removeAttr('id').hide().prev().attr('id',r).show()};a.addClass('placeholder');a[0].value=a.attr('placeholder')} 521else{a.removeClass('placeholder')}}}(this,document,Foundation.zj));(function(e,a,t,l){'use strict';Foundation.libs.placeholder={name:'placeholder',version:'4.2.2',init:function(t,l,r){this.scope=t||this.scope;if(typeof l!=='string'){a.onload=function(){e('input, textarea').placeholder()}}}}}(Foundation.zj,this,this.document));;/*})'"*/ 522(function(e,t,s,i){'use strict';Foundation.libs.reveal={name:'reveal',version:'4.2.2',locked:!1,settings:{animation:'fadeAndPop',animationSpeed:250,closeOnBackgroun
522dClick:!0,closeOnEsc:!0,dismissModalClass:'close-reveal-modal',bgClass:'reveal-modal-bg',open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e('.reveal-modal-bg'),css:{open:{'opacity':0,'visibility':'visible','display':'block'},close:{'opacity':1,'visibility':'hidden','display':'none'}}},init:function(t,s,i){Foundation.inherit(this,'data_options delay');if(typeof s==='object'){e.extend(!0,this.settings,s)} 523else if(typeof i!=='undefined'){e.extend(!0,this.settings,i)};if(typeof s!=='string'){this.events();return this.settings.init} 524else{return this[s].call(this,i)}},events:function(){var t=this;e(this.scope).off('.fndtn.reveal').on('click.fndtn.reveal','[data-reveal-id]',function(s){s.preventDefault();if(!t.locked){var i=e(this),n=i.data('reveal-ajax');t.locked=!0;if(typeof n==='undefined'){t.open.call(t,i)} 525else{var o=n===!0?i.attr('href'):n;t.open.call(t,i,{url:o})}}}).on('click.fndtn.reveal',this.close_targets(),function(s){s.preventDefault();if(!t.locked){var i=e.extend({},t.settings,t.data_options(e('.reveal-modal.open')));if(e(s.target)[0]===e('.'+i.bgClass)[0]&&!i.closeOnBackgroundClick){return};t.locked=!0;t.close.call(t,e(this).closest('.reveal-modal'))}}).on('open.fndtn.reveal','.reveal-modal',this.settings.open).on('opened.fndtn.reveal','.reveal-modal',this.settings.opened).on('opened.fndtn.reveal','.reveal-modal',this.open_video).on('close.fndtn.reveal','.reveal-modal',this.settings.close).on('closed.fndtn.reveal','.reveal-modal',this.settings.closed).on('closed.fndtn.reveal','.reveal-modal',this.close_video);e('body').bind('keyup.reveal',function(s){var i=e('.reveal-modal.open'),n=e.extend({},t.settings,t.data_options(i));if(s.which===27&&n.closeOnEsc){i.foundation('reveal','close')}});return!0},open:function(t,i){if(t){if(typeof t.selector!=='undefined'){var s=e('#'+t.data('reveal-id'))} 526else{var s=e(this.scope);i=t}} 527else{var s=e(this.scope)};if(!s.hasClass('open')){var o=e('.reveal-modal.open');if(typeof s.data('css-top')==='undefined'){s.data('css-top',parseInt(s.css('top'),10)).data('offset',this.cache_offset(s))};s.trigger('open');if(o.length<1){this.toggle_bg(s)};if(typeof i==='undefined'||!i.url){this.hide(o,this.settings.css.close);this.show(s,this.settings.css.open)} 528else{var n=this,a=typeof i.success!=='undefined'?i.success:null;e.extend(i,{success:function(t,i,l){if(e.isFunction(a)){a(t,i,l)};s.html(t);e(s).foundation('section','reflow');n.hide(o,n.settings.css.close);n.show(s,n.settings.css.open)}});e.ajax(i)}}},close:function(t){var t=t&&t.length?t:e(this.scope),s=e('.reveal-modal.open');if(s.length>0){this.locked=!0;t.trigger('close');this.toggle_bg(t);this.hide(s,this.settings.css.close)}},close_targets:function(){var e='.'+this.settings.dismissModalClass;if(this.settings.closeOnBackgroundClick){return e+', .'+this.settings.bgClass};return e},toggle_bg:function(t){if(e('.reveal-modal-bg').length===0){this.settings.bg=e('<div />',{'class':this.settings.bgClass}).appendTo('body')};if(this.settings.bg.filter(':visible').length>0){this.hide(this.settings.bg)} 529else{this.show(this.settings.bg)}},show:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){i.top=e(t).scrollTop()-s.data('offset')+'px';var n={top:e(t).scrollTop()+s.data('css-top')+'px',opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:1};return this.delay(function(){return s.css(i).animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.trigger('opened')}.bind(this)).addClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.css(i).show().css({opacity:1}).addClass('open').trigger('opened')};if(/fade/i.test(this.settings.animation)){return s.fadeIn(this.settings.animationSpeed/2)};return s.show()},hide:function(s,i){if(i){if(/pop/i.test(this.settings.animation)){var n={top:-e(t).scrollTop()-s.data('offset')+'px',opacity:0};return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};if(/fade/i.test(this.settings.animation)){var n={opacity:0}
529;return this.delay(function(){return s.animate(n,this.settings.animationSpeed,'linear',function(){this.locked=!1;s.css(i).trigger('closed')}.bind(this)).removeClass('open')}.bind(this),this.settings.animationSpeed/2)};return s.hide().css(i).removeClass('open').trigger('closed')};if(/fade/i.test(this.settings.animation)){return s.fadeOut(this.settings.animationSpeed/2)};return s.hide()},close_video:function(t){var i=e(this).find('.flex-video'),s=i.find('iframe');if(s.length>0){s.attr('data-src',s[0].src);s.attr('src','about:blank');i.hide()}},open_video:function(t){var n=e(this).find('.flex-video'),s=n.find('iframe');if(s.length>0){var a=s.attr('data-src');if(typeof a==='string'){s[0].src=s.attr('data-src')} 530else{var o=s[0].src;s[0].src=i;s[0].src=o};n.show()}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css('top'),10);e.hide();return t},off:function(){e(this.scope).off('.fndtn.reveal')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/ 531(function(t,e,s){'use strict';Foundation.libs.section={name:'section',version:'4.3.1',settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,section_selector:'[data-section]',region_selector:'section, .section, [data-section-region]',title_selector:'.title, [data-section-title]',resized_data_attr:'data-section-resized',small_style_data_attr:'data-section-small-style',content_selector:'.content, [data-section-content]',nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:'active',callback:function(){}},init:function(e,s,i){var n=this;Foundation.inherit(this,'throttle data_options position_right offset_right');if(typeof s==='object'){t.extend(!0,n.settings,s)};if(typeof s!=='string'){this.events();return!0} 532else{return this[s].call(this,i)}},events:function(){var i=this,o=[],g=i.settings.section_selector,c=i.settings.region_selector.split(','),l=i.settings.title_selector.split(',');for(var a=0,f=c.length;a<f;a++){var d=c[a];for(var n=0,h=l.length;n<h;n++){var r=g+'>'+d+'>'+l[n];o.push(r+' a');o.push(r)}};t(i.scope).on('click.fndtn.section',o.join(','),function(e){var s=t(this).closest(i.settings.title_selector);i.close_navs(s);if(s.siblings(i.settings.content_selector).length>0){i.toggle_active.call(s[0],e)}});t(e).on('resize.fndtn.section',i.throttle(function(){i.resize()},30)).on('hashchange.fndtn.section',i.set_active_from_hash);t(s).on('click.fndtn.section',function(e){if(e.isPropagationStopped&&e.isPropagationStopped())return;if(e.target===s)return;i.close_navs(t(e.target).closest(i.settings.title_selector))});t(e).triggerHandler('resize.fndtn.section');t(e).triggerHandler('hashchange.fndtn.section')},close_navs:function(e){var s=Foundation.libs.section,n=t(s.settings.nav_selector).filter(function(){return!t.extend({},s.settings,s.data_options(t(this))).one_up});if(e.length>0){var i=e.parent().parent();if(s.is_horizontal_nav(i)||s.is_vertical_nav(i)){n=n.filter(function(){return this!==i[0]})}};n.children(s.settings.region_selector).removeClass(s.settings.active_class)},toggle_active:function(e){var o=t(this),s=Foundation.libs.section,n=o.parent(),r=o.siblings(s.settings.content_selector),i=n.parent(),a=t.extend({},s.settings,s.data_options(i)),c=i.children(s.settings.region_selector).filter('.'+s.settings.active_class);if(!a.deep_linking&&r.length>0){e.preventDefault()};e.stopPropagation();if(!n.hasClass(s.settings.active_class)){c.removeClass(s.settings.active_class);n.addClass(s.settings.active_class);s.resize(n.find(s.settings.section_selector).not('['+s.settings.resized_data_attr+']'),!0)} 533else if(!a.one_up&&(s.small(i)||s.is_vertical_nav(i)||s.is_horizontal_nav(i)||s.is_accordion(i))){n.removeClass(s.settings.active_class)};a.callback(i)},check_resize_timer:null,resize:function(i,n){var e=Foundation.libs.section,a=e.small(t(s)),o=function(t,s){return!e.is_accordion(t)&&!t.is('['+e.settings.resized_data_attr+']')&&(!a||e.is_horizontal_tabs(t))&&s===(t.css('display')==='none'||!t.parent().is(':visible'))};i=i||t(e.settings.section_selector);clearTimeout(e.check_resize_timer);if(!a){i.removeAttr(e.settings.small_style_data_attr)};i.filter(function(){return o(t(this),!1)}).each(function(){var s=t(this),a=s.children(e.settings.region_selector),o=a.children(e.settings.title_selector),l=a.children(e.settings.content_selector),i=0;if(n&&s.children(e.settings.region_selector).filter('.'+e.settings.active_class).length==0){var g=t.extend({},e.settings,e.data_options(s));if(!g.deep_linking&&(g.one_up||!e.is_horizontal_nav(s)&&!e.is_vertical_nav(s)&&!e.is_accordion(s))){a.filter(':visible').first().addClass(e.settings.active_class)}};if(e.is_horizontal_tabs(s)||e.is_auto(s)){var f=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css(!e.rtl?'left':'right',f);var n=parseInt(s.css('border-'+(e.rtl?'left':'right')+'-width'),10);if(n.toString()==='Nan'){n=0};f+=e.outerWidth(s)-n;i=Math.max(i,e.outerHeight(s))}});o.css('height',i);a.each(function(){var n=t(this),a=n.children(e.settings.content_selector),s=parseInt(a.css('border-top-width'),10);if(s.toString()==='Nan'){s=0};n.css('padding-top',i-s)});s.css('min-height',i)} 534else if(e.is_horizontal_nav(s)){var d=!0;o.each(function(){i=Math.max(i,e.outerHeight(t(this)))});a.each(function(){var i=t(this);i.css('margin-left','-'+(d?s:i.children(e.settings.title_selector)).css('border-left-width'));d=!1});a.css('margin-top','-'+s.css('border-top-width'));o.css('height',i);l.css('top',i);s.css('min-height',i)} 535else if(e.is_vertical_tabs(s)){var c=0;o.each(function(){var s=t(this);if(s.is(':visible')){s.css('top',c);var i=parseInt(s.css('border-top-width'),10);if(i.toString()==='Nan'){i=0};c+=e.outerHeight(s)-i}});l.css('min-height',c+1)} 536else if(e.is_vertical_nav(s)){var r=0,h=!0;o.each(function(){r=Math.max(r,e.outerWidth(t(this)))});a.each(function(){var i=t(this);i.css('margin-top','-'+(h?s:i.children(e.settings.title_selector)).css('border-top-width'));h=!1});o.css('width',r);l.css(!e.rtl?'left':'right',r);s.css('width',r)};s.attr(e.settings.resized_data_attr,!0)});if(t(e.settings.section_selector).filter(function(){return o(t(this),!0)}).length>0)e.check_resize_timer=setTimeout(function(){e.resize(i.filter(function(){return o(t(this),!1)}),!0)},700);if(a){i.attr(e.settings.small_style_data_attr,!0)}},is_vertical_nav:function(t){return/vertical-nav/i.test(t.data('section'))},is_horizontal_nav:function(t){return/horizontal-nav/i.test(t.data('section'))},is_accordion:function(t){return/accordion/i.test(t.data('section'))},is_horizontal_tabs:function(t){return/^tabs$/i.test(t.data('section'))},is_vertical_tabs:function(t){return/vertical-tabs/i.test(t.data('section'))},is_auto:function(t){var e=t.data('section');return e===''||/auto/i.test(e)},set_active_from_hash:function(){var s=Foundation.libs.section,i=e.location.hash.substring(1),n=t(s.settings.section_selector);n.each(function(){var e=t(this),a=t.extend({},s.settings,s.data_options(e)),o=e.children(s.settings.region_selector),r=a.deep_linking&&i.length>0,n=!1;o.each(function(){var e=t(this);if(n){e.removeClass(s.settings.active_class)} 537else if(r){var a=e.children(s.settings.content_selector).data('slug');
537if(a&&new RegExp(a,'i').test(i)){if(!e.hasClass(s.settings.active_class))e.addClass(s.settings.active_class);n=!0} 538else{e.removeClass(s.settings.active_class)}} 539else if(e.hasClass(s.settings.active_class)){n=!0}});if(!n&&!a.deep_linking&&(a.one_up||!s.is_horizontal_nav(e)&&!s.is_vertical_nav(e)&&!s.is_accordion(e)))o.filter(':visible').first().addClass(s.settings.active_class)})},reflow:function(){var e=Foundation.libs.section;t(e.settings.section_selector).removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize()},30)()},small:function(e){var s=t.extend({},this.settings,this.data_options(e));if(this.is_horizontal_tabs(e)){return!1};if(e&&this.is_accordion(e)){return!0};if(t('html').hasClass('lt-ie9')){return!0};if(t('html').hasClass('ie8compat')){return!0};return t(this.scope).width()<s.small_breakpoint},off:function(){t(this.scope).off('.fndtn.section');t(e).off('.fndtn.section');t(s).off('.fndtn.section')}};t.fn.reflow_section=function(t){var s=this,e=Foundation.libs.section;s.removeAttr(e.settings.resized_data_attr);e.throttle(function(){e.resize(s,t)},30)();return this}}(Foundation.zj,window,document));;/*})'"*/ 540(function(t,i,o,e){'use strict';Foundation.libs.tooltips={name:'tooltips',version:'4.2.2',settings:{selector:'.has-tip',additionalInheritableClasses:[],tooltipClass:'.tooltip',appendTo:'body','disable-for-touch':!1,tipTemplate:function(t,i){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+i+'<span class="nub"></span></span>'}},cache:{},init:function(i,o,e){Foundation.inherit(this,'data_options');var s=this;if(typeof o==='object'){t.extend(!0,this.settings,o)} 541else if(typeof e!=='undefined'){t.extend(!0,this.settings,e)};if(typeof o!=='string'){if(Modernizr.touch){t(this.scope).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip','[data-tooltip]',function(i){var o=t.extend({},s.settings,s.data_options(t(this)));if(!o['disable-for-touch']){i.preventDefault();t(o.tooltipClass).hide();s.showOrCreateTip(t(this))}}).on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip',this.settings.tooltipClass,function(i){i.preventDefault();t(this).fadeOut(150)})} 542else{t(this.scope).on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip','[data-tooltip]',function(i){var o=t(this);if(/enter|over/i.test(i.type)){s.showOrCreateTip(o)} 543else if(i.type==='mouseout'||i.type==='mouseleave'){s.hide(o)}})}} 544else{return this[o].call(this,e)}},showOrCreateTip:function(t){var i=this.getTip(t);if(i&&i.length>0){return this.show(t)};return this.create(t)},getTip:function(i){var e=this.selector(i),o=null;if(e){o=t('span[data-selector="'+e+'"]'+this.settings.tooltipClass)};return(typeof o==='object')?o:!1},selector:function(t){var i=t.attr('id'),o=t.attr('data-tooltip')||t.attr('data-selector');if((i&&i.length<1||!i)&&typeof o!='string'){o='tooltip'+Math.random().toString(36).substring(7);t.attr('data-selector',o)};return(i&&i.length>0)?i:o},create:function(i){var o=t(this.settings.tipTemplate(this.selector(i),t('<div></div>').html(i.attr('title')).html())),e=this.inheritable_classes(i);o.addClass(e).appendTo(this.settings.appendTo);if(Modernizr.touch){o.append('<span class="tap-to-close">tap to close </span>')};i.removeAttr('title').attr('title','');this.show(i)},reposition:function(o,e,s){var a,l,r,h,p,n;e.css('visibility','hidden').show();a=o.data('width');l=e.children('.nub');r=this.outerHeight(l);h=this.outerHeight(l);n=function(t,i,o,e,s,n){return t.css({'top':(i)?i:'auto','bottom':(e)?e:'auto','left':(s)?s:'auto','right':(o)?o:'auto','width':(n)?n:'auto'}).end()};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',o.offset().left,a);if(t(i).width()<767){n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',12.5,t(this.scope).width());e.addClass('tip-override');n(l,-r,'auto','auto',o.offset().left)} 545else{var f=o.offset().left;if(Foundation.rtl){f=o.offset().left+o.offset().width-this.outerWidth(e)};n(e,(o.offset().top+this.outerHeight(o)+10),'auto','auto',f,a);e.removeClass('tip-override');if(s&&s.indexOf('tip-top')>-1){n(e,(o.offset().top-this.outerHeight(e)),'auto','auto',f,a).removeClass('tip-override')} 546else if(s&&s.indexOf('tip-left')>
546-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left-this.outerWidth(e)-r),a).removeClass('tip-override')} 547else if(s&&s.indexOf('tip-right')>-1){n(e,(o.offset().top+(this.outerHeight(o)/2)-r*2.5),'auto','auto',(o.offset().left+this.outerWidth(o)+r),a).removeClass('tip-override')}};e.css('visibility','visible').hide()},inheritable_classes:function(i){var e=['tip-top','tip-left','tip-bottom','tip-right','noradius'].concat(this.settings.additionalInheritableClasses),o=i.attr('class'),s=o?t.map(o.split(' '),function(i,o){if(t.inArray(i,e)!==-1){return i}}).join(' '):'';return t.trim(s)},show:function(t){var i=this.getTip(t);this.reposition(t,i,t.attr('class'));i.fadeIn(150)},hide:function(t){var i=this.getTip(t);i.fadeOut(150)},reload:function(){var i=t(this);return(i.data('fndtn-tooltips'))?i.foundationTooltips('destroy').foundationTooltips('init'):i.foundationTooltips('init')},off:function(){t(this.scope).off('.fndtn.tooltip');t(this.settings.tooltipClass).each(function(i){t('[data-tooltip]').get(i).attr('title',t(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/ 548(function(t,s,e,i){'use strict';Foundation.libs.topbar={name:'topbar',version:'4.3.1',settings:{index:0,stickyClass:'sticky',custom_back_text:!0,back_text:'Back',is_hover:!0,mobile_show_parent_link:!0,scrolltop:!0,init:!1},init:function(i,a,n){Foundation.inherit(this,'data_options');var e=this;if(typeof a==='object'){t.extend(!0,this.settings,a)} 549else if(typeof n!=='undefined'){t.extend(!0,this.settings,n)};if(typeof a!=='string'){t('.top-bar, [data-topbar]').each(function(){t.extend(!0,e.settings,e.data_options(t(this)));e.settings.$w=t(s);e.settings.$topbar=t(this);e.settings.$section=e.settings.$topbar.find('section');e.settings.$titlebar=e.settings.$topbar.children('ul').first();e.settings.$topbar.data('index',0);var i=t('<div class=\'top-bar-js-breakpoint\'/>').insertAfter(e.settings.$topbar);e.settings.breakPoint=i.width();i.remove();e.assemble();if(e.settings.is_hover){e.settings.$topbar.find('.has-dropdown').addClass('not-click')};if(e.settings.$topbar.parent().hasClass('fixed')){t('body').css('padding-top',e.outerHeight(e.settings.$topbar))}});if(!e.settings.init){this.events()};return this.settings.init} 550else{return this[a].call(this,n)}},timer:null,events:function(){var e=this,i=this.outerHeight(t('.top-bar, [data-topbar]'));t(this.scope).off('.fndtn.topbar').on('click.fndtn.topbar','.top-bar .toggle-topbar, [data-topbar] .toggle-topbar',function(n){var a=t(this).closest('.top-bar, [data-topbar]'),o=a.find('section, .section'),r=a.children('ul').first();n.preventDefault();if(e.breakpoint()){if(!e.rtl){o.css({left:'0%'});o.find('>.name').css({left:'100%'})} 551else{o.css({right:'0%'});o.find('>.name').css({right:'100%'})};o.find('li.moved').removeClass('moved');a.data('index',0);a.toggleClass('expanded').css('height','')};if(!a.hasClass('expanded')){if(a.hasClass('fixed')){a.parent().addClass('fixed');a.removeClass('fixed');t('body').css('padding-top',i)}} 552else if(a.parent().hasClass('fixed')){a.parent().removeClass('fixed');a.addClass('fixed');t('body').css('padding-top','0');if(e.settings.scrolltop){s.scrollTo(0,0)}}}).on('click.fndtn.topbar','.top-bar li.has-dropdown',function(s){if(e.breakpoint())return;var i=t(this),a=t(s.target),n=i.closest('[data-topbar], .top-bar'),o=n.data('topbar');if(e.settings.is_hover&&!Modernizr.touch)return;s.stopImmediatePropagation();if(a[0].nodeName==='A'&&a.parent().hasClass('has-dropdown')){s.preventDefault()};if(i.hasClass('hover')){i.removeClass('hover').find('li').removeClass('hover')} 553else{i.addClass('hover')}}).on('click.fndtn.topbar','.top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a',function(i){if(e.breakpoint()){i.preventDefault();var a=t(this),s=a.closest('.top-bar, [data-topbar]'),n=s.find('section, .section'),o=s.children('ul').first(),d=a.next('.dropdown').outerHeight(),r=a.closest('li');s.data('index',s.data('index')+1);r.addClass('moved');if(!e.rtl){n.css({left:-(100*s.data('index'))+'%'});n.find('>.name').css({left:100*s.data('index')+'%'})} 554else{n.css({right:-(100*s.data('index'))+'%'});n.find('>.name').css({right:100*s.data('index')+'%'})};s.css('height',e.outerHeight(a.siblings('ul'),!0)+e.height(o))}});t(s).on('resize.fndtn.topbar',function(){if(!e.breakpoint()){t('.top-bar, [data-topbar]').css('height','').removeClass('expanded').find('li').removeClass('hover')}}.bind(this));t('body').on('click.fndtn.topbar',function(s){var e=t(s.target).closest('[data-topbar], .top-bar');if(e.length>0){return};t('.top-bar li, [data-topbar] li').removeClass('hover')});t(this.scope).on('click.fndtn','.top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back',function(i){i.preventDefault();var n=t(this),s=n.closest('.top-bar, [data-topbar]'),r=s.children('ul').first(),a=s.find('section, .section'),o=n.closest('li.moved'),d=o.parent();s.data('index',s.data('index')-1);if(!e.rtl){a.css({left:-(100*s.data('index'))+'%'});a.find('>.name').css({left:100*s.data('index')+'%'})} 555else{a.css({right:-(100*s.data('index'))+'%'});a.find('>.name').css({right:100*s.data('index')+'%'})};if(s.data('index')===0){s.css('height','')} 556else{s.css('height',e.outerHeight(d,!0)+e.height(r))};setTimeout(function(){o.removeClass('moved')},300)})},breakpoint:function(){return t(e).width()<=this.settings.breakPoint||t('html').hasClass('lt-ie9')},assemble:function(){var s=this;this.settings.$section.detach();this.settings.$section.find('.has-dropdown>a').each(function(){var i=t(this),n=i.siblings('.dropdown'),a=i.attr('href');if(s.settings.mobile_show_parent_link&&a&&a.length>1){var e=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+a+'">'+i.text()+'</a></li>')} 557else{var e=t('<li class="title back js-generated"><h5><a href="#"></a></h5></li>')};if(s.settings.custom_back_text==!0){e.find('h5>a').html('« '+s.settings.back_text)} 558else{e.find('h5>a').html('« '+i.html())};n.prepend(e)});this.settings.$section.appendTo(this.settings.$topbar);this.sticky()},height:function(s){var e=0,i=this;s.find('> li').each(function(){e+=i.outerHeight(t(this),!0)});return e},sticky:function(){var e='.'+this.settings.stickyClass;if(t(e).length>0){var i=t(e).length?t(e).offset().top:0,a=t(s),o=this.outerHeight(t('.top-bar')),n;t(s).resize(function(){clearTimeout(n);n=setTimeout(function(){i=t(e).offset().top},105)});a.scroll(function(){if(a.scrollTop()>(i)){t(e).addClass('fixed');t('body').css('padding-top',o)} 559else if(a.scrollTop()<=i){t(e).removeClass('fixed');t('body').css('padding-top','0')}})}},off:function(){t(this.scope).off('.fndtn.topbar');t(s).off('.fndtn.topbar')},reflow:function(){}}}(Foundation.zj,this,this.document));;/*})'"*/ 560/*! 561 * jQuery throttle / debounce - v1.1 - 3/7/2010 562 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 563 * 564 * Copyright (c) 2010 "Cowboy" Ben Alman 565 * Dual licensed under the MIT and GPL licenses. 566 * http://benalman.com/about/license/ 567 */ 568 569// Script: jQuery throttle / debounce: Sometimes, less is more! 570// 571// *Version: 1.1, Last updated: 3/7/2010* 572// 573// Project Home - http://benalman.com/projects/jquery-throttle-debounce-plugin/ 574// GitHub - http://github.com/cowboy/jquery-throttle-debounce/ 575// Source - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.js 576// (Minified) - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.min.js (0.7kb) 577// 578// About: License 579// 580// Copyright (c) 2010 "Cowboy" Ben Alman, 581// Dual licensed under the MIT and GPL licenses. 582// http://benalman.com/about/license/ 583// 584// About: Examples 585// 586// These working examples, complete with fully commented code, illustrate a few 587// ways in which this plugin can be used. 588// 589// Throttle - http://benalman.com/code/projects/jquery-throttle-debounce/examples/throttle/ 590// Debounce - http://benalman.com/code/projects/jquery-throttle-debounce/examples/debounce/ 591// 592// About: Support and Testing 593// 594// Information about what version or versions of jQuery this plugin has been 595// tested with, what browsers it has been tested in, and where the unit tests 596// reside (so you can test it yourself). 597// 598// jQuery Versions - none, 1.3.2, 1.4.2 599// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome 4-5, Opera 9.6-10.1. 600// Unit Tests - http://benalman.com/code/projects/jquery-throttle-debounce/unit/ 601// 602// About: Release History 603// 604// 1.1 - (3/7/2010) Fixed a bug in <jQuery.throttle> where trailing callbacks 605// executed later than they should. Reworked a fair amount of internal 606// logic as well. 607// 1.0 - (3/6/2010) Initial release as a stand-alone project. Migrated over
608// from jquery-misc repo v0.4 to jquery-throttle repo v1.0, added the 609// no_trailing throttle parameter and debounce functionality. 610// 611// Topic: Note for non-jQuery users 612// 613// jQuery isn't actually required for this plugin, because nothing internal 614// uses any jQuery methods or properties. jQuery is just used as a namespace 615// under which these methods can exist. 616// 617// Since jQuery isn't actually required for this plugin, if jQuery doesn't exist 618// when this plugin is loaded, the method described below will be created in 619// the `Cowboy` namespace. Usage will be exactly the same, but instead of 620// $.method() or jQuery.method(), you'll need to use Cowboy.method(). 621 622(function(window,undefined){ 623 '$:nomunge'; // Used by YUI compressor. 624 625 // Since jQuery really isn't required for this plugin, use `jQuery` as the 626 // namespace only if it already exists, otherwise use the `Cowboy` namespace, 627 // creating it if necessary. 628 var $ = window.jQuery || window.Cowboy || ( window.Cowboy = {} ), 629 630 // Internal method reference. 631 jq_throttle; 632 633 // Method: jQuery.throttle 634 // 635 // Throttle execution of a function. Especially useful for rate limiting 636 // execution of handlers on events like resize and scroll. If you want to 637 // rate-limit execution of a function to a single time, see the 638 // <jQuery.debounce> method. 639 // 640 // In this visualization, | is a throttled-function call and X is the actual 641 // callback execution: 642 // 643 // > Throttled with `no_trailing` specified as false or unspecified: 644 // > ||||||||||||||||||||||||| (pause) ||||||||||||||||||||||||| 645 // > X X X X X X X X X X X X 646 // > 647 // > Throttled with `no_trailing` specified as true: 648 // > ||||||||||||||||||||||||| (pause) ||||||||||||||||||||||||| 649 // > X X X X X X X X X X 650 // 651 // Usage: 652 // 653 // > var throttled = jQuery.throttle( delay, [ no_trailing, ] callback ); 654 // > 655 // > jQuery('selector').bind( 'someevent', throttled ); 656 // > jQuery('selector').unbind( 'someevent', throttled ); 657 //
vendor: 4,180 bytes, lines 658-767
658 // This also works in jQuery 1.4+: 659 // 660 // > jQuery('selector').bind( 'someevent', jQuery.throttle( delay, [ no_trailing, ] callback ) ); 661 // > jQuery('selector').unbind( 'someevent', callback ); 662 // 663 // Arguments: 664 // 665 // delay - (Number) A zero-or-greater delay in milliseconds. For event 666 // callbacks, values around 100 or 250 (or even higher) are most useful. 667 // no_trailing - (Boolean) Optional, defaults to false. If no_trailing is 668 // true, callback will only execute every `delay` milliseconds while the 669 // throttled-function is being called. If no_trailing is false or 670 // unspecified, callback will be executed one final time after the last 671 // throttled-function call. (After the throttled-function has not been 672 // called for `delay` milliseconds, the internal counter is reset) 673 // callback - (Function) A function to be executed after delay milliseconds. 674 // The `this` context and all arguments are passed through, as-is, to 675 // `callback` when the throttled-function is executed. 676 // 677 // Returns: 678 // 679 // (Function) A new, throttled, function. 680 681 $.throttle = jq_throttle = function( delay, no_trailing, callback, debounce_mode ) { 682 // After wrapper has stopped being called, this timeout ensures that 683 // `callback` is executed at the proper times in `throttle` and `end` 684 // debounce modes. 685 var timeout_id, 686 687 // Keep track of the last time `callback` was executed. 688 last_exec = 0; 689 690 // `no_trailing` defaults to falsy. 691 if ( typeof no_trailing !== 'boolean' ) { 692 debounce_mode = callback; 693 callback = no_trailing; 694 no_trailing = undefined; 695 } 696 697 // The `wrapper` function encapsulates all of the throttling / debouncing 698 // functionality and when executed will limit the rate at which `callback` 699 // is executed. 700 function wrapper() { 701 var that = this, 702 elapsed = +new Date() - last_exec, 703 args = arguments; 704 705 // Execute `callback` and update the `last_exec` timestamp. 706 function exec() { 707 last_exec = +new Date(); 708 callback.apply( that, args ); 709 }; 710 711 // If `debounce_mode` is true (at_begin) this is used to clear the flag 712 // to allow future `callback` executions. 713 function clear() { 714 timeout_id = undefined; 715 }; 716 717 if ( debounce_mode && !timeout_id ) { 718 // Since `wrapper` is being called for the first time and 719 // `debounce_mode` is true (at_begin), execute `callback`. 720 exec(); 721 } 722 723 // Clear any existing timeout. 724 timeout_id && clearTimeout( timeout_id ); 725 726 if ( debounce_mode === undefined && elapsed > delay ) { 727 // In throttle mode, if `delay` time has been exceeded, execute 728 // `callback`. 729 exec(); 730 731 } else if ( no_trailing !== true ) { 732 // In trailing throttle mode, since `delay` time has not been 733 // exceeded, schedule `callback` to execute `delay` ms after most 734 // recent execution. 735 // 736 // If `debounce_mode` is true (at_begin), schedule `clear` to execute 737 // after `delay` ms. 738 // 739 // If `debounce_mode` is false (at end), schedule `callback` to 740 // execute after `delay` ms. 741 timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay ); 742 } 743 }; 744 745 // Set the guid of `wrapper` function to the same of original callback, so 746 // it can be removed in jQuery 1.4+ .unbind or .die by using the original 747 // callback as a reference. 748 if ( $.guid ) { 749 wrapper.guid = callback.guid = callback.guid || $.guid++; 750 } 751 752 // Return the wrapper function. 753 return wrapper; 754 }; 755 756 // Method: jQuery.debounce 757 // 758 // Debounce execution of a function. Debouncing, unlike throttling, 759 // guarantees that a function is only executed a single time, either at the 760 // very beginning of a series of calls, or at the very end. If you want to 761 // simply rate-limit execution of a function, see the <jQuery.throttle> 762 // method. 763 // 764 // In this visualization, | is a debounced-function call and X is the actual 765 // callback execution: 766 // 767 // >
767 Debounced with `at_begin` specified as false or unspecified: 768 // > ||||||||||||||||||||||||| (pause) ||||||||||||||||||||||||| 769 // > X X 770 // > 771 // > Debounced with `at_begin` specified as true: 772 // > ||||||||||||||||||||||||| (pause) ||||||||||||||||||||||||| 773 // > X X 774 // 775 // Usage: 776 // 777 // > var debounced = jQuery.debounce( delay, [ at_begin, ] callback ); 778 // > 779 // > jQuery('selector').bind( 'someevent', debounced ); 780 // > jQuery('selector').unbind( 'someevent', debounced ); 781 // 782 // This also works in jQuery 1.4+: 783 // 784 // > jQuery('selector').bind( 'someevent', jQuery.debounce( delay, [ at_begin, ] callback ) ); 785 // > jQuery('selector').unbind( 'someevent', callback ); 786 // 787 // Arguments: 788 // 789 // delay - (Number) A zero-or-greater delay in milliseconds. For event 790 // callbacks, values around 100 or 250 (or even higher) are most useful. 791 // at_begin - (Boolean) Optional, defaults to false. If at_begin is false or 792 // unspecified, callback will only be executed `delay` milliseconds after 793 // the last debounced-function call. If at_begin is true, callback will be 794 // executed only at the first debounced-function call. (After the 795 // throttled-function has not been called for `delay` milliseconds, the 796 // internal counter is reset) 797 // callback - (Function) A function to be executed after delay milliseconds. 798 // The `this` context and all arguments are passed through, as-is, to 799 // `callback` when the debounced-function is executed. 800 // 801 // Returns: 802 // 803 // (Function) A new, debounced, function. 804 805 $.debounce = function( delay, at_begin, callback ) { 806 return callback === undefined 807 ? jq_throttle( delay, at_begin, false ) 808 : jq_throttle( delay, callback, at_begin !== false ); 809 }; 810 811})(this); 812;/*})'"*/;/*})'"*/ 813!function(a){a.fn.equalHeights=function(){var e=0,n=a(this);return n.each(function(){var n=a(this).innerHeight();n>e&&(e=n)}),n.height(e)},a('[data-equal]').each(function(){var e=a(this),n=e.data('equal');e.find(n).equalHeights()})}(jQuery);;/*})'"*/ 814(function(e,t){window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments))}};var a='onorientationchange' in window,i=a?'orientationchange':'resize';e(window).load(function(){e('.js .royalSlider').css({'visibility':'visible','opacity':1})});e(window).load(function(){var a=0,t=e('.section-container');if(t.length){e(window).on(i,e.throttle(250,function(){if(e(window).width()>a){t.each(function(){var i=t.find('p.title'),a=i.length;if(a){i.each(function(){var t=parseFloat(100/a).toFixed(2),i=e(this),n=t*i.parents('section').index();i.css({'width':t+'%','left':n+'%'})})}})}})).trigger(i)}});e(window).scroll(function(){if(e(document).scrollTop()===0){e('.l-header').removeClass('tiny')} 815else{e('.l-header').addClass('tiny')}});t.behaviors.vrweb_foundation_equal_heights={attach:function(t,a){var o=['.view-events.view-display-id-page'],n=e(o.join(','),t);if(n.length){e(window).on(i,e.throttle(250,function(){n.find('article').each(function(){e(this).find('> div.columns').removeAttr('height width').equalHeights()})})).trigger(i)}}};t.behaviors.vrweb_foundation_entityform_field_placeholder={attach:function(t,i){var a=e('body.section-poipu-beach-property-management',t),n=e('input#edit-field-name-und-0-value',t),o=e('input#edit-field-email-und-0-email',t),r=e('input#edit-field-property-address-und-0-value',t),s=e('input#edit-field-website-link-und-0-url',t);if(a.length){n.attr('placeholder','Your Name');o.attr('placeholder','Your Email');r.attr('placeholder','Property Address');s.attr('placeholder','Website or link to property')}}};t.behaviors.vrweb_foundation_move_sharelink={attach:function(t,i){var a=['.view .bt-leads-share-url-form-wrapper'],n=e(a.join(','),t);$pagehead=e('#page-title',t);n.appendTo($pagehead)}};t.behaviors.vrweb_foundation_toggle_search={attach:function(t,i){$searchToggle=e('.off-canvas-trigger a');$container=e('#document');$searchToggle.toggle(function(){$container.removeClass('hide-search').addClass('show-search')},function(){$container.removeClass('show-search').addClass('hide-search')})}};t.behaviors.vrweb_foundation_toggle_menu={attach:function(t,i){$menuToggle=e('.toggle-topbar');var n=['#document, nav.top-bar'],a=e(n.join(','),t);$menuToggle.toggle(function(){a.addClass('expanded')},function(){a.removeClass('expanded')})}};t.behaviors.favorites_update={attach:function(t,i){$favoritesLink=e('.favorites-cart .block-vrweb-favorites-my-favorites-link',t);$favoritesContent=e('.favorites-cart .view-favorites .view-filters');$favoritesLabel=e('.favorites-cart .block-vrweb-favorites-my-favorites-link .service-label',t);$favoritesLink.appendTo($favoritesContent);$favoritesLabel.text('Refresh')}};t.behaviors.foundationCollapseHack={attach:function(i,a){if(typeof t.settings.gmap!='undefined'&&e('.view-display-id-block_location_by_nid').length){e(window).load(function(){var i=e('.view-display-id-block_location_by_nid');if(i.parents('.section-container').length>0){i.parents('section').find('p.title').children('a').click(function(){var e=t.gmap.getMap('gmap-auto1map-gmap0'),i=e.vars.latitude,a=e.vars.longitude,n=e.vars.zoom;setTimeout(function(){google.maps.event.trigger(e.map,'resize');e.map.setCenter(new google.maps.LatLng(i,a),n)},0)})}})}}};t.behaviors.ttdevents_move_map={attach:function(i,a){e(window).load(function(){$ttdeventMap=e('.blog-ttd-events-details-page .view-location-by-nid',i);$ttdeventFeatured=e('.blog-ttd-events-details-page #featured-wrapper',i);if($ttdeventMap.length>0){$ttdeventMap.appendTo('#featured-wrapper');$ttdeventFeatured.addClass('has-loc');var a=t.gmap.getMap('gmap-auto1map-gmap0'),n=a.vars.latitude,o=a.vars.longitude,r=a.vars.zoom;setTimeout(function(){google.maps.event.trigger(a.map,'resize');a.map.setCenter(new google.maps.LatLng(n,o),r)},0)}})}};t.behaviors.move_map_search={attach:function(t,a){e(window).load(function(){var a=e('.map-results-page .sidebar-first',t),n=e('.map-results-page .l-main .view',t),o=e('.map-results-page .l-main',t);if(n.length){e(window).on(i,e.throttle(250,function(){if(a.parents(n)&&e(window).width()<768){a.prependTo(o)};if(a.parents(o)&&e(window).width()>767){a.appendTo(n)}})).trigger(i)}})}};t.behaviors.reveal_messages={attach:function(t,i){e('#status-messages.reveal-modal',t).foundation('reveal','open')}};t.behaviors.clear_search_specials={attach:function(t,i){var n='node-type-special',a=e('body',t);
815if(a.length){if(a.hasClass(n)){if(typeof RiotTagsDispatch!=='undefined'){setTimeout(function(){RiotTagsDispatch.on('RiotSolrCurrentSearchRemoveAll',function(e){var t=window.location.protocol+'//'+window.location.host+window.location.pathname;window.location.href=t})},7000)}}}}};t.behaviors.inquiry_selects={attach:function(t,i){var a=e('select#edit-field-inquiry-properties-und',t);if(a.length){a.removeAttr('width').select2({width:'resolve'})};var n=a.closest('form');a.on('change',function(){var t=e(this).val();if(t.length){var i=t.split('::');if(i[1]){location.href=i[1]} 816else{location.href=t}}})}};t.behaviors.modernizr_tests={attach:function(t,i){if(Modernizr.mq('only screen and (max-width: 767px)')){e(document).foundation('section',{callback:function(){var t,i=e('.group-vr-full-property-info section.active'),a=event;if(a.srcElement.offsetParent.className!=='title'){t=i.offset().top;e('html, body').animate({scrollTop:t},50)}}})}}};t.behaviors.foundationCollapseHack={attach:function(t,i){var a=e('p[data-section-title]',t);if(!a.length){return};a.each(function(){var t=this;e('a',this).on('click',function(){e(t).siblings('.content').find('riot-solr-result-map').each(function(){var e;if(this._tag){e=this._tag;setTimeout(function(){e.fitBounds()},0);setTimeout(function(){var t,i={default:null,hide:[{featureType:'poi.business',stylers:[{visibility:'off'}]},]};if(e.opts.mapObj){t=e.opts.mapObj;t.setMapTypeId('satellite');t.setOptions({styles:i['hide']})}},500)}})})})}};t.behaviors.slider_resize_opened={attach:function(t,i){var a=e('.reveal-royalslider');if(!a.length){return};a.each(function(){var a='#'+e(this).data('reveal-id'),t=e(a),i=t.find('.royalSlider');if(!t.length||!i.length){return};t.on('opened',function(){var e=i.data('royalSlider');e.updateSliderSize(!0)})})}};t.behaviors.touch_mouse_nav={attach:function(t,i){var a=e('html').hasClass('touch'),n=e('#main-menu li.has-dropdown > a');n.once('pointer-events',function(e,t){t.addEventListener('click',o,!1)});function o(e){var t=e.target.href;if(a&&window.innerWidth>1024){window.location.href=t}}}};t.behaviors.init_video={attach:function(a,n){var o,r=768;if(typeof t.settings.vrweb_video=='undefined'||typeof t.settings.vrweb_video.sources=='undefined'){return};o=e('#vrweb-video');e(window).load(function(){e(window).on(i,e.throttle(250,function(){if(e(window).width()>r){s()} 817else{c()}})).trigger(i)});function s(){o.once('vrweb-video',function(){var a=e('<video>',{autoplay:'autoplay',loop:'loop',muted:'muted'}),i;for(index in t.settings.vrweb_video.sources){i=t.settings.vrweb_video.sources[index];if(i['type'].indexOf('video')!=-1){a.append('<source type="'+i.type+'" src="'+i.src+'" />')}};o.append(a)})};function c(){o.once('vrweb-photo',function(){var e;for(index in t.settings.vrweb_video.sources){e=t.settings.vrweb_video.sources[index];if(e['type'].indexOf('image')!=-1){o.append('<img src="'+e.src+'" />')}}})}}};(function(){if(!t.behaviors.verticalTabs){return};var e=t.behaviors.verticalTabs.attach;t.behaviors.verticalTabs.attach=function(i){try{e.call(t.behaviors.verticalTabs,i)}catch(a){if(a.message.indexOf('unrecognized expression: #rcav=')<0){throw a}}}})();(function(){if(!t.behaviors.collapse){return};var e=t.behaviors.collapse.attach;t.behaviors.collapse.attach=function(i){try{e.call(t.behaviors.collapse,i)}catch(a){if(a.message.indexOf('Syntax error, unrecognized expression: .error, #rcav=')<0){throw a}}}})();t.behaviors.datepicker_overrides={attach:function(t,i){e(i.rcItemAvailForm).each(function(i,a){e('#'+a.id,t).once(function(){var t=e(this);if(a.eid){e('input.hasDatepicker',t).each(function(){var t=e(this),i=t.datepicker('option','beforeShowDay'),n=function(e){var o=i(e),r=e.getTime(),n=new Date(r),s,c=!1,l=!1;n.setDate(n.getDate()-1);s=n.getTime();for(var t in a.avail){if(a.avail[t].a==1){continue};if(a.avail[t].bdt==r){l=!0} 818else if(a.avail[t].edt==s){c=!0};if(c&&l){o[1]+=' av-back-to-back-stays';break}};return o};t.datepicker('option',{beforeShowDay:n})})}})})}};t.behaviors.vrw_navis_mobile={attach:function(t,i){if(typeof NavisConvertTagToPhoneNumberBasic=='undefined'||!'btm_ntwi' in i){return};if(!i.btm_ntwi.use_own_block){return};var a=NavisConvertTagToPhoneNumberBasic(ReadNavisTagCookie());
818e('.phone.show-for-medium-down',t).attr('href','tel:'+a)}};t.behaviors.vrw_navis_chat={attach:function(t,i){if(e(window).width()<=768){return};e('body').once('add-vrfusion-elements',function(){var e;if(typeof i.vrfusion_site_navis!='undefined'){e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','https://assets.navisperformance.com/NWRC/Fusion/navis-fusion-loader.js');e.setAttribute('id','navis-fusion-loader');e.setAttribute('data-accountid',i.vrfusion_site_navis.account);e.setAttribute('data-secret',i.vrfusion_site_navis.pass);document.getElementsByTagName('head')[0].appendChild(e)}})}}})(jQuery,Drupal);;/*})'"*/
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.