/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
;/**/
(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,s,a,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)||(s=e.isArray(t)))){f=n[r];if(s&&!e.isArray(f)){a=[]}
else if(!s&&!e.isPlainObject(f)){a={}}
else{a=f};s=!1;n[r]=e.extend(u,a,t)}
else if(t!==undefined){n[r]=t}}}};return n}})(jQuery);(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 p=['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='('+p.join('|')+')',c='[\\x20\\t\\r\\n\\f]',s=new RegExp('<'+i+'\\/>','gi'),b=new RegExp('<'+i+'('+c+'[^>]*)\\/>','gi'),a;if(e<3){a=/<([\w:]+)/}
else if(r<4){a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i}
else{a=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i};var f=/<(?!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 p=t.replace(f,'<$1></$2>');if(p!==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)),u=l(o(p));if(u===''||d===''||(u!==d)){t=''}}};return t}});if((e===1&&r<12)||(e===2&&r<2)){var u=t.fn.html;t.fn.extend({html:function(e){if(typeof e==='string'){e=t.htmlPrefilter(e)};return u.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)}})}
else{var l=t.buildFragment;t.extend({'buildFragment':function(e,i,o,d){var u=e.length;for(var a=0;a<u;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);(function(n){var e={},i=0;n.fn.once=function(r,o){if(typeof r!='string'){if(!(r in e)){e[r]=++i};if(!o){o=r};r='jquery-once-'+e[r]};var s=r+'-processed',t=this.not('.'+s).addClass(s);return n.isFunction(o)?t.each(o):t};n.fn.removeOnce=function(e,i){var r=e+'-processed',o=this.filter('.'+r).removeClass(r);return n.isFunction(i)?o.each(i):o}})(jQuery);;var Drupal=Drupal||{'settings':{},'behaviors':{},'locale':{}};jQuery.noConflict();(function(t){var r=t.fn.init;t.fn.init=function(t,e,a){if(t&&typeof t==='string'){var n=t.indexOf('#');if(n>=0){var o=t.indexOf('<');if(o>n){throw'Syntax error, unrecognized expression: '+t}}};return r.call(this,t,e,a)};t.fn.init.prototype=r.prototype;if(t.ajaxPrefilter){t.ajaxPrefilter(function(t){if(t.crossDomain){t.contents.script=!1}})}
else if(t.httpData){var e=t.httpData;t.httpData=function(t,r,a){if(!r&&!Drupal.urlIsLocal(a.url)){var n=t.getResponseHeader('content-type')||'';if(n.indexOf('javascript')>=0){r='text'}};return e.call(this,t,r,a)};t.httpData.prototype=e.prototype};Drupal.attachBehaviors=function(e,r){e=e||document;r=r||Drupal.settings;t.each(Drupal.behaviors,function(){if(t.isFunction(this.attach)){this.attach(e,r)}})};Drupal.detachBehaviors=function(e,r,a){e=e||document;r=r||Drupal.settings;a=a||'unload';t.each(Drupal.behaviors,function(){if(t.isFunction(this.detach)){this.detach(e,r,a)}})};Drupal.checkPlain=function(t){var e,a,r={'&':'&amp;','\'':'&#39;','"':'&quot;','<':'&lt;','>':'&gt;'};t=String(t);for(e in r){if(r.hasOwnProperty(e)){a=new RegExp(e,'g');t=t.replace(a,r[e])}};return t};Drupal.formatString=function(t,e){for(var r in e){if(e.hasOwnProperty(r)){switch(r.charAt(0)){case'@':e[r]=Drupal.checkPlain(e[r]);break;case'!':break;default:e[r]=Drupal.theme('placeholder',e[r]);break}}};return Drupal.stringReplace(t,e,null)};Drupal.stringReplace=function(e,r,a){if(e.length===0){return e};if(!t.isArray(a)){a=[];for(var i in r){if(r.hasOwnProperty(i)){a.push(i)}};a.sort(function(t,e){return t.length-e.length})};if(a.length===0){return e};var l=a.pop(),o=e.split(l);if(a.length){for(var n=0;n<o.length;n++){o[n]=Drupal.stringReplace(o[n],r,a.slice(0))}};return o.join(r[l])};Drupal.t=function(t,r,e){e=e||{};e.context=e.context||'';if(Drupal.locale.strings&&Drupal.locale.strings[e.context]&&Drupal.locale.strings[e.context][t]){t=Drupal.locale.strings[e.context][t]};if(r){t=Drupal.formatString(t,r)};return t};Drupal.formatPlural=function(t,e,a,r,o){r=r||{};r['@count']=t;var n=Drupal.locale.pluralFormula?Drupal.locale.pluralFormula(r['@count']):((r['@count']==1)?0:1);if(n==0){return Drupal.t(e,r,o)}
else if(n==1){return Drupal.t(a,r,o)}
else{r['@count['+n+']']=r['@count'];delete r['@count'];return Drupal.t(a.replace('@count','@count['+n+']'),r,o)}};Drupal.absoluteUrl=function(t){var r=document.createElement('a');try{t=decodeURIComponent(t)}catch(e){};r.setAttribute('href',t);return r.cloneNode(!1).href};Drupal.urlIsLocal=function(t){var e=Drupal.absoluteUrl(t),n=location.protocol;if(n==='http:'&&e.indexOf('https:')===0){n='https:'};var r=n+'//'+location.host+Drupal.settings.basePath.slice(0,-1);try{e=decodeURIComponent(e)}catch(a){};try{r=decodeURIComponent(r)}catch(a){};return e===r||e.indexOf(r+'/')===0};Drupal.sanitizeAjaxUrl=function(t){var e=/\=\?(&|$)/;while(t.match(e)){t=t.replace(e,'')};return t};Drupal.theme=function(t){var e=Array.prototype.slice.apply(arguments,[1]);return(Drupal.theme[t]||Drupal.theme.prototype[t]).apply(this,e)};Drupal.freezeHeight=function(){Drupal.unfreezeHeight();t('<div id="freeze-height"></div>').css({position:'absolute',top:'0px',left:'0px',width:'1px',height:t('body').css('height')}).appendTo('body')};Drupal.unfreezeHeight=function(){t('#freeze-height').remove()};Drupal.encodePath=function(t,e){e=e||location.href;return encodeURIComponent(t).replace(/%2F/g,'/')};Drupal.getSelection=function(t){if(typeof t.selectionStart!='number'&&document.selection){var e=document.selection.createRange(),r=e.duplicate();r.moveToElementText(t);r.setEndPoint('EndToEnd',e);var a=r.text.length-e.text.length,n=a+e.text.length;return{'start':a,'end':n}};return{'start':t.selectionStart,'end':t.selectionEnd}};Drupal.beforeUnloadCalled=!1;t(window).bind('beforeunload pagehide',function(){Drupal.beforeUnloadCalled=!0});Drupal.displayAjaxError=function(t){if(!Drupal.beforeUnloadCalled){alert(t)}};Drupal.ajaxError=function(e,r,a){var o,i,u,n,p,s;if(e.status){o='\n'+Drupal.t('An AJAX HTTP error occurred.')+'\n'+Drupal.t('HTTP Result Code: !status',{'!status':e.status})}
else{o='\n'+Drupal.t('An AJAX HTTP request terminated abnormally.')};o+='\n'+Drupal.t('Debugging information follows.');u='\n'+Drupal.t('Path: !uri',{'!uri':r});i='';try{i='\n'+Drupal.t('StatusText: !statusText',{'!statusText':t.trim(e.statusText)})}catch(l){};n='';try{n='\n'+Drupal.t('ResponseText: !responseText',{'!responseText':t.trim(e.responseText)})}catch(l){};n=n.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');n=n.replace(/[\n]+\s+/g,'\n');p=e.status==0?('\n'+Drupal.t('ReadyState: !readyState',{'!readyState':e.readyState})):'';a=a?('\n'+Drupal.t('CustomMessage: !customMessage',{'!customMessage':a})):'';s=o+u+i+a+n+p;return s};t('html').addClass('js');t(function(){if(Drupal.settings.setHasJsCookie===1){document.cookie='has_js=1; path=/; SameSite=Lax'}});t(function(){if(jQuery.support.positionFixed===undefined){var e=t('<div style="position:fixed; top:10px" />').appendTo(document.body);jQuery.support.positionFixed=e[0].offsetTop===10;e.remove()}});t(function(){Drupal.attachBehaviors(document,Drupal.settings)});Drupal.theme.prototype={placeholder:function(t){return'<em class="placeholder">'+Drupal.checkPlain(t)+'</em>'}}})(jQuery);/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),scrollParent:function(){var t;return t=e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var s,a,n=e(this[0]);n.length&&n[0]!==document;){if(s=n.css("position"),("absolute"===s||"relative"===s||"fixed"===s)&&(a=parseInt(n.css("zIndex"),10),!isNaN(a)&&0!==a))return a;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})},removeUniqueId:function(){return this.each(function(){n.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var s=e.attr(t,"tabindex"),a=isNaN(s);return(a||s>=0)&&i(t,!a)}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(i,s){function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+s]=function(i){return i===t?o["inner"+s].call(this):this.each(function(){e(this).css(r,a(this,i)+"px")})},e.fn["outer"+s]=function(t,i){return"number"!=typeof t?o["outer"+s].call(this,t):this.each(function(){e(this).css(r,a(this,t,!0,i)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,i,s){var a,n=e.ui[t].prototype;for(a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(e,t,i){var s,a=e.plugins[t];if(a&&e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType)for(s=0;a.length>s;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}},hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",a=!1;return t[s]>0?!0:(t[s]=1,a=t[s]>0,t[s]=0,a)}})})(jQuery);;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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);;/**/
;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 p=e.expires,r=e.expires=new Date();r.setDate(r.getDate()+p)};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};;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}};/* Riot v2.3.17, @license MIT */
!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()}function 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,configurable:!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("([[\\]])|"+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},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);
;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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(),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);;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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);;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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);;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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[1]=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>a?"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);;/**/
(function(n){var t=n.ui.version.split('.'),e=parseInt(t[0]),f=parseInt(t[1]);if((e>1)||(e===1&&f>=13)){return};var i=n.fn.position;n.fn.extend({'position':function(t){if(typeof t==='undefined'){return i.call(this)};var e=typeof t.of==='string'?n(document).find(t.of):n(t.of);t.of=(e[0]===undefined)?null:e;return i.call(this,t)}})})(jQuery);/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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=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;d[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);;/**/
/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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("&#160;"),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];i?(("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);;/**/
(function(t){var i=t.ui.dialog.version.split('.'),e=parseInt(i[0]),o=parseInt(i[1]);if(e===1&&o<13){var s=t.ui.dialog.prototype._setOption,a=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)};a.apply(this,arguments)},_setOption:function(t,i){if(t==='title'||t=='closeText'){if(i){i=Drupal.checkPlain(i)}};s.apply(this,[t,i])}});if(e===1&&o<10){var p=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);p.apply(this,arguments)},})}}})(jQuery);/*! jQuery UI - v1.10.2 - 2013-03-14
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(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("keydown",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},_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;e.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,"&#39;")+"'")+(j?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(W&&!v?"&#xa0;":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>");
y+="</select>"}if(_||(b+=y+(!a&&g&&v?"":"&#xa0;")),!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?"":"&#xa0;")+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);var 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);;/**/
(function(e,t){var r=e.ui.datepicker.version.split('.'),n=parseInt(r[0]),a=parseInt(r[1]);if((n>1)||(n===1&&a>=13)){return};var i=e.datepicker._get;e.extend(e.datepicker,{_get:function(a,n){var r=i.call(this,a,n);if(n==='altField'){r=e(document).find(r)}
else if(e.inArray(n,['appendText','buttonText','prevText','currentText','nextText','closeText'])!==-1){r=t.checkPlain(r)};return r}})})(jQuery,Drupal);/*!
 * jQuery Form Plugin
 * version: 2.69 (06-APR-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(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]);if(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;for(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;g.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);/**/
;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)}
else{riot.mount(t,n)}}};(function(){riot.observable(RiotTagsDispatch)})();(function(t){if(typeof define==='function'&&define.amd){define(['jquery'],t)}
else if(typeof module==='object'&&module.exports){module.exports=function(i,e){if(e===undefined){if(typeof window!=='undefined'){e=require('jquery')}
else{e=require('jquery')(i)}};t(e);return e}}
else{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}
else{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)}
else 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};if(t[i]===undefined){t[i]=e}
else{t[i]+=e};return null},h=function(t,i,e){if(t==='l'||t==='t'){return 0}
else if(t==='c'||t==='m'){return e/2-i/2}
else 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'}
else if(o&&!t){n='hide'}
else if(!o&&t){n=this.options.showAnimation;e.push(this.options.showDuration)}
else if(!o&&!t){n=this.options.hideAnimation;e.push(this.options.hideDuration)}
else{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%'}
else if(r==='center'){e.left='45%'}
else{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();Q=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()}
else{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))}}
else 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)}
else 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)}
else if(t.type(e)==='string'){this.options.className=e};if(this.container&&!i){this.show(!1);return}
else if(!this.container&&!i){return};o={};if(t.isPlainObject(i)){o=i}
else{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()}
else{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)}
else{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/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLSQWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/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+H5oOrD3yWbIztugaAzgnBKJuBLpGfQrS8wO4FZgV+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)}})})}));(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)}
else{i.notify(o,t)}}};riot.mixin('RiotNotify',o)})(jQuery);;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}
else{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)}
else if(t.length===+t.length){for(var n=0,a=t.length;n<a;n++){i.call(undefined,t[n],n,t)}}
else{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}
else if(AjaxSolr.isRegExp(e)&&AjaxSolr.isString(t)){return t.match(e)}
else if(AjaxSolr.isRegExp(t)&&AjaxSolr.isString(e)){return e.match(t)}
else{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)}
else{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()};this.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)}
else{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]}
else{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}
else{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]}
else{if(AjaxSolr.inArray(t.val(),this.values(e))==-1){this.params[e].push(t)}
else{return!1}}}
else{this.params[e]=t};return t},remove:function(e,t){if(t===undefined){delete this.params[e]}
else{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}
else{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}
else{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])}}
else{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)}}}
else{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)}}}
else{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)}
else{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}
else{this.value=e}},local:function(e,t){if(t===undefined){return this.locals[e]}
else{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)}
else if(this.name=='q'&&e){return'q.alt='+e+encodeURIComponent('*:*')}
else{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'}
else{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)}
else{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)}
else{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)},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)}
else 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'])}
else 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'}
else if(this['facet.date']!==undefined){e='facet_dates'}
else 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)}
else{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)}
else{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())}
else{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)}
else{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)}
else{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)}
else{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)}
else if(window.attachEvent){window.attachEvent('onhashchange',this.intervalFunction(this))}
else{window.onhashchange=this.intervalFunction(this)}}
else{this.intervalId=window.setInterval(this.intervalFunction(this),this.interval)}}},save:function(){this.hash=this.exposedString();if(this.storedString()){window.location.hash=this.hash}
else{window.location.replace(window.location.href.replace('#','')+'#'+this.hash)}},storedString:function(){var e=window.location.href.indexOf('#');if(e==-1){return''}
else{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)}
else{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'}
else{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,servlet: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)}
else{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:'&laquo; Previous',nextLabel:'Next &raquo;',separator:' ',currentPage:null,totalPages:null},e)},gapMarker:function(){return'<span class="pager-gap">&hellip;</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))}
else{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('?');if(r==-1){return''}
else{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()}});(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 o=e.extend(!0,{},i);f(function(){var n=e.ajax.apply(window,[o]);n.done(function(){u.resolve.apply(this,arguments)});n.fail(function(){u.reject.apply(this,arguments)});n.always(s);return n});return a;function f(e){if(!n[t]){n[t]=[];var a=e();r[t]=a}
else{n[t].push(e)}};function s(){if(!n[t]){return};var e=n[t].shift();if(e){var a=e();r[t]=a}
else{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]=[]}}}
else{if(n[e]){n[e]=[]}}}})(jQuery);;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'))};if(typeof ga4!=='undefined'){ga4.eventName('event',t)}},trackPageView:function(t){if(!e.ga){return};e.ga('send','pageview',this.mapHit(t,'client'));if(typeof ga4!=='undefined'){ga4.eventName('page_view',this.mapHit(t,'client'))};if(e.ga.getByName&&e.ga.getByName('bluetent')){e.ga('bluetent.send','pageview',this.mapHit(t,'bluetent'));if(typeof ga4!=='undefined'){ga4.eventName('page_view',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)};if(typeof ga4!=='undefined'){ga4.eventName('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);;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()};this.store.init();this.docCacheMem={};if(typeof this.docCache!='undefined'&&this.docCache>0){this.cache=new CacheInterface.Bucket({defaultLifetime:this.docCache,bucket:'RiotSolrManagerDocCache'})}
else{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'})}
else{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,a,n,o,h){var r=this,i={dataType:'json'},c,f;if(typeof o==='undefined'){o=!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';a=a||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)}}
else{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&&!o){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&&!o){r.requestCache.setItem(f,e)};a(e)}).fail(function(e){n(e)}).always(function(){r.observable.trigger('RiotSolrRequestStop')})}
else{a(c);r.observable.trigger('RiotSolrRequestStop')}},triggerEvents:function(e){for(var t in this.widgets){this.widgets[t].afterRequest()};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,a,h=this;for(a in t){if(this.cache){r=this.cache.getItem(t[a])}
else{r=this.docCacheMem[t[a]]};if(r){s.push(r)}
else{n.push(t[a])}};if(!n.length){i.resolve(s)}
else{var f='ids='+n.join(','),o;if(this.observable.opts.solr.params){o=this.observable.opts.solr.params;for(var c in o){f+='&'+c+'='+o[c]}};this.executeRequest('select',f,function(e){for(var a in e.response.docs){var r=e.response.docs[a];if(h.cache){h.cache.setItem(r.id,r)}
else{h.docCacheMem[r.id]=r};s.push(e.response.docs[a])};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,'\\"')+'"'}
else{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)$/)};AjaxSolr.ParameterStore.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)$/)};AjaxSolr.ParameterHashStore.prototype.exposedString=function(){var i=[],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 s=0,r=this.params[this.exposed[e]].length;s<r;s++){t=this.params[this.exposed[e]][s].string();if(t&&this.params[this.exposed[e]][s]['private']!==!0){i.push(t)}}}
else{t=this.params[this.exposed[e]].string();if(t&&this.params[this.exposed[e]]['private']!==!0){i.push(t)}}}};return i.join('&')}})(jQuery);;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}
else 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}
else{e.RiotSolrFacets=[]}}
else 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')||!e.RiotSolrManager.store.get('bq').value){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);RiotTagsDispatch.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)}
else{this.FacetAdd(t)}},FacetProcessParams:function(t){return t},FacetFilterChars:function(t){return t.replace(/[\[\]\{\}\(\)\*\+\?\.\\]/g,'')},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}
else{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=this,r,i;if(t.field===this.opts.field&&t.widget===this.opts.widget){if(this.opts.definition.settings.settings.exclude){r=new RegExp(o.FacetFilterChars(this.opts.definition.settings.settings.exclude));e=t.items.filter(function(t){return!r.test(o.FacetFilterChars(t.facet))})}
else{e=t.items};this.trigger('RiotSolrFacetProviderSort',{'items':e,'field':t.field,'sortOptions':this.opts.definition.settings.settings.active_sorts,'results':t,});RiotTagsDispatch.trigger('RiotSolrFacetProviderSort',{'items':e,'field':t.field,'sortOptions':this.opts.definition.settings.settings.active_sorts,'results':t,});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.children[t].tag==='riot-solr-alternates'){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)}
else{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)}
else{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));e.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(t.RiotSolrFlagOpts.skip_solr&&t.RiotSolrFlagOpts.skip_solr_prefix){t.flagItemID=t.RiotSolrFlagOpts.skip_solr_prefix+t.opts.eid;t.RiotSolrFlagSetFlag()}
else{if(!e){t.RiotSolrManager.observable.on('RiotSolrReady',function(){t.RiotSolrManager.getDocumentsByKeys([t.opts.eid]).done(function(e){t.RiotSolrFlagSetItem(e[0])})})}
else{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){if(t){this.flagItemID=t[this.RiotSolrFlagOpts.key]+'';this.RiotSolrFlagSetFlag()}},RiotSolrFlagSetFlag:function(){this.RiotSolrFlagInitStore();if(this.RiotSolrFlagStore.has(this.flagItemID)){this.RiotSolrFlagText=this.RiotSolrFlagOpts.text.unflag;this.RiotSolrFlagClass=this.RiotSolrFlagOpts.classes.unflag}
else{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}
else{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;t.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.setRiotSolrItems(t.response.docs);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)}
else{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=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 ga4!=='undefined'){ga4.event({event:'add_'+i,value:t,eventCategory:'RiotSolr Flag',eventAction:'Add '+i,eventLabel:t,})};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Add '+i,eventLabel:t,nonInteraction:1,})}
else 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 ga4!=='undefined'){ga4.event({event:'remove_'+i,value:t,eventCategory:'RiotSolr Flag',eventAction:'Remove '+i,eventLabel:t,})};if(typeof ga!=='undefined'){ga('send',{hitType:'event',eventCategory:'RiotSolr Flag',eventAction:'Remove '+i,eventLabel:t,nonInteraction:1,})}
else 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}
else{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()}
else 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)};var 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);;riot.tag('subtag','',function(t){var o=t.tag;if(typeof o!='undefined'){(function(i,e){var n={};if(typeof t.options!=='undefined'){n=i.extend(n,t.options)};riot.mount(e.root,o,n)})(jQuery,this)}});(function(e){Drupal.ajax=Drupal.ajax||{};Drupal.settings.urlIsAjaxTrusted=Drupal.settings.urlIsAjaxTrusted||{};Drupal.behaviors.AJAX={attach:function(t,s){for(var r in s.ajax){if(!e('#'+r+'.ajax-processed').length){var a=s.ajax[r];if(typeof a.selector=='undefined'){a.selector='#'+r};e(a.selector).each(function(){a.element=this;Drupal.ajax[r]=new Drupal.ajax(r,this,a)});e('#'+r).addClass('ajax-processed')}};e('.use-ajax:not(.ajax-processed)').addClass('ajax-processed').each(function(){var t={};t.progress={'type':'throbber'};if(e(this).attr('href')){t.url=e(this).attr('href');t.event='click'};var s=e(this).attr('id');Drupal.ajax[s]=new Drupal.ajax(s,this,t)});e('.use-ajax-submit:not(.ajax-processed)').addClass('ajax-processed').each(function(){var t={};t.url=e(this.form).attr('action');t.setClick=!0;t.event='click';t.progress={'type':'throbber'};var s=e(this).attr('id');Drupal.ajax[s]=new Drupal.ajax(s,this,t)})}};Drupal.ajax=function(t,s,r){var i={url:'system/ajax',event:'mousedown',keypress:!0,selector:'#'+t,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Please wait...')},submit:{'js':!0}};e.extend(this,i,r);this.element=s;this.element_settings=r;this.url=r.url.replace(/\/nojs(\/|$|\?|&|#)/g,'/ajax$1');if(Drupal.settings.urlIsAjaxTrusted[r.url]){Drupal.settings.urlIsAjaxTrusted[this.url]=!0};this.wrapper='#'+r.wrapper;if(this.element.form){this.form=e(this.element.form)};var a=this;a.options={url:Drupal.sanitizeAjaxUrl(a.url),data:a.submit,beforeSerialize:function(e,t){return a.beforeSerialize(e,t)},beforeSubmit:function(e,t,s){a.ajaxing=!0;return a.beforeSubmit(e,t,s)},beforeSend:function(e,t){a.ajaxing=!0;return a.beforeSend(e,t)},success:function(t,s,r){if(typeof t=='string'){t=e.parseJSON(t)};if(t!==null&&!Drupal.settings.urlIsAjaxTrusted[a.url]){if(r.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){var i=Drupal.t('The response failed verification so will not be processed.');return a.error(r,a.url,i)}};return a.success(t,s)},complete:function(e,t){a.ajaxing=!1;if(t=='error'||t=='parsererror'){return a.error(e,a.url)}},dataType:'json',jsonp:!1,type:'POST'};if(navigator.userAgent.indexOf('MSIE')===-1){a.options.iframeSrc='about:blank'};e(a.element).bind(r.event,function(e){if(!Drupal.settings.urlIsAjaxTrusted[a.url]&&!Drupal.urlIsLocal(a.url)){throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':a.url}))};return a.eventResponse(this,e)});if(r.keypress){e(a.element).keypress(function(e){return a.keypressResponse(this,e)})};if(r.prevent){e(a.element).bind(r.prevent,!1)}};Drupal.ajax.prototype.keypressResponse=function(t,s){var r=this;if(s.which==13||(s.which==32&&t.type!='text'&&t.type!='textarea')){e(r.element_settings.element).trigger(r.element_settings.event);return!1}};Drupal.ajax.prototype.eventResponse=function(t,s){var r=this;if(r.ajaxing){return!1};try{if(r.form){if(r.setClick){t.form.clk=t};r.form.ajaxSubmit(r.options)}
else{r.beforeSerialize(r.element,r.options);e.ajax(r.options)}}catch(a){r.ajaxing=!1;alert('An error occurred while attempting to process '+r.options.url+': '+a.message)};if(typeof t.type!='undefined'&&(t.type=='checkbox'||t.type=='radio')){return!0}
else{return!1}};Drupal.ajax.prototype.beforeSerialize=function(s,t){if(this.form){var a=this.settings||Drupal.settings;Drupal.detachBehaviors(this.form,a,'serialize')};t.data['ajax_html_ids[]']=[];e('[id]').each(function(){t.data['ajax_html_ids[]'].push(this.id)});t.data['ajax_page_state[theme]']=Drupal.settings.ajaxPageState.theme;t.data['ajax_page_state[theme_token]']=Drupal.settings.ajaxPageState.theme_token;for(var r in Drupal.settings.ajaxPageState.css){t.data['ajax_page_state[css]['+r+']']=1};for(var r in Drupal.settings.ajaxPageState.js){t.data['ajax_page_state[js]['+r+']']=1}};Drupal.ajax.prototype.beforeSubmit=function(e,t,s){};Drupal.ajax.prototype.beforeSend=function(t,s){if(this.form){s.extraData=s.extraData||{};s.extraData.ajax_iframe_upload='1';var a=e.fieldValue(this.element);if(a!==null){s.extraData[this.element.name]=Drupal.checkPlain(a)}};e(this.element).addClass('progress-disabled').attr('disabled',!0);if(this.progress.type=='bar'){var r=new Drupal.progressBar('ajax-progress-'+this.element.id,e.noop,this.progress.method,e.noop);if(this.progress.message){r.setProgress(-1,this.progress.message)};if(this.progress.url){r.startMonitoring(this.progress.url,this.progress.interval||1500)};this.progress.element=e(r.element).addClass('ajax-progress ajax-progress-bar');this.progress.object=r;e(this.element).after(this.progress.element)}
else if(this.progress.type=='throbber'){this.progress.element=e('<div class="ajax-progress ajax-progress-throbber"><div class="throbber">&nbsp;</div></div>');if(this.progress.message){e('.throbber',this.progress.element).after('<div class="message">'+this.progress.message+'</div>')};e(this.element).after(this.progress.element)}};Drupal.ajax.prototype.success=function(t,s){if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.element).removeClass('progress-disabled').removeAttr('disabled');Drupal.freezeHeight();for(var r in t){if(t.hasOwnProperty(r)&&t[r]['command']&&this.commands[t[r]['command']]){this.commands[t[r]['command']](this,t[r],s)}};if(this.form){var a=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,a)};Drupal.unfreezeHeight();this.settings=null};Drupal.ajax.prototype.getEffect=function(e){var s=e.effect||this.effect,r=e.speed||this.speed,t={};if(s=='none'){t.showEffect='show';t.hideEffect='hide';t.showSpeed=''}
else if(s=='fade'){t.showEffect='fadeIn';t.hideEffect='fadeOut';t.showSpeed=r}
else{t.showEffect=s+'Toggle';t.hideEffect=s+'Toggle';t.showSpeed=r};return t};Drupal.ajax.prototype.error=function(t,s,r){Drupal.displayAjaxError(Drupal.ajaxError(t,s,r));if(this.progress.element){e(this.progress.element).remove()};if(this.progress.object){this.progress.object.stopMonitoring()};e(this.wrapper).show();e(this.element).removeClass('progress-disabled').removeAttr('disabled');if(this.form){var a=this.settings||Drupal.settings;Drupal.attachBehaviors(this.form,a)}};Drupal.ajax.prototype.commands={insert:function(t,s,r){var n=s.selector?e(s.selector):e(t.wrapper),l=s.method||t.method,i=t.getEffect(s),p=e('<div></div>').html(s.data),a=p.contents();if(a.length!=1||a.get(0).nodeType!=1){a=p};switch(l){case'html':case'replaceWith':case'replaceAll':case'empty':case'remove':var o=s.settings||t.settings||Drupal.settings;Drupal.detachBehaviors(n,o)};n[l](a);if(i.showEffect!='show'){a.hide()};if(e('.ajax-new-content',a).length>0){e('.ajax-new-content',a).hide();a.show();e('.ajax-new-content',a)[i.showEffect](i.showSpeed)}
else if(i.showEffect!='show'){a[i.showEffect](i.showSpeed)};if(a.parents('html').length>0){var o=s.settings||t.settings||Drupal.settings;Drupal.attachBehaviors(a,o)}},remove:function(t,s,r){var a=s.settings||t.settings||Drupal.settings;Drupal.detachBehaviors(e(s.selector),a);e(s.selector).remove()},changed:function(s,t,r){if(!e(t.selector).hasClass('ajax-changed')){e(t.selector).addClass('ajax-changed');if(t.asterisk){e(t.selector).find(t.asterisk).append(' <span class="ajax-changed">*</span> ')}}},alert:function(e,t,s){alert(t.text,t.title)},css:function(t,s,r){e(s.selector).css(s.argument)},settings:function(t,s,r){if(s.merge){e.extend(!0,Drupal.settings,s.settings)}
else{t.settings=s.settings}},data:function(t,s,r){e(s.selector).data(s.name,s.value)},invoke:function(t,s,r){var a=e(s.selector);a[s.method].apply(a,s.arguments)},restripe:function(t,s,r){e('> tbody > tr:visible, > tr:visible',e(s.selector)).removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even')},add_css:function(t,s,r){e('head').prepend(s.data);var i,a=/^@import url\("(.*)"\);$/igm;if(document.styleSheets[0].addImport&&a.test(s.data)){a.lastIndex=0;while(i=a.exec(s.data)){document.styleSheets[0].addImport(i[1])}}},updateBuildId:function(t,s,r){e('input[name="form_build_id"][value="'+s['old']+'"]').val(s['new'])}}})(jQuery);(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);(function(t,o){o.behaviors.bt_leads_antibot_workaround={attach:function(e,o){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){if(!o.antibot){return};o.antibot.forms=t;o.antibot.human=!1})}}};const observer=new MutationObserver(callback);observer.observe(targetNode,config)})}}})(jQuery,Drupal);(function(n){Drupal.behaviors.riotSolrFacetGroupTooltip={attach:function(o,t){const infoIcons=n(".amenity-info-icon",o);if(infoIcons.length){infoIcons.each(function(){const currentIcon=n(this);const categoryId=currentIcon[0].id;const popupElementId="amenity-detail-"+categoryId;n(this).hover(function(){n("div[id='"+popupElementId+"']",o).addClass("open")},function(){n("div[id='"+popupElementId+"']",o).removeClass("open")})})}},}})(jQuery);(function(e){Drupal.extlink=Drupal.extlink||{};Drupal.extlink.attach=function(l,t){if(!t.hasOwnProperty('extlink')){return};var c=/^(([^\/:]+?\.)*)([^\.:]{4,})((\.[a-z]{1,4})*)(:[0-9]{1,5})?$/,o=window.location.host.replace(c,'$3$4'),r=window.location.host.replace(c,'$1'),s;if(t.extlink.extSubdomains){s='([^/]*\\.)?'}
else if(r=='www.'||r==''){s='(www\\.)?'}
else{s=r.replace('.','\\.')};var u=new RegExp('^https?://'+s+o,'i'),p=!1;if(t.extlink.extInclude){p=new RegExp(t.extlink.extInclude.replace(/\\/,'\\'),'i')};var x=!1;if(t.extlink.extExclude){x=new RegExp(t.extlink.extExclude.replace(/\\/,'\\'),'i')};var n=!1;if(t.extlink.extCssExclude){n=t.extlink.extCssExclude};var i=!1;if(t.extlink.extCssExplicit){i=t.extlink.extCssExplicit};var a=[],k=[];e('a:not(.'+t.extlink.extClass+', .'+t.extlink.mailtoClass+'), area:not(.'+t.extlink.extClass+', .'+t.extlink.mailtoClass+')',l).each(function(t){try{var l=this.href.toLowerCase();if(l.indexOf('http')==0&&((!l.match(u)&&!(x&&l.match(x)))||(p&&l.match(p)))&&!(n&&e(this).parents(n).length>0)&&!(i&&e(this).parents(i).length<1)){a.push(this)}
else if(this.tagName!='AREA'&&l.indexOf('mailto:')==0&&!(n&&e(this).parents(n).length>0)&&!(i&&e(this).parents(i).length<1)){k.push(this)}}catch(s){return!1}});if(t.extlink.extClass){Drupal.extlink.applyClassAndSpan(a,t.extlink.extClass)};if(t.extlink.mailtoClass){Drupal.extlink.applyClassAndSpan(k,t.extlink.mailtoClass)};if(t.extlink.extTarget){e(a).attr('target',t.extlink.extTarget)};Drupal.extlink=Drupal.extlink||{};Drupal.extlink.popupClickHandler=Drupal.extlink.popupClickHandler||function(){if(t.extlink.extAlert){return confirm(t.extlink.extAlertText)}};e(a).click(function(e){return Drupal.extlink.popupClickHandler(e)})};Drupal.extlink.applyClassAndSpan=function(t,l){var i;if(Drupal.settings.extlink.extImgClass){i=e(t)}
else{var x=e(t).find('img').parents('a');i=e(t).not(x)};i.addClass(l);var a,s=i.length;for(a=0;a<s;a++){var n=e(i[a]);if(n.css('display')=='inline'||n.css('display')=='inline-block'){if(l==Drupal.settings.extlink.mailtoClass){n.append('<span class="'+l+'"><span class="element-invisible"> '+Drupal.settings.extlink.mailtoLabel+'</span></span>')}
else{n.append('<span class="'+l+'"><span class="element-invisible"> '+Drupal.settings.extlink.extLabel+'</span></span>')}}}};Drupal.behaviors.extlink=Drupal.behaviors.extlink||{};Drupal.behaviors.extlink.attach=function(e,t){if(typeof extlinkAttach==='function'){extlinkAttach(e)}
else{Drupal.extlink.attach(e,t)}}})(jQuery);/*!
	Colorbox 1.6.4
	license: MIT
	http://www.jacklmoore.com/colorbox
*/
(function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!U){U=$=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=t('<button type="button"/>').attr({id:Z+"Slideshow"}),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;U&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),U&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if($=!0,q=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e).eq(0);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),q=_.get("createImg"),t(q).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){q.height-=q.height*e,q.width-=q.width*e},_.mw&&q.width>_.mw&&(e=(q.width-_.mw)/q.width,o()),_.mh&&q.height>_.mh&&(e=(q.height-_.mh)/q.height,o())),_.h&&(q.style.marginTop=Math.max(_.mh-q.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(q.style.cursor="pointer",t(q).bind("click."+Z,function(){J.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",h(q)},1)}),q.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,q,U,$,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),$=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;U&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if(U){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(q).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;U&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!$&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!$&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){U&&!G&&(G=!0,U=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);;/**/
(function(o){Drupal.behaviors.initColorbox={attach:function(r,t){if(!o.isFunction(o('a, area, input',r).colorbox)||typeof t.colorbox==='undefined'){return};if(t.colorbox.mobiledetect&&window.matchMedia){var i=window.matchMedia('(max-device-width: '+t.colorbox.mobiledevicewidth+')');if(i.matches){return}};t.colorbox.rel=function(){if(o(this).data('colorbox-gallery')){return o(this).data('colorbox-gallery')}
else{return o(this).attr('rel')}};o('.colorbox',r).once('init-colorbox').each(function(){var i={photo:!0};var r=o(this).attr('title');if(r){i.title=Drupal.colorbox.sanitizeMarkup(r)};o(this).colorbox(o.extend({},t.colorbox,i))});o(r).bind('cbox_complete',function(){Drupal.attachBehaviors('#cboxLoadedContent')})}};if(!Drupal.hasOwnProperty('colorbox')){Drupal.colorbox={}};Drupal.colorbox.sanitizeMarkup=function(o){if(typeof DOMPurify!=='undefined'){var r={ALLOWED_TAGS:['a','b','strong','i','em','u','cite','code','br'],ALLOWED_ATTR:['href','hreflang','title','target']};if(Drupal.settings.hasOwnProperty('dompurify_custom_config')){r=Drupal.settings.dompurify_custom_config};return DOMPurify.sanitize(o,r)}
else{return Drupal.checkPlain(o)}}})(jQuery);(function(e){Drupal.behaviors.initColorboxDefaultStyle={attach:function(o,i){e(o).bind('cbox_complete',function(){if(e('#cboxTitle:empty',o).length==!1){e('#cboxLoadedContent img',o).bind('mouseover',function(){e('#cboxTitle',o).slideDown()});e('#cboxOverlay',o).bind('mouseover',function(){e('#cboxTitle',o).slideUp()})}
else{e('#cboxTitle',o).hide()}})}}})(jQuery);(function(n,i){var o=!1,e=function(){var e='close',t='hide';n('body').once('notification-banner',function(){if(n.cookie('banner_hide')){return};var e=n('.notification-banner-block'),t=n('.close-notification-button');e.addClass('show-banner');o=!0;console.log('Mounting notification banner.');t.on('click',function(o){var t=n(this);n.cookie('banner_hide',1,{expires:parseInt(i.settings.ngt_base.notification_banner_expire)});e.hide();e.remove()})})};i.behaviors.notificationBanner={attach:function(n,i){window.addEventListener('load',(event)=>{if(!o){e()}})}}})(jQuery,Drupal);(function(e){Drupal.googleanalytics={};e(document).ready(function(){e(document.body).bind("mousedown keyup touchstart",function(t){e(t.target).closest("a,area").each(function(){if(Drupal.googleanalytics.isInternal(this.href)){if(e(this).is(".colorbox")&&(Drupal.settings.googleanalytics.trackColorbox)){}
else if(Drupal.settings.googleanalytics.trackDownload&&Drupal.googleanalytics.isDownload(this.href)){ga("send",{"hitType":"event","eventCategory":"Downloads","eventAction":Drupal.googleanalytics.getDownloadExtension(this.href).toUpperCase(),"eventLabel":Drupal.googleanalytics.getPageUrl(this.href),"transport":"beacon"})}
else if(Drupal.googleanalytics.isInternalSpecial(this.href)){ga("send",{"hitType":"pageview","page":Drupal.googleanalytics.getPageUrl(this.href),"transport":"beacon"})}}
else{if(Drupal.settings.googleanalytics.trackMailto&&e(this).is("a[href^='mailto:'],area[href^='mailto:']")){ga("send",{"hitType":"event","eventCategory":"Mails","eventAction":"Click","eventLabel":this.href.substring(7),"transport":"beacon"})}
else if(Drupal.settings.googleanalytics.trackOutbound&&this.href.match(/^\w+:\/\//i)){if(Drupal.settings.googleanalytics.trackDomainMode!==2||(Drupal.settings.googleanalytics.trackDomainMode===2&&!Drupal.googleanalytics.isCrossDomain(this.hostname,Drupal.settings.googleanalytics.trackCrossDomains))){ga("send",{"hitType":"event","eventCategory":"Outbound links","eventAction":"Click","eventLabel":this.href,"transport":"beacon"})}}}})});if(Drupal.settings.googleanalytics.trackUrlFragments){window.onhashchange=function(){ga("send",{"hitType":"pageview","page":location.pathname+location.search+location.hash})}};if(Drupal.settings.googleanalytics.trackColorbox){e(document).bind("cbox_complete",function(){var t=e.colorbox.element().attr("href");if(t){ga("send",{"hitType":"pageview","page":Drupal.googleanalytics.getPageUrl(t)})}})}});Drupal.googleanalytics.isCrossDomain=function(t,a){if(!a){return!1}
else{return e.inArray(t,a)>-1?!0:!1}};Drupal.googleanalytics.isDownload=function(e){var t=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i");return t.test(e)};Drupal.googleanalytics.isInternal=function(e){var t=new RegExp("^(https?):\/\/"+window.location.host,"i");return t.test(e)};Drupal.googleanalytics.isInternalSpecial=function(e){var t=new RegExp("(\/go\/.*)$","i");return t.test(e)};Drupal.googleanalytics.getPageUrl=function(e){var t=new RegExp("^(https?):\/\/"+window.location.host,"i");return e.replace(t,"")};Drupal.googleanalytics.getDownloadExtension=function(e){var a=new RegExp("\\.("+Drupal.settings.googleanalytics.trackDownloadExtensions+")([\?#].*)?$","i"),t=a.exec(e);return(t===null)?"":t[1]}})(jQuery);(function(t,o){o.behaviors.callToBookInquityForm={attach:function(o,a){t('body').once(function(){if(a.ngt_base['c2b_forms']){t('body').addClass('call-to-book-inquiry-form')}});t('body').once().on('click',function(o){if(!t(o.target).is('button[data-call-to-book-prop-eid].book')){return};o.preventDefault();if(t(o.target).hasClass('my-trips')||(t(o.target).hasClass('quote')&&!window.location.pathname.includes(t(o.target).attr('data-url'),0))){window.open(t(o.target).attr('data-url')+'?inquiry=true'+window.location.hash)}
else{t('.zurb-foundation-reveal').trigger('click')}})}}})(jQuery,Drupal);[].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}
else{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'}
else{if(t.parents().find('.ui-dialog').length>0){o='rc.ecom.addToCartQuote';c='Detailed Quote'}
else{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)}
else{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)}
else{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=document.createElement('a');anchor.href=c;anchor.target='_blank';anchor.click()}
else{window.location=c}}};window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(obj)}
else{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()}
else{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()}
else{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]}})}
else{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})}
else 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)}})});e('[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')}
else if(Drupal.settings.rc_ua.rc_ua_tracking_method=='tm'){if(typeof(window[Drupal.settings.rc_ua.rc_ua_tm_datalayer])=='undefined'){return}}
else 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);(function(t){var o=function(){var t=window.navigator.userAgent,e=t.indexOf('MSIE ');if(e>0){return parseInt(t.substring(e+5,t.indexOf('.',e)),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 n=t.indexOf('Edge/');if(n>0){return parseInt(t.substring(n+5,t.indexOf('.',n)),10)};return!1},s=!0,e=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){a(t[ind].target);e.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var n=(typeof IntersectionObserver=='undefined'||o())?undefined:new IntersectionObserver(function(t){for(ind in t){if(t[ind].isIntersecting){i(t[ind].target);n.unobserve(t[ind].target)}}},{rootMargin:'80px 0px 80px 0px'});var a=function(n){var r=t(n),e;if(s){d(r)}
else{e=r.attr('data-srcset');if(e){e='srcset="'+e+'" '};t('<img src="'+r.attr('data-src')+'" '+e+'/>').on('load',function(){d(r)})}};function d(t){var e=t.attr('data-src'),n=t.attr('data-srcset');t.attr('src',e);t.addClass('bto-lazy-loaded');if(n){t.attr('srcset',n)}};var r=function(r){t('img[data-src].bto-lazy',r).once('btoLazyLoad',function(){if(typeof e!='undefined'){e.observe(this)}
else{a(this)}});t('div.bto-lazy-jump',r).once('btoLazyLoad',function(){if(typeof n!='undefined'){n.observe(this)}
else{i(this)}})},i=function(n){t.get(t(n).attr('data-bto-jump-select'),function(e){var r=t(e);t(r).addClass('bto-lazy-loaded');t(n).replaceWith(r);Drupal.attachBehaviors(r,Drupal.settings)})};Drupal.behaviors.btoLazyLoad={attach:function(t){r(t)}};r(document);t(document).ready(function(){s=!1})})(jQuery);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e,i;function f(){return e.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(m(e,t))return;return 1}function r(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){for(var n=[],s=0;s<e.length;++s)n.push(t(e[s],s));return n}function c(e,t){for(var n in t)m(t,n)&&(e[n]=t[n]);return m(t,"toString")&&(e.toString=t.toString),m(t,"valueOf")&&(e.valueOf=t.valueOf),e}function _(e,t,n,s){return xt(e,t,n,s,!0).utc()}function y(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=y(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function w(e){var t=_(NaN);return null!=e?c(y(t),e):y(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var p=f.momentProperties=[],t=!1;function v(e,t){var n,s,i;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=y(t)),r(t._locale)||(e._locale=t._locale),0<p.length)for(n=0;n<p.length;n++)r(i=t[s=p[n]])||(e[s]=i);return e}function k(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===t&&(t=!0,f.updateOffset(this),t=!1)}function M(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function D(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function n(i,r){var a=!0;return c(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,i),a){for(var e,t,n=[],s=0;s<arguments.length;s++){if(e="","object"==typeof arguments[s]){for(t in e+="\n["+s+"] ",arguments[0])m(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[s];n.push(e)}D(i+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return r.apply(this,arguments)},r)}var s,S={};function Y(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),S[e]||(D(t),S[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e,t){var n,s=c({},e);for(n in t)m(t,n)&&(u(e[n])&&u(t[n])?(s[n]={},c(s[n],e[n]),c(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)m(e,n)&&!m(t,n)&&u(e[n])&&(s[n]=c({},s[n]));return s}function x(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null,s=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)m(e,t)&&n.push(t);return n};function T(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function C(e,t,n,s){var i="string"==typeof s?function(){return this[s]()}:s;e&&(W[e]=i),t&&(W[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=H(t,e.localeData()),R[t]=R[t]||function(s){for(var e,i=s.match(N),t=0,r=i.length;t<r;t++)W[i[t]]?i[t]=W[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=O(i[n])?i[n].call(e,s):i[n];return t}}(t),R[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(P.lastIndex=0;0<=n&&P.test(e);)e=e.replace(P,s),P.lastIndex=0,--n;return e}var F={};function L(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function V(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function G(e){var t,n,s={};for(n in e)m(e,n)&&(t=V(n))&&(s[t]=e[n]);return s}var E={};function A(e,t){E[e]=t}function j(e){return e%4==0&&e%100!=0||e%400==0}function I(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Z(e){var t=+e,n=0;return 0!=t&&isFinite(t)&&(n=I(t)),n}function z(t,n){return function(e){return null!=e?(q(this,t,e),f.updateOffset(this,n),this):$(this,t)}}function $(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&j(e.year())&&1===e.month()&&29===e.date()?(n=Z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var B,J=/\d/,Q=/\d\d/,X=/\d{3}/,K=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,ne=/\d\d\d\d?/,se=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,re=/\d{1,4}/,ae=/[+-]?\d{1,6}/,oe=/\d+/,ue=/[+-]?\d+/,le=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,de=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ce(e,n,s){B[e]=O(n)?n:function(e,t){return e&&s?s:n}}function fe(e,t){return m(B,e)?B[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}B={};var _e={};function ye(e,n){var t,s=n;for("string"==typeof e&&(e=[e]),h(n)&&(s=function(e,t){t[n]=Z(e)}),t=0;t<e.length;t++)_e[e[t]]=s}function ge(e,i){ye(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s)})}var we,pe=0,ve=1,ke=2,Me=3,De=4,Se=5,Ye=6,Oe=7,be=8;function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1==s?j(e)?29:28:31-s%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),C("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),A("month",8),ce("M",te),ce("MM",te,Q),ce("MMM",function(e,t){return t.monthsShortRegex(e)}),ce("MMMM",function(e,t){return t.monthsRegex(e)}),ye(["M","MM"],function(e,t){t[ve]=Z(e)-1}),ye(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[ve]=i:y(n).invalidMonth=e});var Te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re=de,We=de;function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Z(t);else if(!h(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ue(e){return null!=e?(Ce(this,e),f.updateOffset(this,!0),this):$(this,"Month")}function He(){function e(e,t){return t.length-e.length}for(var t,n=[],s=[],i=[],r=0;r<12;r++)t=_([2e3,r]),n.push(this.monthsShort(t,"")),s.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),s.sort(e),i.sort(e),r=0;r<12;r++)n[r]=me(n[r]),s[r]=me(s[r]);for(r=0;r<24;r++)i[r]=me(i[r]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Fe(e){return j(e)?366:365}C("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),L("year","y"),A("year",1),ce("Y",ue),ce("YY",te,Q),ce("YYYY",re,K),ce("YYYYY",ae,ee),ce("YYYYYY",ae,ee),ye(["YYYYY","YYYYYY"],pe),ye("YYYY",function(e,t){t[pe]=2===e.length?f.parseTwoDigitYear(e):Z(e)}),ye("YY",function(e,t){t[pe]=f.parseTwoDigitYear(e)}),ye("Y",function(e,t){t[pe]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return Z(e)+(68<Z(e)?1900:2e3)};var Le=z("FullYear",!0);function Ve(e){var t,n;return e<100&&0<=e?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ge(e,t,n){var s=7+t-n;return s-(7+Ve(e,0,s).getUTCDay()-t)%7-1}function Ee(e,t,n,s,i){var r,a=1+7*(t-1)+(7+n-s)%7+Ge(e,s,i),o=a<=0?Fe(r=e-1)+a:a>Fe(e)?(r=e+1,a-Fe(e)):(r=e,a);return{year:r,dayOfYear:o}}function Ae(e,t,n){var s,i,r=Ge(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+je(i=e.year()-1,t,n):a>je(e.year(),t,n)?(s=a-je(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function je(e,t,n){var s=Ge(e,t,n),i=Ge(e+1,t,n);return(Fe(e)-s+i)/7}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),A("week",5),A("isoWeek",5),ce("w",te),ce("ww",te,Q),ce("W",te),ce("WW",te,Q),ge(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=Z(e)});function Ie(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),ce("d",te),ce("e",te),ce("E",te),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,s){t[s]=Z(e)});var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=de,Be=de,Je=de;function Qe(){function e(e,t){return t.length-e.length}for(var t,n,s,i,r=[],a=[],o=[],u=[],l=0;l<7;l++)t=_([2e3,1]).day(l),n=me(this.weekdaysMin(t,"")),s=me(this.weekdaysShort(t,"")),i=me(this.weekdays(t,"")),r.push(n),a.push(s),o.push(i),u.push(n),u.push(s),u.push(i);r.sort(e),a.sort(e),o.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Ke(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,Xe),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+Xe.apply(this)+T(this.minutes(),2)}),C("hmmss",0,0,function(){return""+Xe.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ke("a",!0),Ke("A",!1),L("hour","h"),A("hour",13),ce("a",et),ce("A",et),ce("H",te),ce("h",te),ce("k",te),ce("HH",te,Q),ce("hh",te,Q),ce("kk",te,Q),ce("hmm",ne),ce("hmmss",se),ce("Hmm",ne),ce("Hmmss",se),ye(["H","HH"],Me),ye(["k","kk"],function(e,t,n){var s=Z(e);t[Me]=24===s?0:s}),ye(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ye(["h","hh"],function(e,t,n){t[Me]=Z(e),y(n).bigHour=!0}),ye("hmm",function(e,t,n){var s=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s)),y(n).bigHour=!0}),ye("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s,2)),t[Se]=Z(e.substr(i)),y(n).bigHour=!0}),ye("Hmm",function(e,t,n){var s=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s))}),ye("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Me]=Z(e.substr(0,s)),t[De]=Z(e.substr(s,2)),t[Se]=Z(e.substr(i))});var tt=z("Hours",!0);var nt,st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Te,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:$e,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},it={},rt={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ot(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=at(e[r]).split("-")).length,n=(n=at(e[r+1]))?n.split("-"):null;0<t;){if(s=ut(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n}(i,n)>=t-1)break;t--}r++}return nt}function ut(t){var e;if(void 0===it[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=nt._abbr,require("./locale/"+t),lt(e)}catch(e){it[t]=null}return it[t]}function lt(e,t){var n;return e&&((n=r(t)?dt(e):ht(e,t))?nt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ht(e,t){if(null===t)return delete it[e],null;var n,s=st;if(t.abbr=e,null!=it[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=it[e]._config;else if(null!=t.parentLocale)if(null!=it[t.parentLocale])s=it[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return it[e]=new x(b(s,t)),rt[e]&&rt[e].forEach(function(e){ht(e.name,e.config)}),lt(e),it[e]}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!o(e)){if(t=ut(e))return t;e=[e]}return ot(e)}function ct(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[ve]<0||11<n[ve]?ve:n[ke]<1||n[ke]>xe(n[pe],n[ve])?ke:n[Me]<0||24<n[Me]||24===n[Me]&&(0!==n[De]||0!==n[Se]||0!==n[Ye])?Me:n[De]<0||59<n[De]?De:n[Se]<0||59<n[Se]?Se:n[Ye]<0||999<n[Ye]?Ye:-1,y(e)._overflowDayOfYear&&(t<pe||ke<t)&&(t=ke),y(e)._overflowWeeks&&-1===t&&(t=Oe),y(e)._overflowWeekday&&-1===t&&(t=be),y(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,s,i,r,a,o=e._i,u=ft.exec(o)||mt.exec(o);if(u){for(y(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(u[1])){i=yt[t][0],s=!1!==yt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(u[3])){r=(u[2]||" ")+gt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!_t.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Ot(e)}else e._isValid=!1}function Mt(e,t,n,s,i,r){var a=[function(e){var t=parseInt(e,10);{if(t<=49)return 2e3+t;if(t<=999)return 1900+t}return t}(e),Ne.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function Dt(e){var t,n,s,i,r=pt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){if(t=Mt(r[4],r[3],r[2],r[5],r[6],r[7]),n=r[1],s=t,i=e,n&&ze.indexOf(n)!==new Date(s[0],s[1],s[2]).getDay()&&(y(i).weekdayMismatch=!0,!void(i._isValid=!1)))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return 60*((s-i)/100)+i}(r[8],r[9],r[10]),e._d=Ve.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function St(e,t,n){return null!=e?e:null!=t?t:n}function Yt(e){var t,n,s,i,r,a,o,u=[];if(!e._d){for(a=e,o=new Date(f.now()),s=a._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()],e._w&&null==e._a[ke]&&null==e._a[ve]&&function(e){var t,n,s,i,r,a,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=St(t.GG,e._a[pe],Ae(Tt(),1,4).year),s=St(t.W,1),((i=St(t.E,1))<1||7<i)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Ae(Tt(),r,a),n=St(t.gg,e._a[pe],l.year),s=St(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||6<t.e)&&(u=!0)):i=r);s<1||s>je(n,r,a)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(o=Ee(n,s,i,r,a),e._a[pe]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=St(e._a[pe],s[pe]),(e._dayOfYear>Fe(r)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=Ve(r,0,e._dayOfYear),e._a[ve]=n.getUTCMonth(),e._a[ke]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=u[t]=s[t];for(;t<7;t++)e._a[t]=u[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[De]&&0===e._a[Se]&&0===e._a[Ye]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?Ve:function(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,u),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],y(e).empty=!0;for(var t,n,s,i,r,a,o,u=""+e._i,l=u.length,h=0,d=H(e._f,e._locale).match(N)||[],c=0;c<d.length;c++)n=d[c],(t=(u.match(fe(n,e))||[])[0])&&(0<(s=u.substr(0,u.indexOf(t))).length&&y(e).unusedInput.push(s),u=u.slice(u.indexOf(t)+t.length),h+=t.length),W[n]?(t?y(e).empty=!1:y(e).unusedTokens.push(n),r=n,o=e,null!=(a=t)&&m(_e,r)&&_e[r](a,o._a,o,r)):e._strict&&!t&&y(e).unusedTokens.push(n);y(e).charsLeftOver=l-h,0<u.length&&y(e).unusedInput.push(u),e._a[Me]<=12&&!0===y(e).bigHour&&0<e._a[Me]&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Me]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0)),t)}(e._locale,e._a[Me],e._meridiem),null!==(i=y(e).era)&&(e._a[pe]=e._locale.erasConvertYear(i,e._a[pe])),Yt(e),ct(e)}else Dt(e);else kt(e)}function bt(e){var t,n,s=e._i,i=e._f;return e._locale=e._locale||dt(e._l),null===s||void 0===i&&""===s?w({nullInput:!0}):("string"==typeof s&&(e._i=s=e._locale.preparse(s)),M(s)?new k(ct(s)):(a(s)?e._d=s:o(i)?function(e){var t,n,s,i,r,a,o=!1;if(0===e._f.length)return y(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)r=0,a=!1,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),g(t)&&(a=!0),r+=y(t).charsLeftOver,r+=10*y(t).unusedTokens.length,y(t).score=r,o?r<s&&(s=r,n=t):(null==s||r<s||a)&&(s=r,n=t,a&&(o=!0));c(e,n||t)}(e):i?Ot(e):r(n=(t=e)._i)?t._d=new Date(f.now()):a(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(e){var t=wt.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,Dt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:f.createFromInputFallback(e)))):e._d=new Date(+t[1])}(t):o(n)?(t._a=d(n.slice(0),function(e){return parseInt(e,10)}),Yt(t)):u(n)?function(e){var t,n;e._d||(n=void 0===(t=G(e._i)).day?t.date:t.day,e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Yt(e))}(t):h(n)?t._d=new Date(n):f.createFromInputFallback(t),g(e)||(e._d=null),e))}function xt(e,t,n,s,i){var r,a={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(u(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=s,(r=new k(ct(bt(a))))._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Tt(e,t,n,s){return xt(e,t,n,s,!1)}f.createFromInputFallback=n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};var Nt=n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:w()}),Pt=n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Tt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:w()});function Rt(e,t){var n,s;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=G(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,h=t.millisecond||0;this._isValid=function(e){var t,n,s=!1;for(t in e)if(m(e,t)&&(-1===we.call(Wt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Wt.length;++n)if(e[Wt[n]]){if(s)return!1;parseFloat(e[Wt[n]])!==Z(e[Wt[n]])&&(s=!0)}return!0}(t),this._milliseconds=+h+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=dt(),this._bubble()}function Ut(e){return e instanceof Ct}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,n){C(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+T(~~(e/60),2)+n+T(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ce("Z",he),ce("ZZ",he),ye(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(he,e)});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var n,s,i=(t||"").match(e);return null===i?null:0===(s=60*(n=((i[i.length-1]||[])+"").match(Lt)||["-",0,0])[1]+Z(n[2]))?0:"+"===n[0]?s:-s}function Gt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(M(e)||a(e)?e.valueOf():Tt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),f.updateOffset(n,!1),n):Tt(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}function At(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}f.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,It=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zt(e,t){var n,s,i,r=e,a=null;return Ut(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=jt.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:Z(a[ke])*n,h:Z(a[Me])*n,m:Z(a[De])*n,s:Z(a[Se])*n,ms:Z(Ht(1e3*a[Ye]))*n}):(a=It.exec(e))?(n="-"===a[1]?-1:1,r={y:zt(a[2],n),M:zt(a[3],n),w:zt(a[4],n),d:zt(a[5],n),h:zt(a[6],n),m:zt(a[7],n),s:zt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=$t(e,t):((n=$t(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Tt(r.from),Tt(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new Ct(r),Ut(e)&&m(e,"_locale")&&(s._locale=e._locale),Ut(e)&&m(e,"_isValid")&&(s._isValid=e._isValid),s}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $t(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=t-e.clone().add(n.months,"M"),n}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Y(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),Bt(this,Zt(e,t),s),this}}function Bt(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),a=Ht(t._months);e.isValid()&&(s=null==s||s,a&&Ce(e,$(e,"Month")+a*n),r&&q(e,"Date",$(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&f.updateOffset(e,r||a))}Zt.fn=Ct.prototype,Zt.invalid=function(){return Zt(NaN)};var Jt=qt(1,"add"),Qt=qt(-1,"subtract");function Xt(e){return"string"==typeof e||e instanceof String}function Kt(e){return M(e)||a(e)||Xt(e)||h(e)||function(t){var e=o(t),n=!1;e&&(n=0===t.filter(function(e){return!h(e)&&Xt(t)}).length);return e&&n}(e)||function(e){var t,n,s=u(e)&&!l(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)n=r[t],i=i||m(e,n);return s&&i}(e)||null==e}function en(e,t){if(e.date()<t.date())return-en(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months"),i=t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s);return-(n+i)||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function sn(){return this._locale}var rn=126227808e5;function an(e,t){return(e%t+t)%t}function on(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-rn:new Date(e,t,n).valueOf()}function un(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-rn:Date.UTC(e,t,n)}function ln(e,t){return t.erasAbbrRegex(e)}function hn(){for(var e=[],t=[],n=[],s=[],i=this.eras(),r=0,a=i.length;r<a;++r)t.push(me(i[r].name)),e.push(me(i[r].abbr)),n.push(me(i[r].narrow)),s.push(me(i[r].name)),s.push(me(i[r].abbr)),s.push(me(i[r].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function dn(e,t){C(0,[e,e.length],0,t)}function cn(e,t,n,s,i){var r;return null==e?Ae(this,s,i).year:((r=je(e,s,i))<t&&(t=r),function(e,t,n,s,i){var r=Ee(e,t,n,s,i),a=Ve(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),ce("N",ln),ce("NN",ln),ce("NNN",ln),ce("NNNN",function(e,t){return t.erasNameRegex(e)}),ce("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ye(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?y(n).era=i:y(n).invalidEra=e}),ce("y",oe),ce("yy",oe),ce("yyy",oe),ce("yyyy",oe),ce("yo",function(e,t){return t._eraYearOrdinalRegex||oe}),ye(["y","yy","yyy","yyyy"],pe),ye(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[pe]=n._locale.eraYearOrdinalParse(e,i):t[pe]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),ce("G",ue),ce("g",ue),ce("GG",te,Q),ce("gg",te,Q),ce("GGGG",re,K),ce("gggg",re,K),ce("GGGGG",ae,ee),ce("ggggg",ae,ee),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=Z(e)}),ge(["gg","GG"],function(e,t,n,s){t[s]=f.parseTwoDigitYear(e)}),C("Q",0,"Qo","quarter"),L("quarter","Q"),A("quarter",7),ce("Q",J),ye("Q",function(e,t){t[ve]=3*(Z(e)-1)}),C("D",["DD",2],"Do","date"),L("date","D"),A("date",9),ce("D",te),ce("DD",te,Q),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],ke),ye("Do",function(e,t){t[ke]=Z(e.match(te)[0])});var fn=z("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),A("dayOfYear",4),ce("DDD",ie),ce("DDDD",X),ye(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Z(e)}),C("m",["mm",2],0,"minute"),L("minute","m"),A("minute",14),ce("m",te),ce("mm",te,Q),ye(["m","mm"],De);var mn=z("Minutes",!1);C("s",["ss",2],0,"second"),L("second","s"),A("second",15),ce("s",te),ce("ss",te,Q),ye(["s","ss"],Se);var _n,yn,gn=z("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),A("millisecond",16),ce("S",ie,J),ce("SS",ie,Q),ce("SSS",ie,X),_n="SSSS";_n.length<=9;_n+="S")ce(_n,oe);function wn(e,t){t[Ye]=Z(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")ye(_n,wn);yn=z("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var pn=k.prototype;function vn(e){return e}pn.add=Jt,pn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=u(e)&&!l(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||m(e,s[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var n=e||Tt(),s=Gt(n,this).startOf("day"),i=f.calendarFormat(this,s)||"sameElse",r=t&&(O(t[i])?t[i].call(this,n):t[i]);return this.format(r||this.localeData().calendar(i,this,Tt(n)))},pn.clone=function(){return new k(this)},pn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=V(t)){case"year":r=en(this,s)/12;break;case"month":r=en(this,s);break;case"quarter":r=en(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:I(r)},pn.endOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:on,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-an(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-an(t,1e3)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this},pn.format=function(e){e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},pn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Tt(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.fromNow=function(e){return this.from(Tt(),e)},pn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Tt(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.toNow=function(e){return this.to(Tt(),e)},pn.get=function(e){return O(this[e=V(e)])?this[e]():this},pn.invalidAt=function(){return y(this).overflow},pn.isAfter=function(e,t){var n=M(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},pn.isBefore=function(e,t){var n=M(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},pn.isBetween=function(e,t,n,s){var i=M(e)?e:Tt(e),r=M(t)?t:Tt(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&(("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n)))},pn.isSame=function(e,t){var n,s=M(e)?e:Tt(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},pn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},pn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},pn.isValid=function(){return g(this)},pn.lang=nn,pn.locale=tn,pn.localeData=sn,pn.max=Pt,pn.min=Nt,pn.parsingFlags=function(){return c({},y(this))},pn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)m(e,t)&&n.push({unit:t,priority:E[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=G(e)),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit]);else if(O(this[e=V(e)]))return this[e](t);return this},pn.startOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?un:on,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=an(t,6e4);break;case"second":t=this._d.valueOf(),t-=an(t,1e3);break}return this._d.setTime(t),f.updateOffset(this,!0),this},pn.subtract=Qt,pn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},pn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},pn.toDate=function(){return new Date(this.valueOf())},pn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(pn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},pn.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},pn.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},pn.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return(this.year()-f(n[s].since).year())*e+n[s].offset;return this.year()},pn.year=Le,pn.isLeapYear=function(){return j(this.year())},pn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pn.month=Ue,pn.daysInMonth=function(){return xe(this.year(),this.month())},pn.week=pn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pn.isoWeek=pn.isoWeeks=function(e){var t=Ae(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pn.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},pn.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},pn.isoWeeksInYear=function(){return je(this.year(),1,4)},pn.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},pn.date=fn,pn.day=pn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-s,"d")):s},pn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},pn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,n,s=(t=e,n=this.localeData(),"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?s:s-7)},pn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},pn.hour=pn.hours=tt,pn.minute=pn.minutes=mn,pn.second=pn.seconds=gn,pn.millisecond=pn.milliseconds=yn,pn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?Bt(this,Zt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this},pn.utc=function(e){return this.utcOffset(0,e)},pn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this},pn.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(le,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},pn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=At,pn.isUTC=At,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=n("dates accessor is deprecated. Use date instead.",fn),pn.months=n("months accessor is deprecated. Use month instead",Ue),pn.years=n("years accessor is deprecated. Use year instead",Le),pn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),pn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=bt(t))._a?(e=(t._isUTC?_:Tt)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&Z(e[a])!==Z(t[a]))&&r++;return r+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});var kn=x.prototype;function Mn(e,t,n,s){var i=dt(),r=_().set(s,t);return i[n](r,e)}function Dn(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=Mn(e,i,n,"month");return s}function Sn(e,t,n,s){t=("boolean"==typeof e?h(t)&&(n=t,t=void 0):(t=e,e=!1,h(n=t)&&(n=t,t=void 0)),t||"");var i,r=dt(),a=e?r._week.dow:0,o=[];if(null!=n)return Mn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Mn(t,(i+a)%7,s,"day");return o}kn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return O(s)?s.call(t,n):s},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=vn,kn.postformat=vn,kn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)m(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.eras=function(e,t){for(var n,s=this._eras||dt("en")._eras,i=0,r=s.length;i<r;++i){switch(typeof s[i].since){case"string":n=f(s[i].since).startOf("day"),s[i].since=n.valueOf();break}switch(typeof s[i].until){case"undefined":s[i].until=1/0;break;case"string":n=f(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf();break}}return s},kn.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s];break}else if(0<=[r,a,o].indexOf(e))return u[s]},kn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*n},kn.erasAbbrRegex=function(e){return m(this,"_erasAbbrRegex")||hn.call(this),e?this._erasAbbrRegex:this._erasRegex},kn.erasNameRegex=function(e){return m(this,"_erasNameRegex")||hn.call(this),e?this._erasNameRegex:this._erasRegex},kn.erasNarrowRegex=function(e){return m(this,"_erasNarrowRegex")||hn.call(this),e?this._erasNarrowRegex:this._erasRegex},kn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=_([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,a))?i:null:-1!==(i=we.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=we.call(this._shortMonthsParse,a))||-1!==(i=we.call(this._longMonthsParse,a))?i:null:-1!==(i=we.call(this._longMonthsParse,a))||-1!==(i=we.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=_([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},kn.monthsRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(m(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Ae(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ie(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?Ie(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?Ie(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=_([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=we.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._shortWeekdaysParse,a))||-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=we.call(this._shortWeekdaysParse,a))||-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._minWeekdaysParse,a))?i:null:-1!==(i=we.call(this._minWeekdaysParse,a))||-1!==(i=we.call(this._weekdaysParse,a))||-1!==(i=we.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=_([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Z(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=n("moment.lang is deprecated. Use moment.locale instead.",lt),f.langData=n("moment.langData is deprecated. Use moment.localeData instead.",dt);var Yn=Math.abs;function On(e,t,n,s){var i=Zt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function xn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function Nn(e){return function(){return this.as(e)}}var Pn=Nn("ms"),Rn=Nn("s"),Wn=Nn("m"),Cn=Nn("h"),Un=Nn("d"),Hn=Nn("w"),Fn=Nn("M"),Ln=Nn("Q"),Vn=Nn("y");function Gn(e){return function(){return this.isValid()?this._data[e]:NaN}}var En=Gn("milliseconds"),An=Gn("seconds"),jn=Gn("minutes"),In=Gn("hours"),Zn=Gn("days"),zn=Gn("months"),$n=Gn("years");var qn=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Jn(e,t,n,s){var i=Zt(e).abs(),r=qn(i.as("s")),a=qn(i.as("m")),o=qn(i.as("h")),u=qn(i.as("d")),l=qn(i.as("M")),h=qn(i.as("w")),d=qn(i.as("y")),c=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(c=c||h<=1&&["w"]||h<n.w&&["ww",h]),(c=c||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,c[3]=0<+e,c[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,c)}var Qn=Math.abs;function Xn(e){return(0<e)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=Qn(this._milliseconds)/1e3,l=Qn(this._days),h=Qn(this._months),d=this.asSeconds();return d?(e=I(u/60),t=I(e/60),u%=60,e%=60,n=I(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=Xn(this._months)!==Xn(d)?"-":"",a=Xn(this._days)!==Xn(d)?"-":"",o=Xn(this._milliseconds)!==Xn(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var es=Ct.prototype;return es.isValid=function(){return this._isValid},es.abs=function(){var e=this._data;return this._milliseconds=Yn(this._milliseconds),this._days=Yn(this._days),this._months=Yn(this._months),e.milliseconds=Yn(e.milliseconds),e.seconds=Yn(e.seconds),e.minutes=Yn(e.minutes),e.hours=Yn(e.hours),e.months=Yn(e.months),e.years=Yn(e.years),this},es.add=function(e,t){return On(this,e,t,1)},es.subtract=function(e,t){return On(this,e,t,-1)},es.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+xn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Tn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},es.asMilliseconds=Pn,es.asSeconds=Rn,es.asMinutes=Wn,es.asHours=Cn,es.asDays=Un,es.asWeeks=Hn,es.asMonths=Fn,es.asQuarters=Ln,es.asYears=Vn,es.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},es._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return 0<=r&&0<=a&&0<=o||r<=0&&a<=0&&o<=0||(r+=864e5*bn(Tn(o)+a),o=a=0),u.milliseconds=r%1e3,e=I(r/1e3),u.seconds=e%60,t=I(e/60),u.minutes=t%60,n=I(t/60),u.hours=n%24,a+=I(n/24),o+=i=I(xn(a)),a-=bn(Tn(i)),s=I(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},es.clone=function(){return Zt(this)},es.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},es.milliseconds=En,es.seconds=An,es.minutes=jn,es.hours=In,es.days=Zn,es.weeks=function(){return I(this.days()/7)},es.months=zn,es.years=$n,es.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=Bn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},Bn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),n=this.localeData(),s=Jn(this,!i,r,n),i&&(s=n.pastFuture(+this,s)),n.postformat(s)},es.toISOString=Kn,es.toString=Kn,es.toJSON=Kn,es.locale=tn,es.localeData=sn,es.toIsoString=n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),es.lang=nn,C("X",0,0,"unix"),C("x",0,0,"valueOf"),ce("x",ue),ce("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ye("x",function(e,t,n){n._d=new Date(Z(e))}),f.version="2.29.1",e=Tt,f.fn=pn,f.min=function(){return Rt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Rt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=_,f.unix=function(e){return Tt(1e3*e)},f.months=function(e,t){return Dn(e,t,"months")},f.isDate=a,f.locale=lt,f.invalid=w,f.duration=Zt,f.isMoment=M,f.weekdays=function(e,t,n){return Sn(e,t,n,"weekdays")},f.parseZone=function(){return Tt.apply(null,arguments).parseZone()},f.localeData=dt,f.isDuration=Ut,f.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},f.weekdaysMin=function(e,t,n){return Sn(e,t,n,"weekdaysMin")},f.defineLocale=ht,f.updateLocale=function(e,t){var n,s,i;return null!=t?(i=st,null!=it[e]&&null!=it[e].parentLocale?it[e].set(b(it[e]._config,t)):(null!=(s=ut(e))&&(i=s._config),t=b(i,t),null==s&&(t.abbr=e),(n=new x(t)).parentLocale=it[e],it[e]=n),lt(e)):null!=it[e]&&(null!=it[e].parentLocale?(it[e]=it[e].parentLocale,e===lt()&&lt(e)):null!=it[e]&&delete it[e]),it[e]},f.locales=function(){return s(it)},f.weekdaysShort=function(e,t,n){return Sn(e,t,n,"weekdaysShort")},f.normalizeUnits=V,f.relativeTimeRounding=function(e){return void 0===e?qn:"function"==typeof e&&(qn=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==Bn[e]&&(void 0===t?Bn[e]:(Bn[e]=t,"s"===e&&(Bn.ss=t-1),!0))},f.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},f.prototype=pn,f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},f});
//# sourceMappingURL=moment.min.js.map
;/**/
/*!
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */

// Script: jQuery throttle / debounce: Sometimes, less is more!
//
// *Version: 1.1, Last updated: 3/7/2010*
//
// Project Home - http://benalman.com/projects/jquery-throttle-debounce-plugin/
// GitHub       - http://github.com/cowboy/jquery-throttle-debounce/
// Source       - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.js
// (Minified)   - http://github.com/cowboy/jquery-throttle-debounce/raw/master/jquery.ba-throttle-debounce.min.js (0.7kb)
//
// About: License
//
// Copyright (c) 2010 "Cowboy" Ben Alman,
// Dual licensed under the MIT and GPL licenses.
// http://benalman.com/about/license/
//
// About: Examples
//
// These working examples, complete with fully commented code, illustrate a few
// ways in which this plugin can be used.
//
// Throttle - http://benalman.com/code/projects/jquery-throttle-debounce/examples/throttle/
// Debounce - http://benalman.com/code/projects/jquery-throttle-debounce/examples/debounce/
//
// About: Support and Testing
//
// Information about what version or versions of jQuery this plugin has been
// tested with, what browsers it has been tested in, and where the unit tests
// reside (so you can test it yourself).
//
// jQuery Versions - none, 1.3.2, 1.4.2
// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome 4-5, Opera 9.6-10.1.
// Unit Tests      - http://benalman.com/code/projects/jquery-throttle-debounce/unit/
//
// About: Release History
//
// 1.1 - (3/7/2010) Fixed a bug in <jQuery.throttle> where trailing callbacks
//       executed later than they should. Reworked a fair amount of internal
//       logic as well.
// 1.0 - (3/6/2010) Initial release as a stand-alone project. Migrated over
//       from jquery-misc repo v0.4 to jquery-throttle repo v1.0, added the
//       no_trailing throttle parameter and debounce functionality.
//
// Topic: Note for non-jQuery users
//
// jQuery isn't actually required for this plugin, because nothing internal
// uses any jQuery methods or properties. jQuery is just used as a namespace
// under which these methods can exist.
//
// Since jQuery isn't actually required for this plugin, if jQuery doesn't exist
// when this plugin is loaded, the method described below will be created in
// the `Cowboy` namespace. Usage will be exactly the same, but instead of
// $.method() or jQuery.method(), you'll need to use Cowboy.method().

(function(window,undefined){
  '$:nomunge'; // Used by YUI compressor.

  // Since jQuery really isn't required for this plugin, use `jQuery` as the
  // namespace only if it already exists, otherwise use the `Cowboy` namespace,
  // creating it if necessary.
  var $ = window.jQuery || window.Cowboy || ( window.Cowboy = {} ),

    // Internal method reference.
    jq_throttle;

  // Method: jQuery.throttle
  //
  // Throttle execution of a function. Especially useful for rate limiting
  // execution of handlers on events like resize and scroll. If you want to
  // rate-limit execution of a function to a single time, see the
  // <jQuery.debounce> method.
  //
  // In this visualization, | is a throttled-function call and X is the actual
  // callback execution:
  //
  // > Throttled with `no_trailing` specified as false or unspecified:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X    X    X    X    X    X        X    X    X    X    X    X
  // >
  // > Throttled with `no_trailing` specified as true:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X    X    X    X    X             X    X    X    X    X
  //
  // Usage:
  //
  // > var throttled = jQuery.throttle( delay, [ no_trailing, ] callback );
  // >
  // > jQuery('selector').bind( 'someevent', throttled );
  // > jQuery('selector').unbind( 'someevent', throttled );
  //
  // This also works in jQuery 1.4+:
  //
  // > jQuery('selector').bind( 'someevent', jQuery.throttle( delay, [ no_trailing, ] callback ) );
  // > jQuery('selector').unbind( 'someevent', callback );
  //
  // Arguments:
  //
  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
  //    callbacks, values around 100 or 250 (or even higher) are most useful.
  //  no_trailing - (Boolean) Optional, defaults to false. If no_trailing is
  //    true, callback will only execute every `delay` milliseconds while the
  //    throttled-function is being called. If no_trailing is false or
  //    unspecified, callback will be executed one final time after the last
  //    throttled-function call. (After the throttled-function has not been
  //    called for `delay` milliseconds, the internal counter is reset)
  //  callback - (Function) A function to be executed after delay milliseconds.
  //    The `this` context and all arguments are passed through, as-is, to
  //    `callback` when the throttled-function is executed.
  //
  // Returns:
  //
  //  (Function) A new, throttled, function.

  $.throttle = jq_throttle = function( delay, no_trailing, callback, debounce_mode ) {
    // After wrapper has stopped being called, this timeout ensures that
    // `callback` is executed at the proper times in `throttle` and `end`
    // debounce modes.
    var timeout_id,

      // Keep track of the last time `callback` was executed.
      last_exec = 0;

    // `no_trailing` defaults to falsy.
    if ( typeof no_trailing !== 'boolean' ) {
      debounce_mode = callback;
      callback = no_trailing;
      no_trailing = undefined;
    }

    // The `wrapper` function encapsulates all of the throttling / debouncing
    // functionality and when executed will limit the rate at which `callback`
    // is executed.
    function wrapper() {
      var that = this,
        elapsed = +new Date() - last_exec,
        args = arguments;

      // Execute `callback` and update the `last_exec` timestamp.
      function exec() {
        last_exec = +new Date();
        callback.apply( that, args );
      };

      // If `debounce_mode` is true (at_begin) this is used to clear the flag
      // to allow future `callback` executions.
      function clear() {
        timeout_id = undefined;
      };

      if ( debounce_mode && !timeout_id ) {
        // Since `wrapper` is being called for the first time and
        // `debounce_mode` is true (at_begin), execute `callback`.
        exec();
      }

      // Clear any existing timeout.
      timeout_id && clearTimeout( timeout_id );

      if ( debounce_mode === undefined && elapsed > delay ) {
        // In throttle mode, if `delay` time has been exceeded, execute
        // `callback`.
        exec();

      } else if ( no_trailing !== true ) {
        // In trailing throttle mode, since `delay` time has not been
        // exceeded, schedule `callback` to execute `delay` ms after most
        // recent execution.
        //
        // If `debounce_mode` is true (at_begin), schedule `clear` to execute
        // after `delay` ms.
        //
        // If `debounce_mode` is false (at end), schedule `callback` to
        // execute after `delay` ms.
        timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );
      }
    };

    // Set the guid of `wrapper` function to the same of original callback, so
    // it can be removed in jQuery 1.4+ .unbind or .die by using the original
    // callback as a reference.
    if ( $.guid ) {
      wrapper.guid = callback.guid = callback.guid || $.guid++;
    }

    // Return the wrapper function.
    return wrapper;
  };

  // Method: jQuery.debounce
  //
  // Debounce execution of a function. Debouncing, unlike throttling,
  // guarantees that a function is only executed a single time, either at the
  // very beginning of a series of calls, or at the very end. If you want to
  // simply rate-limit execution of a function, see the <jQuery.throttle>
  // method.
  //
  // In this visualization, | is a debounced-function call and X is the actual
  // callback execution:
  //
  // > Debounced with `at_begin` specified as false or unspecified:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // >                          X                                 X
  // >
  // > Debounced with `at_begin` specified as true:
  // > ||||||||||||||||||||||||| (pause) |||||||||||||||||||||||||
  // > X                                 X
  //
  // Usage:
  //
  // > var debounced = jQuery.debounce( delay, [ at_begin, ] callback );
  // >
  // > jQuery('selector').bind( 'someevent', debounced );
  // > jQuery('selector').unbind( 'someevent', debounced );
  //
  // This also works in jQuery 1.4+:
  //
  // > jQuery('selector').bind( 'someevent', jQuery.debounce( delay, [ at_begin, ] callback ) );
  // > jQuery('selector').unbind( 'someevent', callback );
  //
  // Arguments:
  //
  //  delay - (Number) A zero-or-greater delay in milliseconds. For event
  //    callbacks, values around 100 or 250 (or even higher) are most useful.
  //  at_begin - (Boolean) Optional, defaults to false. If at_begin is false or
  //    unspecified, callback will only be executed `delay` milliseconds after
  //    the last debounced-function call. If at_begin is true, callback will be
  //    executed only at the first debounced-function call. (After the
  //    throttled-function has not been called for `delay` milliseconds, the
  //    internal counter is reset)
  //  callback - (Function) A function to be executed after delay milliseconds.
  //    The `this` context and all arguments are passed through, as-is, to
  //    `callback` when the debounced-function is executed.
  //
  // Returns:
  //
  //  (Function) A new, debounced, function.

  $.debounce = function( delay, at_begin, callback ) {
    return callback === undefined
      ? jq_throttle( delay, at_begin, false )
      : jq_throttle( delay, callback, at_begin !== false );
  };

})(this);
;/**/
(function(t){Drupal.progressBar=function(r,i,e,s){var a=this;this.id=r;this.method=e||'GET';this.updateCallback=i;this.errorCallback=s;this.element=t('<div class="progress" aria-live="polite"></div>').attr('id',r);this.element.html('<div class="bar"><div class="filled"></div></div><div class="percentage"></div><div class="message">&nbsp;</div>')};Drupal.progressBar.prototype.setProgress=function(r,i){if(r>=0&&r<=100){t('div.filled',this.element).css('width',r+'%');t('div.percentage',this.element).html(r+'%')};t('div.message',this.element).html(i);if(this.updateCallback){this.updateCallback(r,i,this)}};Drupal.progressBar.prototype.startMonitoring=function(t,r){this.delay=r;this.uri=t;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 r=this;t.ajax({type:this.method,url:this.uri,data:'',dataType:'json',success:function(t){if(t.status==0){r.displayError(t.data);return};r.setProgress(t.percentage,t.message);r.timer=setTimeout(function(){r.sendPing()},r.delay)},error:function(t){r.displayError(Drupal.ajaxError(t,r.uri))}})}};Drupal.progressBar.prototype.displayError=function(r){var i=t('<div class="messages error"></div>').html(r);t(this.element).before(i).hide();if(this.errorCallback){this.errorCallback(this)}}})(jQuery);riot.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 if="{opts.txt.order_label}" class="service-label">{opts.txt.order_label}</span><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 class="special" if="{hasSpecial(parent.docs[price.eid])}"> <h6 class="ribbon">{getSpecialText(parent.docs[price.eid])}</h6> </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"> <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 != \'\' && !(parent.docs[price.eid].has_call_to_book && parent.docs[price.eid].c2b.hide)}" class="price {(parent.docs[price.eid].has_call_to_book && parent.docs[price.eid].c2bShow) ? \'call-to-book-coming\' : \'\'}">{parent.RCRiotUtils.formatPrice(price, 2)}</span> <button if="{parent.opts.txt.buy && !parent.docs[price.eid].has_call_to_book}" data-ind="{ind}" onclick="{parent.buyClick}">{parent.opts.txt.buy}</button> <span if="{parent.docs[price.eid].has_call_to_book && parent.docs[price.eid].c2bShow}" class="call-to-book"> <label> <button data-call-to-book-prop-eid="{parent.docs[price.eid].c2b.eid}" class="book my-trips" data-url="{parent.docs[price.eid].c2b.url}"> {parent.docs[price.eid].c2b.text} </button> </label> <div class="description"> <raw1 html="{parent.docs[price.eid].c2b.message}"></raw1> </div> </span> <button if="{parent.opts.txt.quote && !(parent.docs[price.eid].has_call_to_book && parent.docs[price.eid].c2b.hide)}" data-price="{price}" onclick="{parent.quoteClickedPromoCode}" class="quote">{parent.opts.txt.quote} </div> </div> <div class="actions"> <button class="remove" data-ind="{ind}" onclick="{parent.removeClick}"> 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;} .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; } 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; } rc-riot-order .service-label,[riot-tag="rc-riot-order"] .service-label,[data-is="rc-riot-order"] .service-label{ margin-left: .3; }', 'class="mode-{opts.mode}"', function(opts) {
    this.mixin('RCRiotSpecials');
    riot.tag('raw1', '', function(opts) {
        opts.html = opts.html || '';
        this.root.innerHTML = opts.html;
    });

    (function($, tag, Drupal) {

        tag.hasSpecial = function(item){
            if (typeof item != 'undefined' &&
                item.bs_nid$hasSpecial &&
                item.is_nid$specialID &&
                Drupal.settings.rc_specials.specials) {
                    return true;
            }
        }

        tag.getSpecialText = function(item){
            if (typeof item != 'undefined') {
                return Drupal.settings.rc_specials.specials[item.is_nid$specialID].description;
            }
        }

        tag.quoteClickedPromoCode = function (e) {

          $(e.target).addClass('pending').prop('disabled', true);
          const activeSpecial = tag.getApplicableSpecials(e.item.price);
          if(activeSpecial) {
            e.item.price.has_coupon = true;
            e.item.price.qp.rcav.coupon = activeSpecial.promo_code;
          }

          tag.showDetailedQuote(e.item.price, opts.txt.buy !== '' ? opts.txt.buy : null).done(function (data) {
            RiotTagsModal.show($(data.content), 'tiny')
          }).always(function () {
            $(e.target).removeClass('pending').prop('disabled', false)
          })
        };

        tag.on('update', function() {

            for (const key in tag.docs) {
                if (!tag.docs.hasOwnProperty(key)) {
                    continue;
                }

                tag.docs[key].has_call_to_book = tag.docs[key]['bs_nid$field_vr_call_to_book'] || false;

                tag.docs[key].c2b = {
                    "text": Drupal.settings.ngt_base.c2b.text,
                    "message": Drupal.settings.ngt_base.c2b.message,
                    "hide": Drupal.settings.ngt_base.c2b.hide,
                    "eid": tag.docs[key]['is_eid'] || 0,
                    "url": tag.docs[key]['ss_url']
                };

                tag.docs[key].c2bShow = (tag.docs[key].c2b.text !== '') && (tag.docs[key].c2b.message !== '');
            }

            setTimeout(function() {
                riot.mount('raw1', {});
            }, 200);
        });

    })(jQuery, this, Drupal);

        this.mixin('RiotSolrConnection');
        this.mixin('RiotSolrItemsContainer');
        this.mixin('RCRiotOrder');
        this.mixin('RCRiotAvailPricing');
        this.mixin('RCRiotUtils');
        this.mixin('RiotTagsChildren');
        if(typeof RCAddonProvider !== 'undefined') {
            this.mixin('RCAddonProvider');
        }
        this.classes = {
            'tag-content': true,
        };
        (function($, tag) {
            var pcFunc = tag.processChildren;
            tag.docs = {};
            tag.activities = null;
            tag.orderdocs = {};
            tag.classes['mode-' + opts.mode] = true;
            tag.on('update', function() {
                tag.order = tag.getOrderData();
            });
            tag.RCRiotOrder.on('OrderUpdated', function(order) {
                tag.update();
            });
            tag.removeClick = function(e) {
                tag.removeOrderLineItem(e.item.ind);
            };
            tag.buyClick = function(e) {
                tag.buyOrderLineItem(e.item.ind);
            };
            tag.searchAccom = function(e) {
                tag.doOrderSearch(opts.search_accom_path);
            };
            tag.loadShortUrl = function() {
                tag.getShortUrl().done(function(url) {
                    tag.orderShortUrl = url;
                    tag.update();
                });
            };
            tag.fetchOrderDocs = function() {
                var od = tag.getOrderData(), p = $.Deferred();
                var pks = [],
                    self = this;
                for(ind in od.lis) {
                    pks.push(od.lis[ind].eid);
                }

                return tag.RiotSolrManager.getDocumentsByKeys(pks);
            };
            tag.triggerClicked = function(e) {
              var tag = 'rc-riot-order',
                options = {class: 'rc-riot-riot-reveal-modal'};
              if (typeof RiotTagsModal.isTagActive == "undefined" || !RiotTagsModal.isTagActive(tag)) {
                RiotTagsModal.mount(tag, $.extend({}, opts, {mode: 'detail'}), 'medium', options);
              }
            };
            tag.RCRiotOrder.on('RequestShowOrder', function() {
                if(tag.opts.mode === 'widget') {
                    tag.triggerClicked();
                }
            });
            tag.processChildren = function() {
                pcFunc.call(this);
                if(tag.hasChildByPlugin('RCRiotActivityPane')) {
                    apchild = tag.getChildByPlugin('RCRiotActivityPane');
                    apchild.mounted = true;
                    tag.activities = apchild.options.cats;
                    tag.form_settings = apchild.options.form_settings;
                    tag.classes['has-activities'] = true;
                }
                if(tag.hasChildByPlugin('RCRiotShareOrder')) {
                    tag.sharechild = tag.getChildByPlugin('RCRiotShareOrder');
                    tag.sharechild.mounted = true;
                }
            };
            tag.quoteClicked = function (e) {
                $(e.target).addClass('pending').prop('disabled', true);
                tag.showDetailedQuote(e.item.price, opts.txt.buy !== '' ? opts.txt.buy : null).done(function (data) {
                    RiotTagsModal.show($(data.content), 'tiny')
                }).always(function () {
                    $(e.target).removeClass('pending').prop('disabled', false)
                })
            };

            if(opts.mode === 'widget') {
                tag.skip_children = true
            } else if(typeof tag.opts.eid !== undefined && tag.opts.eid !== '') {
                tag.RiotSolrManager.observable.on('RiotSolrBoot', function() {
                    tag.fetchOrderDocs().done(function(docs) {
                        tag.docs = {};
                        for(var ind in docs) {
                            tag.docs[docs[ind][tag.opts.eid]] = docs[ind];
                        }
                        tag.update();
                    });
                });
            }

        })(jQuery, this);
});;/**/
;riot.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} <sup if="{opts.txt.annot}"> {opts.txt.annot} </sup> <div class="display-savings" if="{savings_text != \'\'}"> <span>{opts.txt.savings_annot}</span> {savings_text}! </div> <span if="{has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <a class="trigger" onclick="{triggerClicked}"> {opts.txt.trigger} </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> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && 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 primaryOffers()}" 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> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && 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} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </a> </div> <div if="{mode==\'modal\'}" id="{\'pricing-detail-\' + eid}" class="{\'pricing-detail\': true, \'full\': true}"> <div each="{og in primaryOffers()}" 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> <span if="{parent.parent.opts.has_call_to_book}" class="display-name call-to-book"> {parent.parent.opts.txt.call_to_book_text} <a href="tel:{parent.parent.opts.txt.call_to_book_number}"> {parent.parent.opts.txt.call_to_book_number} </a> </span> <button if="{!parent.parent.opts.has_call_to_book && 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} <span if="{search_date}" class="search-date">{search_date}</span> </div> <a class="trigger" onclick="{popModalWith(getAlternatesOpts())}" if="{has_alternates}"> {tokenize(opts.txt.trigger)} </a> <a class="trigger" onclick="{popModalWith(getModalOpts())}" if="{has_modal_options}"> {tokenize(opts.txt.modal_pricing_trigger)} </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,[riot-tag="rc-riot-avail-pricing"],[data-is="rc-riot-avail-pricing"]{ display: block; } rc-riot-avail-pricing .tag-content .price-summary,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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; margin-top: 1px; } rc-riot-avail-pricing .tag-content .price-summary a i #Layer_1,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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,[riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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 [riot-tag="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; } rc-riot-avail-pricing .tag-content .call-to-book,[riot-tag="rc-riot-avail-pricing"] .tag-content .call-to-book,[data-is="rc-riot-avail-pricing"] .tag-content .call-to-book{ font-weight: bold; }','class="mode-{mode}"',function(t){this.mixin('RCRiotOrder');this.mixin('RiotNotify');this.mixin('RiotTagsChildren');this.mixin('RCRiotAvailPricing');this.mixin('RCRiotAvailPricingGrouper');this.mixin('RCRiotAvailPricingTokenizer');if(typeof RCAddonProvider!=='undefined'){this.mixin('RCAddonProvider')}(function(a,i){i.precision=parseInt(t.precision,10)||0;i.mode=t.mode||'default';i.eid=t.eid||null;i.pricing=t.pricing||i.getItemPricing(i.eid);i.offerby=t.offerby||'default';i.has_call_to_book=t.has_call_to_book||!1;i.show_buy=(t&&t.show_buy)||t.show_buy||!1;i.show_add=(t&&t.show_add)||t.show_add||!1;i.has_package=!1;i.has_coupon=!1;i.has_savings=!1;i.has_alternates=!1;i.has_modal_options=!1;i.item=t.item||null;i.show_in_modal=i.mode==='modal'||i.mode==='alternates';i.classes={};i.classes['mode-'+t.mode]=!0;i.RCRiotAvailPricing.on('PricingChanged',function(t){i.pricing=t.pricing['eid-'+i.eid];i.update()});i.on('update',function(){var t;i.has_alternates=!1;if(i.opts.not_available_date){t=i.getLastSearch();if(typeof t!='undefined'&&typeof t['rcav']!='undefined'){i.search_date=t['rcav']['begin']}};if(typeof i.pricing!='undefined'){i.has_pricing=!0;i.eid=i.pricing.eid;i.pricing_text=i.formatItemPriceRange(i.eid,0,i.opts.display_type);i.savings_text=i.formatItemSavingsRange(i.eid,0,i.opts.display_type)}
else{i.has_pricing=!1};i.offer_groups=(i.opts.offer_groups)?i.opts.offer_groups:i.processPricing(i.pricing,i);i.buildModalOptions(i.offer_groups);if(i.children&&i.children.length&&i.eid){var a=i.getRcUpliftChild();if(a>=0){i.children[a].options.eid=i.eid}};i.classes['has-package']=i.has_package;i.classes['has-coupon']=i.has_coupon;i.classes['has-savings']=i.has_savings;i.classes['is-alternate']=i.has_alternates});i.getRcUpliftChild=function(){return i.children.findIndex(function(t){if(!t){return!1};return t.plugin==='RCUpliftPayment'})};i.addClicked=function(t){i.addOrderLineItem(t.item.price).done(function(){i.showOrderDetail()})};i.buyClicked=function(t){i.buyNow(t.item.price)};i.quoteClicked=function(r){a(r.target).addClass('pending').prop('disabled',!0);i.showDetailedQuote(r.item.price,t.show_buy&&!t.has_call_to_book?t.txt.buy:null).done(function(i){if(t.has_call_to_book){i.content+='<div class=\'call-to-book\'>'+t.txt.call_to_book_text+'<a href=\'tel:'+t.txt.call_to_book_number+'\'>'+t.txt.call_to_book_number+'</a></div>'};RiotTagsModal.show(a(i.content),'tiny')}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})};i.triggerClicked=function(r){if(t.trigger_order&&i.pricing.prices.length==1&&a('rc-riot-order').length>0){i.addOrderLineItem(i.pricing.prices[0]).done(function(){i.showOrderDetail()})}
else{i.popModal(t)}};i.getAlternatesOpts=function(){var r=a.extend({},t),e;if(!i.offer_groups){return r};r.offer_groups={};for(e in i.offer_groups){if(!i.offer_groups[e].featured){r.offer_groups[e]=i.offer_groups[e];r.offer_groups[e]['offers'].map(function(t,i){if(i>0&&typeof t.show_in_modal!='undefined'&&t.show_in_modal){r.offer_groups[e]['offers'].splice(i)}})}};return r};i.primaryOffers=function(){var a,t=i.featuredOfferGroups(),r=[];for(a in t){if(i.mode==='modal'){r=[i.getBestPricedOffer(t,a)]}
else{r=t[a]['offers'].filter(function(t){return t.show_in_modal=='undefined'||!t.show_in_modal});if(!r.length){r=[i.getBestPricedOffer(t,a)]}};t[a]['offers']=r};return t};i.buildModalOptions=function(t){var r,e,o,c={},n=!1;if(!i.opts.txt.modal_pricing_trigger||!i.show_in_modal){return};i.modalOptions={};if(!t){i.has_modal_options=n;return};for(r in t){if(t[r].featured){c=i.getBestPricedOffer(t,r);e=t[r]['offers'].filter(function(t){var a=!t.qp.special_data||!this.qp.special_data||t.qp.special_data.special_nid===this.qp.special_data.special_nid;return!a||t.show_in_addition||t.qp.special_data&&i.mode==='modal'},c);if(e.length){n=!0;o=a.extend({},t[r]);o.offers=e;i.modalOptions[r]=o}}};i.has_modal_options=n};i.getBestPricedOffer=function(t,i){return t[i]['offers'].reduce(function(t,i){if(!t){return i}
else if(typeof i.qp.special_data=='undefined'){return i}
else if(t.show_in_addition&&!i.show_in_addition){return i}
else if(t.show_in_addition&&t.qp.special_data&&t.p>i.p){return i}
else if(!i.show_in_addition&&t.qp.special_data&&t.p>i.p){return i};return t})};i.getModalOpts=function(){var r=a.extend({},t);r.offer_groups=i.modalOptions;return r};i.popModal=function(t){RiotTagsModal.mount('rc-riot-avail-pricing',a.extend({},t,{mode:'detail'}),'small')};i.popModalWith=function(t){return function(a){i.popModal(t)}}})(jQuery,this)});;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});if(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);(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++}
else{a='ind-'+s}};i.lis[a]=e;i.lict++;i.litot+=parseFloat(e.p);this.setOrderData(i);o=t.Deferred();o.resolve(i)}
else{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})}
else{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},openTrips:function(t,e){var r;if((typeof e.lict=='undefined'&&e.lict==0)||confirm('This Trips Collection will replace any Trips Collection you may have in progress. Would you like to proceed?')){r=JSON.parse(atob(t));this.setOrderData(r);window.location.hash='';setTimeout(this.showOrderDetail,250)}},initOrderData:function(){if(e!=null)return;var r=this,i=this.RCRiotUtils.parseHash(),o=this.getLocalStorageOrderData();if(i.hasOwnProperty('short-url')){t.get('rescms/order/shorturl/'+i['short-url']).done(function(t){if(t){r.openTrips(t,o)}})}
else if(i.hasOwnProperty('rcod')){r.openTrips(i['rcod'],o)};if(e==null){if(o.lict){this.setOrderData(o)}
else if(this.orderStorage=='session'){t.getJSON('/rcapi/order/get').done(function(t){r.setOrderData(t)})}
else{r.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);;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()};RiotTagsDispatch.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]){var r=e['eid-'+i.item_id];if(e['eid-'+i.item_id].hasOwnProperty('prices')&&e['eid-'+i.item_id].prices.length){var a=parseFloat(e['eid-'+i.item_id].prices[0].p).toFixed(2);r.prices[0].p=parseFloat(a);t.items[n].prices=r}}})});RiotTagsDispatch.on('RiotSolrCurrentSearchRemoveAll',function(i,e){e.manager.store.remove('rcav')})},formatAvailPrice:function(i,e,t){return!i?'':i.toLocaleString('en',{minimumFractionDigits:e,maximumFractionDigits:e,style:'currency',currency:t||'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(e,t){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 e={};var n=[];i.forEach(function(i){if(!e.hasOwnProperty(i.bt)||e[i.bt].p>i.p){e[i.bt]=i}});for(var t in e){if(!e.hasOwnProperty(t)){continue};n.push(e[t])};return n};this.prices=o(this.prices);break}};i(this.prices).each(function(){var e=parseInt(this.p,10),t=parseInt(this.qp.rcav.adult,10)+parseInt(this.qp.rcav.child,10);if(this.qp.senior){t+=parseInt(this.qp.rcav.senior,10)};this.ppp=e/t;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=e/this.nt;this.ppw=e/this.wk;this.pppn=(e/this.nt)/t};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,e){c['eid-'+e.eid]=e});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(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.p>this.p){t=this};if(n==undefined||n.p<this.p){n=this}})};return[t,n]},getItemPriceRangePerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppn>this.ppn){t=this};if(n==undefined||n.ppn<this.ppn){n=this}})};return[t,n]},getItemPriceRangePerWeek:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppw>this.ppw){t=this};if(n==undefined||n.ppw<this.ppw){n=this}})};return[t,n]},getItemPriceRangePerPerson:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.ppp>this.ppp){t=this};if(n==undefined||n.ppp<this.ppp){n=this}})};return[t,n]},getItemPriceRangePerPersonPerNight:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(t==undefined||t.pppn>this.pppn){t=this};if(n==undefined||n.pppn<this.pppn){n=this}})};return[t,n]},getItemSavingsRange:function(e){var r=this.getItemPricing(e),t=null,n=null;if(typeof r!='undefined'){i(r.prices).each(function(){if(typeof this.s!='undefined'&&(t==undefined||t.s>this.s)){t=this};if(typeof this.s!='undefined'&&(n==undefined||n.s<this.s)){n=this}})};return[t,n]},formatItemPriceRange:function(i,e,t){e=isNaN(e)?0:e;var n=this.getItemPriceRange(i),r='';if(n[0]&&n[0].p>0){r=this.RCRiotUtils.formatPrice(n[0],e,t);if(n[0].p!=n[1].p){r+=' - '+this.RCRiotUtils.formatPrice(n[1],e,t)}};return r},formatItemSavingsRange:function(i,e,t){e=isNaN(e)?0:e;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],e,t)};return r},getLastSearchQuery:function(){return t},getItemHasPackage:function(i){var t=!1,e=this.getItemPricing(i),n;if(typeof e!='undefined'&&typeof e.prices!='undefined'){for(n in e.prices){if(this.getPriceHasPackage(e.prices[n])){t=!0;break}}};return t},getPriceIsAlternate:function(i){var e=!0;if(typeof i==undefined||typeof i.qp==undefined){return e};e=i.qp.rcav.begin!==t.rcav.begin;return e},getPriceHasPackage:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.IDs!='undefined'&&typeof i.qp.rcav.IDs[2]!='undefined'){e=!0};return e},getPriceHasCoupon:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.qp.rcav.coupon!='undefined'&&i.qp.rcav.coupon!=''){e=!0};return e},getPriceHasSavings:function(i){var e=!1;if(typeof i==undefined||typeof i.qp==undefined){return e};if(typeof i.s!='undefined'&&parseFloat(i.s)>0){e=!0};return e},parseDate:function(i){var t=new Date(0,0,0,0,0,0,0),e=i.split('-');if(e.length==3){t.setFullYear(e[0],e[1]-1,e[2])}
else{e=i.split('/');if(e.length==3){t.setFullYear(e[2],e[0]-1,e[1])}};return t.getTime()},};riot.mixin('RCRiotAvailPricing',n);i(document).ready(function(){if(typeof RiotSolrItemSortHandlers!=='undefined'){RiotSolrItemSortHandlers['sortPrice']={primer:function(i,e){var t=n.getItemPricing(i);if(t&&t.hasOwnProperty('range')&&Array.isArray(t.range)&&t.range.length>=2){return e?parseFloat(t.range[1]):parseFloat(t.range[0])};return 0},callback:function(i,e,t){var n=this,r=!t?1:-1;i.sort(function(i,a){return(i=n.primer(i[e],t)),(a=n.primer(a[e],t)),r*((i>a)-(a>i))});return i},}}})})(jQuery);;var RCRiotSpecials={init:function(){(function(i,t,e){t.getApplicableSpecials=function(i,isDetailedQuoteRequest=!1){if(!Drupal||!Drupal.settings||!Drupal.settings.rc_specials||!Drupal.settings.rc_specials.specials){return!1};var f=i.bt,g=i.et,u=Drupal.settings.rc_specials.specials,D=Object.keys(u)[0],t=u[D],R=i.eid.toString();if(!t.units.includes(R)){return!1};if(t.special_type==='2'&&isDetailedQuoteRequest){return!1};var o=Math.floor((f/1000)),p=Math.floor((g/1000));if(o<t.stay_begin||p>t.stay_end){return!1};var n=Math.floor((Date.now()/1000));if(n<t.book_begin||n>t.book_end){return!1};var l=i.qp.rcav.adult||1,c=i.qp.rcav.child||0,a=l+c;if(t.max_guests>0&&a>t.max_guests){return!1};if(t.min_guests>0&&a<t.min_guests){return!1};var e=t.max_nights,s=t.min_nights,r=i.nt;if(e>0&&r>e){return!1};if(s>0&&r<s){return!1};return t}})(jQuery,this,this.opts)},};riot.mixin('RCRiotSpecials',RCRiotSpecials);(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()}
else{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'))}
else{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'))}
else{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')}
else{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')}
else{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('&nbsp;');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('&nbsp;');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>')}})})}});if(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'})}}}]})}
else{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')}}}]})}
else{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()}
else{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()}
else{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);;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(!window.grecaptcha){if(typeof btLeadsRecaptchaLoader==='function')btLeadsRecaptchaLoader(s,!0)}
else{if(typeof btLeadsRecaptchaCallback==='function')btLeadsRecaptchaCallback(s)}}).always(function(){a(r.target).removeClass('pending').prop('disabled',!1)})}})(jQuery,this)});;var RCAddonProvider,RCAddons={};(function(n){RCAddonProvider={init:function(){this.one('update',function(){this.buyNow=function(o){window.open('/rescms/hasp/package?'+n.param(o.qp))}})}};riot.mixin('RCAddonProvider',RCAddonProvider)})(jQuery);riot.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; } 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) {
    this.mixin('RiotTagsChildren');
    this.mixin('RiotSolrConnection');
    this.mixin('RiotSolrItemsContainer');
    this.mixin('RiotSolrFlagCounter');
});
;/**/
riot.tag2('riot-solr-result-item', '<div class="tag-content"> <a target="_blank" class="image-wrap" href="{item[opts.link]}"><img if="{item[opts.image] !== \'undefined\'}" riot-src="{valueOrFirst(item[opts.image])}"></a> <h4> {valueOrFirst(item[opts.title])} </h4> <p>{item[opts.summary].substring(0, 100)} </p> <span class="more-link"><a target="_blank" href="{item[opts.link]}">View Details</a></span> </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; } } riot-solr-result-item,[data-is="riot-solr-result-item"]{ display: block; }', '', function(opts) {
    this.mixin('RiotTagsChildren');
    this.mixin('RiotSolrItem');
    this.item = opts.item;
});
;/**/
(function(i){var t={init:function(){this.one('update',function(){if(!this.skip_children){this.processChildren();this.mountChildren()}});this.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);(function(t){Drupal.antibot={};Drupal.behaviors.antibot={attach:function(n){Drupal.settings.antibot.human=!1;t('body').mousemove(function(){Drupal.antibot.unlockForms()});t('body').bind('touchmove',function(){Drupal.antibot.unlockForms()});t('body').keydown(function(t){if((t.keyCode==9)||(t.keyCode==13)){Drupal.antibot.unlockForms()}})}};Drupal.antibot.unlockForms=function(){if(!Drupal.settings.antibot.human){for(var n in Drupal.settings.antibot.forms){t('form#'+n).attr('action',Drupal.settings.antibot.forms[n].action);if(Drupal.settings.antibot.forms[n].key){t('form#'+n).find('input[name="antibot_key"]').val(Drupal.settings.antibot.forms[n].key)}};Drupal.settings.antibot.human=!0}}})(jQuery);(function(e){'use strict';Drupal.behaviors.webform=Drupal.behaviors.webform||{};Drupal.behaviors.webform.attach=function(e){Drupal.webform.datepicker(e);if(Drupal.settings.webform&&Drupal.settings.webform.conditionals){Drupal.webform.conditional(e)}};Drupal.webform=Drupal.webform||{};Drupal.webform.datepicker=function(r){e('div.webform-datepicker').each(function(){var t=e(this),o=t.find('input.webform-calendar');if(o.length==0){return};var r=o[0].className.replace(/.*webform-calendar-start-(\d{4}-\d{2}-\d{2}).*/,'$1').split('-'),a=o[0].className.replace(/.*webform-calendar-end-(\d{4}-\d{2}-\d{2}).*/,'$1').split('-'),u=o[0].className.replace(/.*webform-calendar-day-(\d).*/,'$1');r=new Date(r[0],r[1]-1,r[2]);a=new Date(a[0],a[1]-1,a[2]);if(r>a){var l=r;r=a;a=l};var n=r.getFullYear(),i=a.getFullYear();o.datepicker({dateFormat:'yy-mm-dd',yearRange:n+':'+i,firstDay:parseInt(u),minDate:r,maxDate:a,onSelect:function(e,r){var a=e.split('-');t.find('select.year, input.year').val(+a[0]).trigger('change');t.find('select.month').val(+a[1]).trigger('change');t.find('select.day').val(+a[2]).trigger('change')},beforeShow:function(r,a){var o=t.find('select.year, input.year').val(),l=t.find('select.month').val(),u=t.find('select.day').val(),f=new Date();o=o?o:f.getFullYear();l=l?l:f.getMonth()+1;u=u?u:f.getDate();o=(o<n||o>i)?n:o;e(r).val(o+'-'+l+'-'+u)}});o.click(function(r){if(r.clientX!==0&&r.clientY!==0){e(this).focus();r.preventDefault()}});o.keyup(function(r){if(r.keyCode==8||r.keyCode==46){e.datepicker._clearDate(this)}})})};Drupal.webform.conditional=function(r){e.each(Drupal.settings.webform.conditionals,function(r,a){var t=e('.'+r+':not(.webform-conditional-processed)');t.each(function(r,t){var o=e(t);o.addClass('webform-conditional-processed');o.bind('change',{'settings':a},Drupal.webform.conditionalCheck);Drupal.webform.doConditions(o,a)})})};Drupal.webform.conditionalCheck=function(r){var a=e(r.target).closest('.webform-component');if(!a.length){return};var o=a.closest('form'),n=a.attr('class').match(/webform-component--[^ ]+/)[0],t=r.data.settings;if(t.sourceMap[n]){Drupal.webform.doConditions(o,t)}};Drupal.webform.doConditions=function(r,a){var t,o;function u(e){t=-1;o=[];n(e)};function n(e){o[++t]={results:[],andor:e,}};function i(e){o[t]['results'].push(e)};function l(){var n=o[t];t=Math.max(0,t-1);var r=n['results'],a=e.map(r,function(e){return e?e:null});return n['andor']==='or'?a.length>0:a.length===r.length};e.each(a.ruleGroups,function(t,o){var f=a.ruleGroups[t];u(f['andor']);e.each(f['rules'],function(e,t){switch(t['source_type']){case'component':var o=t['source'];var u=r.find('.'+o)[0],f=a.values[o]?a.values[o]:null;i(window['Drupal']['webform'][t.callback](u,f,t['value']));break;case'conditional_start':n(t['andor']);break;case'conditional_end':i(l());break}});var s=l();e.each(f['actions'],function(a,t){var o=r.find('.'+t['target']),n=t['invert']?!s:s;switch(t['action']){case'show':var d=n!=Drupal.webform.isVisible(o);if(n){o.find('.webform-conditional-disabled:not(.webform-disabled-flag)').removeClass('webform-conditional-disabled').webformProp('disabled',!1);o.removeClass('webform-conditional-hidden').show();r.find('.chosen-disabled').prev().trigger('chosen:updated.chosen')}
else{o.hide().addClass('webform-conditional-hidden').find(':input').addClass('webform-conditional-disabled webform-disabled-flag').webformProp('disabled',!0)};if(d&&o.is('tr')){Drupal.webform.restripeTable(o.closest('table').first())};break;case'require':var i=o.find('.form-required, .form-optional').first();if(n!=i.hasClass('form-required')){var p=o.find('input:text,textarea,input[type=\'email\'],select,input:radio,input:checkbox,input:file');Drupal.detachBehaviors(i);p.webformProp('required',n).toggleClass('required',n);if(n){i.replaceWith('<span class="form-required" title="'+Drupal.t('This field is required.')+'">*</span>')}
else{i.replaceWith('<span class="form-optional"></span>')};Drupal.attachBehaviors(i)};break;case'set':var f=o.find('input:text,textarea,input[type=\'email\']');var l=o.find('select,select option,input:radio,input:checkbox'),u=o.filter('.webform-component-markup');if(n){var c=e.map(t['argument'].split(','),e.trim);l.webformVal(c).webformProp('disabled',!0).addClass('webform-disabled-flag');f.val([t['argument']]).webformProp('readonly',!0).addClass('webform-disabled-flag');u.html(t['argument'])}
else{l.not('.webform-disabled-flag').webformProp('disabled',!1);f.not('.webform-disabled-flag').webformProp('readonly',!1);u.each(function(){var r=e(this),a=r.data('webform-markup');if(a!==undefined){r.html(a)}})};break}})});r.find('.webform-disabled-flag').removeClass('webform-disabled-flag')};Drupal.webform.stopEvent=function(){return!1};Drupal.webform.conditionalOperatorStringEqual=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase()===t.toLowerCase()){o=!0;return!1}});return o};Drupal.webform.conditionalOperatorStringNotEqual=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase()===t.toLowerCase()){o=!0}});return!o};Drupal.webform.conditionalOperatorStringContains=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase().indexOf(t.toLowerCase())>-1){o=!0;return!1}});return o};Drupal.webform.conditionalOperatorStringDoesNotContain=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase().indexOf(t.toLowerCase())>-1){o=!0}});return!o};Drupal.webform.conditionalOperatorStringBeginsWith=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase().indexOf(t.toLowerCase())===0){o=!0;return!1}});return o};Drupal.webform.conditionalOperatorStringEndsWith=function(r,a,t){var o=!1,n=Drupal.webform.stringValue(r,a);e.each(n,function(e,r){if(r.toLowerCase().lastIndexOf(t.toLowerCase())===r.length-t.length){o=!0;return!1}});return o};Drupal.webform.conditionalOperatorStringEmpty=function(r,a,t){var n=Drupal.webform.stringValue(r,a),o=!0;e.each(n,function(e,r){if(r!==''){o=!1;return!1}});return o};Drupal.webform.conditionalOperatorStringNotEmpty=function(e,r,a){return!Drupal.webform.conditionalOperatorStringEmpty(e,r,a)};Drupal.webform.conditionalOperatorSelectGreaterThan=function(e,r,a){var t=Drupal.webform.stringValue(e,r);return Drupal.webform.compare_select(t[0],a,e)>0};Drupal.webform.conditionalOperatorSelectGreaterThanEqual=function(e,r,a){var o=Drupal.webform.stringValue(e,r),t=Drupal.webform.compare_select(o[0],a,e);return t>0||t===0};Drupal.webform.conditionalOperatorSelectLessThan=function(e,r,a){var t=Drupal.webform.stringValue(e,r);return Drupal.webform.compare_select(t[0],a,e)<0};Drupal.webform.conditionalOperatorSelectLessThanEqual=function(e,r,a){var o=Drupal.webform.stringValue(e,r),t=Drupal.webform.compare_select(o[0],a,e);return t<0||t===0};Drupal.webform.conditionalOperatorNumericEqual=function(e,r,a){var t=Drupal.webform.stringValue(e,r),o=0.000001;return t[0]===''?!1:(Math.abs(parseFloat(t[0])-parseFloat(a))<o)};Drupal.webform.conditionalOperatorNumericNotEqual=function(e,r,a){var t=Drupal.webform.stringValue(e,r),o=0.000001;return t[0]===''?!0:(Math.abs(parseFloat(t[0])-parseFloat(a))>=o)};Drupal.webform.conditionalOperatorNumericGreaterThan=function(e,r,a){var t=Drupal.webform.stringValue(e,r);return parseFloat(t[0])>parseFloat(a)};Drupal.webform.conditionalOperatorNumericGreaterThanEqual=function(e,r,a){return Drupal.webform.conditionalOperatorNumericGreaterThan(e,r,a)||Drupal.webform.conditionalOperatorNumericEqual(e,r,a)};Drupal.webform.conditionalOperatorNumericLessThan=function(e,r,a){var t=Drupal.webform.stringValue(e,r);return parseFloat(t[0])<parseFloat(a)};Drupal.webform.conditionalOperatorNumericLessThanEqual=function(e,r,a){return Drupal.webform.conditionalOperatorNumericLessThan(e,r,a)||Drupal.webform.conditionalOperatorNumericEqual(e,r,a)};Drupal.webform.conditionalOperatorDateEqual=function(e,r,a){var t=Drupal.webform.dateValue(e,r);return t===a};Drupal.webform.conditionalOperatorDateNotEqual=function(e,r,a){return!Drupal.webform.conditionalOperatorDateEqual(e,r,a)};Drupal.webform.conditionalOperatorDateBefore=function(e,r,a){var t=Drupal.webform.dateValue(e,r);return(t!==!1)&&t<a};Drupal.webform.conditionalOperatorDateBeforeEqual=function(e,r,a){var t=Drupal.webform.dateValue(e,r);return(t!==!1)&&(t<a||t===a)};Drupal.webform.conditionalOperatorDateAfter=function(e,r,a){var t=Drupal.webform.dateValue(e,r);return(t!==!1)&&t>a};Drupal.webform.conditionalOperatorDateAfterEqual=function(e,r,a){var t=Drupal.webform.dateValue(e,r);return(t!==!1)&&(t>a||t===a)};Drupal.webform.conditionalOperatorTimeEqual=function(e,r,a){var t=Drupal.webform.timeValue(e,r);return t===a};Drupal.webform.conditionalOperatorTimeNotEqual=function(e,r,a){return!Drupal.webform.conditionalOperatorTimeEqual(e,r,a)};Drupal.webform.conditionalOperatorTimeBefore=function(e,r,a){var t=Drupal.webform.timeValue(e,r);return(t!==!1)&&(t<a)};Drupal.webform.conditionalOperatorTimeBeforeEqual=function(e,r,a){var t=Drupal.webform.timeValue(e,r);return(t!==!1)&&(t<a||t===a)};Drupal.webform.conditionalOperatorTimeAfter=function(e,r,a){var t=Drupal.webform.timeValue(e,r);return(t!==!1)&&(t>a)};Drupal.webform.conditionalOperatorTimeAfterEqual=function(e,r,a){var t=Drupal.webform.timeValue(e,r);return(t!==!1)&&(t>a||t===a)};Drupal.webform.compare_select=function(r,a,t){var o=[];e('option,input:radio,input:checkbox',t).each(function(){o.push(e(this).val())});var n=o.indexOf(r),i=o.indexOf(a);return(n<0||i<0)?null:n-i};Drupal.webform.isVisible=function(e){return e.hasClass('webform-component-hidden')?!e.find('input').first().hasClass('webform-conditional-disabled'):e.closest('.webform-conditional-hidden').length==0};Drupal.webform.stringValue=function(r,a){var t=[];if(r){var n=e(r);if(Drupal.webform.isVisible(n)){n.find('input[type=checkbox]:checked,input[type=radio]:checked').each(function(){t.push(this.value)});if(!t.length){var o=n.find('select').val();if(o){if(e.isArray(o)){t=o}
else{t.push(o)}}};if(!t.length){n.find('input:not([type=checkbox],[type=radio]),textarea').each(function(){t.push(this.value)})}}}
else{switch(e.type(a)){case'array':t=a;break;case'string':t.push(a);break}};return t};Drupal.webform.dateValue=function(r,a){var n=!1;if(r){var o=e(r);if(Drupal.webform.isVisible(o)){var i=o.find('[name*=day]').val(),t=o.find('[name*=month]').val(),l=o.find('[name*=year]').val();if(t){t--};if(l!==''&&t!==''&&i!==''){n=Date.UTC(l,t,i)/1000}}}
else{if(e.type(a)==='array'&&a.length){a=a[0]};if(e.type(a)==='string'){a=a.split('-')};if(a.length===3){n=Date.UTC(a[0],a[1],a[2])/1000}};return n};Drupal.webform.timeValue=function(r,a){var i=!1;if(r){var n=e(r);if(Drupal.webform.isVisible(n)){var t=n.find('[name*=hour]').val(),o=n.find('[name*=minute]').val(),l=n.find('[name*=ampm]:checked').val();t=(t==='')?t:parseInt(t);o=(o==='')?o:parseInt(o);if(t!==''){t=(t<12&&l=='pm')?t+12:t;t=(t===12&&l=='am')?0:t};if(t!==''&&o!==''){i=Date.UTC(1970,0,1,t,o)/1000}}}
else{if(e.type(a)==='array'&&a.length){a=a[0]};if(e.type(a)==='string'){a=a.split(':')};if(a.length>=2){i=Date.UTC(1970,0,1,a[0],a[1])/1000}};return i};e.fn.webformProp=e.fn.webformProp||function(r,a){if(a){return e.fn.prop?this.prop(r,!0):this.attr(r,!0)}
else{return e.fn.prop?this.prop(r,!1):this.removeAttr(r)}};e.fn.webformVal=function(r){this.each(function(){var a=e(this),t=a.val(),o=e.inArray(a.val(),r)!=-1;if(this.nodeName=='OPTION'){a.webformProp('selected',o?t:!1)}
else{a.val(o?[t]:!1)}});return this};Drupal.webform.restripeTable=function(r){e('> tbody > tr, > tr',r).filter(':visible:odd').filter('.odd').removeClass('odd').addClass('even').end().end().filter(':visible:even').filter('.even').removeClass('even').addClass('odd')}})(jQuery);(function(e){var a,n=!1;if(typeof Drupal.ajax!=='undefined'){a=Drupal.ajax.prototype.beforeSerialize;Drupal.ajax.prototype.beforeSerialize=function(t,c){a.call(this,t,c);e('.bt-leads-fragment',t).val(window.location.hash)}};btLeadsRecaptchaCallback=function(t){e('.bt-leads-recaptcha',t).once('btLeadsRecaptchaCallback',function(){var t=e(this).parents('form'),n=this,r,a=e(this).siblings('button[type="submit"], input[type="submit"]'),i=e(this).attr('data-size'),c=Drupal.settings.ajax?Drupal.settings.ajax[a.attr('id')]:undefined;if(!window.grecaptcha){console.warn('g-recaptcha was not loaded. This means recaptcha won\'t work on the current page.');return};rcid=grecaptcha.render(n,{sitekey:e(n).attr('data-sitekey'),callback:function(n){e(t).addClass('bt-leads-recaptcha-submitted');e('.bt-leads-grecaptcha-response',e(t)).val(n);if(c){a.on('mousedown',r)};if(i==='invisible'){!c?a.click():a.mousedown();if(c){grecaptcha.reset(t.attr('bt-leads-recaptcha-rcid'))}};if(n){console.info('Form submission successful after valid token response.')}
else{console.error('Form submission failed after returning an empty token response.')}}});t.attr('bt-leads-recaptcha-rcid',rcid);if(c){r=e._data(a.get(0),'events')['mousedown'][0].handler;a.unbind('mousedown');a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}});e(t).ajaxComplete(function(a,c,r){if(a.currentTarget.id==e(t).attr('id')){if(e('.g-recaptcha-response',n).val()!=''){e(t).removeClass('bt-leads-recaptcha-submitted')}}})}
else{a.on('click',function(a){if(!e(t).hasClass('bt-leads-recaptcha-submitted')){a.preventDefault();grecaptcha.execute(t.attr('bt-leads-recaptcha-rcid'))}})}})};Drupal.behaviors.btLeadsPreventAccidentalSubmit={attach:function(t,a){var c=e('form.bt-leads-share-url-form');if(c.length){c.on('keydown','input',function(e){if(e.keyCode===13){e.preventDefault();e.stopPropagation();return!1}})}}};Drupal.behaviors.btLeadsAddShareHashArgs={attach:function(t,a){var c=e('form.bt-leads-share-url-form');c.find('#edit-social').find('a').each(function(){var a=e(this);if(!a.hasClass('btleads-processed')){var t=a.attr('href'),n=a.attr('data-share-query'),c=encodeURIComponent(a.attr('data-share-url'));if(window.location.hash){c+=encodeURIComponent(window.location.hash)};if(t.indexOf('?')===-1){t+='?'}
else{t+='&'};t+=n+'='+c;a.attr('href',t).addClass('btleads-processed')}})}};Drupal.behaviors.btLeadsOptInRequired={attach:function(t,a){e('.bt-opt-required',t).once('btLeadsOptInRequired',function(){e(this).submit(function(){if(!e('input[name="bt_leads_optin"]:checked',this).length){alert('Please accept the terms to proceed.');return!1}
else{return!0}})})}};function t(){const existingRecaptchaScript=document.querySelector('#bt-leads-recaptcha-async-load');if(existingRecaptchaScript){return};if(!Drupal.settings.bt_leads_recaptcha||!Drupal.settings.bt_leads_recaptcha.should_load){return};const recaptchaScript=document.createElement('script');const recaptchaUrl='https://www.google.com/recaptcha/api.js?onload=btLeadsRecaptchaCallback&render=explicit';recaptchaScript.setAttribute('id','bt-leads-recaptcha-async-load');recaptchaScript.setAttribute('src',recaptchaUrl);recaptchaScript.setAttribute('defer',1);recaptchaScript.setAttribute('async',1);document.head.appendChild(recaptchaScript);const newlyMountedRecaptcha=document.querySelector('#bt-leads-recaptcha-async-load');if(newlyMountedRecaptcha){console.info('Successfully added Google\'s ReCaptcha library.');n=!0}
else{console.error('Something went wrong when mounting Google\'s ReCaptcha library to the page.')}};function c(e){var t=e.getBoundingClientRect();return(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))};btLeadsRecaptchaLoader=function(a,shouldLoad=!1){var i=e('.load-async-recaptcha'),r=!1;if(shouldLoad){t()}
else{document.addEventListener('scroll',function(){i.each(function(e,t){r=c(t)});if(r){t()}});window.onload=function(e){i.each(function(e,t){r=c(t)});if(r){t()}};e('.load-async-recaptcha :input',a).on('focus',function(){t()})}};Drupal.behaviors.btLeadsAsyncLoadRecaptcha={attach:function(e,t){btLeadsRecaptchaLoader(e)}}})(jQuery);(function(e,i){i.behaviors.ngt_theme_base_sticky_nav={attach:function(i,t){e(window).load(function(){var a=['.listing-sticky-nav'],n=e(a.join(','),i);if(n.length){var t=n,o=t.offset().top;e(window).scroll(function(){var i=e(window).scrollTop();if(o<i){t.addClass('active')}
else{t.removeClass('active')}})}})}};i.behaviors.ngt_theme_base_sticky_search={attach:function(i,t){e(window).load(function(){if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var r=['.node-listing.view-mode-full .group-column-2'],s=e(r.join(','),i);if(s.length){var t=s;if(!e('.group-sticky-wrapper',t).length){return};var n=e('#footer').offset().top,o=e('.group-sticky-wrapper',t).height(),a=e('.group-sticky-wrapper',t).offset().top;e(window).scroll(function(){var i=e(window).scrollTop();if(i>=a&&(i+o)<n){t.addClass('active');t.removeClass('bottom')}
else if(i>=a&&(i+o)>=n){t.removeClass('active');t.addClass('bottom')}
else{t.removeClass('active bottom')}})}}})}};i.behaviors.propertyInquiryForm={attach:function(i,t){var r=this,n=e('.webform-component--arrival-date',i),o=e('.webform-component--departure-date',i),a,s;if(n.length&&o.length){s={month:e('.month',n),day:e('.day',n),year:e('.year',n)};a={month:e('.month',o),day:e('.day',o),year:e('.year',o)};e(window).on('hashchange',function(){r.watchDates(s,a)});r.watchDates(s,a)}},watchDates:function(e,i){var n={begin:e,end:i},s=this.parseDates();if(!this.parseDates()){return};for(var t in n){for(var o in n[t]){try{n[t][o].val(s[t][o])}catch(a){console.log(a)}}}},parseDates:function(){var o=window.location.hash,i,t=['begin','end'],a=[],e;if(o.indexOf('rcav')===-1){return!1};o.split('=').forEach(function(e,t){var n=decodeURIComponent(e.replace('#',''));try{n=JSON.parse(n);if(n.hasOwnProperty('rcav')){i=n}}catch(o){}});if(typeof i!=='undefined'){for(var n in t){e=new Date(i.rcav[t[n]]);a[t[n]]={month:e.getUTCMonth()+1,day:e.getUTCDate(),year:e.getUTCFullYear()}}};return a}};i.behaviors.scrollMapUp={attach:function(i,t){e('.region-content .toggle-map-active').on('click',function(){e(window).scrollTop(e(this).parents('.region-content').offset().top)});e('.toggle-map-active').on('click',function(){e('riot-solr-result-list').css('display','none')});e('.toggle-list-active').on('click',function(){e('riot-solr-result-list').attr('style','display: block !important;')});e('.toggle-both-active').on('click',function(){e('riot-solr-result-list').attr('style','display: block !important;')})}};i.behaviors.vrListingDescReadMore={attach:function(i,t){var n=e('#listing-about');if(!n||!n.length){return};var o=n.text(),a=o.match(/.*?[\.\s]+?/g),s=(a&&a.length<=100)||o.length<=100;if(s){n.addClass('open');return};n.once('listingDescReadMore',function(){e('<div class="listing-about-read-more">+ Read More</div>').on('click',function(){if(n.hasClass('open')){n.removeClass('open');e(this).html('+ Read More')}
else{n.addClass('open');e(this).html('- Read Less')}}).insertAfter(n)})}};if(typeof RiotTagsDispatch!='undefined'){RiotTagsDispatch.on('RiotSolrContainerModalContent',function(i,t){var n=e(t[0]);n.find('.rcItemAvailForm-processed').removeClass('rcItemAvailForm-processed')})};i.behaviors.vrCalResize={attach:function(i,t){e('body').once('test',function(){var o=e('table.rcav-month td.day span.rc-price');if(o.length===0){return};var i=e('table.rcav-month'),t=i.width(),n=e('table.rcav-month > tbody > tr').width();e(window).on('resize load',function(){if(n>t){i.css({maxWidth:'100%',float:'none'})}
else{i.css({maxWidth:'inherit',float:'inherit'})}})})}};i.behaviors.activitiesReadMore={attach:function(i,t){e('.group-ttd-summary .field-group-format-title').on('click',function(i){if(e(this).closest('div').hasClass('collapsed')){e(this).html('Read More')}
else{e(this).html('Read Less')}})}};i.behaviors.rePosReviewTab={attach:function(i,t){e(document).ready(function(){var i=window.location.hash;if(i=='#leave-review'){e('#listing-reviews > a[id^=zf-reveal-link]').once().click()}})}};i.behaviors.inquiryFormModal={attach:function(i,t){e(window).load(function(){if(window.location.search.indexOf('inquiry=true')>=0){e('.zurb-foundation-reveal').trigger('click')}})}};i.behaviors.pagination={attach:function(i,t){e(window).load(function(){e('.riot-solr-pager-links').click(function(){window.scrollTo({top:0,behavior:'smooth'})})})}};function t(){const slickSettings={accessibility:!1,dots:!1,infinite:!0,speed:300,lazyLoad:'ondemand',};var n=i.settings.bt_slick_settings.image_count,t={};if(!i.settings.bt_slick_settings.has_matterport){t={slidesToShow:n<=3?1:3,slidesToScroll:1,centerMode:!0,variableWidth:!0,arrows:!0,centerPadding:'60px',responsive:[{breakpoint:768,settings:{arrows:!0,centerMode:!0,centerPadding:'40px',slidesToShow:n<=3?1:3,}},{breakpoint:512,settings:{arrows:!1,centerPadding:'0px',slidesToShow:1,centerMode:!0,variableWidth:!0}},{breakpoint:480,settings:{arrows:!1,centerPadding:'0px',slidesToShow:1,centerMode:!0,variableWidth:!0}}]}}
else{t={slidesToShow:1,slidesToScroll:1,centerMode:!0,variableWidth:!0,arrows:!0,centerPadding:'60px',}};return e.extend(slickSettings,t)};i.behaviors.mount_slick_slider={attach:function(n,o){e(document).ready(function(e){var a=e('.carousel',n);if(a.length<=0){return};a.slick(t());var l={isInViewport:function(e,offset=0){const windowWidth=(window.innerWidth+offset)||(document.documentElement.clientWidth+offset);return(e.top>=0&&(e.left>=0||e.right<=windowWidth&&e.right>=0)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(windowWidth)||(e.left<=windowWidth&&e.left>=0))},replaceImages:function(slidesToPreload=[]){var a,n=e('.slick-active .placeholder-image.processing');if(i.settings.bt_slick_settings.image_count<=3){n=e('.slick-slide .placeholder-image.processing')};if(slidesToPreload.length){slidesToPreload.forEach(function(i){const image=i.children('img')[0];n.push(e(image))})};for(var o=0;o<n.length;o++){$image=e(n[o]);$lazyImage=$image.attr('data-lazy-src');$lazyImage=$image.attr('data-lazy-src');$image.attr('src',$lazyImage);$image.removeClass('processing')}}};window.slickOptimization=l;a.on('init',function(i,t,n,o){document.addEventListener('scroll',window.slickOptimization.replaceImages);window.addEventListener('resize',window.slickOptimization.replaceImages);window.addEventListener('orientationChange',window.slickOptimization.replaceImages);e('#property-slick-slider').addClass('visible');e('#property-slick-slider-placeholder').addClass('hidden');window.slickOptimization.replaceImages()});a.on('beforeChange',function(i,t,o,n){let firstSlideToLoad=n+1;let nextSlideToLoad=firstSlideToLoad+1;if(n<o){firstSlideToLoad=n-1;nextSlideToLoad=firstSlideToLoad-1};const slidesToPreload=[e(t.$slides.get(firstSlideToLoad)),e(t.$slides.get(nextSlideToLoad))];window.slickOptimization.replaceImages(slidesToPreload)});a.on('afterChange',function(e,i,t,n){window.slickOptimization.replaceImages()});var o={defaults:{target:'a',closeIcon:!0,closeOnEsc:!0,closeOnBackdrop:!1,slick:{}},open:function(i,t,a){t=e.extend({},this.defaults,t);a=e.extend({},this.defaults,a);var l=[],d=[];e.each(i,function(i,t){var n=o.getImageSource(e(this)),a=o.getImageSource(e(this),!0),s=o.getImageAspect(e(this)),r=o.getImageCaption(e(this));l.push('<div class="'+s+'" data-url="'+n+'">'+r+'</div>');d.push('<div><img src="'+a+'"></div>')});var s=e('<div class="slick-fullscreen-wrapper"></div>'),n=e('<div class="slick-fullscreen">'+l.join('')+'</div>'),r=e('<div class="slick-fullscreen-nav">'+d.join('')+'</div>');e('body').append(s);s.append(n);s.append(r);n.slick(t.slick);var f=n.slick('slickCurrentSlide');o.fsLazyLoad(n,f);n.on('afterChange',function(e,i){o.fsLazyLoad(n,i.currentSlide)});r.slick(a.slick);if(t.closeIcon){var c=e('<span class="slick-fullscreen-close">&times;</span>');c.on('click',function(){o.close()});n.prepend(c)};n.find('.slick-track').on('click.slick-fullscreen','.slick-slide img',function(e){e.stopPropagation();n.slick('slickNext')});if(t.closeOnBackdrop){n.find('.slick-track').on('click.slick-fullscreen',function(){o.close()})};if(t.closeOnEsc){e(document).on('keyup.slick-fullscreen',function(e){if(e.keyCode==27){o.close()}})};this.options=t;this.$container=n;this.$navcontainer=r;this.$wrapper=s},fsLazyLoad($container,currentSlide){var s=$container.find('[data-slick-index="'+currentSlide+'"]'),c=s.attr('data-url');if(!c)return;s.removeAttr('data-url');s.css('background-image','url("'+c+'")')},getImageSource:function(e,i){if(i&&e.is('img')){return e.attr('data-thumb')};if(e.is('img')){return e.attr('data-lazy-src')};return e.attr('href')},getImageCaption:function(e){if(e.attr('title')){return'<div class="slick-caption">'+e.attr('title')+'</div>'}},getImageAspect:function(e){if(e.is('img')){var i=e.data('aspect');return i}},close:function(){var i=e('.carousel .slick-current').data('slick-index');this.unbindEvents();this.$container.slick('unslick');this.$navcontainer.slick('unslick');this.$wrapper.remove();e('#page').show()},unbindEvents:function(){e(document).off('.slick-fullscreen');this.$container.find('.slick-track').off('.slick-fullscreen')}};var r=[];e('.carousel .slick-slide').each(function(){var i=e(this).clone(!0);r.push(e('img',i))});e('.carousel-wrapper .fs-trigger').once('mount_slick_slider').on('click',function(i){i.preventDefault();e('#page').hide();var t=3,n=e('.carousel .slick-current').data('slick-index')+t+1,s={initialSlide:n,slidesToShow:1,slidesToScroll:1,mobileFirst:!0,arrows:!0,fade:!0,infinite:!0,asNavFor:'.slick-fullscreen-nav',slide:'div',lazyLoad:'ondemand',};var a={infinite:!0,mobileFirst:!0,slidesToShow:1,slidesToScroll:1,focusOnSelect:!0,variableWidth:!0,asNavFor:'.slick-fullscreen',initialSlide:n,dots:!1,centerMode:!0,speed:300,centerMode:!0,arrows:!0,slide:'div',};o.open(r,e.extend({},{slick:s}),e.extend({},{slick:a}));setTimeout(function(){var i=e('.carousel .slick-current').data('slick-index')+t+1;e('[data-slick-index="'+i+'"]').click()},1000)});window.slickFullscreen=o})}}})(jQuery,Drupal);