File "application-13d27c3a5846e837c0ce48b604dc257852658574909702fa21f9891f7bb643ed.js"

Path: /IB QUESTIONBANKS/4 Fourth Edition - PAPER/HTML/Chemistry/Topic 5/js/application-13d27c3a5846e837c0ce48b604dc257852658574909702fa21f9891f7bb643edjs
File size: 506.22 KB
MIME-type: text/html
Charset: utf-8

 
Open Back
if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=!!t&&"length"in t&&t.length,i=pt.type(t);return"function"!==i&&!pt.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function n(t,e,i){if(pt.isFunction(e))return pt.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return pt.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(Ct.test(e))return pt.filter(e,t,i);e=pt.filter(e,t)}return pt.grep(t,function(t){return pt.inArray(t,e)>-1!==i})}function s(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function r(t){var e={};return pt.each(t.match(Mt)||[],function(t,i){e[i]=!0}),e}function o(){st.addEventListener?(st.removeEventListener("DOMContentLoaded",a),t.removeEventListener("load",a)):(st.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(st.addEventListener||"load"===t.event.type||"complete"===st.readyState)&&(o(),pt.ready())}function l(t,e,i){if(i===undefined&&1===t.nodeType){var n="data-"+e.replace($t,"-$1").toLowerCase();if("string"==typeof(i=t.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:jt.test(i)?pt.parseJSON(i):i)}catch(s){}pt.data(t,e,i)}else i=undefined}return i}function u(t){var e;for(e in t)if(("data"!==e||!pt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,i,n){if(It(t)){var s,r,o=pt.expando,a=t.nodeType,l=a?pt.cache:t,u=a?t[o]:t[o]&&o;if(u&&l[u]&&(n||l[u].data)||i!==undefined||"string"!=typeof e)return u||(u=a?t[o]=nt.pop()||pt.guid++:o),l[u]||(l[u]=a?{}:{toJSON:pt.noop}),"object"!=typeof e&&"function"!=typeof e||(n?l[u]=pt.extend(l[u],e):l[u].data=pt.extend(l[u].data,e)),r=l[u],n||(r.data||(r.data={}),r=r.data),i!==undefined&&(r[pt.camelCase(e)]=i),"string"==typeof e?null==(s=r[e])&&(s=r[pt.camelCase(e)]):s=r,s}}function h(t,e,i){if(It(t)){var n,s,r=t.nodeType,o=r?pt.cache:t,a=r?t[pt.expando]:pt.expando;if(o[a]){if(e&&(n=i?o[a]:o[a].data)){s=(e=pt.isArray(e)?e.concat(pt.map(e,pt.camelCase)):e in n?[e]:(e=pt.camelCase(e))in n?[e]:e.split(" ")).length;for(;s--;)delete n[e[s]];if(i?!u(n):!pt.isEmptyObject(n))return}(i||(delete o[a].data,u(o[a])))&&(r?pt.cleanData([t],!0):dt.deleteExpando||o!=o.window?delete o[a]:o[a]=undefined)}}}function d(t,e,i,n){var s,r=1,o=20,a=n?function(){return n.cur()}:function(){return pt.css(t,e,"")},l=a(),u=i&&i[3]||(pt.cssNumber[e]?"":"px"),c=(pt.cssNumber[e]||"px"!==u&&+l)&&Wt.exec(pt.css(t,e));if(c&&c[3]!==u){u=u||c[3],i=i||[],c=+l||1;do{c/=r=r||".5",pt.style(t,e,c+u)}while(r!==(r=a()/l)&&1!==r&&--o)}return i&&(c=+c||+l||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=u,n.start=c,n.end=s)),s}function f(t){var e=Qt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function p(t,e){var i,n,s=0,r="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):undefined;if(!r)for(r=[],i=t.childNodes||t;null!=(n=i[s]);s++)!e||pt.nodeName(n,e)?r.push(n):pt.merge(r,p(n,e));return e===undefined||e&&pt.nodeName(t,e)?pt.merge([t],r):r}function m(t,e){for(var i,n=0;null!=(i=t[n]);n++)pt._data(i,"globalEval",!e||pt._data(e[n],"globalEval"))}function g(t){Bt.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e,i,n,s){for(var r,o,a,l,u,c,h,d=t.length,v=f(e),y=[],_=0;_<d;_++)if((o=t[_])||0===o)if("object"===pt.type(o))pt.merge(y,o.nodeType?[o]:o);else if(Xt.test(o)){for(l=l||v.appendChild(e.createElement("div")),u=(Vt.exec(o)||["",""])[1].toLowerCase(),h=Kt[u]||Kt._default,l.innerHTML=h[1]+pt.htmlPrefilter(o)+h[2],r=h[0];r--;)l=l.lastChild;if(!dt.leadingWhitespace&&Ut.test(o)&&y.push(e.createTextNode(Ut.exec(o)[0])),!dt.tbody)for(r=(o="table"!==u||Gt.test(o)?"<table>"!==h[1]||Gt.test(o)?0:l:l.firstChild)&&o.childNodes.length;r--;)pt.nodeName(c=o.childNodes[r],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(pt.merge(y,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else y.push(e.createTextNode(o));for(l&&v.removeChild(l),dt.appendChecked||pt.grep(p(y,"input"),g),_=0;o=y[_++];)if(n&&pt.inArray(o,n)>-1)s&&s.push(o);else if(a=pt.contains(o.ownerDocument,o),l=p(v.appendChild(o),"script"),a&&m(l),i)for(r=0;o=l[r++];)Yt.test(o.type||"")&&i.push(o);return l=null,v}function y(){return!0}function b(){return!1}function w(){try{return st.activeElement}catch(t){}}function x(t,e,i,n,s,r){var o,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=undefined),e)x(t,a,i,n,e[a],r);return t}if(null==n&&null==s?(s=i,n=i=undefined):null==s&&("string"==typeof i?(s=n,n=undefined):(s=n,n=i,i=undefined)),!1===s)s=b;else if(!s)return t;return 1===r&&(o=s,(s=function(t){return pt().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=pt.guid++)),t.each(function(){pt.event.add(this,e,s,n,i)})}function k(t,e){return pt.nodeName(t,"table")&&pt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function C(t){return t.type=(null!==pt.find.attr(t,"type"))+"/"+t.type,t}function D(t){var e=le.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){if(1===e.nodeType&&pt.hasData(t)){var i,n,s,r=pt._data(t),o=pt._data(e,r),a=r.events;if(a)for(i in delete o.handle,o.events={},a)for(n=0,s=a[i].length;n<s;n++)pt.event.add(e,i,a[i][n]);o.data&&(o.data=pt.extend({},o.data))}}function S(t,e){var i,n,s;if(1===e.nodeType){if(i=e.nodeName.toLowerCase(),!dt.noCloneEvent&&e[pt.expando]){for(n in(s=pt._data(e)).events)pt.removeEvent(e,n,s.handle);e.removeAttribute(pt.expando)}"script"===i&&e.text!==t.text?(C(e).text=t.text,D(e)):"object"===i?(e.parentNode&&(e.outerHTML=t.outerHTML),dt.html5Clone&&t.innerHTML&&!pt.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===i&&Bt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===i?e.defaultSelected=e.selected=t.defaultSelected:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}}function E(t,e,i,n){e=ot.apply([],e);var s,r,o,a,l,u,c=0,h=t.length,d=h-1,f=e[0],m=pt.isFunction(f);if(m||h>1&&"string"==typeof f&&!dt.checkClone&&ae.test(f))return t.each(function(s){var r=t.eq(s);m&&(e[0]=f.call(this,s,r.html())),E(r,e,i,n)});if(h&&(s=(u=v(e,t[0].ownerDocument,!1,t,n)).firstChild,1===u.childNodes.length&&(u=s),s||n)){for(o=(a=pt.map(p(u,"script"),C)).length;c<h;c++)r=u,c!==d&&(r=pt.clone(r,!0,!0),o&&pt.merge(a,p(r,"script"))),i.call(t[c],r,c);if(o)for(l=a[a.length-1].ownerDocument,pt.map(a,D),c=0;c<o;c++)r=a[c],Yt.test(r.type||"")&&!pt._data(r,"globalEval")&&pt.contains(l,r)&&(r.src?pt._evalUrl&&pt._evalUrl(r.src):pt.globalEval((r.text||r.textContent||r.innerHTML||"").replace(ue,"")));u=s=null}return t}function P(t,e,i){for(var n,s=e?pt.filter(e,t):t,r=0;null!=(n=s[r]);r++)i||1!==n.nodeType||pt.cleanData(p(n)),n.parentNode&&(i&&pt.contains(n.ownerDocument,n)&&m(p(n,"script")),n.parentNode.removeChild(n));return t}function N(t,e){var i=pt(e.createElement(t)).appendTo(e.body),n=pt.css(i[0],"display");return i.detach(),n}function M(t){var e=st,i=de[t];return i||("none"!==(i=N(t,e))&&i||((e=((he=(he||pt("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||he[0].contentDocument).document).write(),e.close(),i=N(t,e),he.detach()),de[t]=i),i}function A(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function I(t){if(t in Se)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=Te.length;i--;)if((t=Te[i]+e)in Se)return t}function j(t,e){for(var i,n,s,r=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(r[o]=pt._data(n,"olddisplay"),i=n.style.display,e?(r[o]||"none"!==i||(n.style.display=""),""===n.style.display&&Rt(n)&&(r[o]=pt._data(n,"olddisplay",M(n.nodeName)))):(s=Rt(n),(i&&"none"!==i||!s)&&pt._data(n,"olddisplay",s?i:pt.css(n,"display"))));for(o=0;o<a;o++)(n=t[o]).style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?r[o]||"":"none"));return t}function $(t,e,i){var n=ke.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function O(t,e,i,n,s){for(var r=i===(n?"border":"content")?4:"width"===e?1:0,o=0;r<4;r+=2)"margin"===i&&(o+=pt.css(t,i+Ft[r],!0,s)),n?("content"===i&&(o-=pt.css(t,"padding"+Ft[r],!0,s)),"margin"!==i&&(o-=pt.css(t,"border"+Ft[r]+"Width",!0,s))):(o+=pt.css(t,"padding"+Ft[r],!0,s),"padding"!==i&&(o+=pt.css(t,"border"+Ft[r]+"Width",!0,s)));return o}function H(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,r=ve(t),o=dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,r);if(s<=0||null==s){if(((s=ye(t,e,r))<0||null==s)&&(s=t.style[e]),pe.test(s))return s;n=o&&(dt.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+O(t,e,i||(o?"border":"content"),n,r)+"px"}function L(t,e,i,n,s){return new L.prototype.init(t,e,i,n,s)}function z(){return t.setTimeout(function(){Ee=undefined}),Ee=pt.now()}function W(t,e){var i,n={height:t},s=0;for(e=e?1:0;s<4;s+=2-e)n["margin"+(i=Ft[s])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function F(t,e,i){for(var n,s=(B.tweeners[e]||[]).concat(B.tweeners["*"]),r=0,o=s.length;r<o;r++)if(n=s[r].call(i,e,t))return n}function R(t,e,i){var n,s,r,o,a,l,u,c=this,h={},d=t.style,f=t.nodeType&&Rt(t),p=pt._data(t,"fxshow");for(n in i.queue||(null==(a=pt._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,pt.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(u=pt.css(t,"display"))?pt._data(t,"olddisplay")||M(t.nodeName):u)&&"none"===pt.css(t,"float")&&(dt.inlineBlockNeedsLayout&&"inline"!==M(t.nodeName)?d.zoom=1:d.display="inline-block")),i.overflow&&(d.overflow="hidden",dt.shrinkWrapBlocks()||c.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),e)if(s=e[n],$e.exec(s)){if(delete e[n],r=r||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!p||p[n]===undefined)continue;f=!0}h[n]=p&&p[n]||pt.style(t,n)}else u=undefined;if(pt.isEmptyObject(h))"inline"===("none"===u?M(t.nodeName):u)&&(d.display=u);else for(n in p?"hidden"in p&&(f=p.hidden):p=pt._data(t,"fxshow",{}),r&&(p.hidden=!f),f?pt(t).show():c.done(function(){pt(t).hide()}),c.done(function(){var e;for(e in pt._removeData(t,"fxshow"),h)pt.style(t,e,h[e])}),h)o=F(f?p[n]:0,n,c),n in p||(p[n]=o.start,f&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}function q(t,e){var i,n,s,r,o;for(i in t)if(s=e[n=pt.camelCase(i)],r=t[i],pt.isArray(r)&&(s=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(o=pt.cssHooks[n])&&"expand"in o)for(i in r=o.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=s);else e[n]=s}function B(t,e,i){var n,s,r=0,o=B.prefilters.length,a=pt.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Ee||z(),i=Math.max(0,u.startTime+u.duration-e),n=1-(i/u.duration||0),r=0,o=u.tweens.length;r<o;r++)u.tweens[r].run(n);return a.notifyWith(t,[u,n,i]),n<1&&o?i:(a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:pt.extend({},e),opts:pt.extend(!0,{specialEasing:{},easing:pt.easing._default},i),originalProperties:e,originalOptions:i,startTime:Ee||z(),duration:i.duration,tweens:[],createTween:function(e,i){var n=pt.Tween(t,u.opts,e,i,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var i=0,n=e?u.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)u.tweens[i].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(q(c,u.opts.specialEasing);r<o;r++)if(n=B.prefilters[r].call(u,t,c,u.opts))return pt.isFunction(n.stop)&&(pt._queueHooks(u.elem,u.opts.queue).stop=pt.proxy(n.stop,n)),n;return pt.map(c,F,u),pt.isFunction(u.opts.start)&&u.opts.start.call(t,u),pt.fx.timer(pt.extend(l,{elem:t,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 V(t){return pt.attr(t,"class")||""}function Y(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,r=e.toLowerCase().match(Mt)||[];if(pt.isFunction(i))for(;n=r[s++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function U(t,e,i,n){function s(a){var l;return r[a]=!0,pt.each(t[a]||[],function(t,a){var u=a(e,i,n);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)}),l}var r={},o=t===oi;return s(e.dataTypes[0])||!r["*"]&&s("*")}function Q(t,e){var i,n,s=pt.ajaxSettings.flatOptions||{};for(n in e)e[n]!==undefined&&((s[n]?t:i||(i={}))[n]=e[n]);return i&&pt.extend(!0,t,i),t}function K(t,e,i){for(var n,s,r,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),s===undefined&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(o in a)if(a[o]&&a[o].test(s)){l.unshift(o);break}if(l[0]in i)r=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}n||(n=o)}r=r||n}if(r)return r!==l[0]&&l.unshift(r),i[r]}function X(t,e,i,n){var s,r,o,a,l,u={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(r=c.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=u[l+" "+r]||u["* "+r]))for(s in u)if((a=s.split(" "))[1]===r&&(o=u[l+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[s]:!0!==u[s]&&(r=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(h){return{state:"parsererror",error:o?h:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}function G(t){return t.style&&t.style.display||pt.css(t,"display")}function Z(t){if(!pt.contains(t.ownerDocument||st,t))return!0;for(;t&&1===t.nodeType;){if("none"===G(t)||"hidden"===t.type)return!0;t=t.parentNode}return!1}function J(t,e,i,n){var s;if(pt.isArray(e))pt.each(e,function(e,s){i||hi.test(t)?n(t,s):J(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)});else if(i||"object"!==pt.type(e))n(t,e);else for(s in e)J(t+"["+s+"]",e[s],i,n)}function tt(){try{return new t.XMLHttpRequest}catch(e){}}function et(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function it(t){return pt.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var nt=[],st=t.document,rt=nt.slice,ot=nt.concat,at=nt.push,lt=nt.indexOf,ut={},ct=ut.toString,ht=ut.hasOwnProperty,dt={},ft="1.12.4",pt=function(t,e){return new pt.fn.init(t,e)},mt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,gt=/^-ms-/,vt=/-([\da-z])/gi,yt=function(t,e){return e.toUpperCase()};pt.fn=pt.prototype={jquery:ft,constructor:pt,selector:"",length:0,toArray:function(){return rt.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:rt.call(this)},pushStack:function(t){var e=pt.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return pt.each(this,t)},map:function(t){return this.pushStack(pt.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(rt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:at,sort:nt.sort,splice:nt.splice},pt.extend=pt.fn.extend=function(){var t,e,i,n,s,r,o=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||pt.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(s=arguments[a]))for(n in s)t=o[n],o!==(i=s[n])&&(u&&i&&(pt.isPlainObject(i)||(e=pt.isArray(i)))?(e?(e=!1,r=t&&pt.isArray(t)?t:[]):r=t&&pt.isPlainObject(t)?t:{},o[n]=pt.extend(u,r,i)):i!==undefined&&(o[n]=i));return o},pt.extend({expando:"jQuery"+(ft+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===pt.type(t)},isArray:Array.isArray||function(t){return"array"===pt.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!pt.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==pt.type(t)||t.nodeType||pt.isWindow(t))return!1;try{if(t.constructor&&!ht.call(t,"constructor")&&!ht.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}if(!dt.ownFirst)for(e in t)return ht.call(t,e);for(e in t);return e===undefined||ht.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?ut[ct.call(t)]||"object":typeof t},globalEval:function(e){e&&pt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(gt,"ms-").replace(vt,yt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,s=0;if(i(t))for(n=t.length;s<n&&!1!==e.call(t[s],s,t[s]);s++);else for(s in t)if(!1===e.call(t[s],s,t[s]))break;return t},trim:function(t){return null==t?"":(t+"").replace(mt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?pt.merge(n,"string"==typeof t?[t]:t):at.call(n,t)),n},inArray:function(t,e,i){var n;if(e){if(lt)return lt.call(e,t,i);for(n=e.length,i=i?i<0?Math.max(0,n+i):i:0;i<n;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;)t[s++]=e[n++];if(i!=i)for(;e[n]!==undefined;)t[s++]=e[n++];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,r=t.length,o=!i;s<r;s++)!e(t[s],s)!==o&&n.push(t[s]);return n},map:function(t,e,n){var s,r,o=0,a=[];if(i(t))for(s=t.length;o<s;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return ot.apply([],a)},guid:1,proxy:function(t,e){var i,n,s;return"string"==typeof e&&(s=t[e],e=t,t=s),pt.isFunction(t)?(i=rt.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(rt.call(arguments)))}).guid=t.guid=t.guid||pt.guid++,n):undefined},now:function(){return+new Date},support:dt}),"function"==typeof Symbol&&(pt.fn[Symbol.iterator]=nt[Symbol.iterator]),pt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ut["[object "+e+"]"]=e.toLowerCase()});var _t=function(t){function e(t,e,i,n){var s,r,o,a,l,u,h,f,p=e&&e.ownerDocument,m=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return i;if(!n&&((e?e.ownerDocument||e:W)!==A&&M(e),e=e||A,j)){if(11!==m&&(u=vt.exec(t)))if(s=u[1]){if(9===m){if(!(o=e.getElementById(s)))return i;if(o.id===s)return i.push(o),i}else if(p&&(o=p.getElementById(s))&&L(e,o)&&o.id===s)return i.push(o),i}else{if(u[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((s=u[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(s)),i}if(w.qsa&&!V[t+" "]&&(!$||!$.test(t))){if(1!==m)p=e,f=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(_t,"\\$&"):e.setAttribute("id",a=z),r=(h=D(t)).length,l=dt.test(a)?"#"+a:"[id='"+a+"']";r--;)h[r]=l+" "+d(h[r]);f=h.join(","),p=yt.test(t)&&c(e.parentNode)||e}if(f)try{return Z.apply(i,p.querySelectorAll(f)),i}catch(g){}finally{a===z&&e.removeAttribute("id")}}}return S(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>x.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[z]=!0,t}function s(t){var e=A.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var i=t.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||U)-(~t.sourceIndex||U);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function u(t){return n(function(e){return e=+e,n(function(i,n){for(var s,r=t([],i.length,e),o=r.length;o--;)i[s=r[o]]&&(i[s]=!(n[s]=i[s]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,s=i&&"parentNode"===n,r=R++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r)}:function(e,i,o){var a,l,u,c=[F,r];if(o){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if((a=(l=(u=e[z]||(e[z]={}))[e.uniqueID]||(u[e.uniqueID]={}))[n])&&a[0]===F&&a[1]===r)return c[2]=a[2];if(l[n]=c,c[2]=t(e,i,o))return!0}}}function p(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var s=0,r=i.length;s<r;s++)e(t,i[s],n);return n}function g(t,e,i,n,s){for(var r,o=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(i&&!i(r,n,s)||(o.push(r),u&&e.push(a)));return o}function v(t,e,i,s,r,o){return s&&!s[z]&&(s=v(s)),r&&!r[z]&&(r=v(r,o)),n(function(n,o,a,l){var u,c,h,d=[],f=[],p=o.length,v=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:g(v,d,t,a,l),_=i?r||(n?t:p||s)?[]:o:y;if(i&&i(y,_,a,l),s)for(u=g(_,f),s(u,[],a,l),c=u.length;c--;)(h=u[c])&&(_[f[c]]=!(y[f[c]]=h));if(n){if(r||t){if(r){for(u=[],c=_.length;c--;)(h=_[c])&&u.push(y[c]=h);r(null,_=[],u,l)}for(c=_.length;c--;)(h=_[c])&&(u=r?tt(n,h):d[c])>-1&&(n[u]=!(o[u]=h))}}else _=g(_===o?_.splice(p,_.length):_),r?r(null,o,_,l):Z.apply(o,_)})}function y(t){for(var e,i,n,s=t.length,r=x.relative[t[0].type],o=r||x.relative[" "],a=r?1:0,l=f(function(t){return t===e},o,!0),u=f(function(t){return tt(e,t)>-1},o,!0),c=[function(t,i,n){var s=!r&&(n||i!==E)||((e=i).nodeType?l(t,i,n):u(t,i,n));return e=null,s}];a<s;a++)if(i=x.relative[t[a].type])c=[f(p(c),i)];else{if((i=x.filter[t[a].type].apply(null,t[a].matches))[z]){for(n=++a;n<s&&!x.relative[t[n].type];n++);return v(a>1&&p(c),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),i,a<n&&y(t.slice(a,n)),n<s&&y(t=t.slice(n)),n<s&&d(t))}c.push(i)}return p(c)}function _(t,i){var s=i.length>0,r=t.length>0,o=function(n,o,a,l,u){var c,h,d,f=0,p="0",m=n&&[],v=[],y=E,_=n||r&&x.find.TAG("*",u),b=F+=null==y?1:Math.random()||.1,w=_.length;for(u&&(E=o===A||o||u);p!==w&&null!=(c=_[p]);p++){if(r&&c){for(h=0,o||c.ownerDocument===A||(M(c),a=!j);d=t[h++];)if(d(c,o||A,a)){l.push(c);break}u&&(F=b)}s&&((c=!d&&c)&&f--,n&&m.push(c))}if(f+=p,s&&p!==f){for(h=0;d=i[h++];)d(m,v,o,a);if(n){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=X.call(l));v=g(v)}Z.apply(l,v),u&&!n&&v.length>0&&f+i.length>1&&e.uniqueSort(l)}return u&&(F=b,E=y),m};return s?n(o):o}var b,w,x,k,C,D,T,S,E,P,N,M,A,I,j,$,O,H,L,z="sizzle"+1*new Date,W=t.document,F=0,R=0,q=i(),B=i(),V=i(),Y=function(t,e){return t===e&&(N=!0),0},U=1<<31,Q={}.hasOwnProperty,K=[],X=K.pop,G=K.push,Z=K.push,J=K.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",rt=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",ot=new RegExp(it+"+","g"),at=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ut=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ct=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(rt),dt=new RegExp("^"+nt+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},pt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,_t=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xt=function(){M()};try{Z.apply(K=J.call(W.childNodes),W.childNodes),K[W.childNodes.length].nodeType}catch(kt){Z={apply:K.length?function(t,e){G.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}for(b in w=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},M=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:W;return n!==A&&9===n.nodeType&&n.documentElement?(I=(A=n).documentElement,j=!C(A),(i=A.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xt,!1):i.attachEvent&&i.attachEvent("onunload",xt)),w.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=s(function(t){return t.appendChild(A.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(A.getElementsByClassName),w.getById=s(function(t){return I.appendChild(t).id=z,!A.getElementsByName||!A.getElementsByName(z).length}),w.getById?(x.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&j){var i=e.getElementById(t);return i?[i]:[]}},x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),x.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[s++];)1===i.nodeType&&n.push(i);return n}return r},x.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&j)return e.getElementsByClassName(t)},O=[],$=[],(w.qsa=gt.test(A.querySelectorAll))&&(s(function(t){I.appendChild(t).innerHTML="<a id='"+z+"'></a><select id='"+z+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&$.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||$.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+z+"-]").length||$.push("~="),t.querySelectorAll(":checked").length||$.push(":checked"),t.querySelectorAll("a#"+z+"+*").length||$.push(".#.+[+~]")}),s(function(t){var e=A.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&$.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||$.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),$.push(",.*:")})),(w.matchesSelector=gt.test(H=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&s(function(t){w.disconnectedMatch=H.call(t,"div"),H.call(t,"[s!='']:x"),O.push("!=",rt)}),$=$.length&&new RegExp($.join("|")),O=O.length&&new RegExp(O.join("|")),e=gt.test(I.compareDocumentPosition),L=e||gt.test(I.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},Y=e?function(t,e){if(t===e)return N=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!w.sortDetached&&e.compareDocumentPosition(t)===i?t===A||t.ownerDocument===W&&L(W,t)?-1:e===A||e.ownerDocument===W&&L(W,e)?1:P?tt(P,t)-tt(P,e):0:4&i?-1:1)}:function(t,e){if(t===e)return N=!0,0;var i,n=0,s=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!s||!r)return t===A?-1:e===A?1:s?-1:r?1:P?tt(P,t)-tt(P,e):0;if(s===r)return o(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?o(a[n],l[n]):a[n]===W?-1:l[n]===W?1:0},A):A},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==A&&M(t),i=i.replace(ct,"='$1']"),w.matchesSelector&&j&&!V[i+" "]&&(!O||!O.test(i))&&(!$||!$.test(i)))try{var n=H.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(kt){}return e(i,A,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==A&&M(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==A&&M(t);var i=x.attrHandle[e.toLowerCase()],n=i&&Q.call(x.attrHandle,e.toLowerCase())?i(t,e,!j):undefined;return n!==undefined?n:w.attributes||!j?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(N=!w.detectDuplicates,P=!w.sortStable&&t.slice(0),t.sort(Y),N){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return P=null,t},k=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},(x=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=D(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var r=e.attr(s,t);return null==r?"!="===i:!i||(r+="","="===i?r===n:"!="===i?r!==n:"^="===i?n&&0===r.indexOf(n):"*="===i?n&&r.indexOf(n)>-1:"$="===i?n&&r.slice(-n.length)===n:"~="===i?(" "+r.replace(ot," ")+" ").indexOf(n)>-1:"|="===i&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var r="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var u,c,h,d,f,p,m=r!==o?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(g){if(r){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&y){for(_=(f=(u=(c=(h=(d=g)[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===F&&u[1])&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(_=f=0)||p.pop();)if(1===d.nodeType&&++_&&d===e){c[t]=[F,f,_];break}}else if(y&&(_=f=(u=(c=(h=(d=e)[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===F&&u[1]),!1===_)for(;(d=++f&&d&&d[m]||(_=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++_||(y&&((c=(h=d[z]||(d[z]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[F,_]),d!==e)););return(_-=s)===n||_%n==0&&_/n>=0}}},PSEUDO:function(t,i){var s,r=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[z]?r(i):r.length>1?(s=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=r(t,i),o=s.length;o--;)t[n=tt(t,s[o])]=!(e[n]=s[o])}):function(t){
return r(t,0,s)}):r}},pseudos:{not:n(function(t){var e=[],i=[],s=T(t.replace(at,"$1"));return s[z]?n(function(t,e,i,n){for(var r,o=s(t,null,n,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,n,r){return e[0]=t,s(e,null,r,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var i;do{if(i=j?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return pt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,i){return[i<0?i+e:i]}),even:u(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:u(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:u(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:u(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,D=e.tokenize=function(t,i){var n,s,r,o,a,l,u,c=B[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],u=x.preFilter;a;){for(o in n&&!(s=lt.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),n=!1,(s=ut.exec(a))&&(n=s.shift(),r.push({value:n,type:s[0].replace(at," ")}),a=a.slice(n.length)),x.filter)!(s=ft[o].exec(a))||u[o]&&!(s=u[o](s))||(n=s.shift(),r.push({value:n,type:o,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):B(t,l).slice(0)},T=e.compile=function(t,e){var i,n=[],s=[],r=V[t+" "];if(!r){for(e||(e=D(t)),i=e.length;i--;)(r=y(e[i]))[z]?n.push(r):s.push(r);(r=V(t,_(s,n))).selector=t}return r},S=e.select=function(t,e,i,n){var s,r,o,a,l,u="function"==typeof t&&t,h=!n&&D(t=u.selector||t);if(i=i||[],1===h.length){if((r=h[0]=h[0].slice(0)).length>2&&"ID"===(o=r[0]).type&&w.getById&&9===e.nodeType&&j&&x.relative[r[1].type]){if(!(e=(x.find.ID(o.matches[0].replace(bt,wt),e)||[])[0]))return i;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(s=ft.needsContext.test(t)?0:r.length;s--&&(o=r[s],!x.relative[a=o.type]);)if((l=x.find[a])&&(n=l(o.matches[0].replace(bt,wt),yt.test(r[0].type)&&c(e.parentNode)||e))){if(r.splice(s,1),!(t=n.length&&d(r)))return Z.apply(i,n),i;break}}return(u||T(t,h))(n,e,!j,i,!e||yt.test(t)&&c(e.parentNode)||e),i},w.sortStable=z.split("").sort(Y).join("")===z,w.detectDuplicates=!!N,M(),w.sortDetached=s(function(t){return 1&t.compareDocumentPosition(A.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||r(et,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);pt.find=_t,pt.expr=_t.selectors,pt.expr[":"]=pt.expr.pseudos,pt.uniqueSort=pt.unique=_t.uniqueSort,pt.text=_t.getText,pt.isXMLDoc=_t.isXML,pt.contains=_t.contains;var bt=function(t,e,i){for(var n=[],s=i!==undefined;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&pt(t).is(i))break;n.push(t)}return n},wt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},xt=pt.expr.match.needsContext,kt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ct=/^.[^:#\[\.,]*$/;pt.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?pt.find.matchesSelector(n,t)?[n]:[]:pt.find.matches(t,pt.grep(e,function(t){return 1===t.nodeType}))},pt.fn.extend({find:function(t){var e,i=[],n=this,s=n.length;if("string"!=typeof t)return this.pushStack(pt(t).filter(function(){for(e=0;e<s;e++)if(pt.contains(n[e],this))return!0}));for(e=0;e<s;e++)pt.find(t,n[e],i);return(i=this.pushStack(s>1?pt.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&xt.test(t)?pt(t):t||[],!1).length}});var Dt,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(pt.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||Dt,"string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Tt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof pt?e[0]:e,pt.merge(this,pt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:st,!0)),kt.test(n[1])&&pt.isPlainObject(e))for(n in e)pt.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=st.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return Dt.find(t);this.length=1,this[0]=s}return this.context=st,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):pt.isFunction(t)?"undefined"!=typeof i.ready?i.ready(t):t(pt):(t.selector!==undefined&&(this.selector=t.selector,this.context=t.context),pt.makeArray(t,this))}).prototype=pt.fn,Dt=pt(st);var St=/^(?:parents|prev(?:Until|All))/,Et={children:!0,contents:!0,next:!0,prev:!0};pt.fn.extend({has:function(t){var e,i=pt(t,this),n=i.length;return this.filter(function(){for(e=0;e<n;e++)if(pt.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,r=[],o=xt.test(t)||"string"!=typeof t?pt(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&pt.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?pt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?pt.inArray(this[0],pt(t)):pt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(pt.uniqueSort(pt.merge(this.get(),pt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),pt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return bt(t,"parentNode")},parentsUntil:function(t,e,i){return bt(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return bt(t,"nextSibling")},prevAll:function(t){return bt(t,"previousSibling")},nextUntil:function(t,e,i){return bt(t,"nextSibling",i)},prevUntil:function(t,e,i){return bt(t,"previousSibling",i)},siblings:function(t){return wt((t.parentNode||{}).firstChild,t)},children:function(t){return wt(t.firstChild)},contents:function(t){return pt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:pt.merge([],t.childNodes)}},function(t,e){pt.fn[t]=function(i,n){var s=pt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=pt.filter(n,s)),this.length>1&&(Et[t]||(s=pt.uniqueSort(s)),St.test(t)&&(s=s.reverse())),this.pushStack(s)}});var Pt,Nt,Mt=/\S+/g;for(Nt in pt.Callbacks=function(t){t="string"==typeof t?r(t):pt.extend({},t);var e,i,n,s,o=[],a=[],l=-1,u=function(){for(s=t.once,n=e=!0;a.length;l=-1)for(i=a.shift();++l<o.length;)!1===o[l].apply(i[0],i[1])&&t.stopOnFalse&&(l=o.length,i=!1);t.memory||(i=!1),e=!1,s&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(l=o.length-1,a.push(i)),function n(e){pt.each(e,function(e,i){pt.isFunction(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==pt.type(i)&&n(i)})}(arguments),i&&!e&&u()),this},remove:function(){return pt.each(arguments,function(t,e){for(var i;(i=pt.inArray(e,o,i))>-1;)o.splice(i,1),i<=l&&l--}),this},has:function(t){return t?pt.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=!0,i||c.disable(),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},pt.extend({Deferred:function(t){var e=[["resolve","done",pt.Callbacks("once memory"),"resolved"],["reject","fail",pt.Callbacks("once memory"),"rejected"],["notify","progress",pt.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return pt.Deferred(function(i){pt.each(e,function(e,r){var o=pt.isFunction(t[e])&&t[e];s[r[1]](function(){var t=o&&o.apply(this,arguments);t&&pt.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?pt.extend(t,n):n}},s={};return n.pipe=n.then,pt.each(e,function(t,r){var o=r[2],a=r[3];n[r[1]]=o.add,a&&o.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[r[0]]=function(){return s[r[0]+"With"](this===s?n:this,arguments),this},s[r[0]+"With"]=o.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,r=rt.call(arguments),o=r.length,a=1!==o||t&&pt.isFunction(t.promise)?o:0,l=1===a?t:pt.Deferred(),u=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?rt.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(o>1)for(e=new Array(o),i=new Array(o),n=new Array(o);s<o;s++)r[s]&&pt.isFunction(r[s].promise)?r[s].promise().progress(u(s,i,e)).done(u(s,n,r)).fail(l.reject):--a;return a||l.resolveWith(n,r),l.promise()}}),pt.fn.ready=function(t){return pt.ready.promise().done(t),this},pt.extend({isReady:!1,readyWait:1,holdReady:function(t){t?pt.readyWait++:pt.ready(!0)},ready:function(t){(!0===t?--pt.readyWait:pt.isReady)||(pt.isReady=!0,!0!==t&&--pt.readyWait>0||(Pt.resolveWith(st,[pt]),pt.fn.triggerHandler&&(pt(st).triggerHandler("ready"),pt(st).off("ready"))))}}),pt.ready.promise=function(e){if(!Pt)if(Pt=pt.Deferred(),"complete"===st.readyState||"loading"!==st.readyState&&!st.documentElement.doScroll)t.setTimeout(pt.ready);else if(st.addEventListener)st.addEventListener("DOMContentLoaded",a),t.addEventListener("load",a);else{st.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var i=!1;try{i=null==t.frameElement&&st.documentElement}catch(n){}i&&i.doScroll&&function s(){if(!pt.isReady){try{i.doScroll("left")}catch(n){return t.setTimeout(s,50)}o(),pt.ready()}}()}return Pt.promise(e)},pt.ready.promise(),pt(dt))break;dt.ownFirst="0"===Nt,dt.inlineBlockNeedsLayout=!1,pt(function(){var t,e,i,n;(i=st.getElementsByTagName("body")[0])&&i.style&&(e=st.createElement("div"),(n=st.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",dt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(n))}),function(){var t=st.createElement("div");dt.deleteExpando=!0;try{delete t.test}catch(e){dt.deleteExpando=!1}t=null}();var At,It=function(t){var e=pt.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return(1===i||9===i)&&(!e||!0!==e&&t.getAttribute("classid")===e)},jt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$t=/([A-Z])/g;pt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?pt.cache[t[pt.expando]]:t[pt.expando])&&!u(t)},data:function(t,e,i){return c(t,e,i)},removeData:function(t,e){return h(t,e)},_data:function(t,e,i){return c(t,e,i,!0)},_removeData:function(t,e){return h(t,e,!0)}}),pt.fn.extend({data:function(t,e){var i,n,s,r=this[0],o=r&&r.attributes;if(t===undefined){if(this.length&&(s=pt.data(r),1===r.nodeType&&!pt._data(r,"parsedAttrs"))){for(i=o.length;i--;)o[i]&&0===(n=o[i].name).indexOf("data-")&&l(r,n=pt.camelCase(n.slice(5)),s[n]);pt._data(r,"parsedAttrs",!0)}return s}return"object"==typeof t?this.each(function(){pt.data(this,t)}):arguments.length>1?this.each(function(){pt.data(this,t,e)}):r?l(r,t,pt.data(r,t)):undefined},removeData:function(t){return this.each(function(){pt.removeData(this,t)})}}),pt.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=pt._data(t,e),i&&(!n||pt.isArray(i)?n=pt._data(t,e,pt.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=pt.queue(t,e),n=i.length,s=i.shift(),r=pt._queueHooks(t,e),o=function(){pt.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete r.stop,s.call(t,o,r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return pt._data(t,i)||pt._data(t,i,{empty:pt.Callbacks("once memory").add(function(){pt._removeData(t,e+"queue"),pt._removeData(t,i)})})}}),pt.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?pt.queue(this[0],t):e===undefined?this:this.each(function(){var i=pt.queue(this,t,e);pt._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&pt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){pt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=pt.Deferred(),r=this,o=this.length,a=function(){--n||s.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=undefined),t=t||"fx";o--;)(i=pt._data(r[o],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}}),dt.shrinkWrapBlocks=function(){return null!=At?At:(At=!1,(e=st.getElementsByTagName("body")[0])&&e.style?(t=st.createElement("div"),(i=st.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(i).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(st.createElement("div")).style.width="5px",At=3!==t.offsetWidth),e.removeChild(i),At):void 0);var t,e,i};var Ot,Ht,Lt,zt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Wt=new RegExp("^(?:([+-])=|)("+zt+")([a-z%]*)$","i"),Ft=["Top","Right","Bottom","Left"],Rt=function(t,e){return t=e||t,"none"===pt.css(t,"display")||!pt.contains(t.ownerDocument,t)},qt=function(t,e,i,n,s,r,o){var a=0,l=t.length,u=null==i;if("object"===pt.type(i))for(a in s=!0,i)qt(t,e,a,i[a],!0,r,o);else if(n!==undefined&&(s=!0,pt.isFunction(n)||(o=!0),u&&(o?(e.call(t,n),e=null):(u=e,e=function(t,e,i){return u.call(pt(t),i)})),e))for(;a<l;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return s?t:u?e.call(t):l?e(t[0],i):r},Bt=/^(?:checkbox|radio)$/i,Vt=/<([\w:-]+)/,Yt=/^$|\/(?:java|ecma)script/i,Ut=/^\s+/,Qt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Ot=st.createElement("div"),Ht=st.createDocumentFragment(),Lt=st.createElement("input"),Ot.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",dt.leadingWhitespace=3===Ot.firstChild.nodeType,dt.tbody=!Ot.getElementsByTagName("tbody").length,dt.htmlSerialize=!!Ot.getElementsByTagName("link").length,dt.html5Clone="<:nav></:nav>"!==st.createElement("nav").cloneNode(!0).outerHTML,Lt.type="checkbox",Lt.checked=!0,Ht.appendChild(Lt),dt.appendChecked=Lt.checked,Ot.innerHTML="<textarea>x</textarea>",dt.noCloneChecked=!!Ot.cloneNode(!0).lastChild.defaultValue,Ht.appendChild(Ot),(Lt=st.createElement("input")).setAttribute("type","radio"),Lt.setAttribute("checked","checked"),Lt.setAttribute("name","t"),Ot.appendChild(Lt),dt.checkClone=Ot.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.noCloneEvent=!!Ot.addEventListener,Ot[pt.expando]=1,dt.attributes=!Ot.getAttribute(pt.expando);var Kt={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:dt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Kt.optgroup=Kt.option,Kt.tbody=Kt.tfoot=Kt.colgroup=Kt.caption=Kt.thead,Kt.th=Kt.td;var Xt=/<|&#?\w+;/,Gt=/<tbody/i;!function(){var e,i,n=st.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})i="on"+e,(dt[e]=i in t)||(n.setAttribute(i,"t"),dt[e]=!1===n.attributes[i].expando);n=null}();var Zt=/^(?:input|select|textarea)$/i,Jt=/^key/,te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ee=/^(?:focusinfocus|focusoutblur)$/,ie=/^([^.]*)(?:\.(.+)|)/;pt.event={global:{},add:function(t,e,i,n,s){var r,o,a,l,u,c,h,d,f,p,m,g=pt._data(t);if(g){for(i.handler&&(i=(l=i).handler,s=l.selector),i.guid||(i.guid=pt.guid++),(o=g.events)||(o=g.events={}),(c=g.handle)||((c=g.handle=function(t){return void 0===pt||t&&pt.event.triggered===t.type?undefined:pt.event.dispatch.apply(c.elem,arguments)}).elem=t),a=(e=(e||"").match(Mt)||[""]).length;a--;)f=m=(r=ie.exec(e[a])||[])[1],p=(r[2]||"").split(".").sort(),f&&(u=pt.event.special[f]||{},f=(s?u.delegateType:u.bindType)||f,u=pt.event.special[f]||{},h=pt.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&pt.expr.match.needsContext.test(s),namespace:p.join(".")},l),(d=o[f])||((d=o[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,p,c)||(t.addEventListener?t.addEventListener(f,c,!1):t.attachEvent&&t.attachEvent("on"+f,c))),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),pt.event.global[f]=!0);t=null}},remove:function(t,e,i,n,s){var r,o,a,l,u,c,h,d,f,p,m,g=pt.hasData(t)&&pt._data(t);if(g&&(c=g.events)){for(u=(e=(e||"").match(Mt)||[""]).length;u--;)if(f=m=(a=ie.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=pt.event.special[f]||{},d=c[f=(n?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=d.length;r--;)o=d[r],!s&&m!==o.origType||i&&i.guid!==o.guid||a&&!a.test(o.namespace)||n&&n!==o.selector&&("**"!==n||!o.selector)||(d.splice(r,1),o.selector&&d.delegateCount--,h.remove&&h.remove.call(t,o));l&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,g.handle)||pt.removeEvent(t,f,g.handle),delete c[f])}else for(f in c)pt.event.remove(t,f+e[u],i,n,!0);pt.isEmptyObject(c)&&(delete g.handle,pt._removeData(t,"events"))}},trigger:function(e,i,n,s){var r,o,a,l,u,c,h,d=[n||st],f=ht.call(e,"type")?e.type:e,p=ht.call(e,"namespace")?e.namespace.split("."):[];if(a=c=n=n||st,3!==n.nodeType&&8!==n.nodeType&&!ee.test(f+pt.event.triggered)&&(f.indexOf(".")>-1&&(f=(p=f.split(".")).shift(),p.sort()),o=f.indexOf(":")<0&&"on"+f,(e=e[pt.expando]?e:new pt.Event(f,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=undefined,e.target||(e.target=n),i=null==i?[e]:pt.makeArray(i,[e]),u=pt.event.special[f]||{},s||!u.trigger||!1!==u.trigger.apply(n,i))){if(!s&&!u.noBubble&&!pt.isWindow(n)){for(l=u.delegateType||f,ee.test(l+f)||(a=a.parentNode);a;a=a.parentNode)d.push(a),c=a;c===(n.ownerDocument||st)&&d.push(c.defaultView||c.parentWindow||t)}for(h=0;(a=d[h++])&&!e.isPropagationStopped();)e.type=h>1?l:u.bindType||f,(r=(pt._data(a,"events")||{})[e.type]&&pt._data(a,"handle"))&&r.apply(a,i),(r=o&&a[o])&&r.apply&&It(a)&&(e.result=r.apply(a,i),!1===e.result&&e.preventDefault());if(e.type=f,!s&&!e.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),i))&&It(n)&&o&&n[f]&&!pt.isWindow(n)){(c=n[o])&&(n[o]=null),pt.event.triggered=f;try{n[f]()}catch(m){}pt.event.triggered=undefined,c&&(n[o]=c)}return e.result}},dispatch:function(t){t=pt.event.fix(t);var e,i,n,s,r,o=[],a=rt.call(arguments),l=(pt._data(this,"events")||{})[t.type]||[],u=pt.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(o=pt.event.handlers.call(this,t,l),e=0;(s=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(r=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,(n=((pt.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a))!==undefined&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,r,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i<a;i++)n[s=(r=e[i]).selector+" "]===undefined&&(n[s]=r.needsContext?pt(s,this).index(l)>-1:pt.find(s,this,null,[l]).length),n[s]&&n.push(r);n.length&&o.push({elem:l,handlers:n})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},fix:function(t){if(t[pt.expando])return t;var e,i,n,s=t.type,r=t,o=this.fixHooks[s];for(o||(this.fixHooks[s]=o=te.test(s)?this.mouseHooks:Jt.test(s)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new pt.Event(r),e=n.length;e--;)t[i=n[e]]=r[i];return t.target||(t.target=r.srcElement||st),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,o.filter?o.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,r=e.button,o=e.fromElement;return null==t.pageX&&null!=e.clientX&&(s=(n=t.target.ownerDocument||st).documentElement,i=n.body,t.pageX=e.clientX+(s&&s.scrollLeft||i&&i.scrollLeft||0)-(s&&s.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(s&&s.scrollTop||i&&i.scrollTop||0)-(s&&s.clientTop||i&&i.clientTop||0)),!t.relatedTarget&&o&&(t.relatedTarget=o===t.target?e.toElement:o),t.which||r===undefined||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pt.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return pt.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){t.result!==undefined&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i){var n=pt.extend(new pt.Event,i,{type:t,isSimulated:!0});pt.event.trigger(n,null,e),n.isDefaultPrevented()&&i.preventDefault()}},pt.removeEvent=st.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)}:function(t,e,i){var n="on"+e;t.detachEvent&&("undefined"==typeof t[n]&&(t[n]=null),t.detachEvent(n,i))},pt.Event=function(t,e){if(!(this instanceof pt.Event))return new pt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===undefined&&!1===t.returnValue?y:b):this.type=t,e&&pt.extend(this,e),this.timeStamp=t&&t.timeStamp||pt.now(),this[pt.expando]=!0},pt.Event.prototype={constructor:pt.Event,isDefaultPrevented:b,isPropagationStopped:b,isImmediatePropagationStopped:b,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},pt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){pt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,r=t.handleObj;return s&&(s===n||pt.contains(n,s))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),dt.submit||(pt.event.special.submit={setup:function(){if(pt.nodeName(this,"form"))return!1;pt.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,i=pt.nodeName(e,"input")||pt.nodeName(e,"button")?pt.prop(e,"form"):undefined;i&&!pt._data(i,"submit")&&(pt.event.add(i,"submit._submit",function(t){t._submitBubble=!0}),pt._data(i,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&pt.event.simulate("submit",this.parentNode,t))},teardown:function(){if(pt.nodeName(this,"form"))return!1;pt.event.remove(this,"._submit")}}),dt.change||(pt.event.special.change={setup:function(){if(Zt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(pt.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),pt.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),pt.event.simulate("change",this,t)})),!1;pt.event.add(this,"beforeactivate._change",function(t){var e=t.target;Zt.test(e.nodeName)&&!pt._data(e,"change")&&(pt.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||pt.event.simulate("change",this.parentNode,t)}),pt._data(e,"change",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return pt.event.remove(this,"._change"),!Zt.test(this.nodeName)}}),dt.focusin||pt.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){pt.event.simulate(e,t.target,pt.event.fix(t))};pt.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=pt._data(n,e);s||n.addEventListener(t,i,!0),pt._data(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=pt._data(n,e)-1;s?pt._data(n,e,s):(n.removeEventListener(t,i,!0),pt._removeData(n,e))}}}),pt.fn.extend({on:function(t,e,i,n){return x(this,t,e,i,n)},one:function(t,e,i,n){return x(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,pt(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=undefined),!1===i&&(i=b),this.each(function(){pt.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){pt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return pt.event.trigger(t,e,i,!0)}});var ne=/ jQuery\d+="(?:null|\d+)"/g,se=new RegExp("<(?:"+Qt+")[\\s/>]","i"),re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,oe=/<script|<style|<link/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,le=/^true\/(.*)/,ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ce=f(st).appendChild(st.createElement("div"));pt.extend({htmlPrefilter:function(t){return t.replace(re,"<$1></$2>")},clone:function(t,e,i){var n,s,r,o,a,l=pt.contains(t.ownerDocument,t);if(dt.html5Clone||pt.isXMLDoc(t)||!se.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(ce.innerHTML=t.outerHTML,ce.removeChild(r=ce.firstChild)),!(dt.noCloneEvent&&dt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||pt.isXMLDoc(t)))for(n=p(r),a=p(t),o=0;null!=(s=a[o]);++o)n[o]&&S(s,n[o]);if(e)if(i)for(a=a||p(t),n=n||p(r),o=0;null!=(s=a[o]);o++)T(s,n[o]);else T(t,r);return(n=p(r,"script")).length>0&&m(n,!l&&p(t,"script")),n=a=s=null,r},cleanData:function(t,e){for(var i,n,s,r,o=0,a=pt.expando,l=pt.cache,u=dt.attributes,c=pt.event.special;null!=(i=t[o]);o++)if((e||It(i))&&(r=(s=i[a])&&l[s])){if(r.events)for(n in r.events)c[n]?pt.event.remove(i,n):pt.removeEvent(i,n,r.handle);l[s]&&(delete l[s],u||"undefined"==typeof i.removeAttribute?i[a]=undefined:i.removeAttribute(a),nt.push(s))}}}),pt.fn.extend({domManip:E,detach:function(t){return P(this,t,!0)},remove:function(t){return P(this,t)},text:function(t){return qt(this,function(t){return t===undefined?pt.text(this):this.empty().append((this[0]&&this[0].ownerDocument||st).createTextNode(t))},null,t,arguments.length)},append:function(){return E(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||k(this,t).appendChild(t)})},prepend:function(){return E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=k(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&pt.cleanData(p(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&pt.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return pt.clone(this,t,e)})},html:function(t){return qt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(t===undefined)return 1===e.nodeType?e.innerHTML.replace(ne,""):undefined;if("string"==typeof t&&!oe.test(t)&&(dt.htmlSerialize||!se.test(t))&&(dt.leadingWhitespace||!Ut.test(t))&&!Kt[(Vt.exec(t)||["",""])[1].toLowerCase()]){t=pt.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(pt.cleanData(p(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return E(this,arguments,function(e){var i=this.parentNode;pt.inArray(this,t)<0&&(pt.cleanData(p(this)),i&&i.replaceChild(e,this))},t)}}),pt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){pt.fn[t]=function(t){for(var i,n=0,s=[],r=pt(t),o=r.length-1;n<=o;n++)i=n===o?this:this.clone(!0),pt(r[n])[e](i),at.apply(s,i.get());return this.pushStack(s)}});var he,de={HTML:"block",BODY:"block"},fe=/^margin/,pe=new RegExp("^("+zt+")(?!px)[a-z%]+$","i"),me=function(t,e,i,n){var s,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in s=i.apply(t,n||[]),e)t.style[r]=o[r];return s},ge=st.documentElement;!function(){function e(){var e,c,h=st.documentElement;h.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=s=a=!1,n=o=!0,t.getComputedStyle&&(c=t.getComputedStyle(u),i="1%"!==(c||{}).top,a="2px"===(c||{}).marginLeft,s="4px"===(c||{width:"4px"}).width,u.style.marginRight="50%",n="4px"===(c||{marginRight:"4px"}).marginRight,(e=u.appendChild(st.createElement("div"))).style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",u.style.width="1px",o=!parseFloat((t.getComputedStyle(e)||{}).marginRight),u.removeChild(e)),u.style.display="none",(r=0===u.getClientRects().length)&&(u.style.display="",u.innerHTML="<table><tr><td></td><td>t</td></tr></table>",
u.childNodes[0].style.borderCollapse="separate",(e=u.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",r=0===e[0].offsetHeight)),h.removeChild(l)}var i,n,s,r,o,a,l=st.createElement("div"),u=st.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",dt.opacity="0.5"===u.style.opacity,dt.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",dt.clearCloneStyle="content-box"===u.style.backgroundClip,(l=st.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),dt.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,pt.extend(dt,{reliableHiddenOffsets:function(){return null==i&&e(),r},boxSizingReliable:function(){return null==i&&e(),s},pixelMarginRight:function(){return null==i&&e(),n},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),o},reliableMarginLeft:function(){return null==i&&e(),a}}))}();var ve,ye,_e=/^(top|right|bottom|left)$/;t.getComputedStyle?(ve=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},ye=function(t,e,i){var n,s,r,o,a=t.style;return""!==(o=(i=i||ve(t))?i.getPropertyValue(e)||i[e]:undefined)&&o!==undefined||pt.contains(t.ownerDocument,t)||(o=pt.style(t,e)),i&&!dt.pixelMarginRight()&&pe.test(o)&&fe.test(e)&&(n=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=s,a.maxWidth=r),o===undefined?o:o+""}):ge.currentStyle&&(ve=function(t){return t.currentStyle},ye=function(t,e,i){var n,s,r,o,a=t.style;return null==(o=(i=i||ve(t))?i[e]:undefined)&&a&&a[e]&&(o=a[e]),pe.test(o)&&!_e.test(e)&&(n=a.left,(r=(s=t.runtimeStyle)&&s.left)&&(s.left=t.currentStyle.left),a.left="fontSize"===e?"1em":o,o=a.pixelLeft+"px",a.left=n,r&&(s.left=r)),o===undefined?o:o+""||"auto"});var be=/alpha\([^)]*\)/i,we=/opacity\s*=\s*([^)]*)/i,xe=/^(none|table(?!-c[ea]).+)/,ke=new RegExp("^("+zt+")(.*)$","i"),Ce={position:"absolute",visibility:"hidden",display:"block"},De={letterSpacing:"0",fontWeight:"400"},Te=["Webkit","O","Moz","ms"],Se=st.createElement("div").style;pt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=ye(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":dt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,r,o,a=pt.camelCase(e),l=t.style;if(e=pt.cssProps[a]||(pt.cssProps[a]=I(a)||a),o=pt.cssHooks[e]||pt.cssHooks[a],i===undefined)return o&&"get"in o&&(s=o.get(t,!1,n))!==undefined?s:l[e];if("string"===(r=typeof i)&&(s=Wt.exec(i))&&s[1]&&(i=d(t,e,s),r="number"),null!=i&&i==i&&("number"===r&&(i+=s&&s[3]||(pt.cssNumber[a]?"":"px")),dt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),!(o&&"set"in o&&(i=o.set(t,i,n))===undefined)))try{l[e]=i}catch(u){}}},css:function(t,e,i,n){var s,r,o,a=pt.camelCase(e);return e=pt.cssProps[a]||(pt.cssProps[a]=I(a)||a),(o=pt.cssHooks[e]||pt.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,i)),r===undefined&&(r=ye(t,e,n)),"normal"===r&&e in De&&(r=De[e]),""===i||i?(s=parseFloat(r),!0===i||isFinite(s)?s||0:r):r}}),pt.each(["height","width"],function(t,e){pt.cssHooks[e]={get:function(t,i,n){if(i)return xe.test(pt.css(t,"display"))&&0===t.offsetWidth?me(t,Ce,function(){return H(t,e,n)}):H(t,e,n)},set:function(t,i,n){var s=n&&ve(t);return $(t,i,n?O(t,e,n,dt.boxSizing&&"border-box"===pt.css(t,"boxSizing",!1,s),s):0)}}}),dt.opacity||(pt.cssHooks.opacity={get:function(t,e){return we.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=pt.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=n&&n.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===pt.trim(r.replace(be,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||n&&!n.filter)||(i.filter=be.test(r)?r.replace(be,s):r+" "+s)}}),pt.cssHooks.marginRight=A(dt.reliableMarginRight,function(t,e){if(e)return me(t,{display:"inline-block"},ye,[t,"marginRight"])}),pt.cssHooks.marginLeft=A(dt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(ye(t,"marginLeft"))||(pt.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-me(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px"}),pt.each({margin:"",padding:"",border:"Width"},function(t,e){pt.cssHooks[t+e]={expand:function(i){for(var n=0,s={},r="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+Ft[n]+e]=r[n]||r[n-2]||r[0];return s}},fe.test(t)||(pt.cssHooks[t+e].set=$)}),pt.fn.extend({css:function(t,e){return qt(this,function(t,e,i){var n,s,r={},o=0;if(pt.isArray(e)){for(n=ve(t),s=e.length;o<s;o++)r[e[o]]=pt.css(t,e[o],!1,n);return r}return i!==undefined?pt.style(t,e,i):pt.css(t,e)},t,e,arguments.length>1)},show:function(){return j(this,!0)},hide:function(){return j(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Rt(this)?pt(this).show():pt(this).hide()})}}),pt.Tween=L,L.prototype={constructor:L,init:function(t,e,i,n,s,r){this.elem=t,this.prop=i,this.easing=s||pt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(pt.cssNumber[i]?"":"px")},cur:function(){var t=L.propHooks[this.prop];return t&&t.get?t.get(this):L.propHooks._default.get(this)},run:function(t){var e,i=L.propHooks[this.prop];return this.options.duration?this.pos=e=pt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=pt.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){pt.fx.step[t.prop]?pt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[pt.cssProps[t.prop]]&&!pt.cssHooks[t.prop]?t.elem[t.prop]=t.now:pt.style(t.elem,t.prop,t.now+t.unit)}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},pt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},pt.fx=L.prototype.init,pt.fx.step={};var Ee,Pe,Ne,Me,Ae,Ie,je,$e=/^(?:toggle|show|hide)$/,Oe=/queueHooks$/;pt.Animation=pt.extend(B,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return d(i.elem,t,Wt.exec(e),i),i}]},tweener:function(t,e){pt.isFunction(t)?(e=t,t=["*"]):t=t.match(Mt);for(var i,n=0,s=t.length;n<s;n++)i=t[n],B.tweeners[i]=B.tweeners[i]||[],B.tweeners[i].unshift(e)},prefilters:[R],prefilter:function(t,e){e?B.prefilters.unshift(t):B.prefilters.push(t)}}),pt.speed=function(t,e,i){var n=t&&"object"==typeof t?pt.extend({},t):{complete:i||!i&&e||pt.isFunction(t)&&t,duration:t,easing:i&&e||e&&!pt.isFunction(e)&&e};return n.duration=pt.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in pt.fx.speeds?pt.fx.speeds[n.duration]:pt.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){pt.isFunction(n.old)&&n.old.call(this),n.queue&&pt.dequeue(this,n.queue)},n},pt.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Rt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=pt.isEmptyObject(t),r=pt.speed(e,i,n),o=function(){var e=B(this,pt.extend({},t),r);(s||pt._data(this,"finish"))&&e.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=undefined),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",r=pt.timers,o=pt._data(this);if(s)o[s]&&o[s].stop&&n(o[s]);else for(s in o)o[s]&&o[s].stop&&Oe.test(s)&&n(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=t&&r[s].queue!==t||(r[s].anim.stop(i),e=!1,r.splice(s,1));!e&&i||pt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=pt._data(this),n=i[t+"queue"],s=i[t+"queueHooks"],r=pt.timers,o=n?n.length:0;for(i.finish=!0,pt.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),pt.each(["toggle","show","hide"],function(t,e){var i=pt.fn[e];pt.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(W(e,!0),t,n,s)}}),pt.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){pt.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),pt.timers=[],pt.fx.tick=function(){var t,e=pt.timers,i=0;for(Ee=pt.now();i<e.length;i++)(t=e[i])()||e[i]!==t||e.splice(i--,1);e.length||pt.fx.stop(),Ee=undefined},pt.fx.timer=function(t){pt.timers.push(t),t()?pt.fx.start():pt.timers.pop()},pt.fx.interval=13,pt.fx.start=function(){Pe||(Pe=t.setInterval(pt.fx.tick,pt.fx.interval))},pt.fx.stop=function(){t.clearInterval(Pe),Pe=null},pt.fx.speeds={slow:600,fast:200,_default:400},pt.fn.delay=function(e,i){return e=pt.fx&&pt.fx.speeds[e]||e,i=i||"fx",this.queue(i,function(i,n){var s=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(s)}})},Me=st.createElement("input"),Ae=st.createElement("div"),Ie=st.createElement("select"),je=Ie.appendChild(st.createElement("option")),(Ae=st.createElement("div")).setAttribute("className","t"),Ae.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",Ne=Ae.getElementsByTagName("a")[0],Me.setAttribute("type","checkbox"),Ae.appendChild(Me),(Ne=Ae.getElementsByTagName("a")[0]).style.cssText="top:1px",dt.getSetAttribute="t"!==Ae.className,dt.style=/top/.test(Ne.getAttribute("style")),dt.hrefNormalized="/a"===Ne.getAttribute("href"),dt.checkOn=!!Me.value,dt.optSelected=je.selected,dt.enctype=!!st.createElement("form").enctype,Ie.disabled=!0,dt.optDisabled=!je.disabled,(Me=st.createElement("input")).setAttribute("value",""),dt.input=""===Me.getAttribute("value"),Me.value="t",Me.setAttribute("type","radio"),dt.radioValue="t"===Me.value;var He=/\r/g,Le=/[\x20\t\r\n\f]+/g;pt.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=pt.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,pt(this).val()):t)?s="":"number"==typeof s?s+="":pt.isArray(s)&&(s=pt.map(s,function(t){return null==t?"":t+""})),(e=pt.valHooks[this.type]||pt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&e.set(this,s,"value")!==undefined||(this.value=s))})):s?(e=pt.valHooks[s.type]||pt.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&(i=e.get(s,"value"))!==undefined?i:"string"==typeof(i=s.value)?i.replace(He,""):null==i?"":i:void 0}}),pt.extend({valHooks:{option:{get:function(t){var e=pt.find.attr(t,"value");return null!=e?e:pt.trim(pt.text(t)).replace(Le," ")}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,r="select-one"===t.type||s<0,o=r?null:[],a=r?s+1:n.length,l=s<0?a:r?s:0;l<a;l++)if(((i=n[l]).selected||l===s)&&(dt.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!pt.nodeName(i.parentNode,"optgroup"))){if(e=pt(i).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var i,n,s=t.options,r=pt.makeArray(e),o=s.length;o--;)if(n=s[o],pt.inArray(pt.valHooks.option.get(n),r)>-1)try{n.selected=i=!0}catch(_){n.scrollHeight}else n.selected=!1;return i||(t.selectedIndex=-1),s}}}}),pt.each(["radio","checkbox"],function(){pt.valHooks[this]={set:function(t,e){if(pt.isArray(e))return t.checked=pt.inArray(pt(t).val(),e)>-1}},dt.checkOn||(pt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ze,We,Fe=pt.expr.attrHandle,Re=/^(?:checked|selected)$/i,qe=dt.getSetAttribute,Be=dt.input;pt.fn.extend({attr:function(t,e){return qt(this,pt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){pt.removeAttr(this,t)})}}),pt.extend({attr:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof t.getAttribute?pt.prop(t,e,i):(1===r&&pt.isXMLDoc(t)||(e=e.toLowerCase(),s=pt.attrHooks[e]||(pt.expr.match.bool.test(e)?We:ze)),i!==undefined?null===i?void pt.removeAttr(t,e):s&&"set"in s&&(n=s.set(t,i,e))!==undefined?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=pt.find.attr(t,e))?undefined:n)},attrHooks:{type:{set:function(t,e){if(!dt.radioValue&&"radio"===e&&pt.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,s=0,r=e&&e.match(Mt);if(r&&1===t.nodeType)for(;i=r[s++];)n=pt.propFix[i]||i,pt.expr.match.bool.test(i)?Be&&qe||!Re.test(i)?t[n]=!1:t[pt.camelCase("default-"+i)]=t[n]=!1:pt.attr(t,i,""),t.removeAttribute(qe?i:n)}}),We={set:function(t,e,i){return!1===e?pt.removeAttr(t,i):Be&&qe||!Re.test(i)?t.setAttribute(!qe&&pt.propFix[i]||i,i):t[pt.camelCase("default-"+i)]=t[i]=!0,i}},pt.each(pt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Fe[e]||pt.find.attr;Be&&qe||!Re.test(e)?Fe[e]=function(t,e,n){var s,r;return n||(r=Fe[e],Fe[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,Fe[e]=r),s}:Fe[e]=function(t,e,i){if(!i)return t[pt.camelCase("default-"+e)]?e.toLowerCase():null}}),Be&&qe||(pt.attrHooks.value={set:function(t,e,i){if(!pt.nodeName(t,"input"))return ze&&ze.set(t,e,i);t.defaultValue=e}}),qe||(ze={set:function(t,e,i){var n=t.getAttributeNode(i);if(n||t.setAttributeNode(n=t.ownerDocument.createAttribute(i)),n.value=e+="","value"===i||e===t.getAttribute(i))return e}},Fe.id=Fe.name=Fe.coords=function(t,e,i){var n;if(!i)return(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},pt.valHooks.button={get:function(t,e){var i=t.getAttributeNode(e);if(i&&i.specified)return i.value},set:ze.set},pt.attrHooks.contenteditable={set:function(t,e,i){ze.set(t,""!==e&&e,i)}},pt.each(["width","height"],function(t,e){pt.attrHooks[e]={set:function(t,i){if(""===i)return t.setAttribute(e,"auto"),i}}})),dt.style||(pt.attrHooks.style={get:function(t){return t.style.cssText||undefined},set:function(t,e){return t.style.cssText=e+""}});var Ve=/^(?:input|select|textarea|button|object)$/i,Ye=/^(?:a|area)$/i;pt.fn.extend({prop:function(t,e){return qt(this,pt.prop,t,e,arguments.length>1)},removeProp:function(t){return t=pt.propFix[t]||t,this.each(function(){try{this[t]=undefined,delete this[t]}catch(e){}})}}),pt.extend({prop:function(t,e,i){var n,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&pt.isXMLDoc(t)||(e=pt.propFix[e]||e,s=pt.propHooks[e]),i!==undefined?s&&"set"in s&&(n=s.set(t,i,e))!==undefined?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=pt.find.attr(t,"tabindex");return e?parseInt(e,10):Ve.test(t.nodeName)||Ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),dt.hrefNormalized||pt.each(["href","src"],function(t,e){pt.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),dt.optSelected||(pt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),pt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pt.propFix[this.toLowerCase()]=this}),dt.enctype||(pt.propFix.enctype="encoding");var Ue=/[\t\r\n\f]/g;pt.fn.extend({addClass:function(t){var e,i,n,s,r,o,a,l=0;if(pt.isFunction(t))return this.each(function(e){pt(this).addClass(t.call(this,e,V(this)))});if("string"==typeof t&&t)for(e=t.match(Mt)||[];i=this[l++];)if(s=V(i),n=1===i.nodeType&&(" "+s+" ").replace(Ue," ")){for(o=0;r=e[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");s!==(a=pt.trim(n))&&pt.attr(i,"class",a)}return this},removeClass:function(t){var e,i,n,s,r,o,a,l=0;if(pt.isFunction(t))return this.each(function(e){pt(this).removeClass(t.call(this,e,V(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Mt)||[];i=this[l++];)if(s=V(i),n=1===i.nodeType&&(" "+s+" ").replace(Ue," ")){for(o=0;r=e[o++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s!==(a=pt.trim(n))&&pt.attr(i,"class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):pt.isFunction(t)?this.each(function(i){pt(this).toggleClass(t.call(this,i,V(this),e),e)}):this.each(function(){var e,n,s,r;if("string"===i)for(n=0,s=pt(this),r=t.match(Mt)||[];e=r[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else t!==undefined&&"boolean"!==i||((e=V(this))&&pt._data(this,"__className__",e),pt.attr(this,"class",e||!1===t?"":pt._data(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+V(i)+" ").replace(Ue," ").indexOf(e)>-1)return!0;return!1}}),pt.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(t,e){pt.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),pt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Qe=t.location,Ke=pt.now(),Xe=/\?/,Ge=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pt.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,s=pt.trim(e+"");return s&&!pt.trim(s.replace(Ge,function(t,e,s,r){return i&&e&&(n=0),0===n?t:(i=s||e,n+=!r-!s,"")}))?Function("return "+s)():pt.error("Invalid JSON: "+e)},pt.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(n=new t.DOMParser,i=n.parseFromString(e,"text/xml")):((i=new t.ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(e))}catch(s){i=undefined}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||pt.error("Invalid XML: "+e),i};var Ze=/#.*$/,Je=/([?&])_=[^&]*/,ti=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ei=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ii=/^(?:GET|HEAD)$/,ni=/^\/\//,si=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ri={},oi={},ai="*/".concat("*"),li=Qe.href,ui=si.exec(li.toLowerCase())||[];pt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:li,type:"GET",isLocal:ei.test(ui[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ai,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pt.parseJSON,"text xml":pt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Q(Q(t,pt.ajaxSettings),e):Q(pt.ajaxSettings,t)},ajaxPrefilter:Y(ri),ajaxTransport:Y(oi),ajax:function(e,i){function n(e,i,n,s){var r,h,y,_,w,k=i;2!==b&&(b=2,l&&t.clearTimeout(l),c=undefined,a=s||"",x.readyState=e>0?4:0,r=e>=200&&e<300||304===e,n&&(_=K(d,x,n)),_=X(d,_,x,r),r?(d.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(pt.lastModified[o]=w),(w=x.getResponseHeader("etag"))&&(pt.etag[o]=w)),204===e||"HEAD"===d.type?k="nocontent":304===e?k="notmodified":(k=_.state,h=_.data,r=!(y=_.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(i||k)+"",r?m.resolveWith(f,[h,k,x]):m.rejectWith(f,[x,k,y]),x.statusCode(v),v=undefined,u&&p.trigger(r?"ajaxSuccess":"ajaxError",[x,d,r?h:y]),g.fireWith(f,[x,k]),u&&(p.trigger("ajaxComplete",[x,d]),--pt.active||pt.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=undefined),i=i||{};var s,r,o,a,l,u,c,h,d=pt.ajaxSetup({},i),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?pt(f):pt.event,m=pt.Deferred(),g=pt.Callbacks("once memory"),v=d.statusCode||{},y={},_={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!h)for(h={};e=ti.exec(a);)h[e[1].toLowerCase()]=e[2];e=h[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return b||(t=_[i]=_[i]||t,y[t]=e),this},overrideMimeType:function(t){return b||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)v[e]=[v[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),n(0,e),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,d.url=((e||d.url||li)+"").replace(Ze,"").replace(ni,ui[1]+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=pt.trim(d.dataType||"*").toLowerCase().match(Mt)||[""],null==d.crossDomain&&(s=si.exec(d.url.toLowerCase()),d.crossDomain=!(!s||s[1]===ui[1]&&s[2]===ui[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(ui[3]||("http:"===ui[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pt.param(d.data,d.traditional)),U(ri,d,i,x),2===b)return x;for(r in(u=pt.event&&d.global)&&0==pt.active++&&pt.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!ii.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Xe.test(o)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Je.test(o)?o.replace(Je,"$1_="+Ke++):o+(Xe.test(o)?"&":"?")+"_="+Ke++)),d.ifModified&&(pt.lastModified[o]&&x.setRequestHeader("If-Modified-Since",pt.lastModified[o]),pt.etag[o]&&x.setRequestHeader("If-None-Match",pt.etag[o])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ai+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(r,d.headers[r]);if(d.beforeSend&&(!1===d.beforeSend.call(f,x,d)||2===b))return x.abort();for(r in w="abort",{success:1,error:1,complete:1})x[r](d[r]);if(c=U(oi,d,i,x)){if(x.readyState=1,u&&p.trigger("ajaxSend",[x,d]),2===b)return x;d.async&&d.timeout>0&&(l=t.setTimeout(function(){x.abort("timeout")},d.timeout));try{b=1,c.send(y,n)}catch(k){if(!(b<2))throw k;n(-1,k)}}else n(-1,"No Transport");return x},getJSON:function(t,e,i){return pt.get(t,e,i,"json")},getScript:function(t,e){return pt.get(t,undefined,e,"script")}}),pt.each(["get","post"],function(t,e){pt[e]=function(t,i,n,s){return pt.isFunction(i)&&(s=s||n,n=i,i=undefined),pt.ajax(pt.extend({url:t,type:e,dataType:s,data:i,success:n},pt.isPlainObject(t)&&t))}}),pt._evalUrl=function(t){return pt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pt.fn.extend({wrapAll:function(t){if(pt.isFunction(t))return this.each(function(e){pt(this).wrapAll(t.call(this,e))});if(this[0]){var e=pt(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return pt.isFunction(t)?this.each(function(e){pt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=pt(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=pt.isFunction(t);return this.each(function(i){pt(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){pt.nodeName(this,"body")||pt(this).replaceWith(this.childNodes)}).end()}}),pt.expr.filters.hidden=function(t){return dt.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:Z(t)},pt.expr.filters.visible=function(t){return!pt.expr.filters.hidden(t)};var ci=/%20/g,hi=/\[\]$/,di=/\r?\n/g,fi=/^(?:submit|button|image|reset|file)$/i,pi=/^(?:input|select|textarea|keygen)/i;pt.param=function(t,e){var i,n=[],s=function(t,e){e=pt.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(e===undefined&&(e=pt.ajaxSettings&&pt.ajaxSettings.traditional),pt.isArray(t)||t.jquery&&!pt.isPlainObject(t))pt.each(t,function(){s(this.name,this.value)});else for(i in t)J(i,t[i],e,s);return n.join("&").replace(ci,"+")},pt.fn.extend({serialize:function(){return pt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=pt.prop(this,"elements");return t?pt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!pt(this).is(":disabled")&&pi.test(this.nodeName)&&!fi.test(t)&&(this.checked||!Bt.test(t))}).map(function(t,e){var i=pt(this).val();return null==i?null:pt.isArray(i)?pt.map(i,function(t){return{name:e.name,value:t.replace(di,"\r\n")}}):{name:e.name,value:i.replace(di,"\r\n")}}).get()}}),pt.ajaxSettings.xhr=t.ActiveXObject!==undefined?function(){return this.isLocal?et():st.documentMode>8?tt():/^(get|post|head|put|delete|options)$/i.test(this.type)&&tt()||et()}:tt;var mi=0,gi={},vi=pt.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in gi)gi[t](undefined,!0)}),dt.cors=!!vi&&"withCredentials"in vi,(vi=dt.ajax=!!vi)&&pt.ajaxTransport(function(e){var i;if(!e.crossDomain||dt.cors)return{send:function(n,s){var r,o=e.xhr(),a=++mi;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];for(r in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)n[r]!==undefined&&o.setRequestHeader(r,n[r]+"");o.send(e.hasContent&&e.data||null),i=function(t,n){var r,l,u;if(i&&(n||4===o.readyState))if(delete gi[a],i=undefined,o.onreadystatechange=pt.noop,n)4!==o.readyState&&o.abort();else{u={},r=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(c){l=""}r||!e.isLocal||e.crossDomain?1223===r&&(r=204):r=u.text?200:404}u&&s(r,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?t.setTimeout(i):o.onreadystatechange=gi[a]=i:i()},abort:function(){i&&i(undefined,!0)}}}),pt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return pt.globalEval(t),t}}}),pt.ajaxPrefilter("script",function(t){t.cache===undefined&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),pt.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=st.head||pt("head")[0]||st.documentElement;return{send:function(n,s){(e=st.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,i){(i||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,i||s(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(undefined,!0)}}}});var yi=[],_i=/(=)\?(?=&|$)|\?\?/;pt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=yi.pop()||pt.expando+"_"+Ke++;return this[t]=!0,t}}),pt.ajaxPrefilter("json jsonp",function(e,i,n){var s,r,o,a=!1!==e.jsonp&&(_i.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&_i.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=pt.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(_i,"$1"+s):!1!==e.jsonp&&(e.url+=(Xe.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return o||pt.error(s+" was not called"),o[0]},e.dataTypes[0]="json",r=t[s],t[s]=function(){o=arguments},n.always(function(){r===undefined?pt(t).removeProp(s):t[s]=r,e[s]&&(e.jsonpCallback=i.jsonpCallback,yi.push(s)),o&&pt.isFunction(r)&&r(o[0]),o=r=undefined}),"script"}),pt.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||st;var n=kt.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=v([t],e,s),s&&s.length&&pt(s).remove(),pt.merge([],n.childNodes))};var bi=pt.fn.load;pt.fn.load=function(t,e,i){if("string"!=typeof t&&bi)return bi.apply(this,arguments);var n,s,r,o=this,a=t.indexOf(" ");return a>-1&&(n=pt.trim(t.slice(a,t.length)),t=t.slice(0,a)),pt.isFunction(e)?(i=e,e=undefined):e&&"object"==typeof e&&(s="POST"),o.length>0&&pt.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){r=arguments,o.html(n?pt("<div>").append(pt.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},pt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){pt.fn[e]=function(t){return this.on(e,t)}}),pt.expr.filters.animated=function(t){return pt.grep(pt.timers,function(e){return t===e.elem}).length},pt.offset={setOffset:function(t,e,i){var n,s,r,o,a,l,u=pt.css(t,"position"),c=pt(t),h={};"static"===u&&(t.style.position="relative"),a=c.offset(),r=pt.css(t,"top"),l=pt.css(t,"left"),("absolute"===u||"fixed"===u)&&pt.inArray("auto",[r,l])>-1?(o=(n=c.position()).top,s=n.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),pt.isFunction(e)&&(e=e.call(t,i,pt.extend({},a))),null!=e.top&&(h.top=e.top-a.top+o),null!=e.left&&(h.left=e.left-a.left+s),"using"in e?e.using.call(t,h):c.css(h)}},pt.fn.extend({offset:function(t){if(arguments.length)return t===undefined?this:this.each(function(e){pt.offset.setOffset(this,t,e)});var e,i,n={top:0,left:0},s=this[0],r=s&&s.ownerDocument;return r?(e=r.documentElement,pt.contains(e,s)?("undefined"!=typeof s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=it(r),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,i={top:0,left:0},n=this[0];return"fixed"===pt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),pt.nodeName(t[0],"html")||(i=t.offset()),i.top+=pt.css(t[0],"borderTopWidth",!0),i.left+=pt.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-pt.css(n,"marginTop",!0),left:e.left-i.left-pt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&!pt.nodeName(t,"html")&&"static"===pt.css(t,"position");)t=t.offsetParent;return t||ge})}}),pt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e);pt.fn[t]=function(n){return qt(this,function(t,n,s){var r=it(t);if(s===undefined)return r?e in r?r[e]:r.document.documentElement[n]:t[n];r?r.scrollTo(i?pt(r).scrollLeft():s,i?s:pt(r).scrollTop()):t[n]=s},t,n,arguments.length,null)}}),pt.each(["top","left"],function(t,e){pt.cssHooks[e]=A(dt.pixelPosition,function(t,i){if(i)return i=ye(t,e),pe.test(i)?pt(t).position()[e]+"px":i})}),pt.each({Height:"height",Width:"width"},function(t,e){pt.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){pt.fn[n]=function(n,s){var r=arguments.length&&(i||"boolean"!=typeof n),o=i||(!0===n||!0===s?"margin":"border");return qt(this,function(e,i,n){var s;return pt.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):n===undefined?pt.css(e,i,o):pt.style(e,i,n,o)},e,r?n:undefined,r,null)}})}),pt.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),pt.fn.size=function(){return this.length},pt.fn.andSelf=pt.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return pt});var wi=t.jQuery,xi=t.$;return pt.noConflict=function(e){return t.$===pt&&(t.$=xi),e&&t.jQuery===pt&&(t.jQuery=wi),pt},e||(t.jQuery=t.$=pt),pt}),function(t,e){"use strict";var i;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var n=t(document);t.rails=i={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",
inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=i.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+i.csrfParam()+'"]').val(i.csrfToken())},fire:function(e,i,n){var s=t.Event(i);return e.trigger(s,n),!1!==s.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(n){var s,r,o,a,l,u;if(i.fire(n,"ajax:before")){if(a=n.data("with-credentials")||null,l=n.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,n.is("form")){s=n.data("ujs:submit-button-formmethod")||n.attr("method"),r=n.data("ujs:submit-button-formaction")||n.attr("action"),o=t(n[0]).serializeArray();var c=n.data("ujs:submit-button");c&&(o.push(c),n.data("ujs:submit-button",null)),n.data("ujs:submit-button-formmethod",null),n.data("ujs:submit-button-formaction",null)}else n.is(i.inputChangeSelector)?(s=n.data("method"),r=n.data("url"),o=n.serialize(),n.data("params")&&(o=o+"&"+n.data("params"))):n.is(i.buttonClickSelector)?(s=n.data("method")||"get",r=n.data("url"),o=n.serialize(),n.data("params")&&(o=o+"&"+n.data("params"))):(s=n.data("method"),r=i.href(n),o=n.data("params")||null);return u={type:s||"GET",data:o,dataType:l,beforeSend:function(t,s){if(s.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+s.accepts.script),!i.fire(n,"ajax:beforeSend",[t,s]))return!1;n.trigger("ajax:send",t)},success:function(t,e,i){n.trigger("ajax:success",[t,e,i])},complete:function(t,e){n.trigger("ajax:complete",[t,e])},error:function(t,e,i){n.trigger("ajax:error",[t,e,i])},crossDomain:i.isCrossDomain(r)},a&&(u.xhrFields={withCredentials:a}),r&&(u.url=r),i.ajax(u)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var i=document.createElement("a");try{return i.href=t,i.href=i.href,!((!i.protocol||":"===i.protocol)&&!i.host||e.protocol+"//"+e.host==i.protocol+"//"+i.host)}catch(n){return!0}},handleMethod:function(n){var s=i.href(n),r=n.data("method"),o=n.attr("target"),a=i.csrfToken(),l=i.csrfParam(),u=t('<form method="post" action="'+s+'"></form>'),c='<input name="_method" value="'+r+'" type="hidden" />';l===e||a===e||i.isCrossDomain(s)||(c+='<input name="'+l+'" value="'+a+'" type="hidden" />'),o&&u.attr("target",o),u.hide().append(c).appendTo("body"),u.submit()},formElements:function(e,i){return e.is("form")?t(e[0].elements).filter(i):e.find(i)},disableFormElements:function(e){i.formElements(e,i.disableSelector).each(function(){i.disableFormElement(t(this))})},disableFormElement:function(t){var i,n;i=t.is("button")?"html":"val",(n=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[i]()),t[i](n)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){i.formElements(e,i.enableSelector).each(function(){i.enableFormElement(t(this))})},enableFormElement:function(t){var i=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[i](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,n=t.data("confirm"),s=!1;if(!n)return!0;if(i.fire(t,"confirm")){try{s=i.confirm(n)}catch(r){(console.error||console.log).call(console,r.stack||r)}e=i.fire(t,"confirm:complete",[s])}return s&&e},blankInputs:function(e,i,n){var s,r,o,a=t(),l=i||"input,textarea",u=e.find(l),c={};return u.each(function(){(s=t(this)).is("input[type=radio]")?(o=s.attr("name"),c[o]||(0===e.find('input[type=radio]:checked[name="'+o+'"]').length&&(r=e.find('input[type=radio][name="'+o+'"]'),a=a.add(r)),c[o]=o)):(s.is("input[type=checkbox],input[type=radio]")?s.is(":checked"):!!s.val())===n&&(a=a.add(s))}),!!a.length&&a},nonBlankInputs:function(t,e){return i.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var n=t.data("disable-with");n!==e&&(t.data("ujs:enable-with",t.html()),t.html(n)),t.bind("click.railsDisable",function(t){return i.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},i.fire(n,"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,n){t.crossDomain||i.CSRFProtection(n)}),t(window).on("pageshow.rails",function(){t(t.rails.enableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)}),t(t.rails.linkDisableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)})}),n.on("ajax:complete",i.linkDisableSelector,function(){i.enableElement(t(this))}),n.on("ajax:complete",i.buttonDisableSelector,function(){i.enableFormElement(t(this))}),n.on("click.rails",i.linkClickSelector,function(e){var n=t(this),s=n.data("method"),r=n.data("params"),o=e.metaKey||e.ctrlKey;if(!i.allowAction(n))return i.stopEverything(e);if(!o&&n.is(i.linkDisableSelector)&&i.disableElement(n),i.isRemote(n)){if(o&&(!s||"GET"===s)&&!r)return!0;var a=i.handleRemote(n);return!1===a?i.enableElement(n):a.fail(function(){i.enableElement(n)}),!1}return s?(i.handleMethod(n),!1):void 0}),n.on("click.rails",i.buttonClickSelector,function(e){var n=t(this);if(!i.allowAction(n)||!i.isRemote(n))return i.stopEverything(e);n.is(i.buttonDisableSelector)&&i.disableFormElement(n);var s=i.handleRemote(n);return!1===s?i.enableFormElement(n):s.fail(function(){i.enableFormElement(n)}),!1}),n.on("change.rails",i.inputChangeSelector,function(e){var n=t(this);return i.allowAction(n)&&i.isRemote(n)?(i.handleRemote(n),!1):i.stopEverything(e)}),n.on("submit.rails",i.formSubmitSelector,function(n){var s,r,o=t(this),a=i.isRemote(o);if(!i.allowAction(o))return i.stopEverything(n);if(o.attr("novalidate")===e)if(o.data("ujs:formnovalidate-button")===e){if((s=i.blankInputs(o,i.requiredInputSelector,!1))&&i.fire(o,"ajax:aborted:required",[s]))return i.stopEverything(n)}else o.data("ujs:formnovalidate-button",e);if(a){if(r=i.nonBlankInputs(o,i.fileInputSelector)){setTimeout(function(){i.disableFormElements(o)},13);var l=i.fire(o,"ajax:aborted:file",[r]);return l||setTimeout(function(){i.enableFormElements(o)},13),l}return i.handleRemote(o),!1}setTimeout(function(){i.disableFormElements(o)},13)}),n.on("click.rails",i.formInputClickSelector,function(e){var n=t(this);if(!i.allowAction(n))return i.stopEverything(e);var s=n.attr("name"),r=s?{name:s,value:n.val()}:null,o=n.closest("form");0===o.length&&(o=t("#"+n.attr("form"))),o.data("ujs:submit-button",r),o.data("ujs:formnovalidate-button",n.attr("formnovalidate")),o.data("ujs:submit-button-formaction",n.attr("formaction")),o.data("ujs:submit-button-formmethod",n.attr("formmethod"))}),n.on("ajax:send.rails",i.formSubmitSelector,function(e){this===e.target&&i.disableFormElements(t(this))}),n.on("ajax:complete.rails",i.formSubmitSelector,function(e){this===e.target&&i.enableFormElements(t(this))}),t(function(){i.refreshCSRFTokens()}))}(jQuery),function(t,e){function i(e,i){var s,r,o,a=e.nodeName.toLowerCase();return"area"===a?(r=(s=e.parentNode).name,!(!e.href||!r||"map"!==s.nodeName.toLowerCase())&&(!!(o=t("img[usemap=#"+r+"]")[0])&&n(o))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().andSelf().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var s,r,o=0,a=/^ui-id-\d+$/;(t.ui=t.ui||{},t.ui.version)||(t.extend(t.ui,{version:"1.9.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}}),t.fn.extend({_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var n=this;setTimeout(function(){t(n).focus(),i&&i.call(n)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,s,r=t(this[0]);r.length&&r[0]!==document;){if(("absolute"===(n=r.css("position"))||"relative"===n||"fixed"===n)&&(s=parseInt(r.css("zIndex"),10),!isNaN(s)&&0!==s))return s;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++o)})},removeUniqueId:function(){return this.each(function(){a.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function s(e,i,n,s){return t.each(r,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var r="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(o,s(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,i)+"px")})}}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(s=t.fn.removeData,function(e){return arguments.length?s.call(this,t.camelCase(e)):s.call(this)})),r=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[],t.ui.ie=!!r.length,t.ui.ie6=6===parseFloat(r[1],10),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s,r=t.ui[e].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(t,e,i){var n,s=t.plugins[e];if(s&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}},contains:t.contains,hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)},isOverAxis:function(t,e,i){return t>e&&t<e+i},isOver:function(e,i,n,s,r,o){return t.ui.isOverAxis(e,n,r)&&t.ui.isOverAxis(i,s,o)}}))}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,s=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(r){}s(e)},t.widget=function(e,i,n){var s,r,o,a,l=e.split(".")[0];e=e.split(".")[1],s=l+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,s){var r,o;t.isFunction(s)&&(n[e]=(r=function(){return i.prototype[e].apply(this,arguments)},o=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=r,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}))}),o.prototype=t.widget.extend(a,{widgetEventPrefix:r?a.widgetEventPrefix:e},n,{constructor:o,namespace:l,widgetName:e,widgetBaseClass:s,widgetFullName:s}),r?(t.each(r._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete r._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o)},t.widget.extend=function(i){for(var s,r,o=n.call(arguments,1),a=0,l=o.length;a<l;a++)for(s in o[a])r=o[a][s],o[a].hasOwnProperty(s)&&r!==e&&(t.isPlainObject(r)?i[s]=t.isPlainObject(i[s])?t.widget.extend({},i[s],r):t.widget.extend({},r):i[s]=r);return i},t.widget.bridge=function(i,s){var r=s.prototype.widgetFullName||i;t.fn[i]=function(o){var a="string"==typeof o,l=n.call(arguments,1),u=this;return o=!a&&l.length?t.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var n,s=t.data(this,r);return s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(n=s[o].apply(s,l))!==s&&n!==e?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var e=t.data(this,r);e?e.option(o||{})._init():t.data(this,r,new s(o,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetName,this),t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.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:t.noop,widget:function(){return this.element},option:function(i,n){var s,r,o,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},i=(s=i.split(".")).shift(),s.length){for(r=a[i]=t.widget.extend({},this.options[i]),o=0;o<s.length-1;o++)r[s[o]]=r[s[o]]||{},r=r[s[o]];if(i=s.pop(),n===e)return r[i]===e?null:r[i];r[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),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(e,i,n){var s,r=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,o){function a(){if(e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof o?r[o]:o).apply(r,arguments)}"string"!=typeof o&&(a.guid=o.guid=o.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?s.delegate(c,u,a):i.bind(u,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,r,o=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!(t.isFunction(o)&&!1===o.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,r){"string"==typeof s&&(s={effect:s});var o,a=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),o=!t.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),o&&t.effects&&(t.effects.effect[a]||!1!==t.uiBackCompat&&t.effects[a])?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,r):n.queue(function(i){t(this)[e](),r&&r.call(n[0]),i()})}}),!1!==t.uiBackCompat&&(t.Widget.prototype._getCreateOptions=function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]})}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,r=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(s&&!r&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return!t.ui.ie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return[parseInt(t[0],10)*(p.test(t[0])?e/100:1),parseInt(t[1],10)*(p.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}t.ui=t.ui||{};var s,r,o,a=Math.max,l=Math.abs,u=Math.round,c=/left|center|right/,h=/top|center|bottom/,d=/[\+\-]\d+%?/,f=/^\w+/,p=/%$/,m=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,r=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=r[0].clientWidth),r.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,r="scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight;return{width:s?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return m.apply(this,arguments);e=t.extend({},e);var s,r,o,p,g,v=t(e.of),y=t.position.getWithinInfo(e.within),_=t.position.getScrollInfo(y),b=v[0],w=(e.collision||"flip").split(" "),x={};return 9===b.nodeType?(r=v.width(),o=v.height(),p={top:0,left:0}):t.isWindow(b)?(r=v.width(),o=v.height(),p={top:v.scrollTop(),left:v.scrollLeft()}):b.preventDefault?(e.at="left top",r=o=0,p={top:b.pageY,left:b.pageX}):(r=v.outerWidth(),o=v.outerHeight(),p=v.offset()),g=t.extend({},p),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=c.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=c.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=d.exec(n[0]),i=d.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[f.exec(n[0])[0],f.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?g.left+=r:"center"===e.at[0]&&(g.left+=r/2),"bottom"===e.at[1]?g.top+=o:"center"===e.at[1]&&(g.top+=o/2),s=i(x.at,r,o),g.left+=s[0],g.top+=s[1],this.each(function(){var c,h,d=t(this),f=d.outerWidth(),m=d.outerHeight(),b=n(this,"marginLeft"),k=n(this,"marginTop"),C=f+b+n(this,"marginRight")+_.width,D=m+k+n(this,"marginBottom")+_.height,T=t.extend({},g),S=i(x.my,d.outerWidth(),d.outerHeight());"right"===e.my[0]?T.left-=f:"center"===e.my[0]&&(T.left-=f/2),"bottom"===e.my[1]?T.top-=m:"center"===e.my[1]&&(T.top-=m/2),T.left+=S[0],T.top+=S[1],t.support.offsetFractions||(T.left=u(T.left),T.top=u(T.top)),c={marginLeft:b,marginTop:k},t.each(["left","top"],function(i,n){t.ui.position[w[i]]&&t.ui.position[w[i]][n](T,{targetWidth:r,targetHeight:o,elemWidth:f,elemHeight:m,collisionPosition:c,collisionWidth:C,collisionHeight:D,offset:[s[0]+S[0],s[1]+S[1]],my:e.my,at:e.at,within:y,elem:d})}),t.fn.bgiframe&&d.bgiframe(),e.using&&(h=function(t){var i=p.left-T.left,n=i+r-f,s=p.top-T.top,u=s+o-m,c={target:{element:v,left:p.left,top:p.top,width:r,height:o},element:{element:d,left:T.left,top:T.top,width:f,height:m},horizontal:n<0?"left":i>0?"right":"center",vertical:u<0?"top":s>0?"bottom":"middle"};r<f&&l(i+n)<r&&(c.horizontal="center"),o<m&&l(s+u)<o&&(c.vertical="middle"),a(l(i),l(n))>a(l(s),l(u))?c.important="horizontal":c.important="vertical",e.using.call(this,t,c)}),d.offset(t.extend(T,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,u=o+e.collisionWidth-r-s;e.collisionWidth>r?l>0&&u<=0?(i=t.left+l+e.collisionWidth-r-s,t.left+=l-i):t.left=u>0&&l<=0?s:l>u?s+r-e.collisionWidth:s:l>0?t.left+=l:u>0?t.left-=u:t.left=a(t.left-o,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,r=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,u=o+e.collisionHeight-r-s;e.collisionHeight>r?l>0&&u<=0?(i=t.top+l+e.collisionHeight-r-s,t.top+=l-i):t.top=u>0&&l<=0?s:l>u?s+r-e.collisionHeight:s:l>0?t.top+=l:u>0?t.top-=u:t.top=a(t.top-o,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,r=s.offset.left+s.scrollLeft,o=s.width,a=s.isWindow?s.scrollLeft:s.offset.left,u=t.left-e.collisionPosition.marginLeft,c=u-a,h=u+e.collisionWidth-o-a,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((i=t.left+d+f+p+e.collisionWidth-o-r)<0||i<l(c))&&(t.left+=d+f+p):h>0&&((n=t.left-e.collisionPosition.marginLeft+d+f+p-a)>0||l(n)<h)&&(t.left+=d+f+p)},top:function(t,e){var i,n,s=e.within,r=s.offset.top+s.scrollTop,o=s.height,a=s.isWindow?s.scrollTop:s.offset.top,u=t.top-e.collisionPosition.marginTop,c=u-a,h=u+e.collisionHeight-o-a,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];c<0?(n=t.top+d+f+p+e.collisionHeight-o-r,t.top+d+f+p>c&&(n<0||n<l(c))&&(t.top+=d+f+p)):h>0&&(i=t.top-e.collisionPosition.marginTop+d+f+p-a,t.top+d+f+p>h&&(i>0||l(i)<h)&&(t.top+=d+f+p))}},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,n,s,r,o=document.getElementsByTagName("body")[0],a=document.createElement("div");for(r in e=document.createElement(o?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[r]=n[r];e.appendChild(a),(i=o||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",s=t(a).offset().left,t.support.offsetFractions=s>10&&s<11,e.innerHTML="",i.removeChild(e)}(),!1!==t.uiBackCompat&&(r=jQuery,o=r.fn.position,r.fn.position=function(t){if(!t||!t.offset)return o.call(this,t);var i=t.offset.split(" "),n=t.at.split(" ");return 1===i.length&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),1===n.length&&(/left|center|right/.test(n[0])?n[1]="center":(n[1]=n[0],n[0]="center")),o.call(this,r.extend(t,{at:n[0]+i[0]+" "+n[1]+i[1],offset:e}))})}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.9.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},_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(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t('<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(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.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"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1);for(var n=this.element[0],s=!1;n&&(n=n.parentNode);)n==document&&(s=!0);if(!s&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var r=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==r._trigger("stop",e)&&r._clear()})}else!1!==this._trigger("stop",e)&&this._clear();return!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var i=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(i=!0)}),i},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),
n[0]==this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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 e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),"document"!=e.containment&&"window"!=e.containment||(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var i=t(e.containment),n=i[0];if(!n)return;i.offset();var s="hidden"!=t(n).css("overflow");this.containment=[(parseInt(t(n).css("borderLeftWidth"),10)||0)+(parseInt(t(n).css("paddingLeft"),10)||0),(parseInt(t(n).css("borderTopWidth"),10)||0)+(parseInt(t(n).css("paddingTop"),10)||0),(s?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t(n).css("borderLeftWidth"),10)||0)-(parseInt(t(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t(n).css("borderTopWidth"),10)||0)-(parseInt(t(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"==e?1:-1,s=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName),r=e.pageX,o=e.pageY;if(this.originalPosition){var a;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();a=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else a=this.containment;e.pageX-this.offset.click.left<a[0]&&(r=a[0]+this.offset.click.left),e.pageY-this.offset.click.top<a[1]&&(o=a[1]+this.offset.click.top),e.pageX-this.offset.click.left>a[2]&&(r=a[2]+this.offset.click.left),e.pageY-this.offset.click.top>a[3]&&(o=a[3]+this.offset.click.top)}if(i.grid){var u=i.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/i.grid[1])*i.grid[1]:this.originalPageY;o=a&&(u-this.offset.click.top<a[1]||u-this.offset.click.top>a[3])?u-this.offset.click.top<a[1]?u+i.grid[1]:u-i.grid[1]:u;var c=i.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/i.grid[0])*i.grid[0]:this.originalPageX;r=a&&(c-this.offset.click.left<a[0]||c-this.offset.click.left>a[2])?c-this.offset.click.left<a[0]?c+i.grid[0]:c-i.grid[0]:c}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.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(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("draggable"),s=n.options,r=t.extend({},i,{item:n.element});n.sortables=[],t(s.connectToSortable).each(function(){var i=t.data(this,"sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,r))})},stop:function(e,i){var n=t(this).data("draggable"),s=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,s))})},drag:function(e,i){var n=t(this).data("draggable"),s=this;t.each(n.sortables,function(){var r=!1,o=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!=o&&this.instance._intersectsWith(this.instance.containerCache)&&t.ui.contains(o.instance.element[0],this.instance.element[0])&&(r=!1),r})),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(s).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),s=t(this).data("draggable").options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,i){var n=t(this).data("draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("draggable");e.scrollParent[0]!=document&&"HTML"!=e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("draggable"),n=i.options,s=!1;i.scrollParent[0]!=document&&"HTML"!=i.scrollParent[0].tagName?(n.axis&&"x"==n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=s=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"==n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=s=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"==n.axis||(e.pageY-t(document).scrollTop()<n.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"==n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==s&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){for(var n=t(this).data("draggable"),s=n.options,r=s.snapTolerance,o=i.offset.left,a=o+n.helperProportions.width,l=i.offset.top,u=l+n.helperProportions.height,c=n.snapElements.length-1;c>=0;c--){var h=n.snapElements[c].left,d=h+n.snapElements[c].width,f=n.snapElements[c].top,p=f+n.snapElements[c].height;if(h-r<o&&o<d+r&&f-r<l&&l<p+r||h-r<o&&o<d+r&&f-r<u&&u<p+r||h-r<a&&a<d+r&&f-r<l&&l<p+r||h-r<a&&a<d+r&&f-r<u&&u<p+r){if("inner"!=s.snapMode){var m=Math.abs(f-u)<=r,g=Math.abs(p-l)<=r,v=Math.abs(h-a)<=r,y=Math.abs(d-o)<=r;m&&(i.position.top=n._convertPositionTo("relative",{top:f-n.helperProportions.height,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:p,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),y&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d}).left-n.margins.left)}var _=m||g||v||y;if("outer"!=s.snapMode){m=Math.abs(f-l)<=r,g=Math.abs(p-u)<=r,v=Math.abs(h-o)<=r,y=Math.abs(d-a)<=r;m&&(i.position.top=n._convertPositionTo("relative",{top:f,left:0}).top-n.margins.top),g&&(i.position.top=n._convertPositionTo("relative",{top:p-n.helperProportions.height,left:0}).top-n.margins.top),v&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),y&&(i.position.left=n._convertPositionTo("relative",{top:0,left:d-n.helperProportions.width}).left-n.margins.left)}!n.snapElements[c].snapping&&(m||g||v||y||_)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[c].item})),n.snapElements[c].snapping=m||g||v||y||_}else n.snapElements[c].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[c].item})),n.snapElements[c].snapping=!1}}}),t.ui.plugin.add("draggable","stack",{start:function(){var e=t(this).data("draggable").options,i=t.makeArray(t(e.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});if(i.length){var n=parseInt(i[0].style.zIndex)||0;t(i).each(function(t){this.style.zIndex=n+t}),this[0].style.zIndex=n+i.length}}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),s=t(this).data("draggable").options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,i){var n=t(this).data("draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(t){t.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,i=e.accept;this.isover=0,this.isout=1,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=t.ui.ddmanager.droppables[this.options.scope],i=0;i<e.length;i++)e[i]==this&&e.splice(i,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"==e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return!1;var s=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope==n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance))return s=!0,!1}),!s&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(e,i,n){if(!i.offset)return!1;var s=(e.positionAbs||e.position.absolute).left,r=s+e.helperProportions.width,o=(e.positionAbs||e.position.absolute).top,a=o+e.helperProportions.height,l=i.offset.left,u=l+i.proportions.width,c=i.offset.top,h=c+i.proportions.height;switch(n){case"fit":return l<=s&&r<=u&&c<=o&&a<=h;case"intersect":return l<s+e.helperProportions.width/2&&r-e.helperProportions.width/2<u&&c<o+e.helperProportions.height/2&&a-e.helperProportions.height/2<h;case"pointer":var d=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,f=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top;return t.ui.isOver(f,d,c,l,i.proportions.height,i.proportions.width);case"touch":return(o>=c&&o<=h||a>=c&&a<=h||o<c&&a>h)&&(s>=l&&s<=u||r>=l&&r<=u||s<l&&r>u);default:return!1}},t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var n=t.ui.ddmanager.droppables[e.options.scope]||[],s=i?i.type:null,r=(e.currentItem||e.element).find(":data(droppable)").andSelf();t:for(var o=0;o<n.length;o++)if(!(n[o].options.disabled||e&&!n[o].accept.call(n[o].element[0],e.currentItem||e.element))){for(var a=0;a<r.length;a++)if(r[a]==n[o].element[0]){n[o].proportions.height=0;continue t}n[o].visible="none"!=n[o].element.css("display"),n[o].visible&&("mousedown"==s&&n[o]._activate.call(n[o],i),n[o].offset=n[o].element.offset(),n[o].proportions={width:n[o].element[0].offsetWidth,height:n[o].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n=t.ui.intersect(e,this,this.options.tolerance),s=n||1!=this.isover?n&&0==this.isover?"isover":null:"isout";if(s){var r;if(this.options.greedy){var o=this.options.scope,a=this.element.parents(":data(droppable)").filter(function(){return t.data(this,"droppable").options.scope===o});a.length&&((r=t.data(a[0],"droppable")).greedyChild="isover"==s?1:0)}r&&"isover"==s&&(r.isover=0,r.isout=1,r._out.call(r,i)),this[s]=1,this["isout"==s?"isover":"isout"]=0,this["isover"==s?"_over":"_out"].call(this,i),r&&"isout"==s&&(r.isout=0,r.isover=1,r._over.call(r,i))}}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t){t.widget("ui.resizable",t.ui.mouse,{version:"1.9.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:1e3},_create:function(){var e=this,i=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('<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("resizable",this.element.data("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=i.handles||(t(".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){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var n=this.handles.split(",");this.handles={};for(var s=0;s<n.length;s++){var r=t.trim(n[s]),o=t('<div class="ui-resizable-handle '+("ui-resizable-"+r)+'"></div>');o.css({zIndex:i.zIndex}),"se"==r&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[r]=".ui-resizable-"+r,this.element.append(o)}}this._renderAxis=function(e){for(var i in e=e||this.element,this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=t(this.handles[i],this.element),s=0;s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth();var r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");e.css(r,s),this._proportionallyResize()}t(this.handles[i]).length}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),i.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){i.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())}).mouseleave(function(){i.disabled||e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var i=this.element;this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i=!1;for(var n in this.handles)t(this.handles[n])[0]==e.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(i){var n=this.options,s=this.element.position(),r=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(r.is(".ui-draggable")||/absolute/.test(r.css("position")))&&r.css({position:"absolute",top:s.top,left:s.left}),this._renderProxy();var o=e(this.helper.css("left")),a=e(this.helper.css("top"));n.containment&&(o+=t(n.containment).scrollLeft()||0,a+=t(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:o,top:a},this.size=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.originalPosition={left:o,top:a},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),r.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(t){var e=this.helper,i=(this.options,this.originalMousePosition),n=this.axis,s=t.pageX-i.left||0,r=t.pageY-i.top||0,o=this._change[n];if(!o)return!1;var a=o.apply(this,[t,s,r]);return this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(a=this._updateRatio(a,t)),a=this._respectSize(a,t),this._propagate("resize",t),e.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(a),this._trigger("resize",t,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var i=this.options,n=this;if(this._helper){var s=this._proportionallyResizeElements,r=s.length&&/textarea/i.test(s[0].nodeName),o=r&&t.ui.hasScroll(s[0],"left")?0:n.sizeDiff.height,a=r?0:n.sizeDiff.width,l={width:n.helper.width()-a,height:n.helper.height()-o},u=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,c=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;i.animate||this.element.css(t.extend(l,{top:c,left:u})),n.helper.height(n.size.height),n.helper.width(n.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,s,r,o,a=this.options;o={minWidth:i(a.minWidth)?a.minWidth:0,maxWidth:i(a.maxWidth)?a.maxWidth:Infinity,minHeight:i(a.minHeight)?a.minHeight:0,maxHeight:i(a.maxHeight)?a.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.options;this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){this.options;var e=this.position,n=this.size,s=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"==s&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"==s&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t,e){this.helper;var n=this._vBoundaries,s=(this._aspectRatio||e.shiftKey,this.axis),r=i(t.width)&&n.maxWidth&&n.maxWidth<t.width,o=i(t.height)&&n.maxHeight&&n.maxHeight<t.height,a=i(t.width)&&n.minWidth&&n.minWidth>t.width,l=i(t.height)&&n.minHeight&&n.minHeight>t.height;a&&(t.width=n.minWidth),l&&(t.height=n.minHeight),r&&(t.width=n.maxWidth),o&&(t.height=n.maxHeight);var u=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,h=/sw|nw|w/.test(s),d=/nw|ne|n/.test(s);a&&h&&(t.left=u-n.minWidth),r&&h&&(t.left=u-n.maxWidth),l&&d&&(t.top=c-n.minHeight),o&&d&&(t.top=c-n.maxHeight);var f=!t.width&&!t.height;return f&&!t.left&&t.top?t.top=null:f&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){this.options;if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var n=this._proportionallyResizeElements[i];if(!this.borderDif){var s=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],r=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];this.borderDif=t.map(s,function(t,e){return(parseInt(t,10)||0)+(parseInt(r[e],10)||0)})}n.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.element,i=this.options;if(this.elementOffset=e.offset(),this._helper){this.helper=this.helper||t('<div style="overflow:hidden;"></div>');var n=t.ui.ie6?1:0,s=t.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+s,height:this.element.outerHeight()+s,position:"absolute",left:this.elementOffset.left-n+"px",top:this.elementOffset.top-n+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){this.options;var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){this.options;var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,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}}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("resizable").options,i=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,function(t){i(t)})},resize:function(e,i){var n=t(this).data("resizable"),s=n.options,r=n.originalSize,o=n.originalPosition,a={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-o.top||0,left:n.position.left-o.left||0},l=function(e,n){t(e).each(function(){var e=t(this),s=t(this).data("resizable-alsoresize"),r={},o=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(r[e]=i||null)}),e.css(r)})};"object"!=typeof s.alsoResize||s.alsoResize.nodeType?l(s.alsoResize):t.each(s.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("resizable"),n=i.options,s=i._proportionallyResizeElements,r=s.length&&/textarea/i.test(s[0].nodeName),o=r&&t.ui.hasScroll(s[0],"left")?0:i.sizeDiff.height,a=r?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},u=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&u?{top:c,left:u}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={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)};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i=t(this).data("resizable"),n=i.options,s=i.element,r=n.containment,o=r instanceof t?r.get(0):/parent/.test(r)?s.parent().get(0):r;if(o)if(i.containerElement=t(o),/document/.test(r)||r==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0
},i.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var a=t(o),l=[];t(["Top","Right","Left","Bottom"]).each(function(t,i){l[t]=e(a.css("padding"+i))}),i.containerOffset=a.offset(),i.containerPosition=a.position(),i.containerSize={height:a.innerHeight()-l[3],width:a.innerWidth()-l[1]};var u=i.containerOffset,c=i.containerSize.height,h=i.containerSize.width,d=t.ui.hasScroll(o,"left")?o.scrollWidth:h,f=t.ui.hasScroll(o)?o.scrollHeight:c;i.parentData={element:o,left:u.left,top:u.top,width:d,height:f}}},resize:function(e){var i=t(this).data("resizable"),n=i.options,s=(i.containerSize,i.containerOffset),r=(i.size,i.position),o=i._aspectRatio||e.shiftKey,a={top:0,left:0},l=i.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(a=s),r.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-a.left),o&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=n.helper?s.left:0),r.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),o&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?s.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top;var u=Math.abs((i._helper,i.offset.left-a.left+i.sizeDiff.width)),c=Math.abs((i._helper?i.offset.top-a.top:i.offset.top-s.top)+i.sizeDiff.height),h=i.containerElement.get(0)==i.element.parent().get(0),d=/relative|absolute/.test(i.containerElement.css("position"));h&&d&&(u-=i.parentData.left),u+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-u,o&&(i.size.height=i.size.width/i.aspectRatio)),c+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-c,o&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var e=t(this).data("resizable"),i=e.options,n=(e.position,e.containerOffset),s=e.containerPosition,r=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,u=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u}),e._helper&&!i.animate&&/static/.test(r.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:l,height:u})}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("resizable");e.options;e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("resizable");e.options;e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e){var i=t(this).data("resizable"),n=i.options,s=i.size,r=i.originalSize,o=i.originalPosition,a=i.axis;n._aspectRatio||e.shiftKey;n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var l=Math.round((s.width-r.width)/(n.grid[0]||1))*(n.grid[0]||1),u=Math.round((s.height-r.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(a)?(i.size.width=r.width+l,i.size.height=r.height+u):/^(ne)$/.test(a)?(i.size.width=r.width+l,i.size.height=r.height+u,i.position.top=o.top-u):/^(sw)$/.test(a)?(i.size.width=r.width+l,i.size.height=r.height+u,i.position.left=o.left-l):(i.size.width=r.width+l,i.size.height=r.height+u,i.position.top=o.top-u,i.position.left=o.left-l)}});var e=function(t){return parseInt(t,10)||0},i=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.9.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var n=this.options;this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().andSelf().each(function(){var n=t.data(this,"selectable-item");if(n){var s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected");return n.$element.removeClass(s?"ui-unselecting":"ui-selected").addClass(s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1}})}},_mouseDrag:function(e){var i=this;if(this.dragged=!0,!this.options.disabled){var n=this.options,s=this.opos[0],r=this.opos[1],o=e.pageX,a=e.pageY;if(s>o){var l=o;o=s,s=l}if(r>a){l=a;a=r,r=l}return this.helper.css({left:s,top:r,width:o-s,height:a-r}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var u=!1;"touch"==n.tolerance?u=!(l.left>o||l.right<s||l.top>a||l.bottom<r):"fit"==n.tolerance&&(u=l.left>s&&l.right<o&&l.top>r&&l.bottom<a),u?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,i._trigger("selecting",e,{selecting:l.element}))):(l.selecting&&((e.metaKey||e.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),i._trigger("unselecting",e,{unselecting:l.element}))),l.selected&&(e.metaKey||e.ctrlKey||l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,i._trigger("unselecting",e,{unselecting:l.element}))))}}),!1}},_mouseStop:function(e){var i=this;this.dragged=!1;this.options;return t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t){t.widget("ui.sortable",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=this;if(this.reverting)return!1;if(this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var s=null;t(e.target).parents().each(function(){if(t.data(this,n.widgetName+"-item")==n)return s=t(this),!1});if(t.data(e.target,n.widgetName+"-item")==n&&(s=t(e.target)),!s)return!1;if(this.options.handle&&!i){var r=!1;if(t(this.options.handle,s).find("*").andSelf().each(function(){this==e.target&&(r=!0)}),!r)return!1}return this.currentItem=s,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,i,n){var s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",s.cursor)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(var r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,n=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(e.pageY-t(document).scrollTop()<i.scrollSensitivity?n=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity&&(n=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed)),e.pageX-t(document).scrollLeft()<i.scrollSensitivity?n=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity&&(n=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed))),!1!==n&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute"),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");for(var s=this.items.length-1;s>=0;s--){var r=this.items[s],o=r.item[0],a=this._intersectsWithPointer(r);if(a&&(r.instance===this.currentContainer&&!(o==this.currentItem[0]||this.placeholder[1==a?"next":"prev"]()[0]==o||t.contains(this.placeholder[0],o)||"semi-dynamic"==this.options.type&&t.contains(this.element[0],o)))){if(this.direction=1==a?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(e,r),this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset();this.reverting=!0,t(this.helper).animate({left:s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,o=r+t.width,a=t.top,l=a+t.height,u=this.offset.click.top,c=this.offset.click.left,h=n+u>a&&n+u<l&&e+c>r&&e+c<o;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<o&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var i="x"===this.options.axis||t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),n="y"===this.options.axis||t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),s=i&&n,r=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return!!s&&(this.floating?o&&"right"==o||"down"==r?2:1:r&&("down"==r?2:1))},_intersectsWithSides:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),s=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"==r&&n||"left"==r&&!n:s&&("down"==s&&i||"up"==s&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i=[],n=[],s=this._connectWith();if(s&&e)for(var r=s.length-1;r>=0;r--)for(var o=t(s[r]),a=o.length-1;a>=0;a--){var l=t.data(o[a],this.widgetName);l&&l!=this&&!l.options.disabled&&n.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}n.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(r=n.length-1;r>=0;r--)n[r][0].each(function(){i.push(this)});return t(i)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]==t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i=this.items,n=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],s=this._connectWith();if(s&&this.ready)for(var r=s.length-1;r>=0;r--)for(var o=t(s[r]),a=o.length-1;a>=0;a--){var l=t.data(o[a],this.widgetName);l&&l!=this&&!l.options.disabled&&(n.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(r=n.length-1;r>=0;r--)for(var u=n[r][1],c=n[r][0],h=(a=0,c.length);a<h;a++){var d=t(c[a]);d.data(this.widgetName+"-item",u),i.push({item:d,instance:u,width:0,height:0,left:0,top:0})}},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var i=this.items.length-1;i>=0;i--){var n=this.items[i];if(n.instance==this.currentContainer||!this.currentContainer||n.item[0]==this.currentItem[0]){var s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item;e||(n.width=s.outerWidth(),n.height=s.outerHeight());var r=s.offset();n.left=r.left,n.top=r.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--){r=this.containers[i].element.offset();this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(e){var i=(e=e||this).options;if(!i.placeholder||i.placeholder.constructor==String){var n=i.placeholder;i.placeholder={element:function(){var i=t(document.createElement(e.currentItem[0].nodeName)).addClass(n||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(i.style.visibility="hidden"),i},update:function(t,s){n&&!i.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}}e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),i.placeholder.update(e,e.placeholder)},_contactContainers:function(e){for(var i=null,n=null,s=this.containers.length-1;s>=0;s--)if(!t.contains(this.currentItem[0],this.containers[s].element[0]))if(this._intersectsWith(this.containers[s].containerCache)){if(i&&t.contains(this.containers[s].element[0],i.element[0]))continue;i=this.containers[s],n=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",e,this._uiHash(this)),this.containers[s].containerCache.over=0);if(i)if(1===this.containers.length)this.containers[n]._trigger("over",e,this._uiHash(this)),this.containers[n].containerCache.over=1;else{for(var r=1e4,o=null,a=this.containers[n].floating?"left":"top",l=this.containers[n].floating?"width":"height",u=this.positionAbs[a]+this.offset.click[a],c=this.items.length-1;c>=0;c--)if(t.contains(this.containers[n].element[0],this.items[c].item[0])&&this.items[c].item[0]!=this.currentItem[0]){var h=this.items[c].item.offset()[a],d=!1;Math.abs(h-u)>Math.abs(h+this.items[c][l]-u)&&(d=!0,h+=this.items[c][l]),Math.abs(h-u)<r&&(r=Math.abs(h-u),o=this.items[c],this.direction=d?"up":"down")}if(!o&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[n],o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[n].element,!0),this._trigger("change",e,this._uiHash()),this.containers[n]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[n]._trigger("over",e,this._uiHash(this)),this.containers[n].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(""==n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),"document"!=e.containment&&"window"!=e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(e.containment)){var i=t(e.containment)[0],n=t(e.containment).offset(),s="hidden"!=t(i).css("overflow");this.containment=[n.left+(parseInt(t(i).css("borderLeftWidth"),10)||0)+(parseInt(t(i).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(i).css("borderTopWidth"),10)||0)+(parseInt(t(i).css("paddingTop"),10)||0)-this.margins.top,n.left+(s?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css("borderLeftWidth"),10)||0)-(parseInt(t(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(s?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css("borderTopWidth"),10)||0)-(parseInt(t(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"==e?1:-1,s=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"==this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);"relative"!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());var r=e.pageX,o=e.pageY;if(this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),i.grid)){var a=this.originalPageY+Math.round((o-this.originalPageY)/i.grid[1])*i.grid[1];o=this.containment&&(a-this.offset.click.top<this.containment[1]||a-this.offset.click.top>this.containment[3])?a-this.offset.click.top<this.containment[1]?a+i.grid[1]:a-i.grid[1]:a;var l=this.originalPageX+Math.round((r-this.originalPageX)/i.grid[0])*i.grid[0];r=this.containment&&(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l-this.offset.click.left<this.containment[0]?l+i.grid[0]:l-i.grid[0]:l}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"==this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s==this.counter&&this.refreshPositions(!n)})},_clear:function(e,i){this.reverting=!1;var n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var s in this._storedCSS)"auto"!=this._storedCSS[s]&&"static"!=this._storedCSS[s]||(this._storedCSS[s]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!i&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||i||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(i||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer))));for(s=this.containers.length-1;s>=0;s--)i||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[s])),this.containers[s].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",e,this._uiHash());for(s=0;s<n.length;s++)n[s].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(i||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(s=0;s<n.length;s++)n[s].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t){var e=0,i={},n={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var i=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e),n=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(n.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),n.collapsible||!1!==n.active&&null!=n.active||(n.active=0),n.active<0&&(n.active+=this.headers.length),this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(e){var n=t(this),s=n.attr("id"),r=n.next(),o=r.attr("id");s||(s=i+"-header-"+e,n.attr("id",s)),o||(o=i+"-panel-"+e,r.attr("id",o)),n.attr("aria-controls",o),r.attr("aria-labelledby",s)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true",
"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(n.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)):this._activate(e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),r=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:r=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[n-1]}r&&(t(e.target).attr("tabIndex",-1),t(r).attr("tabIndex",0),r.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e,i,n=this.options.heightStyle,s=this.element.parent();"fill"===n?(t.support.minHeight||(i=s.css("overflow"),s.css("overflow","hidden")),e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),i&&s.css("overflow",i),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).css("height","").height())}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={};e&&(t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._on(this.headers,i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget),r=s[0]===n[0],o=r&&i.collapsible,a=o?t():s.next(),l={oldHeader:n,oldPanel:n.next(),newHeader:o?t():s,newPanel:a};e.preventDefault(),r&&!i.collapsible||!1===this._trigger("beforeActivate",e,l)||(i.active=!o&&this.headers.index(s),this.active=r?t():s,this._toggle(l),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),r||(s.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&s.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),s.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,s){var r,o,a,l=this,u=0,c=t.length&&(!e.length||t.index()<e.index()),h=this.options.animate||{},d=c&&h.down||h,f=function(){l._toggleComplete(s)};return"number"==typeof d&&(a=d),"string"==typeof d&&(o=d),o=o||d.easing||h.easing,a=a||d.duration||h.duration,e.length?t.length?(r=t.show().outerHeight(),e.animate(i,{duration:a,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(n,{duration:a,easing:o,complete:f,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?u+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(r-e.outerHeight()-u),u=0)}})):e.animate(i,a,o,f):t.animate(n,a,o,f)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),!1!==t.uiBackCompat&&(function(t,e){t.extend(e.options,{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var i=e._create;e._create=function(){if(this.options.navigation){var e=this,n=this.element.find(this.options.header),s=n.next(),r=n.add(s).find("a").filter(this.options.navigationFilter)[0];r&&n.add(s).each(function(i){if(t.contains(this,r))return e.options.active=Math.floor(i/2),!1})}i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(t,e){t.extend(e.options,{heightStyle:null,autoHeight:!0,clearStyle:!1,fillSpace:!1});var i=e._create,n=e._setOption;t.extend(e,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle(),i.call(this)},_setOption:function(t){"autoHeight"!==t&&"clearStyle"!==t&&"fillSpace"!==t||(this.options.heightStyle=this._mergeHeightStyle()),n.apply(this,arguments)},_mergeHeightStyle:function(){var t=this.options;return t.fillSpace?"fill":t.clearStyle?"content":t.autoHeight?"auto":void 0}})}(jQuery,jQuery.ui.accordion.prototype),function(t,e){t.extend(e.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var i=e._createIcons;e._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(t,e){e.activate=e._activate;var i=e._findActive;e._findActive=function(t){return-1===t&&(t=!1),t&&"number"!=typeof t&&-1===(t=this.headers.index(this.headers.filter(t)))&&(t=!1),i.call(this,t)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(t,e){t.extend(e.options,{change:null,changestart:null});var i=e._trigger;e._trigger=function(t,e,n){var s=i.apply(this,arguments);return!!s&&("beforeActivate"===t?s=i.call(this,"changestart",e,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel}):"activate"===t&&(s=i.call(this,"change",e,{oldHeader:n.oldHeader,oldContent:n.oldPanel,newHeader:n.newHeader,newContent:n.newPanel})),s)}}(jQuery,jQuery.ui.accordion.prototype),function(t,e){t.extend(e.options,{animate:null,animated:"slide"});var i=e._create;e._create=function(){var t=this.options;null===t.animate&&(t.animated?"slide"===t.animated?t.animate=300:"bounceslide"===t.animated?t.animate={duration:200,down:{easing:"easeOutBounce",duration:1e3}}:t.animate=t.animated:t.animate=!1),i.call(this)}}(jQuery,jQuery.ui.accordion.prototype))}(jQuery),function(t){var e=0;t.widget("ui.autocomplete",{version:"1.9.2",defaultElement:"<input>",options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n;this.isMultiLine=this._isMultiLine(),this.valueMethod=this.element[this.element.is("input,textarea")?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var r=t.ui.keyCode;switch(s.keyCode){case r.PAGE_UP:e=!0,this._move("previousPage",s);break;case r.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case r.UP:e=!0,this._keyEvent("previous",s);break;case r.DOWN:e=!0,this._keyEvent("next",s);break;case r.ENTER:case r.NUMPAD_ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case r.TAB:this.menu.active&&this.menu.select(s);break;case r.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void n.preventDefault();if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete").appendTo(this.document.find(this.options.appendTo||"body")[0]).menu({input:t(),role:null}).zIndex(this.element.zIndex()+1).hide().data("menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item")||i.item.data("item.autocomplete");!1!==this._trigger("focus",e,{item:n})?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item")||e.item.data("item.autocomplete"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),t.fn.bgiframe&&this.menu.element.bgiframe(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this.document.find(e||"body")[0]),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isMultiLine:function(){return!!this.element.is("textarea")||!this.element.is("input")&&this.element.prop("isContentEditable")},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=this,i=++e;return function(n){i===e&&t.__response(n),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,e),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<a>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t){var e,i,n,s,r="ui-button ui-widget ui-state-default ui-corner-all",o="ui-state-hover ui-state-active ",a="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",l=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},u=function(e){var i=e.name,n=e.form,s=t([]);return i&&(s=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),s};t.widget("ui.button",{version:"1.9.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,l),"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,a=this.options,c="checkbox"===this.type||"radio"===this.type,h=c?"":"ui-state-active",d="ui-state-focus";null===a.label&&(a.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(r).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){a.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){a.disabled||t(this).removeClass(h)}).bind("click"+this.eventNamespace,function(t){a.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(){s||o.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(t){a.disabled||(s=!1,i=t.pageX,n=t.pageY)}).bind("mouseup"+this.eventNamespace,function(t){a.disabled||i===t.pageX&&n===t.pageY||(s=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||s)return!1;t(this).toggleClass("ui-state-active"),o.buttonElement.attr("aria-pressed",o.element[0].checked)}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(a.disabled||s)return!1;t(this).addClass("ui-state-active"),o.buttonElement.attr("aria-pressed","true");var e=o.element[0];u(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(){if(a.disabled)return!1;t(this).addClass("ui-state-active"),e=this,o.document.one("mouseup",function(){e=null})}).bind("mouseup"+this.eventNamespace,function(){if(a.disabled)return!1;t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){if(a.disabled)return!1;e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active")}).bind("keyup"+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",a.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="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"))&&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(r+" "+o+" "+a).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){this._super(t,e),"disabled"!==t?this._resetButton():e?this.element.prop("disabled",!0):this.element.prop("disabled",!1)},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?u(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){var e=this.buttonElement.removeClass(a),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,s=n.primary&&n.secondary,r=[];n.primary||n.secondary?(this.options.text&&r.push("ui-button-text-icon"+(s?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(r.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):r.push("ui-button-text-only"),e.addClass(r.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.9.2",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(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),function($,undefined){function Datepicker(){this.debug=!1,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},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(e,"mouseout",function(){$(this).removeClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).delegate(e,"mouseover",function(){$.datepicker._isDisabledDatepicker(instActive.inline?t.parent()[0]:instActive.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!=this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!=this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))})}function extendRemove(t,e){for(var i in $.extend(t,e),e)null!=e[i]&&e[i]!=undefined||(t[i]=e[i]);return t}$.extend($.ui,{datepicker:{version:"1.9.2"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(t,i,n){e.settings[i]=n}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),this._autoSize(e),$.data(t,PROP_NAME,e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=$('<span class="'+this._appendClass+'">'+i+"</span>"),t[n?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove();var s=this._get(e,"showOn");if("focus"!=s&&"both"!=s||t.focus(this._showDatepicker),"button"==s||"both"==s){var r=this._get(e,"buttonText"),o=this._get(e,"buttonImage");e.trigger=$(this._get(e,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==o?r:$("<img/>").attr({src:o,alt:r,title:r}))),t[n?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=t[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])):$.datepicker._showDatepicker(t[0]),!1})}},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e=new Date(2009,11,20),i=this._get(t,"dateFormat");if(i.match(/[DM]/)){var n=function(t){for(var e=0,i=0,n=0;n<t.length;n++)t[n].length>e&&(e=t[n].length,i=n);return i};e.setMonth(n(this._get(t,i.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(n(this._get(t,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}t.input.attr("size",this._formatDate(t,e).length)}},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,i,n){e.settings[i]=n}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),$.data(t,PROP_NAME,e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,n,s){var r=this._dialogInst;if(!r){this.uuid+=1;var o="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+o+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],PROP_NAME,r)}if(extendRemove(r.settings,n||{}),e=e&&e.constructor==Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,!this._pos){var a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[a/2-100+u,l/2-150+c]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,r),this},_destroyDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();$.removeData(t,PROP_NAME),"input"==n?(i.append.remove(),i.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!=n&&"span"!=n||e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();if("input"==n)t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==n||"span"==n){var s=e.children("."+this._inlineClass);s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var n=t.nodeName.toLowerCase();if("input"==n)t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==n||"span"==n){var s=e.children("."+this._inlineClass);s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==t)return!0;return!1},_getInst:function(t){try{return $.data(t,PROP_NAME)}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var n=this._getInst(t);if(2==arguments.length&&"string"==typeof e)return"defaults"==e?$.extend({},$.datepicker._defaults):n?"all"==e?$.extend({},n.settings):this._get(n,e):null;var s=e||{};if("string"==typeof e&&((s={})[e]=i),n){this._curInst==n&&this._hideDatepicker()
;var r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(n,"min"),a=this._getMinMaxDate(n,"max");extendRemove(n.settings,s),null!==o&&s.dateFormat!==undefined&&s.minDate===undefined&&(n.settings.minDate=this._formatDate(n,o)),null!==a&&s.dateFormat!==undefined&&s.maxDate===undefined&&(n.settings.maxDate=this._formatDate(n,a)),this._attachments($(t),n),this._autoSize(n),this._setDate(n,r),this._updateAlternate(n),this._updateDatepicker(n)}},_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(t){var e=$.datepicker._getInst(t.target),i=!0,n=e.dpDiv.is(".ui-datepicker-rtl");if(e._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),i=!1;break;case 13:var s=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",e.dpDiv);s[0]&&$.datepicker._selectDay(t.target,e.selectedMonth,e.selectedYear,s[0]);var r=$.datepicker._get(e,"onSelect");if(r){var o=$.datepicker._formatDate(e);r.apply(e.input?e.input[0]:null,[o,e])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),i=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),i=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?1:-1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),i=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?-1:1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),i=t.ctrlKey||t.metaKey;break;default:i=!1}else 36==t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):i=!1;i&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e=$.datepicker._getInst(t.target);if($.datepicker._get(e,"constrainInput")){var i=$.datepicker._possibleChars($.datepicker._get(e,"dateFormat")),n=String.fromCharCode(t.charCode==undefined?t.keyCode:t.charCode);return t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1}},_doKeyUp:function(t){var e=$.datepicker._getInst(t.target);if(e.input.val()!=e.lastVal)try{$.datepicker.parseDate($.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,$.datepicker._getFormatConfig(e))&&($.datepicker._setDateFromField(e),$.datepicker._updateAlternate(e),$.datepicker._updateDatepicker(e))}catch(i){$.datepicker.log(i)}return!0},_showDatepicker:function(t){if("input"!=(t=t.target||t).nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),!$.datepicker._isDisabledDatepicker(t)&&$.datepicker._lastInput!=t){var e=$.datepicker._getInst(t);$.datepicker._curInst&&$.datepicker._curInst!=e&&($.datepicker._curInst.dpDiv.stop(!0,!0),e&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(e,"beforeShow"),n=i?i.apply(t,[t,e]):{};if(!1!==n){extendRemove(e.settings,n),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight);var s=!1;$(t).parents().each(function(){return!(s|="fixed"==$(this).css("position"))});var r={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),r=$.datepicker._checkOffset(e,r,s),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":s?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),!e.inline){var o=$.datepicker._get(e,"showAnim"),a=$.datepicker._get(e,"duration"),l=function(){var t=e.dpDiv.find("iframe.ui-datepicker-cover");if(t.length){var i=$.datepicker._getBorders(e.dpDiv);t.css({left:-i[0],top:-i[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex($(t).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[o]||$.effects[o])?e.dpDiv.show(o,$.datepicker._get(e,"showOptions"),a,l):e.dpDiv[o||"show"](o?a:null,l),o&&a||l(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e}}}},_updateDatepicker:function(t){this.maxRows=4;var e=$.datepicker._getBorders(t.dpDiv);instActive=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i=t.dpDiv.find("iframe.ui-datepicker-cover");i.length&&i.css({left:-e[0],top:-e[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n=this._getNumberOfMonths(t),s=n[1],r=17;if(t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",r*s+"em"),t.dpDiv[(1!=n[0]||1!=n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml){var o=t.yearshtml;setTimeout(function(){o===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),o=t.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(t,e,i){var n=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?n-r:0,e.left-=i&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top==t.input.offset().top+o?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>a&&a>n?Math.abs(e.left+n-a):0),e.top-=Math.min(e.top,e.top+s>l&&l>s?Math.abs(s+o):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];var n=$(t).offset();return[n.left,n.top]},_hideDatepicker:function(t){var e=this._curInst;if(e&&(!t||e==$.data(t,PROP_NAME))&&this._datepickerShowing){var i=this._get(e,"showAnim"),n=this._get(e,"duration"),s=function(){$.datepicker._tidyDialog(e)};$.effects&&($.effects.effect[i]||$.effects[i])?e.dpDiv.hide(i,$.datepicker._get(e,"showOptions"),n,s):e.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1;var r=this._get(e,"onClose");r&&r.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target),i=$.datepicker._getInst(e[0]);(e[0].id==$.datepicker._mainDivId||0!=e.parents("#"+$.datepicker._mainDivId).length||e.hasClass($.datepicker.markerClassName)||e.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!e.hasClass($.datepicker.markerClassName)||$.datepicker._curInst==i)||$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,i){var n=$(t),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,e+("M"==i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(t){var e=$(t),i=this._getInst(e[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var n=new Date;i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()}this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var n=$(t),s=this._getInst(n[0]);s["selected"+("M"==i?"Month":"Year")]=s["draw"+("M"==i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(t,e,i,n){var s=$(t);if(!$(n).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(s[0])){var r=this._getInst(s[0]);r.selectedDay=r.currentDay=$("a",n).html(),r.selectedMonth=r.currentMonth=e,r.selectedYear=r.currentYear=i,this._selectDate(t,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear))}},_clearDate:function(t){var e=$(t);this._getInst(e[0]);this._selectDate(e,"")},_selectDate:function(t,e){var i=$(t),n=this._getInst(i[0]);e=null!=e?e:this._formatDate(n),n.input&&n.input.val(e),this._updateAlternate(n);var s=this._get(n,"onSelect");s?s.apply(n.input?n.input[0]:null,[e,n]):n.input&&n.input.trigger("change"),n.inline?this._updateDatepicker(n):(this._hideDatepicker(),this._lastInput=n.input[0],"object"!=typeof n.input[0]&&n.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e=this._get(t,"altField");if(e){var i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t));$(e).each(function(){$(this).val(s)})}},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var i=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((i-e)/864e5)/7)+1},parseDate:function(t,e,i){if(null==t||null==e)throw"Invalid arguments";if(""==(e="object"==typeof e?e.toString():e+""))return null;var n=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10);for(var s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,o=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,u=-1,c=-1,h=-1,d=!1,f=function(e){var i=y+1<t.length&&t.charAt(y+1)==e;return i&&y++,i},p=function(t){var i=f(t),n=new RegExp("^\\d{1,"+("@"==t?14:"!"==t?20:"y"==t&&i?4:"o"==t?3:2)+"}"),s=e.substring(v).match(n);if(!s)throw"Missing number at position "+v;return v+=s[0].length,parseInt(s[0],10)},m=function(t,i,n){var s=$.map(f(t)?n:i,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)}),r=-1;if($.each(s,function(t,i){var n=i[1];if(e.substr(v,n.length).toLowerCase()==n.toLowerCase())return r=i[0],v+=n.length,!1}),-1!=r)return r+1;throw"Unknown name at position "+v},g=function(){if(e.charAt(v)!=t.charAt(y))throw"Unexpected literal at position "+v;v++},v=0,y=0;y<t.length;y++)if(d)"'"!=t.charAt(y)||f("'")?g():d=!1;else switch(t.charAt(y)){case"d":c=p("d");break;case"D":m("D",s,r);break;case"o":h=p("o");break;case"m":u=p("m");break;case"M":u=m("M",o,a);break;case"y":l=p("y");break;case"@":l=(_=new Date(p("@"))).getFullYear(),u=_.getMonth()+1,c=_.getDate();break;case"!":var _;l=(_=new Date((p("!")-this._ticksTo1970)/1e4)).getFullYear(),u=_.getMonth()+1,c=_.getDate();break;case"'":f("'")?g():d=!0;break;default:g()}if(v<e.length){var b=e.substr(v);if(!/^\s+/.test(b))throw"Extra/unparsed characters found in date: "+b}if(-1==l?l=(new Date).getFullYear():l<100&&(l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(l<=n?0:-100)),h>-1)for(u=1,c=h;;){var w=this._getDaysInMonth(l,u-1);if(c<=w)break;u++,c-=w}if((_=this._daylightSavingAdjust(new Date(l,u-1,c))).getFullYear()!=l||_.getMonth()+1!=u||_.getDate()!=c)throw"Invalid date";return _},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,a=function(e){var i=d+1<t.length&&t.charAt(d+1)==e;return i&&d++,i},l=function(t,e,i){var n=""+e;if(a(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return a(t)?n[e]:i[e]},c="",h=!1;if(e)for(var d=0;d<t.length;d++)if(h)"'"!=t.charAt(d)||a("'")?c+=t.charAt(d):h=!1;else switch(t.charAt(d)){case"d":c+=l("d",e.getDate(),2);break;case"D":c+=u("D",e.getDay(),n,s);break;case"o":c+=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":c+=l("m",e.getMonth()+1,2);break;case"M":c+=u("M",e.getMonth(),r,o);break;case"y":c+=a("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":a("'")?c+="'":h=!0;break;default:c+=t.charAt(d)}return c},_possibleChars:function(t){for(var e="",i=!1,n=function(e){var i=s+1<t.length&&t.charAt(s+1)==e;return i&&s++,i},s=0;s<t.length;s++)if(i)"'"!=t.charAt(s)||n("'")?e+=t.charAt(s):i=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":n("'")?e+="'":i=!0;break;default:e+=t.charAt(s)}return e},_get:function(t,e){return t.settings[e]!==undefined?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!=t.lastVal){var i,n,s=this._get(t,"dateFormat"),r=t.lastVal=t.input?t.input.val():null;i=n=this._getDefaultDate(t);var o=this._getFormatConfig(t);try{i=this.parseDate(s,r,o)||n}catch(a){this.log(a),r=e?"":r}t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),t.currentDay=r?i.getDate():0,t.currentMonth=r?i.getMonth():0,t.currentYear=r?i.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,i){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=null==e||""===e?i:"string"==typeof e?function(e){try{return $.datepicker.parseDate($.datepicker._get(t,"dateFormat"),e,$.datepicker._getFormatConfig(t))}catch(l){}for(var i=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(t):null)||new Date,n=i.getFullYear(),s=i.getMonth(),r=i.getDate(),o=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(e);a;){switch(a[2]||"d"){case"d":case"D":r+=parseInt(a[1],10);break;case"w":case"W":r+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,s));break;case"y":case"Y":n+=parseInt(a[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,s))}a=o.exec(e)}return new Date(n,s,r)}(e):"number"==typeof e?isNaN(e)?i:n(e):new Date(e.getTime());return(s=s&&"Invalid Date"==s.toString()?i:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,r=t.selectedYear,o=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=o.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=o.getMonth(),t.drawYear=t.selectedYear=t.currentYear=o.getFullYear(),s==t.selectedMonth&&r==t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""==t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,-e,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,+e,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(t,"isRTL"),n=this._get(t,"showButtonPanel"),s=this._get(t,"hideIfNoPrevNext"),r=this._get(t,"navigationAsDateFormat"),o=this._getNumberOfMonths(t),a=this._get(t,"showCurrentAtPos"),l=this._get(t,"stepMonths"),u=1!=o[0]||1!=o[1],c=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),h=this._getMinMaxDate(t,"min"),d=this._getMinMaxDate(t,"max"),f=t.drawMonth-a,p=t.drawYear;if(f<0&&(f+=12,p--),d){var m=this._daylightSavingAdjust(new Date(d.getFullYear(),d.getMonth()-o[0]*o[1]+1,d.getDate()));for(m=h&&m<h?h:m;this._daylightSavingAdjust(new Date(p,f,1))>m;)--f<0&&(f=11,p--)}t.drawMonth=f,t.drawYear=p;var g=this._get(t,"prevText");g=r?this.formatDate(g,this._daylightSavingAdjust(new Date(p,f-l,1)),this._getFormatConfig(t)):g;var v=this._canAdjustMonth(t,-1,p,f)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>":s?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>",y=this._get(t,"nextText");y=r?this.formatDate(y,this._daylightSavingAdjust(new Date(p,f+l,1)),this._getFormatConfig(t)):y;var _=this._canAdjustMonth(t,1,p,f)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+y+"</span></a>":s?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+y+"</span></a>",b=this._get(t,"currentText"),w=this._get(t,"gotoCurrent")&&t.currentDay?c:e;b=r?this.formatDate(b,w,this._getFormatConfig(t)):b;var x=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>",k=n?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?x:"")+(this._isInRange(t,w)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+b+"</button>":"")+(i?"":x)+"</div>":"",C=parseInt(this._get(t,"firstDay"),10);C=isNaN(C)?0:C;for(var D=this._get(t,"showWeek"),T=this._get(t,"dayNames"),S=(this._get(t,"dayNamesShort"),this._get(t,"dayNamesMin")),E=this._get(t,"monthNames"),P=this._get(t,"monthNamesShort"),N=this._get(t,"beforeShowDay"),M=this._get(t,"showOtherMonths"),A=this._get(t,"selectOtherMonths"),I=(this._get(t,"calculateWeek")||this.iso8601Week,this._getDefaultDate(t)),j="",O=0;O<o[0];O++){var H="";this.maxRows=4;for(var L=0;L<o[1];L++){var z=this._daylightSavingAdjust(new Date(p,f,t.selectedDay)),W=" ui-corner-all",F="";if(u){if(F+='<div class="ui-datepicker-group',o[1]>1)switch(L){case 0:F+=" ui-datepicker-group-first",W=" ui-corner-"+(i?"right":"left");break;case o[1]-1:F+=" ui-datepicker-group-last",W=" ui-corner-"+(i?"left":"right");break;default:F+=" ui-datepicker-group-middle",W=""}F+='">'}F+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+W+'">'+(/all|left/.test(W)&&0==O?i?_:v:"")+(/all|right/.test(W)&&0==O?i?v:_:"")+this._generateMonthYearHeader(t,f,p,h,d,O>0||L>0,E,P)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var R=D?'<th class="ui-datepicker-week-col">'+this._get(t,"weekHeader")+"</th>":"",q=0;q<7;q++){var B=(q+C)%7;R+="<th"+((q+C+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+T[B]+'">'+S[B]+"</span></th>"}F+=R+"</tr></thead><tbody>";var V=this._getDaysInMonth(p,f);p==t.selectedYear&&f==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,V));var Y=(this._getFirstDayOfMonth(p,f)-C+7)%7,U=Math.ceil((Y+V)/7),Q=u&&this.maxRows>U?this.maxRows:U;this.maxRows=Q;for(var K=this._daylightSavingAdjust(new Date(p,f,1-Y)),X=0;X<Q;X++){F+="<tr>";var G=D?'<td class="ui-datepicker-week-col">'+this._get(t,"calculateWeek")(K)+"</td>":"";for(q=0;q<7;q++){var Z=N?N.apply(t.input?t.input[0]:null,[K]):[!0,""],J=K.getMonth()!=f,tt=J&&!A||!Z[0]||h&&K<h||d&&K>d;G+='<td class="'+((q+C+6)%7>=5?" ui-datepicker-week-end":"")+(J?" ui-datepicker-other-month":"")+(K.getTime()==z.getTime()&&f==t.selectedMonth&&t._keyEvent||I.getTime()==K.getTime()&&I.getTime()==z.getTime()?" "+this._dayOverClass:"")+(tt?" "+this._unselectableClass+" ui-state-disabled":"")+(J&&!M?"":" "+Z[1]+(K.getTime()==c.getTime()?" "+this._currentClass:"")+(K.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+(J&&!M||!Z[2]?"":' title="'+Z[2]+'"')+(tt?"":' data-handler="selectDay" data-event="click" data-month="'+K.getMonth()+'" data-year="'+K.getFullYear()+'"')+">"+(J&&!M?"&#xa0;":tt?'<span class="ui-state-default">'+K.getDate()+"</span>":'<a class="ui-state-default'+(K.getTime()==e.getTime()?" ui-state-highlight":"")+(K.getTime()==c.getTime()?" ui-state-active":"")+(J?" ui-priority-secondary":"")+'" href="#">'+K.getDate()+"</a>")+"</td>",K.setDate(K.getDate()+1),K=this._daylightSavingAdjust(K)}F+=G+"</tr>"}++f>11&&(f=0,p++),H+=F+="</tbody></table>"+(u?"</div>"+(o[0]>0&&L==o[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"")}j+=H}return j+=k+($.ui.ie6&&!t.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),t._keyEvent=!1,j},_generateMonthYearHeader:function(t,e,i,n,s,r,o,a){var l=this._get(t,"changeMonth"),u=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),h='<div class="ui-datepicker-title">',d="";if(r||!l)d+='<span class="ui-datepicker-month">'+o[e]+"</span>";else{var f=n&&n.getFullYear()==i,p=s&&s.getFullYear()==i;d+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var m=0;m<12;m++)(!f||m>=n.getMonth())&&(!p||m<=s.getMonth())&&(d+='<option value="'+m+'"'+(m==e?' selected="selected"':"")+">"+a[m]+"</option>");d+="</select>"}if(c||(h+=d+(!r&&l&&u?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",r||!u)h+='<span class="ui-datepicker-year">'+i+"</span>";else{var g=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),y=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},_=y(g[0]),b=Math.max(_,y(g[1]||""));for(_=n?Math.max(_,n.getFullYear()):_,b=s?Math.min(b,s.getFullYear()):b,t.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';_<=b;_++)t.yearshtml+='<option value="'+_+'"'+(_==i?' selected="selected"':"")+">"+_+"</option>";t.yearshtml+="</select>",h+=t.yearshtml,t.yearshtml=null}return h+=this._get(t,"yearSuffix"),c&&(h+=(!r&&l&&u?"":"&#xa0;")+d),h+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"==i?e:0),s=t.drawMonth+("M"==i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"==i?e:0),o=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,r)));t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),"M"!=i&&"Y"!=i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return s=n&&s>n?n:s},_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,n){var s=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max");return(!i||e.getTime()>=i.getTime())&&(!n||e.getTime()<=n.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),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,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(t,e){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",n={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},s={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.9.2",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,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;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var e,n,s,r,o,a=this,l=this.options,u=l.title||"&#160;";e=(this.uiDialog=t("<div>")).addClass(i+l.dialogClass).css({display:"none",outline:0,zIndex:l.zIndex}).attr("tabIndex",-1).keydown(function(e){l.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE&&(a.close(e),e.preventDefault())}).mousedown(function(t){a.moveToTop(!1,t)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(e),n=(this.uiDialogTitlebar=t("<div>")).addClass("ui-dialog-titlebar  ui-widget-header  ui-corner-all  ui-helper-clearfix").bind("mousedown",function(){e.focus()}).prependTo(e),s=t("<a href='#'></a>").addClass("ui-dialog-titlebar-close  ui-corner-all").attr("role","button").click(function(t){t.preventDefault(),a.close(t)}).appendTo(n),(this.uiDialogTitlebarCloseText=t("<span>")).addClass("ui-icon ui-icon-closethick").text(l.closeText).appendTo(s),r=t("<span>").uniqueId().addClass("ui-dialog-title").html(u).prependTo(n),o=(this.uiDialogButtonPane=t("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=t("<div>")).addClass("ui-dialog-buttonset").appendTo(o),e.attr({role:"dialog","aria-labelledby":r.attr("id")}),n.find("*").add(n).disableSelection(),this._hoverable(s),this._focusable(s),l.draggable&&t.fn.draggable&&this._makeDraggable(),l.resizable&&t.fn.resizable&&this._makeResizable(),this._createButtons(l.buttons),this._isOpen=!1,t.fn.bgiframe&&e.bgiframe(),this._on(e,{keydown:function(i){if(l.modal&&i.keyCode===t.ui.keyCode.TAB){var n=t(":tabbable",e),s=n.filter(":first"),r=n.filter(":last");return i.target!==r[0]||i.shiftKey?i.target===s[0]&&i.shiftKey?(r.focus(1),!1):void 0:(s.focus(1),!1)}}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var t,e=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(e){var i,n,s=this;if(this._isOpen&&!1!==this._trigger("beforeClose",e))return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){s._trigger("close",e)}):(this.uiDialog.hide(),this._trigger("close",e)),t.ui.dialog.overlay.resize(),this.options.modal&&(i=0,t(".ui-dialog").each(function(){this!==s.uiDialog[0]&&(n=t(this).css("z-index"),isNaN(n)||(i=Math.max(i,n)))}),t.ui.dialog.maxZ=i),this},isOpen:function(){return this._isOpen},moveToTop:function(e,i){var n,s=this.options;return s.modal&&!e||!s.stack&&!s.modal?this._trigger("focus",i):(s.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=s.zIndex),this.overlay&&(t.ui.dialog.maxZ+=1,t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ,this.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ)),n={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},t.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",t.ui.dialog.maxZ),this.element.attr(n),this._trigger("focus",i),this)},open:function(){if(!this._isOpen){var e,i=this.options,n=this.uiDialog;return this._size(),this._position(i.position),n.show(i.show),this.overlay=i.modal?new t.ui.dialog.overlay(this):null,this.moveToTop(!0),(e=this.element.find(":tabbable")).length||(e=this.uiDialogButtonPane.find(":tabbable")).length||(e=n),e.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this}},_createButtons:function(e){var i=this,n=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),"object"==typeof e&&null!==e&&t.each(e,function(){return!(n=!0)}),n?(t.each(e,function(e,n){var s,r;n=t.isFunction(n)?{click:n,text:e}:n,n=t.extend({type:"button"},n),r=n.click,n.click=function(){r.apply(i.element[0],arguments)},s=t("<button></button>",n).appendTo(i.uiButtonSet),t.fn.button&&s.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){
t(this).addClass("ui-dialog-dragging"),i._trigger("dragStart",n,e(s))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(s,r){n.position=[r.position.left-i.document.scrollLeft(),r.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._trigger("dragStop",s,e(r)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(i){function n(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}i=i===e?this.options.resizable:i;var s=this,r=this.options,o=this.uiDialog.css("position"),a="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:this._minHeight(),handles:a,start:function(e,i){t(this).addClass("ui-dialog-resizing"),s._trigger("resizeStart",e,n(i))},resize:function(t,e){s._trigger("resize",t,n(e))},stop:function(e,i){t(this).removeClass("ui-dialog-resizing"),r.height=t(this).height(),r.width=t(this).width(),s._trigger("resizeStop",e,n(i)),t.ui.dialog.overlay.resize()}}).css("position",o).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var i,n=[],s=[0,0];e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(1===(n=e.split?e.split(" "):[e[0],e[1]]).length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(s[t]=n[t],n[t]=e)}),e={my:n[0]+(s[0]<0?s[0]:"+"+s[0])+" "+n[1]+(s[1]<0?s[1]:"+"+s[1]),at:n.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,(i=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(e),i||this.uiDialog.hide()},_setOptions:function(e){var i=this,r={},o=!1;t.each(e,function(t,e){i._setOption(t,e),t in n&&(o=!0),t in s&&(r[t]=e)}),o&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(e,n){var s,r,o=this.uiDialog;switch(e){case"buttons":this._createButtons(n);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+n);break;case"dialogClass":o.removeClass(this.options.dialogClass).addClass(i+n);break;case"disabled":n?o.addClass("ui-dialog-disabled"):o.removeClass("ui-dialog-disabled");break;case"draggable":(s=o.is(":data(draggable)"))&&!n&&o.draggable("destroy"),!s&&n&&this._makeDraggable();break;case"position":this._position(n);break;case"resizable":(r=o.is(":data(resizable)"))&&!n&&o.resizable("destroy"),r&&"string"==typeof n&&o.resizable("option","handles",n),r||!1===n||this._makeResizable(n);break;case"title":t(".ui-dialog-title",this.uiDialogTitlebar).html(""+(n||"&#160;"))}this._super(e,n)},_size:function(){var e,i,n,s=this.options,r=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),i=Math.max(0,s.minHeight-e),"auto"===s.height?t.support.minHeight?this.element.css({minHeight:i,height:"auto"}):(this.uiDialog.show(),n=this.element.css("height","auto").height(),r||this.uiDialog.hide(),this.element.height(Math.max(n,i))):this.element.height(Math.max(s.height-e,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()<t.ui.dialog.overlay.maxZ)return!1})},1),t(window).bind("resize.dialog-overlay",t.ui.dialog.overlay.resize));var i=this.oldInstances.pop()||t("<div>").addClass("ui-widget-overlay");return t(document).bind("keydown.dialog-overlay",function(n){var s=t.ui.dialog.overlay.instances;0!==s.length&&s[s.length-1]===i&&e.options.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===t.ui.keyCode.ESCAPE&&(e.close(n),n.preventDefault())}),i.appendTo(document.body).css({width:this.width(),height:this.height()}),t.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(e){var i=t.inArray(e,this.instances),n=0;-1!==i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.height(0).width(0).remove(),t.each(this.instances,function(){n=Math.max(n,this.css("z-index"))}),this.maxZ=n},height:function(){var e;return t.ui.ie?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))<Math.max(document.documentElement.offsetHeight,document.body.offsetHeight)?t(window).height()+"px":e+"px":t(document).height()+"px"},width:function(){var e;return t.ui.ie?(e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth))<Math.max(document.documentElement.offsetWidth,document.body.offsetWidth)?t(window).width()+"px":e+"px":t(document).width()+"px"},resize:function(){var e=t([]);t.each(t.ui.dialog.overlay.instances,function(){e=e.add(this)}),e.css({width:0,height:0}).css({width:t.ui.dialog.overlay.width(),height:t.ui.dialog.overlay.height()})}}),t.extend(t.ui.dialog.overlay.prototype,{destroy:function(){t.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(t){var e=!1;t.widget("ui.menu",{version:"1.9.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(i){var n=t(i.target).closest(".ui-menu-item");!e&&n.not(".ui-state-disabled").length&&(e=!0,this.select(i),n.has(".ui-menu").length?this.expand(i):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(i){t(i.target).closest(".ui-menu").length||this.collapseAll(i),e=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,s,r,o,a,l=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:l=!1,s=this.previousFilter||"",r=String.fromCharCode(e.keyCode),o=!1,clearTimeout(this.filterTimer),r===s?o=!0:r=s+r,a=new RegExp("^"+i(r),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),(n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(r=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(r),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),s=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",n.attr("id"))}),(e=n.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s,r,o,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,r=this.activeMenu.scrollTop(),o=this.activeMenu.height(),a=e.height(),s<0?this.activeMenu.scrollTop(r+s):s+a>o&&this.activeMenu.scrollTop(r+s-o+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n-s<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,s;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+s>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}})}(jQuery),function(t,e){t.widget("ui.progressbar",{version:"1.9.2",options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){return t===e?this._value():(this._setOption("value",t),this)},_setOption:function(t,e){"value"===t&&(this.options.value=e,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),this._super(t,e)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}})}(jQuery),function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var i,n,s=this.options,r=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",a=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(s.disabled?" ui-slider-disabled ui-disabled":"")),this.range=t([]),s.range&&(!0===s.range&&(s.values||(s.values=[this._valueMin(),this._valueMin()]),s.values.length&&2!==s.values.length&&(s.values=[s.values[0],s.values[0]])),this.range=t("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===s.range||"max"===s.range?" ui-slider-range-"+s.range:""))),n=s.values&&s.values.length||1,i=r.length;i<n;i++)a.push(o);this.handles=r.add(t(a.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(t){t.preventDefault()}).mouseenter(function(){s.disabled||t(this).addClass("ui-state-hover")}).mouseleave(function(){t(this).removeClass("ui-state-hover")}).focus(function(){s.disabled?t(this).blur():(t(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),t(this).addClass("ui-state-focus"))}).blur(function(){t(this).removeClass("ui-state-focus")}),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)}),this._on(this.handles,{keydown:function(i){var n,s,r,o=t(i.target).data("ui-slider-handle-index");switch(i.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(i.target).addClass("ui-state-active"),!1===this._start(i,o)))return}switch(r=this.options.step,n=s=this.options.values&&this.options.values.length?this.values(o):this.value(),i.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;s=this._trimAlignValue(n+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;s=this._trimAlignValue(n-r)}this._slide(i,o,s)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,r,o,a,l,u=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-u.values(e));s>i&&(s=i,r=t(this),o=e)}),!0===c.range&&this.values(1)===c.min&&(o+=1,r=t(this.handles[o])),!1!==this._start(e,o)&&(this._mouseSliding=!0,this._handleIndex=o,r.addClass("ui-state-active").focus(),a=r.offset(),l=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-r.width()/2,top:e.pageY-a.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,r;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),r=this._valueMin()+n*s,this._trimAlignValue(r)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,s,r;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&i<n)&&(i=n),i!==this.values(e)&&((s=this.values())[e]=i,r=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),n=this.values(e?0:1),!1!==r&&this.values(e,i,!0))):i!==this.value()&&!1!==(r=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,s=arguments[0],r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(s[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch(t.isArray(this.options.values)&&(s=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;n<s;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,s,r,o=this.options.range,a=this.options,l=this,u=!this._animateOff&&a.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[u?"animate":"css"](c,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[u?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),s=this._valueMin(),r=this._valueMax(),i=r!==s?(n-s)/(r-s)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](c,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))}})}(jQuery),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.9.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],function(t,n){var s=i.attr(n);s!==undefined&&s.length&&(e[n]=s)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),this._super(t,e),"disabled"===t&&(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._spin((t||1)*this.options.step)},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._spin((t||1)*-this.options.step)},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());e(this._value).call(this,t)},widget:function(){return this.uiSpinner}})}(jQuery),function(t,e){function i(){return++r}function n(t){return t.hash.length>1&&t.href.replace(o,"")===location.href.replace(o,"").replace(/\s/g,"%20")}var s,r=0,o=/#.*$/;t.widget("ui.tabs",{version:"1.9.2",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options,n=i.active,s=location.hash.substring(1);this.running=!1,
this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),null===n&&(s&&this.tabs.each(function(e,i){if(t(i).attr("aria-controls")===s)return n=e,!1}),null===n&&(n=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==n&&-1!==n||(n=!!this.tabs.length&&0)),!1!==n&&-1===(n=this.tabs.index(this.tabs.eq(n)))&&(n=!i.collapsible&&0),i.active=n,!i.collapsible&&!1===i.active&&this.anchors.length&&(i.active=0),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(this.options.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function n(){return e>s&&(e=0),e<0&&(e=s),e}for(var s=this.tabs.length-1;-1!==t.inArray(n(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){"active"!==t?"disabled"!==t?(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._setupDisabled(e):this._activate(e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,s){var r,o,a,l=t(s).uniqueId().attr("id"),u=t(s).closest("li"),c=u.attr("aria-controls");n(s)?(r=s.hash,o=e.element.find(e._sanitizeSelector(r))):(r="#"+(a=e._tabId(u)),(o=e.element.find(r)).length||(o=e._createPanel(a)).insertAfter(e.panels[i-1]||e.tablist),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),c&&u.data("ui-tabs-aria-controls",c),u.attr({"aria-controls":r.substring(1),"aria-labelledby":l}),o.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)!0===e||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n,s=this.element.parent();"fill"===e?(t.support.minHeight||(n=s.css("overflow"),s.css("overflow","hidden")),i=s.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),n&&s.css("overflow",n),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget).closest("li"),r=s[0]===n[0],o=r&&i.collapsible,a=o?t():this._getPanelForTab(s),l=n.length?this._getPanelForTab(n):t(),u={oldTab:n,oldPanel:l,newTab:o?t():s,newPanel:a};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||!1===this._trigger("beforeActivate",e,u)||(i.active=!o&&this.tabs.index(s),this.active=r?t():s,this.xhr&&this.xhr.abort(),l.length||a.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),e),this._toggle(e,u))},_toggle:function(e,i){function n(){r.running=!1,r._trigger("activate",e,i)}function s(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&r.options.show?r._show(o,r.options.show,n):(o.show(),n())}var r=this,o=i.newPanel,a=i.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),s()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),o.length&&a.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var n=this.options.disabled;!1!==n&&(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(!0!==n){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var s=this,r=this.tabs.eq(e),o=r.find(".ui-tabs-anchor"),a=this._getPanelForTab(r),l={tab:r,panel:a};n(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(r.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),s._trigger("load",i,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&s.panels.stop(!1,!0),r.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href"),beforeSend:function(e,r){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:r},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==t.uiBackCompat&&(t.ui.tabs.prototype._ui=function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},t.widget("ui.tabs",t.ui.tabs,{url:function(t,e){this.anchors.eq(t).attr("href",e)}}),t.widget("ui.tabs",t.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var e=this;this._on({tabsbeforeload:function(i,n){t.data(n.tab[0],"cache.tabs")?i.preventDefault():n.jqXHR.success(function(){e.options.cache&&t.data(n.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(e,i,n){var s=this.options.ajaxOptions;return t.extend({},s,{error:function(t,e){try{s.error(t,e,n.tab.closest("li").index(),n.tab[0])}catch(error){}}},this._superApply(arguments))},_setOption:function(t,e){"cache"===t&&!1===e&&this.anchors.removeData("cache.tabs"),this._super(t,e)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(t){this.anchors.eq(t).removeData("cache.tabs"),this._superApply(arguments)}}),t.widget("ui.tabs",t.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),t.widget("ui.tabs",t.ui.tabs,{options:{spinner:"<em>Loading&#8230;</em>"},_create:function(){this._super(),this._on({tabsbeforeload:function(t,e){if(t.target===this.element[0]&&this.options.spinner){var i=e.tab.find("span"),n=i.html();i.html(this.options.spinner),e.jqXHR.complete(function(){i.html(n)})}}})}}),t.widget("ui.tabs",t.ui.tabs,{options:{enable:null,disable:null},enable:function(e){var i,n=this.options;(e&&!0===n.disabled||t.isArray(n.disabled)&&-1!==t.inArray(e,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e]))},disable:function(e){var i,n=this.options;(e&&!1===n.disabled||t.isArray(n.disabled)&&-1===t.inArray(e,n.disabled))&&(i=!0),this._superApply(arguments),i&&this._trigger("disable",null,this._ui(this.anchors[e],this.panels[e]))}}),t.widget("ui.tabs",t.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(i,n,s){s===e&&(s=this.anchors.length);var r,o,a=this.options,l=t(a.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,n)),u=i.indexOf("#")?this._tabId(l):i.replace("#","");return l.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),l.attr("aria-controls",u),r=s>=this.tabs.length,(o=this.element.find("#"+u)).length||(o=this._createPanel(u),r?s>0?o.insertAfter(this.panels.eq(-1)):o.appendTo(this.element):o.insertBefore(this.panels[s])),o.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),r?l.appendTo(this.tablist):l.insertBefore(this.tabs[s]),a.disabled=t.map(a.disabled,function(t){return t>=s?++t:t}),this.refresh(),1===this.tabs.length&&!1===a.active&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[s],this.panels[s])),this},remove:function(e){e=this._getIndex(e);var i=this.options,n=this.tabs.eq(e).remove(),s=this._getPanelForTab(n).remove();return n.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(e+(e+1<this.anchors.length?1:-1)),i.disabled=t.map(t.grep(i.disabled,function(t){return t!==e}),function(t){return t>=e?--t:t}),this.refresh(),this._trigger("remove",null,this._ui(n.find("a")[0],s[0])),this}}),t.widget("ui.tabs",t.ui.tabs,{length:function(){return this.anchors.length}}),t.widget("ui.tabs",t.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(e){var n=e.is("li")?e.find("a[href]"):e;return n=n[0],t(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+i()}}),t.widget("ui.tabs",t.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(e){return t(this.options.panelTemplate).attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),t.widget("ui.tabs",t.ui.tabs,{_create:function(){var t=this.options;null===t.active&&t.selected!==e&&(t.active=-1!==t.selected&&t.selected),this._super(),t.selected=t.active,!1===t.selected&&(t.selected=-1)},_setOption:function(t,e){if("selected"!==t)return this._super(t,e);var i=this.options;this._super("active",-1!==e&&e),i.selected=i.active,!1===i.selected&&(i.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,!1===this.options.selected&&(this.options.selected=-1)}}),t.widget("ui.tabs",t.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),!1!==this.options.active&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(t,e,i){var n,s,r=this._superApply(arguments);return!!r&&("beforeActivate"===t?(n=i.newTab.length?i.newTab:i.oldTab,s=i.newPanel.length?i.newPanel:i.oldPanel,r=this._super("select",e,{tab:n.find(".ui-tabs-anchor")[0],panel:s[0],index:n.closest("li").index()})):"activate"===t&&i.newTab.length&&(r=this._super("show",e,{tab:i.newTab.find(".ui-tabs-anchor")[0],panel:i.newPanel[0],index:i.newTab.closest("li").index()})),r)}}),t.widget("ui.tabs",t.ui.tabs,{select:function(t){if(-1===(t=this._getIndex(t))){if(!this.options.collapsible||-1===this.options.selected)return;t=this.options.selected}this.anchors.eq(t).trigger(this.options.event+this.eventNamespace)}}),s=0,t.widget("ui.tabs",t.ui.tabs,{options:{cookie:null},_create:function(){var t,e=this.options;null==e.active&&e.cookie&&(-1===(t=parseInt(this._cookie(),10))&&(t=!1),e.active=t),this._super()},_cookie:function(e){var i=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++s)];return arguments.length&&(i.push(!1===e?-1:e),i.push(this.options.cookie)),t.cookie.apply(null,i)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}}),t.widget("ui.tabs",t.ui.tabs,{_trigger:function(e,i,n){var s=t.extend({},n);return"load"===e&&(s.panel=s.panel[0],s.tab=s.tab.find(".ui-tabs-anchor")[0]),this._super(e,i,s)}}),t.widget("ui.tabs",t.ui.tabs,{options:{fx:null},_getFx:function(){var e,i,n=this.options.fx;return n&&(t.isArray(n)?(e=n[0],i=n[1]):e=i=n),n?{show:i,hide:e}:null},_toggle:function(t,e){function i(){s.running=!1,s._trigger("activate",t,e)}function n(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&a.show?r.animate(a.show,a.show.duration,function(){i()}):(r.show(),i())}var s=this,r=e.newPanel,o=e.oldPanel,a=this._getFx();if(!a)return this._super(t,e);s.running=!0,o.length&&a.hide?o.animate(a.hide,a.hide.duration,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),n())}}))}(jQuery),function(t){function e(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,n);-1!==s&&n.splice(s,1),e.removeData("ui-tooltip-id"),(n=t.trim(n.join(" ")))?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")}var n=0;t.widget("ui.tooltip",{version:"1.9.2",options:{content:function(){return t(this).attr("title")},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var n=this;if("disabled"===e)return this[i?"_disable":"_enable"](),void(this.options[e]=i);this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n[0],e.close(s,!0)}),this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,s=this,r=e?e.type:null;if("string"==typeof n)return this._open(e,t,n);(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&&s._delay(function(){e&&(e.type=r),this._open(e,t,i)})}))&&this._open(e,t,i)},_open:function(i,n,s){function r(t){u.of=t,o.is(":hidden")||o.position(u)}var o,a,l,u=t.extend({},this.options.position);s&&((o=this._find(n)).length?o.find(".ui-tooltip-content").html(s):(n.is("[title]")&&(i&&"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),e(n,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:r}),r(i)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(l=setInterval(function(){o.is(":visible")&&(r(u.of),clearInterval(l))},t.fx.interval)),this._trigger("open",i,{tooltip:o}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(o)}},i&&"mouseover"!==i.type||(a.mouseleave="close"),i&&"focusin"!==i.type||(a.focusout="close"),this._on(!0,n,a)))},close:function(e){var n=this,s=t(e?e.currentTarget:this.element),r=this._find(s);this.closing||(s.data("ui-tooltip-title")&&s.attr("title",s.data("ui-tooltip-title")),i(s),r.stop(!0),this._hide(r,this.options.hide,function(){n._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:r}),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+n++,s=t("<div>").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("<div>").addClass("ui-tooltip-content").appendTo(s),s.appendTo(this.document[0].body),t.fn.bgiframe&&s.bgiframe(),this.tooltips[i]=e,s},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n[0],e.close(s,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(jQuery),jQuery.effects||function(t,e){var i,n=!1!==t.uiBackCompat,s="ui-effects-";t.effects={effect:{}},function(e,i){function n(t,e,i){var n=d[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function s(t){var i=c(),n=i._rgba=[];return t=t.toLowerCase(),m(u,function(e,s){var r,o=s.re.exec(t),a=o&&s.parse(o),l=s.space||"rgba";if(a)return r=i[l](a),i[h[l].cache]=r[h[l].cache],n=i._rgba=r._rgba,!1}),n.length?("0,0,0,0"===n.join()&&e.extend(n,o.transparent),i):o[t]}function r(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),l=/^([\-+])=\s*(\d+\.?\d*)/,u=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],c=e.Color=function(t,i,n,s){return new e.Color.fn.parse(t,i,n,s)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},f=c.support={},p=e("<p>")[0],m=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",f.rgba=p.style.backgroundColor.indexOf("rgba")>-1,m(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),c.fn=e.extend(c.prototype,{parse:function(r,a,l,u){if(r===i)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(a),a=i);var d=this,f=e.type(r),p=this._rgba=[];return a!==i&&(r=[r,a,l,u],f="array"),"string"===f?this.parse(s(r)||o._default):"array"===f?(m(h.rgba.props,function(t,e){p[e.idx]=n(r[e.idx],e)}),this):"object"===f?(m(h,r instanceof c?function(t,e){r[e.cache]&&(d[e.cache]=r[e.cache].slice())}:function(e,i){var s=i.cache;m(i.props,function(t,e){if(!d[s]&&i.to){if("alpha"===t||null==r[t])return;d[s]=i.to(d._rgba)}d[s][e.idx]=n(r[t],e,!0)}),d[s]&&t.inArray(null,d[s].slice(0,3))<0&&(d[s][3]=1,i.from&&(d._rgba=i.from(d[s])))}),this):void 0},is:function(t){var e=c(t),i=!0,n=this;return m(h,function(t,s){var r,o=e[s.cache];return o&&(r=n[s.cache]||s.to&&s.to(n._rgba)||[],m(s.props,function(t,e){if(null!=o[e.idx])return i=o[e.idx]===r[e.idx]})),i}),i},_space:function(){var t=[],e=this;return m(h,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var i=c(t),s=i._space(),r=h[s],o=0===this.alpha()?c("transparent"):this,a=o[r.cache]||r.to(o._rgba),l=a.slice();return i=i[r.cache],m(r.props,function(t,s){var r=s.idx,o=a[r],u=i[r],c=d[s.type]||{};null!==u&&(null===o?l[r]=u:(c.mod&&(u-o>c.mod/2?o+=c.mod:o-u>c.mod/2&&(o-=c.mod)),l[r]=n((u-o)*e+o,s)))}),this[s](l)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=c(t)._rgba;return c(e.map(i,function(t,e){return(1-n)*s[e]+n*t}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),c.fn.parse.prototype=c.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,r=t[2]/255,o=t[3],a=Math.max(n,s,r),l=Math.min(n,s,r),u=a-l,c=a+l,h=.5*c;return e=l===a?0:n===a?60*(s-r)/u+360:s===a?60*(r-n)/u+120:60*(n-s)/u+240,i=0===h||1===h?h:h<=.5?u/c:u/(2-c),[Math.round(e)%360,i,h,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],o=n<=.5?n*(1+i):n+i-n*i,a=2*n-o;return[Math.round(255*r(a,o,e+1/3)),Math.round(255*r(a,o,e)),Math.round(255*r(a,o,e-1/3)),s]},m(h,function(t,s){var r=s.props,o=s.cache,a=s.to,u=s.from;c.fn[t]=function(t){if(a&&!this[o]&&(this[o]=a(this._rgba)),t===i)return this[o].slice();var s,l=e.type(t),h="array"===l||"object"===l?t:arguments,d=this[o].slice();return m(r,function(t,e){var i=h["object"===l?t:e.idx];null==i&&(i=d[e.idx]),d[e.idx]=n(i,e)}),u?((s=c(u(d)))[o]=d,s):c(d)},m(r,function(i,n){c.fn[i]||(c.fn[i]=function(s){var r,o=e.type(s),a="alpha"===i?this._hsla?"hsla":"rgba":t,u=this[a](),c=u[n.idx];return"undefined"===o?c:("function"===o&&(s=s.call(this,c),o=e.type(s)),null==s&&n.empty?this:("string"===o&&(r=l.exec(s))&&(s=c+parseFloat(r[2])*("+"===r[1]?1:-1)),u[n.idx]=s,this[a](u)))})})}),m(a,function(t,i){e.cssHooks[i]={set:function(t,n){var r,o,a="";if("string"!==e.type(n)||(r=s(n))){if(n=c(r||n),!f.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===i?t.parentNode:t;(""===a||"transparent"===a)&&o&&o.style;)try{a=e.css(o,"backgroundColor"),o=o.parentNode}catch(l){}n=n.blend(a&&"transparent"!==a?a:"_default")}n=n.toRgbaString()}try{t.style[i]=n}catch(error){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=c(t.elem,i),t.end=c(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}}),e.cssHooks.borderColor={expand:function(t){var e={};return m(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},o=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(){var e,i,n=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[t.camelCase(e)]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function n(e,i){var n,s,o={};for(n in i)s=i[n],e[n]!==s&&(r[n]||!t.fx.step[n]&&isNaN(parseFloat(s))||(o[n]=s));return o}var s=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.effects.animateClass=function(e,r,o,a){var l=t.speed(r,o,a);return this.queue(function(){var r,o=t(this),a=o.attr("class")||"",u=l.children?o.find("*").andSelf():o;u=u.map(function(){return{el:t(this),start:i.call(this)}}),(r=function(){t.each(s,function(t,i){e[i]&&o[i+"Class"](e[i])})})(),u=u.map(function(){return this.end=i.call(this.el[0]),this.diff=n(this.start,this.end),this}),o.attr("class",a),u=u.map(function(){var e=this,i=t.Deferred(),n=jQuery.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,u.get()).done(function(){r(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,i,n,s){return i?t.effects.animateClass.call(this,{add:e},i,n,s):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,i,n,s){return i?t.effects.animateClass.call(this,{remove:e},i,n,s):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(i,n,s,r,o){return"boolean"==typeof n||n===e?s?t.effects.animateClass.call(this,n?{add:i}:{remove:i},s,r,o):this._toggleClass(i,n):t.effects.animateClass.call(this,{toggle:i},n,s,r)},switchClass:function(e,i,n,s,r){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,r)}})}(),function(){function i(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function r(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]&&(!n||!t.effects[e])}t.extend(t.effects,{version:"1.9.2",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(s+e[i],t[0].style[e[i]])},restore:function(t,i){var n,r;for(r=0;r<i.length;r++)null!==i[r]&&((n=t.data(s+i[r]))===e&&(n=""),t.css(i[r],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},r=document.activeElement;try{r.id}catch(o){r=document.body}return e.wrap(n),(e[0]===r||t.contains(e[0],r))&&t(r).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),
t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var r=e.cssUnit(i);r[0]>0&&(s[i]=r[0]*n+r[1])}),s}}),t.fn.extend({effect:function(){function e(e){function i(){t.isFunction(r)&&r.call(n[0]),t.isFunction(e)&&e()}var n=t(this),r=s.complete,o=s.mode;(n.is(":hidden")?"hide"===o:"show"===o)?i():a.call(n[0],s,i)}var s=i.apply(this,arguments),r=s.mode,o=s.queue,a=t.effects.effect[s.effect],l=!a&&n&&t.effects[s.effect];return t.fx.off||!a&&!l?r?this[r](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a?!1===o?this.each(e):this.queue(o||"fx",e):l.call(this,{options:s,duration:s.duration,callback:s.complete,mode:s.mode})},_show:t.fn.show,show:function(t){if(r(t))return this._show.apply(this,arguments);var e=i.apply(this,arguments);return e.mode="show",this.effect.call(this,e)},_hide:t.fn.hide,hide:function(t){if(r(t))return this._hide.apply(this,arguments);var e=i.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(r(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),i={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){i[e]=function(e){return Math.pow(e,t+2)}}),t.extend(i,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(i,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}})}(jQuery),function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(n,s){var r,o,a,l=t(this),u=["position","top","bottom","left","right","height","width"],c=t.effects.setMode(l,n.mode||"hide"),h=n.direction||"up",d=e.test(h),f=d?"height":"width",p=d?"top":"left",m=i.test(h),g={},v="show"===c;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),u):t.effects.save(l,u),l.show(),o=(r=t.effects.createWrapper(l).css({overflow:"hidden"}))[f](),a=parseFloat(r.css(p))||0,g[f]=v?o:0,m||(l.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[p]=v?a:o+a),v&&(r.css(f,0),m||r.css(p,a+o)),r.animate(g,{duration:n.duration,easing:n.easing,queue:!1,complete:function(){"hide"===c&&l.hide(),t.effects.restore(l,u),t.effects.removeWrapper(l),s()}})}}(jQuery),function(t){t.effects.effect.bounce=function(e,i){var n,s,r,o=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(o,e.mode||"effect"),u="hide"===l,c="show"===l,h=e.direction||"up",d=e.distance,f=e.times||5,p=2*f+(c||u?1:0),m=e.duration/p,g=e.easing,v="up"===h||"down"===h?"top":"left",y="up"===h||"left"===h,_=o.queue(),b=_.length;for((c||u)&&a.push("opacity"),t.effects.save(o,a),o.show(),t.effects.createWrapper(o),d||(d=o["top"===v?"outerHeight":"outerWidth"]()/3),c&&((r={opacity:1})[v]=0,o.css("opacity",0).css(v,y?2*-d:2*d).animate(r,m,g)),u&&(d/=Math.pow(2,f-1)),(r={})[v]=0,n=0;n<f;n++)(s={})[v]=(y?"-=":"+=")+d,o.animate(s,m,g).animate(r,m,g),d=u?2*d:d/2;u&&((s={opacity:0})[v]=(y?"-=":"+=")+d,o.animate(s,m,g)),o.queue(function(){u&&o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}),b>1&&_.splice.apply(_,[1,0].concat(_.splice(b,p+1))),o.dequeue()}}(jQuery),function(t){t.effects.effect.clip=function(e,i){var n,s,r,o=t(this),a=["position","top","bottom","left","right","height","width"],l="show"===t.effects.setMode(o,e.mode||"hide"),u="vertical"===(e.direction||"vertical"),c=u?"height":"width",h=u?"top":"left",d={};t.effects.save(o,a),o.show(),n=t.effects.createWrapper(o).css({overflow:"hidden"}),r=(s="IMG"===o[0].tagName?n:o)[c](),l&&(s.css(c,0),s.css(h,r/2)),d[c]=l?r:0,d[h]=l?0:r/2,s.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||o.hide(),t.effects.restore(o,a),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.drop=function(e,i){var n,s=t(this),r=["position","top","bottom","left","right","opacity","height","width"],o=t.effects.setMode(s,e.mode||"hide"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l?"pos":"neg",h={opacity:a?1:0};t.effects.save(s,r),s.show(),t.effects.createWrapper(s),n=e.distance||s["top"===u?"outerHeight":"outerWidth"](!0)/2,a&&s.css("opacity",0).css(u,"pos"===c?-n:n),h[u]=(a?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&s.hide(),t.effects.restore(s,r),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t){t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===h*d&&s()}function s(){f.css({visibility:"visible"}),t(y).remove(),p||f.hide(),i()}var r,o,a,l,u,c,h=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=h,f=t(this),p="show"===t.effects.setMode(f,e.mode||"hide"),m=f.show().css("visibility","hidden").offset(),g=Math.ceil(f.outerWidth()/d),v=Math.ceil(f.outerHeight()/h),y=[];for(r=0;r<h;r++)for(l=m.top+r*v,c=r-(h-1)/2,o=0;o<d;o++)a=m.left+o*g,u=o-(d-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*g,top:-r*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:v,left:a+(p?u*g:0),top:l+(p?c*v:0),opacity:p?0:1}).animate({left:a+(p?0:u*g),top:l+(p?0:c*v),opacity:p?1:0},e.duration||500,e.easing,n)}}(jQuery),function(t){t.effects.effect.fade=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t){t.effects.effect.fold=function(e,i){var n,s,r=t(this),o=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(r,e.mode||"hide"),l="show"===a,u="hide"===a,c=e.size||15,h=/([0-9]+)%/.exec(c),d=!!e.horizFirst,f=l!==d,p=f?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(r,o),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),s=f?[n.width(),n.height()]:[n.height(),n.width()],h&&(c=parseInt(h[1],10)/100*s[u?0:1]),l&&n.css(d?{height:0,width:c}:{height:c,width:0}),g[p[0]]=l?s[0]:c,v[p[1]]=l?s[1]:0,n.animate(g,m,e.easing).animate(v,m,e.easing,function(){u&&r.hide(),t.effects.restore(r,o),t.effects.removeWrapper(r),i()})}}(jQuery),function(t){t.effects.effect.highlight=function(e,i){var n=t(this),s=["backgroundImage","backgroundColor","opacity"],r=t.effects.setMode(n,e.mode||"show"),o={backgroundColor:n.css("backgroundColor")};"hide"===r&&(o.opacity=0),t.effects.save(n,s),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&n.hide(),t.effects.restore(n,s),i()}})}}(jQuery),function(t){t.effects.effect.pulsate=function(e,i){var n,s=t(this),r=t.effects.setMode(s,e.mode||"show"),o="show"===r,a="hide"===r,l=o||"hide"===r,u=2*(e.times||5)+(l?1:0),c=e.duration/u,h=0,d=s.queue(),f=d.length;for(!o&&s.is(":visible")||(s.css("opacity",0).show(),h=1),n=1;n<u;n++)s.animate({opacity:h},c,e.easing),h=1-h;s.animate({opacity:h},c,e.easing),s.queue(function(){a&&s.hide(),i()}),f>1&&d.splice.apply(d,[1,0].concat(d.splice(f,u+1))),s.dequeue()}}(jQuery),function(t){t.effects.effect.puff=function(e,i){var n=t(this),s=t.effects.setMode(n,e.mode||"hide"),r="hide"===s,o=parseInt(e.percent,10)||150,a=o/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:s,complete:i,percent:r?o:100,from:r?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),s=t.extend(!0,{},e),r=t.effects.setMode(n,e.mode||"effect"),o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===r?0:100),a=e.direction||"both",l=e.origin,u={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:"horizontal"!==a?o/100:1,x:"vertical"!==a?o/100:1};s.effect="size",s.queue=!1,s.complete=i,"effect"!==r&&(s.origin=l||["middle","center"],s.restore=!0),s.from=e.from||("show"===r?{height:0,width:0,outerHeight:0,outerWidth:0}:u),s.to={height:u.height*c.y,width:u.width*c.x,outerHeight:u.outerHeight*c.y,outerWidth:u.outerWidth*c.x},s.fade&&("show"===r&&(s.from.opacity=0,s.to.opacity=1),"hide"===r&&(s.from.opacity=1,s.to.opacity=0)),n.effect(s)},t.effects.effect.size=function(e,i){var n,s,r,o=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],u=["width","height","overflow"],c=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],f=t.effects.setMode(o,e.mode||"effect"),p=e.restore||"effect"!==f,m=e.scale||"both",g=e.origin||["middle","center"],v=o.css("position"),y=p?a:l,_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===f&&o.show(),n={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===e.mode&&"show"===f?(o.from=e.to||_,o.to=e.from||n):(o.from=e.from||("show"===f?_:n),o.to=e.to||("hide"===f?_:n)),r={from:{y:o.from.height/n.height,x:o.from.width/n.width},to:{y:o.to.height/n.height,x:o.to.width/n.width}},"box"!==m&&"both"!==m||(r.from.y!==r.to.y&&(y=y.concat(h),o.from=t.effects.setTransition(o,h,r.from.y,o.from),o.to=t.effects.setTransition(o,h,r.to.y,o.to)),r.from.x!==r.to.x&&(y=y.concat(d),o.from=t.effects.setTransition(o,d,r.from.x,o.from),o.to=t.effects.setTransition(o,d,r.to.x,o.to))),"content"!==m&&"both"!==m||r.from.y!==r.to.y&&(y=y.concat(c).concat(u),o.from=t.effects.setTransition(o,c,r.from.y,o.from),o.to=t.effects.setTransition(o,c,r.to.y,o.to)),t.effects.save(o,y),o.show(),t.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(s=t.effects.getBaseline(g,n),o.from.top=(n.outerHeight-o.outerHeight())*s.y,o.from.left=(n.outerWidth-o.outerWidth())*s.x,o.to.top=(n.outerHeight-o.to.outerHeight)*s.y,o.to.left=(n.outerWidth-o.to.outerWidth)*s.x),o.css(o.from),"content"!==m&&"both"!==m||(h=h.concat(["marginTop","marginBottom"]).concat(c),d=d.concat(["marginLeft","marginRight"]),u=a.concat(h).concat(d),o.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};p&&t.effects.save(i,u),i.from={height:n.height*r.from.y,width:n.width*r.from.x,outerHeight:n.outerHeight*r.from.y,outerWidth:n.outerWidth*r.from.x},i.to={height:n.height*r.to.y,width:n.width*r.to.x,outerHeight:n.height*r.to.y,outerWidth:n.width*r.to.x},r.from.y!==r.to.y&&(i.from=t.effects.setTransition(i,h,r.from.y,i.from),i.to=t.effects.setTransition(i,h,r.to.y,i.to)),r.from.x!==r.to.x&&(i.from=t.effects.setTransition(i,d,r.from.x,i.from),i.to=t.effects.setTransition(i,d,r.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){p&&t.effects.restore(i,u)})})),o.animate(o.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===f&&o.hide(),t.effects.restore(o,y),p||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):t.each(["top","left"],function(t,e){o.css(e,function(e,i){var n=parseInt(i,10),s=t?o.to.left:o.to.top;return"auto"===i?s+"px":n+s+"px"})})),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.shake=function(e,i){var n,s=t(this),r=["position","top","bottom","left","right","height","width"],o=t.effects.setMode(s,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,u=e.times||3,c=2*u+1,h=Math.round(e.duration/c),d="up"===a||"down"===a?"top":"left",f="up"===a||"left"===a,p={},m={},g={},v=s.queue(),y=v.length;for(t.effects.save(s,r),s.show(),t.effects.createWrapper(s),p[d]=(f?"-=":"+=")+l,m[d]=(f?"+=":"-=")+2*l,g[d]=(f?"-=":"+=")+2*l,s.animate(p,h,e.easing),n=1;n<u;n++)s.animate(m,h,e.easing).animate(g,h,e.easing);s.animate(m,h,e.easing).animate(p,h/2,e.easing).queue(function(){"hide"===o&&s.hide(),t.effects.restore(s,r),t.effects.removeWrapper(s),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,c+1))),s.dequeue()}}(jQuery),function(t){t.effects.effect.slide=function(e,i){var n,s=t(this),r=["position","top","bottom","left","right","width","height"],o=t.effects.setMode(s,e.mode||"show"),a="show"===o,l=e.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,h={};t.effects.save(s,r),s.show(),n=e.distance||s["top"===u?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(s).css({overflow:"hidden"}),a&&s.css(u,c?isNaN(n)?"-"+n:-n:n),h[u]=(a?c?"+=":"-=":c?"-=":"+=")+n,s.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===o&&s.hide(),t.effects.restore(s,r),t.effects.removeWrapper(s),i()}})}}(jQuery),function(t){t.effects.effect.transfer=function(e,i){var n=t(this),s=t(e.to),r="fixed"===s.css("position"),o=t("body"),a=r?o.scrollTop():0,l=r?o.scrollLeft():0,u=s.offset(),c={top:u.top-a,left:u.left-l,height:s.innerHeight(),width:s.innerWidth()},h=n.offset(),d=t('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),i()})}}(jQuery),function(){var t,e,i,n,s={}.hasOwnProperty,r=function(t,e){function i(){this.constructor=t}for(var n in e)s.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};(n=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,i,n,s,r,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),children:0,disabled:t.disabled}),o=[],n=0,s=(r=t.childNodes).length;n<s;n++)i=r[n],o.push(this.add_option(i,e,t.disabled));return o},t.prototype.add_option=function(t,e,i){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,selected:t.selected,disabled:!0===i?i:t.disabled,group_array_index:e,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t.prototype.escapeExpression=function(t){var e,i;return null==t||!1===t?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(i,function(t){return e[t]||"&amp;"})):t},t}()).select_to_array=function(t){var e,i,s,r,o;for(i=new n,s=0,r=(o=t.childNodes).length;s<r;s++)e=o[s],i.add_node(e);return i.parsed},e=function(){function t(e,i){this.form_field=e,this.options=null!=i?i:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return t.blur_test()},100)},t.prototype.results_option_build=function(t){var e,i,n,s,r;for(e="",n=0,s=(r=this.results_data).length;n<s;n++)(i=r[n]).group?e+=this.result_add_group(i):e+=this.result_add_option(i),(null!=t?t.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(i.text));return e},t.prototype.result_add_option=function(t){var e,i;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),(i=document.createElement("li")).className=e.join(" "),i.style.cssText=t.style,i.setAttribute("data-option-array-index",t.array_index),i.innerHTML=t.search_text,this.outerHTML(i)):""},t.prototype.result_add_group=function(t){var e;return(t.search_match||t.group_match)&&t.active_options>0?((e=document.createElement("li")).className="group-result",e.innerHTML=t.search_text,this.outerHTML(e)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,i,n,s;for(s=[],e=0,i=(n=this.results_data).length;e<i;e++)(t=n[e]).selected?s.push(t.selected=!1):s.push(void 0);return s},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,i,n,s,r,o,a,l,u,c,h;for(this.no_results_clear(),n=0,t=(r=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(t,"i"),i=this.get_search_regex(t),u=0,c=(h=this.results_data).length;u<c;u++)(e=h[u]).search_match=!1,s=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(0===(s=this.results_data[e.group_array_index]).active_options&&s.search_match&&(n+=1),s.active_options+=1),e.group&&!this.group_search||(e.search_text=e.group?e.label:e.text,e.search_match=this.search_string_match(e.search_text,i),e.search_match&&!e.group&&(n+=1),e.search_match?(r.length&&(o=e.search_text.search(l),a=e.search_text.substr(0,o+r.length)+"</em>"+e.search_text.substr(o+r.length),e.search_text=a.substr(0,o)+"<em>"+a.substr(o)),null!=s&&(s.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),n<1&&r.length?(this.update_results_content(""),this.no_results(r)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e;return e=this.search_contains?"":"^",new RegExp(e+t,"i")},t.prototype.search_string_match=function(t,e){var i,n,s,r;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(n=t.replace(/\[|\]/g,"").split(" ")).length)for(s=0,r=n.length;s<r;s++)if(i=n[s],e.test(i))return!0},t.prototype.choices_count=function(){var t,e,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(i=this.form_field.options).length;t<e;t++)i[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keyup_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(){var t=this;return setTimeout(function(){return t.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!/iP(od|hone)/i.test(window.navigator.userAgent)&&(!/Android/i.test(window.navigator.userAgent)||!/Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(n){return e.browser_is_supported()?this.each(function(){var e,s;s=(e=t(this)).data("chosen"),"destroy"===n&&s instanceof i?s.destroy():s instanceof i||e.data("chosen",new i(this,n))}):this}}),i=function(){function i(){return i.__super__.constructor.apply(this,arguments)}return r(i,e),i.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},i.prototype.set_up_html=function(){var e,i;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),i={"class":e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",i),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},i.prototype.register_observers=function(){var t=this;return this.container.bind("touchstart.chosen",function(e){t.container_mousedown(e)}),this.container.bind("touchend.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},i.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},i.prototype.container_mousedown=function(e){if(!this.is_disabled&&(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null==e||!t(e.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},i.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},i.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},i.prototype.blur_test=function(){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},i.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},i.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(e){var i;return(i=t(e.target).closest(".chosen-container")).length&&this.container[0]===i[0]?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=n.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},i.prototype.result_do_highlight=function(t){var e,i,n,s,r;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),s=(n=parseInt(this.search_results.css("maxHeight"),10))+(r=this.search_results.scrollTop()),(e=(i=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=s)return this.search_results.scrollTop(e-n>0?e-n:0);if(i<r)return this.search_results.scrollTop(i)}},i.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},i.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},i.prototype.update_results_content=function(t){return this.search_results.html(t)},i.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),
this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},i.prototype.set_tab_index=function(){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},i.prototype.set_label_behavior=function(){var e=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()})},i.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},i.prototype.search_results_mouseup=function(e){var i;if((i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length)return this.result_highlight=i,this.result_select(e),this.search_field.focus()},i.prototype.search_results_mouseover=function(e){var i;if(i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(i)},i.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result"))return this.result_clear_highlight()},i.prototype.choice_build=function(e){var i,n,s=this;return i=t("<li />",{"class":"search-choice"}).html("<span>"+e.html+"</span>"),e.disabled?i.addClass("search-choice-disabled"):((n=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(t){return s.choice_destroy_link_click(t)}),i.append(n)),this.search_container.before(i)},i.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},i.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},i.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},i.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},i.prototype.result_select=function(t){var e,i;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),(i=this.results_data[e[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(i.text),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())},i.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(t)},i.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},i.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},i.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":t("<div/>").text(t.trim(this.search_field.val())).html()},i.prototype.winnow_results_set_highlight=function(){var t,e;if(null!=(t=(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},i.prototype.no_results=function(e){var i;return(i=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(e),this.search_results.append(i),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},i.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},i.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},i.prototype.keydown_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},i.prototype.search_field_scale=function(){var e,i,n,s,r,o,a,l;if(this.is_multiple){for(0,o=0,s="position:absolute; left: -1000px; top: -1000px; display:none;",a=0,l=(r=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;a<l;a++)s+=(n=r[a])+":"+this.search_field.css(n)+";";return(e=t("<div />",{style:s})).text(this.search_field.val()),t("body").append(e),o=e.width()+25,e.remove(),o>(i=this.container.outerWidth())-10&&(o=i-10),this.search_field.css({width:o+"px"})}},i}()}.call(this),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.InspireTree=e():t.InspireTree=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return t[n].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,i){return t.model[e].apply(t.model,i)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(i(1)),u=n(i(30)),c=n(i(81)),h=n(i(85)),d=n(i(88)),f=n(i(89)),p=n(i(24)),m=n(i(90)),g=n(i(91)),v=n(i(97)),y=n(i(99)),_=n(i(100)),b=n(i(106)),w=n(i(110)),x=n(i(113)),k=n(i(27)),C=n(i(4)),D=n(i(25)),T=n(i(58)),S=n(i(123)),E=n(i(124)),P=n(i(125)),N=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),M=i(139),A=i(182),I=i(168),j=i(181),$=i(147),O=i(172);i(183);var H=function(){function t(e){s(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=n;o._lastSelectedNode,o._muted=!1,o.allowsLoadEvents=!1,o.dom=!1,o.initialized=!1,o.isDynamic=!1,o.model=new O.TreeNodes(o),o.opts=e,o.preventDeselection=!1,o.config=(0,P["default"])({},e,{allowLoadEvents:[],checkbox:{autoCheckChildren:!0},contextMenu:!1,data:!1,dom:{autoLoadMore:!0,deferredRendering:!1,nodeHeight:25,showCheckboxes:!1},dragTargets:!1,editable:!1,editing:{add:!1,edit:!1,remove:!1},nodes:{resetStateOnRestore:!0},pagination:{limit:-1},renderer:!1,search:{matcher:!1,matchProcessor:!1},selection:{allow:E["default"],autoDeselect:!0,autoSelectChildren:!1,disableDirectDeselection:!1,mode:"default",multiple:!1,require:!1},showCheckboxes:!1,sort:!1,tabindex:-1,target:!1}),"checkbox"===o.config.selection.mode&&(o.config.selection.autoSelectChildren=!0,(0,S["default"])((0,T["default"])(e,"dom.showCheckboxes"))||(o.config.dom.showCheckboxes=!0),o.on("node.checked",function(t){t.selected()||t.select(!0)}),o.on("node.selected",function(t){t.checked()||t.check(!0)}),o.on("node.unchecked",function(t){t.selected()&&t.deselect(!0)}),o.on("node.deselected",function(t){t.checked()&&t.uncheck(!0)})),o.config.selection.autoSelectChildren&&(o.config.selection.multiple=!0,o.config.selection.autoDeselect=!1),e.editable&&!e.editing&&(o.config.editing.add=!0,o.config.editing.edit=!0,o.config.editing.remove=!0),(0,D["default"])(e.search)&&(o.config.search={matcher:e.search,matchProcessor:!1}),o.defaultState={collapsed:!0,editable:(0,T["default"])(o,"config.editing.edit"),editing:!1,focused:!1,hidden:!1,indeterminate:!1,loading:!1,matched:!1,removed:!1,rendered:!1,selectable:!0,selected:!1},o.allowsLoadEvents=(0,C["default"])(o.config.allowLoadEvents)&&o.config.allowLoadEvents.length>0,o.isDynamic=(0,D["default"])(o.config.data),o.usesNativeDOM=!0;var a=o.emit;if(o.emit=function(t){if(!o.isEventMuted(t)){if((0,D["default"])((0,T["default"])(arguments,"[1].preventDefault"))){var e=arguments[1];e.treeDefaultPrevented=!1,e.preventTreeDefault=function(){e.treeDefaultPrevented=!0}}a.apply(o,arguments)}},o.dom=new(i(188))(o),o.dom&&(!(0,k["default"])(e)||!e.target))throw new TypeError('Property "target" is required, either an element or a selector.');if(!o.dom){var l=(0,D["default"])(o.config.renderer)?o.config.renderer(o):{};o.dom=(0,x["default"])(l,{applyChanges:E["default"],attach:E["default"],batch:E["default"],end:E["default"]})}return o.dom.attach(o.config.target),o.config.data&&o.load(o.config.data)["catch"](function(t){setTimeout(function(){throw t})}),o.initialized=!0,n}return o(t,A.EventEmitter2),N(t,[{key:"addNode",value:function(){return a(this,"addNode",arguments)}},{key:"addNodes",value:function(t){var e=this;e.dom.batch();var i=new O.TreeNodes(this);return(0,w["default"])(t,function(t){i.push(e.addNode(t))}),e.dom.end(),i}},{key:"available",value:function(){return a(this,"available",arguments)}},{key:"blur",value:function(){return a(this,"blur",arguments)}},{key:"blurDeep",value:function(){return a(this,"blurDeep",arguments)}},{key:"boundingNodes",value:function(){var t=(0,b["default"])(arguments,function(t,e){t[e.indexPath().replace(/\./g,"")]=e},{}),e=(0,_["default"])(Object.keys(t));return[(0,T["default"])(t,(0,y["default"])(e)),(0,T["default"])(t,(0,v["default"])(e))]}},{key:"canAutoDeselect",value:function(){return this.config.selection.autoDeselect&&!this.preventDeselection}},{key:"checked",value:function(){return a(this,"checked",arguments)}},{key:"clean",value:function(){return a(this,"clean",arguments)}},{key:"clearSearch",value:function(){return this.showDeep().collapseDeep().tree()}},{key:"clone",value:function(){return a(this,"clone",arguments)}},{key:"collapse",value:function(){return a(this,"collapse",arguments)}},{key:"collapsed",value:function(){return a(this,"collapsed",arguments)}},{key:"collapseDeep",value:function(){return a(this,"collapseDeep",arguments)}},{key:"concat",value:function(){return a(this,"concat",arguments)}},{key:"copy",value:function(){return a(this,"copy",arguments)}},{key:"deepest",value:function(){return a(this,"deepest",arguments)}},{key:"deselect",value:function(){return a(this,"deselect",arguments)}},{key:"deselectDeep",value:function(){return a(this,"deselectDeep",arguments)}},{key:"disableDeselection",value:function(){return this.config.selection.multiple&&(this.preventDeselection=!0),this}},{key:"each",value:function(){return a(this,"each",arguments)}},{key:"editable",value:function(){return a(this,"editable",arguments)}},{key:"editing",value:function(){return a(this,"editing",arguments)}},{key:"enableDeselection",value:function(){return this.preventDeselection=!1,this}},{key:"expand",value:function(){return a(this,"expand",arguments)}},{key:"expandDeep",value:function(){return a(this,"expandDeep",arguments)}},{key:"expanded",value:function(){return a(this,"expanded",arguments)}},{key:"extract",value:function(){return a(this,"extract",arguments)}},{key:"filter",value:function(){return a(this,"filter",arguments)}},{key:"flatten",value:function(){return a(this,"flatten",arguments)}},{key:"focused",value:function(){return a(this,"focused",arguments)}},{key:"get",value:function(){return a(this,"get",arguments)}},{key:"hidden",value:function(){return a(this,"hidden",arguments)}},{key:"hide",value:function(){return a(this,"hide",arguments)}},{key:"hideDeep",value:function(){return a(this,"hideDeep",arguments)}},{key:"indeterminate",value:function(){return a(this,"indeterminate",arguments)}},{key:"insertAt",value:function(){return a(this,"insertAt",arguments)}},{key:"invoke",value:function(){return a(this,"invoke",arguments)}},{key:"invokeDeep",value:function(){return a(this,"invokeDeep",arguments)}},{key:"isEventMuted",value:function(t){return(0,S["default"])(this.muted())?this.muted():(0,g["default"])(this.muted(),t)}},{key:"isNode",value:function(t){return t instanceof $.TreeNode}},{key:"isTreeNodes",value:function(t){return t instanceof O.TreeNodes}},{key:"lastSelectedNode",value:function(){return this._lastSelectedNode}},{key:"load",value:function(t){var e=this,i=new I.Promise(function(i,n){var s=function(t,n){(0,T["default"])(e,"dom.pagination")&&(e.dom.pagination.total=t.length,(0,m["default"])(n)>t.length&&(e.dom.pagination.total=(0,m["default"])(n))),!e.initialized&&(0,C["default"])(t)?setTimeout(function(){e.emit("data.loaded",t)}):e.emit("data.loaded",t),e.model=e.model.concat((0,M.collectionToModel)(e,t)),e.config.selection.require&&!e.selected().length&&e.selectFirstAvailableNode(),!e.initialized&&(0,C["default"])(t)?setTimeout(function(){e.emit("model.loaded",e.model)}):e.emit("model.loaded",e.model),i(e.model),e.dom.applyChanges(),(0,D["default"])(e.dom.scrollSelectedIntoView)&&e.dom.scrollSelectedIntoView()};if((0,p["default"])(t))s(t);else if((0,D["default"])(t)){var r=t(null,s,n,(0,T["default"])(e,"dom.pagination"));r&&(t=r)}(0,k["default"])(t)?(0,j.standardizePromise)(t).then(s)["catch"](n):error(new Error("Invalid data loader."))});return i["catch"](function(t){e.emit("data.loaderror",t)}),i}},{key:"loading",value:function(){return a(this,"loading",arguments)}},{key:"matched",value:function(){return a(this,"matched",arguments)}},{key:"mute",value:function(t){return(0,f["default"])(t)||(0,C["default"])(t)?this._muted=(0,d["default"])(t):this._muted=!0,this}},{key:"muted",value:function(){return this._muted}},{key:"node",value:function(){return a(this,"node",arguments)}},{key:"nodes",value:function(){return a(this,"nodes",arguments)}},{key:"recurseDown",value:function(){return a(this,"recurseDown",arguments)}},{key:"reload",value:function(){return this.removeAll(),this.load(this.opts.data||this.config.data)}},{key:"remove",value:function(){return a(this,"remove",arguments)}},{key:"removeAll",value:function(){return this.model=new O.TreeNodes(this),this.dom.applyChanges(),this}},{key:"removed",value:function(){return a(this,"removed",arguments)}},{key:"restore",value:function(){return a(this,"restore",arguments)}},{key:"restoreDeep",value:function(){return a(this,"restoreDeep",arguments)}},{key:"search",value:function(t){var e=this,i=this,n=i.config.search.matcher,s=i.config.search.matchProcessor;if(!t||(0,f["default"])(t)&&(0,h["default"])(t))return i.clearSearch();i.dom.batch(),i.recurseDown(function(t){t.state("hidden",!0),t.state("matched",!1)}),i.dom.end();var r=(0,D["default"])(n)?n:function(t,n){var s,r=new O.TreeNodes(e._tree);(0,f["default"])(t)&&(t=new RegExp(t,"i")),s=(0,c["default"])(t)?function(e){return t.test(e.text)}:t,i.model.recurseDown(function(t){t.removed()||s(t)&&r.push(t)}),n(r)},o=(0,D["default"])(s)?s:function(t){t.each(function(t){t.show().state("matched",!0),t.expandParents().collapse(),t.hasChildren()&&t.children.showDeep()})};return new I.Promise(function(e,n){r(t,function(t){i.isTreeNodes(t)||(t=i.nodes((0,u["default"])(t,"id"))),i.dom.batch(),o(t),i.dom.end(),e(t)},n)})}},{key:"select",value:function(){return a(this,"select",arguments)}},{key:"selectable",value:function(){return a(this,"selectable",arguments)}},{key:"selectBetween",value:function(t,e){this.dom.batch();for(var i=t.nextVisibleNode();i&&i.id!==e.id;)i.select(),i=i.nextVisibleNode();return this.dom.end(),this}},{key:"selectDeep",value:function(){return a(this,"selectDeep",arguments)}},{key:"selected",value:function(){return a(this,"selected",arguments)}},{key:"selectFirstAvailableNode",value:function(){var t=this.model.filter("available").get(0);return t&&t.select(),t}},{key:"show",value:function(){return a(this,"show",arguments)}},{key:"showDeep",value:function(){return a(this,"showDeep",arguments)}},{key:"softRemove",value:function(){return a(this,"softRemove",arguments)}},{key:"sort",value:function(){return a(this,"sort",arguments)}},{key:"state",value:function(){return a(this,"state",arguments)}},{key:"stateDeep",value:function(){return a(this,"stateDeep",arguments)}},{key:"toArray",value:function(){return a(this,"toArray",arguments)}},{key:"unmute",value:function(t){return(0,f["default"])(t)||(0,C["default"])(t)?(this._muted=(0,l["default"])(this._muted,(0,d["default"])(t)),this._muted.length||(this._muted=!1)):this._muted=!1,this}},{key:"visible",value:function(){return a(this,"visible",arguments)}}]),t}();e["default"]=H,t.exports=e["default"]},function(t,e,i){"use strict";var n=i(2),s=i(11),r=i(18),o=i(23),a=r(function(t,e){return o(t)?n(t,s(e,1,o,!0)):[]});t.exports=a},function(t,e,i){"use strict";function n(t,e,i,n){var h=-1,d=r,f=!0,p=t.length,m=[],g=e.length;if(!p)return m;i&&(e=a(e,l(i))),n?(d=o,f=!1):e.length>=c&&(d=u,f=!1,e=new s(e));t:for(;++h<p;){var v=t[h],y=null==i?v:i(v);if(v=n||0!==v?v:0,f&&y==y){for(var _=g;_--;)if(e[_]===y)continue t;m.push(v)}else d(e,y,n)||m.push(v)}return m}var s=i(3),r=i(5),o=i(7),a=i(8),l=i(9),u=i(10),c=200;t.exports=n},function(t,e,i){"use strict";function n(){if(!arguments.length)return[];var t=arguments[0];return s(t)?t:[t]}var s=i(4);t.exports=n},function(t){"use strict";var e=Array.isArray;t.exports=e},function(t,e,i){"use strict";function n(t,e){return!!(null==t?0:t.length)&&s(t,e,0)>-1}var s=i(6);t.exports=n},function(t){"use strict";function e(t,e,i){for(var n=i-1,s=t.length;++n<s;)if(t[n]===e)return n;return-1}t.exports=e},function(t){"use strict";function e(t,e,i){for(var n=-1,s=null==t?0:t.length;++n<s;)if(i(e,t[n]))return!0;return!1}t.exports=e},function(t){"use strict";function e(t,e){for(var i=-1,n=null==t?0:t.length,s=Array(n);++i<n;)s[i]=e(t[i],i,t);return s}t.exports=e},function(t){"use strict";function e(t){return function(e){return t(e)}}t.exports=e},function(t,e,i){"use strict";function n(t,e){return!!(null==t?0:t.length)&&s(t,e,0)>-1}var s=i(6);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,o,a){var l=-1,u=t.length;for(i||(i=r),a||(a=[]);++l<u;){var c=t[l];e>0&&i(c)?e>1?n(c,e-1,i,o,a):s(a,c):o||(a[a.length]=c)}return a}var s=i(12),r=i(13);t.exports=n},function(t){"use strict";function e(t,e){for(var i=-1,n=e.length,s=t.length;++i<n;)t[s+i]=e[i];return t}t.exports=e},function(t,e,i){"use strict";function n(t){return o(t)||r(t)||!!(a&&t&&t[a])}var s=i(14),r=i(17),o=i(4),a=s?s.isConcatSpreadable:undefined;t.exports=n},function(t,e,i){"use strict";var n=i(15).Symbol;t.exports=n},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=i(16),r="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,o=s||r||Function("return this")();t.exports=o},function(t,e){(function(e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t){"use strict";function e(){return!1}t.exports=e},function(t,e,i){"use strict";function n(t,e){return o(r(t,e,s),t+"")}var s=i(19),r=i(20),o=i(22);t.exports=n},function(t){"use strict";function e(t){return t}t.exports=e},function(t,e,i){"use strict";function n(t,e,i){return e=r(e===undefined?t.length-1:e,0),function(){for(var n=arguments,o=-1,a=r(n.length-e,0),l=Array(a);++o<a;)l[o]=n[e+o];o=-1;for(var u=Array(e+1);++o<e;)u[o]=n[o];return u[e]=i(l),s(t,this,u)}}var s=i(21),r=Math.max;t.exports=n},function(t){"use strict";function e(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}t.exports=e},function(t){"use strict";function e(t){return t}t.exports=e},function(t,e,i){"use strict";function n(t){return r(t)&&s(t)}var s=i(24),r=i(29);t.exports=n},function(t,e,i){"use strict";function n(t){return null!=t&&r(t.length)&&!s(t)}var s=i(25),r=i(28);t.exports=n},function(t,e,i){"use strict";function n(t){if(!r(t))return!1;var e=s(t);return e==a||e==l||e==o||e==u}var s=i(26),r=i(27),o="[object AsyncFunction]",a="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";t.exports=n},function(t){"use strict";function e(t){return i.call(t)}var i=Object.prototype.toString;t.exports=e},function(t){"use strict";function e(t){var e=void 0===t?"undefined":i(t);return null!=t&&("object"==e||"function"==e)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=e},function(t){"use strict";function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}var i=9007199254740991;t.exports=e},function(t){"use strict";function e(t){return null!=t&&"object"==(void 0===t?"undefined":i(t))}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=e},function(t,e,i){"use strict";function n(t,e){return(a(t)?s:o)(t,r(e,3))}var s=i(8),r=i(31),o=i(75),a=i(4);t.exports=n},function(t,e,i){"use strict";function n(t){return"function"==typeof t?t:null==t?a:"object"==(void 0===t?"undefined":s(t))?l(t)?o(t[0],t[1]):r(t):u(t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=i(32),o=i(57),a=i(19),l=i(4),u=i(72);t.exports=n},function(t,e,i){"use strict";function n(t){var e=r(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(i){return i===t||s(i,t,e)}}var s=i(33),r=i(53),o=i(56);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){var l=i.length,u=l,c=!n;if(null==t)return!u;for(t=Object(t);l--;){var h=i[l];if(c&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++l<u;){var d=(h=i[l])[0],f=t[d],p=h[1];if(c&&h[2]){if(f===undefined&&!(d in t))return!1}else{var m=new s;if(n)var g=n(f,p,d,t,e,m);if(!(g===undefined?r(p,f,o|a,n,m):g))return!1}}return!0}var s=i(34),r=i(42),o=1,a=2;t.exports=n},function(t,e,i){"use strict";function n(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}var s=i(35),r=i(36),o=i(39),a=i(40),l=i(41);n.prototype.clear=s,n.prototype["delete"]=r,n.prototype.get=o,n.prototype.has=a,n.prototype.set=l,t.exports=n},function(t){"use strict";function e(){this.__data__=[],this.size=0}t.exports=e},function(t,e,i){"use strict";function n(t){var e=this.__data__,i=s(e,t);return!(i<0)&&(i==e.length-1?e.pop():r.call(e,i,1),--this.size,!0)}var s=i(37),r=Array.prototype.splice;t.exports=n},function(t,e,i){"use strict";function n(t,e){for(var i=t.length;i--;)if(s(t[i][0],e))return i;return-1}var s=i(38);t.exports=n},function(t){"use strict";function e(t,e){return t===e||t!=t&&e!=e}t.exports=e},function(t,e,i){"use strict";function n(t){var e=this.__data__,i=s(e,t);return i<0?undefined:e[i][1]}var s=i(37);t.exports=n},function(t,e,i){"use strict";function n(t){return s(this.__data__,t)>-1}var s=i(37);t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=this.__data__,n=s(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}var s=i(37);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,o,a){return t===e||(null==t||null==e||!r(t)&&!r(e)?t!=t&&e!=e:s(t,e,i,o,n,a))}var s=i(43),r=i(29);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,v,y){var _=u(t),b=u(e),w=_?p:l(t),x=b?p:l(e),k=(w=w==f?m:w)==m,C=(x=x==f?m:x)==m,D=w==x;if(D&&c(t)){if(!c(e))return!1;_=!0,k=!1}if(D&&!k)return y||(y=new s),_||h(t)?r(t,e,i,n,v,y):o(t,e,w,i,n,v,y);if(!(i&d)){var T=k&&g.call(t,"__wrapped__"),S=C&&g.call(e,"__wrapped__");if(T||S){var E=T?t.value():t,P=S?e.value():e;return y||(y=new s),v(E,P,i,n,y)}}return!!D&&(y||(y=new s),a(t,e,i,n,v,y))}var s=i(34),r=i(44),o=i(46),a=i(47),l=i(50),u=i(4),c=i(51),h=i(52),d=1,f="[object Arguments]",p="[object Array]",m="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,u,c){var h=i&a,d=t.length,f=e.length;if(d!=f&&!(h&&f>d))return!1;var p=c.get(t);if(p&&c.get(e))return p==e;var m=-1,g=!0,v=i&l?new s:undefined;for(c.set(t,e),c.set(e,t);++m<d;){var y=t[m],_=e[m];if(n)var b=h?n(_,y,m,e,t,c):n(y,_,m,t,e,c);if(b!==undefined){if(b)continue;g=!1;break}if(v){if(!r(e,function(t,e){if(!o(v,e)&&(y===t||u(y,t,i,n,c)))return v.push(e)})){g=!1;break}}else if(y!==_&&!u(y,_,i,n,c)){g=!1;break}}return c["delete"](t),c["delete"](e),g}var s=i(3),r=i(45),o=i(10),a=1,l=2;t.exports=n},function(t){"use strict";function e(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}t.exports=e},function(t){"use strict";function e(t,e){return t===e||t!=t&&e!=e}t.exports=e},function(t,e,i){"use strict";function n(t,e,i,n,a,l){var u=i&r,c=s(t),h=c.length;if(h!=s(e).length&&!u)return!1;for(var d=h;d--;){var f=c[d];if(!(u?f in e:o.call(e,f)))return!1}var p=l.get(t);if(p&&l.get(e))return p==e;var m=!0;l.set(t,e),l.set(e,t);for(var g=u;++d<h;){var v=t[f=c[d]],y=e[f];if(n)var _=u?n(y,v,f,e,t,l):n(v,y,f,t,e,l);if(!(_===undefined?v===y||a(v,y,i,n,l):_)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var b=t.constructor,w=e.constructor;b!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(m=!1)}return l["delete"](t),l["delete"](e),m}var s=i(48),r=1,o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,i){"use strict";var n=i(49)(Object.keys,Object);t.exports=n},function(t){"use strict";function e(t,e){return function(i){return t(e(i))}}t.exports=e},function(t){"use strict";function e(t){return i.call(t)}var i=Object.prototype.toString;t.exports=e},function(t){"use strict";function e(){return!1}t.exports=e},function(t){"use strict";function e(){return!1}t.exports=e},function(t,e,i){"use strict";function n(t){for(var e=r(t),i=e.length;i--;){var n=e[i],o=t[n];e[i]=[n,o,s(o)]}return e}var s=i(54),r=i(55);t.exports=n},function(t,e,i){"use strict";function n(t){return t==t&&!s(t)}var s=i(27);t.exports=n},function(t,e,i){"use strict";var n=i(49)(Object.keys,Object);t.exports=n},function(t){"use strict";function e(t,e){return function(i){return null!=i&&(i[t]===e&&(e!==undefined||t in Object(i)))}}t.exports=e},function(t,e,i){"use strict";function n(t,e){return a(t)&&l(e)?u(c(t),e):function(i){var n=r(i,t);return n===undefined&&n===e?o(i,t):s(e,n,h|d)}}var s=i(42),r=i(58),o=i(68),a=i(61),l=i(54),u=i(56),c=i(67),h=1,d=2;t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=null==t?undefined:s(t,e);return n===undefined?i:n}var s=i(59);t.exports=n},function(t,e,i){"use strict";function n(t,e){for(var i=0,n=(e=s(e,t)).length;null!=t&&i<n;)t=t[r(e[i++])];return i&&i==n?t:undefined}var s=i(60),r=i(67);t.exports=n},function(t,e,i){"use strict";function n(t,e){return s(t)?t:r(t,e)?[t]:o(a(t))}var s=i(4),r=i(61),o=i(63),a=i(65);t.exports=n},function(t,e,i){"use strict";function n(t,e){if(r(t))return!1;var i=void 0===t?"undefined":s(t);return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!o(t))||(l.test(t)||!a.test(t)||null!=e&&t in Object(e))}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=i(4),o=i(62),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;t.exports=n},function(t){"use strict";function e(){return!1}t.exports=e},function(t,e,i){"use strict";var n=i(64),s=/^\./,r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(t){var e=[];return s.test(t)&&e.push(""),t.replace(r,function(t,i,n,s){e.push(n?s.replace(o,"$1"):i||t)}),e});t.exports=a},function(t){"use strict";function e(t){return t}t.exports=e},function(t,e,i){"use strict";function n(t){return null==t?"":s(t)}var s=i(66);t.exports=n},function(t,e,i){"use strict";function n(t){if("string"==typeof t)return t;if(o(t))return r(t,n)+"";if(a(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-l?"-0":e}var s=i(14),r=i(8),o=i(4),a=i(62),l=1/0,u=s?s.prototype:undefined,c=u?u.toString:undefined;t.exports=n},function(t,e,i){"use strict";function n(t){if("string"==typeof t||s(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}var s=i(62),r=1/0;t.exports=n},function(t,e,i){"use strict";function n(t,e){return null!=t&&r(t,e,s)}var s=i(69),r=i(70);t.exports=n},function(t){"use strict";function e(t,e){return null!=t&&e in Object(t)}t.exports=e},function(t,e,i){"use strict";function n(t,e,i){for(var n=-1,c=(e=s(e,t)).length,h=!1;++n<c;){var d=u(e[n]);if(!(h=null!=t&&i(t,d)))break;t=t[d]}return h||++n!=c?h:!!(c=null==t?0:t.length)&&l(c)&&a(d,c)&&(o(t)||r(t))}var s=i(60),r=i(17),o=i(4),a=i(71),l=i(28),u=i(67);t.exports=n},function(t){"use strict";function e(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||n.test(t))&&t>-1&&t%1==0&&t<e}var i=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=e},function(t,e,i){"use strict";function n(t){return o(t)?s(a(t)):r(t)}var s=i(73),r=i(74),o=i(61),a=i(67);t.exports=n},function(t){"use strict";function e(t){return function(e){return null==e?undefined:e[t]}}t.exports=e},function(t,e,i){
"use strict";function n(t){return function(e){return s(e,t)}}var s=i(59);t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=-1,n=r(t)?Array(t.length):[];return s(t,function(t,s,r){n[++i]=e(t,s,r)}),n}var s=i(76),r=i(24);t.exports=n},function(t,e,i){"use strict";var n=i(77),s=i(80)(n);t.exports=s},function(t,e,i){"use strict";function n(t,e){return t&&s(t,e,r)}var s=i(78),r=i(55);t.exports=n},function(t,e,i){"use strict";var n=i(79)();t.exports=n},function(t){"use strict";function e(t){return function(e,i,n){for(var s=-1,r=Object(e),o=n(e),a=o.length;a--;){var l=o[t?a:++s];if(!1===i(r[l],l,r))break}return e}}t.exports=e},function(t,e,i){"use strict";function n(t,e){return function(i,n){if(null==i)return i;if(!s(i))return t(i,n);for(var r=i.length,o=e?r:-1,a=Object(i);(e?o--:++o<r)&&!1!==n(a[o],o,a););return i}}var s=i(24);t.exports=n},function(t,e,i){"use strict";var n=i(82),s=i(9),r=i(83),o=r&&r.isRegExp,a=o?s(o):n;t.exports=a},function(t,e,i){"use strict";function n(t){return r(t)&&s(t)==o}var s=i(26),r=i(29),o="[object RegExp]";t.exports=n},function(t,e,i){(function(t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=i(16),r="object"==n(e)&&e&&!e.nodeType&&e,o=r&&"object"==n(t)&&t&&!t.nodeType&&t,a=o&&o.exports===r&&s.process,l=function(){try{return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=l}).call(e,i(84)(t))},function(t){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,i){"use strict";function n(t){if(null==t)return!0;if(l(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||h(t)||o(t)))return!t.length;var e=r(t);if(e==d||e==f)return!t.size;if(c(t))return!s(t).length;for(var i in t)if(p.call(t,i))return!1;return!0}var s=i(86),r=i(50),o=i(17),a=i(4),l=i(24),u=i(51),c=i(87),h=i(52),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,i){"use strict";var n=i(49)(Object.keys,Object);t.exports=n},function(t){"use strict";function e(){return!1}t.exports=e},function(t,e,i){"use strict";function n(){if(!arguments.length)return[];var t=arguments[0];return s(t)?t:[t]}var s=i(4);t.exports=n},function(t,e,i){"use strict";function n(t){return"string"==typeof t||!r(t)&&o(t)&&s(t)==a}var s=i(26),r=i(4),o=i(29),a="[object String]";t.exports=n},function(t,e,i){"use strict";function n(t,e,i){return i||null==e?e=0:e&&(e=+e),a(r(t).replace(o,""),e||0)}var s=i(15),r=i(65),o=/^\s+/,a=s.parseInt;t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){t=r(t)?t:l(t),i=i&&!n?a(i):0;var c=t.length;return i<0&&(i=u(c+i,0)),o(t)?i<=c&&t.indexOf(e,i)>-1:!!c&&s(t,e,i)>-1}var s=i(6),r=i(24),o=i(89),a=i(92),l=i(95),u=Math.max;t.exports=n},function(t,e,i){"use strict";function n(t){var e=s(t),i=e%1;return e==e?i?e-i:e:0}var s=i(93);t.exports=n},function(t,e,i){"use strict";function n(t){return t?(t=s(t))===r||t===-r?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}var s=i(94),r=1/0,o=1.7976931348623157e308;t.exports=n},function(t,e,i){"use strict";function n(t){if("number"==typeof t)return t;if(r(t))return o;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var i=u.test(t);return i||c.test(t)?h(t.slice(2),i?2:8):l.test(t)?o:+t}var s=i(27),r=i(62),o=NaN,a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,h=parseInt;t.exports=n},function(t,e,i){"use strict";function n(t){return null==t?[]:s(t,r(t))}var s=i(96),r=i(55);t.exports=n},function(t,e,i){"use strict";function n(t,e){return s(e,function(e){return t[e]})}var s=i(8);t.exports=n},function(t,e,i){"use strict";function n(t){var e=null==t?0:t.length;return e?s(t,1,e):[]}var s=i(98);t.exports=n},function(t){"use strict";function e(t,e,i){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(i=i>s?s:i)<0&&(i+=s),s=e>i?0:i-e>>>0,e>>>=0;for(var r=Array(s);++n<s;)r[n]=t[n+e];return r}t.exports=e},function(t){"use strict";function e(t){return t&&t.length?t[0]:undefined}t.exports=e},function(t,e,i){"use strict";var n=i(11),s=i(101),r=i(18),o=i(105),a=r(function(t,e){if(null==t)return[];var i=e.length;return i>1&&o(t,e[0],e[1])?e=[]:i>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),s(t,n(e,1),[])});t.exports=a},function(t,e,i){"use strict";function n(t,e,i){var n=-1;e=s(e.length?e:[c],l(r));var h=o(t,function(t){return{criteria:s(e,function(e){return e(t)}),index:++n,value:t}});return a(h,function(t,e){return u(t,e,i)})}var s=i(8),r=i(31),o=i(75),a=i(102),l=i(9),u=i(103),c=i(19);t.exports=n},function(t){"use strict";function e(t,e){var i=t.length;for(t.sort(e);i--;)t[i]=t[i].value;return t}t.exports=e},function(t,e,i){"use strict";function n(t,e,i){for(var n=-1,r=t.criteria,o=e.criteria,a=r.length,l=i.length;++n<a;){var u=s(r[n],o[n]);if(u)return n>=l?u:u*("desc"==i[n]?-1:1)}return t.index-e.index}var s=i(104);t.exports=n},function(t,e,i){"use strict";function n(t,e){if(t!==e){var i=t!==undefined,n=null===t,r=t==t,o=s(t),a=e!==undefined,l=null===e,u=e==e,c=s(e);if(!l&&!c&&!o&&t>e||o&&a&&u&&!l&&!c||n&&a&&u||!i&&u||!r)return 1;if(!n&&!o&&!c&&t<e||c&&i&&r&&!n&&!o||l&&i&&r||!a&&r||!u)return-1}return 0}var s=i(62);t.exports=n},function(t){"use strict";function e(){return!1}t.exports=e},function(t,e,i){"use strict";function n(t,e,i){var n=u(t),p=n||c(t)||f(t);if(e=a(e,4),null==i){var m=t&&t.constructor;i=p?n?new m:[]:d(t)&&h(m)?r(l(t)):{}}return(p?s:o)(t,function(t,n,s){return e(i,t,n,s)}),i}var s=i(107),r=i(108),o=i(77),a=i(31),l=i(109),u=i(4),c=i(51),h=i(25),d=i(27),f=i(52);t.exports=n},function(t){"use strict";function e(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}t.exports=e},function(t,e,i){"use strict";var n=i(27),s=Object.create,r=function(){function t(){}return function(e){if(!n(e))return{};if(s)return s(e);t.prototype=e;var i=new t;return t.prototype=undefined,i}}();t.exports=r},function(t,e,i){"use strict";var n=i(49)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,i){"use strict";t.exports=i(111)},function(t,e,i){"use strict";function n(t,e){return(a(t)?s:r)(t,o(e))}var s=i(107),r=i(76),o=i(112),a=i(4);t.exports=n},function(t){"use strict";function e(t){return t}t.exports=e},function(t,e,i){"use strict";var n=i(21),s=i(114),r=i(18),o=i(122),a=r(function(t){return t.push(undefined,o),n(s,undefined,t)});t.exports=a},function(t,e,i){"use strict";var n=i(115),s=i(120),r=i(121),o=s(function(t,e,i,s){n(e,r(e),t,s)});t.exports=o},function(t,e,i){"use strict";function n(t,e,i,n){var o=!i;i||(i={});for(var a=-1,l=e.length;++a<l;){var u=e[a],c=n?n(i[u],t[u],u,i,t):undefined;c===undefined&&(c=t[u]),o?r(i,u,c):s(i,u,c)}return i}var s=i(116),r=i(117);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=t[e];o.call(t,e)&&r(n,i)&&(i!==undefined||e in t)||s(t,e,i)}var s=i(117),r=i(38),o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,i){"use strict";function n(t,e,i){"__proto__"==e&&s?s(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}var s=i(118);t.exports=n},function(t,e,i){"use strict";var n=i(119),s=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=s},function(t){"use strict";function e(t,e){return null==t?undefined:t[e]}t.exports=e},function(t,e,i){"use strict";function n(t){return s(function(e,i){var n=-1,s=i.length,o=s>1?i[s-1]:undefined,a=s>2?i[2]:undefined;for(o=t.length>3&&"function"==typeof o?(s--,o):undefined,a&&r(i[0],i[1],a)&&(o=s<3?undefined:o,s=1),e=Object(e);++n<s;){var l=i[n];l&&t(e,l,n,o)}return e})}var s=i(18),r=i(105);t.exports=n},function(t){"use strict";function e(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}t.exports=e},function(t,e,i){"use strict";function n(t,e,i,n){return t===undefined||s(t,r[i])&&!o.call(n,i)?e:t}var s=i(38),r=Object.prototype,o=r.hasOwnProperty;t.exports=n},function(t,e,i){"use strict";function n(t){return!0===t||!1===t||r(t)&&s(t)==o}var s=i(26),r=i(29),o="[object Boolean]";t.exports=n},function(t){"use strict";function e(){}t.exports=e},function(t,e,i){"use strict";var n=i(21),s=i(18),r=i(126),o=i(138),a=s(function(t){return t.push(undefined,r),n(o,undefined,t)});t.exports=a},function(t,e,i){"use strict";function n(t,e,i,o,a,l){return r(t)&&r(e)&&(l.set(e,t),s(t,e,undefined,n,l),l["delete"](e)),t}var s=i(127),r=i(27);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,c,h){t!==e&&o(e,function(o,u){if(l(o))h||(h=new s),a(t,e,u,i,n,c,h);else{var d=c?c(t[u],o,u+"",t,e,h):undefined;d===undefined&&(d=o),r(t,u,d)}},u)}var s=i(34),r=i(128),o=i(78),a=i(129),l=i(27),u=i(121);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){(i===undefined||r(t[e],i))&&(i!==undefined||e in t)||s(t,e,i)}var s=i(117),r=i(38);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,y,_,b){var w=t[i],x=e[i],k=b.get(x);if(k)s(t,i,k);else{var C=_?_(w,x,i+"",t,e,b):undefined,D=C===undefined;if(D){var T=c(x),S=!T&&d(x),E=!T&&!S&&g(x);C=x,T||S||E?c(w)?C=w:h(w)?C=a(w):S?(D=!1,C=r(x,!0)):E?(D=!1,C=o(x,!0)):C=[]:m(x)||u(x)?(C=w,u(w)?C=v(w):(!p(w)||n&&f(w))&&(C=l(x))):D=!1}D&&(b.set(x,C),y(C,x,n,_,b),b["delete"](x)),s(t,i,C)}}var s=i(128),r=i(130),o=i(131),a=i(134),l=i(135),u=i(17),c=i(4),h=i(23),d=i(51),f=i(25),p=i(27),m=i(136),g=i(52),v=i(137);t.exports=n},function(t,e,i){(function(t){"use strict";function n(t,e){if(e)return t.slice();var i=t.length,n=u?u(i):new t.constructor(i);return t.copy(n),n}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=i(15),o="object"==s(e)&&e&&!e.nodeType&&e,a=o&&"object"==s(t)&&t&&!t.nodeType&&t,l=a&&a.exports===o?r.Buffer:undefined,u=l?l.allocUnsafe:undefined;t.exports=n}).call(e,i(84)(t))},function(t,e,i){"use strict";function n(t,e){var i=e?s(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var s=i(132);t.exports=n},function(t,e,i){"use strict";function n(t){var e=new t.constructor(t.byteLength);return new s(e).set(new s(t)),e}var s=i(133);t.exports=n},function(t,e,i){"use strict";var n=i(15).Uint8Array;t.exports=n},function(t){"use strict";function e(t,e){var i=-1,n=t.length;for(e||(e=Array(n));++i<n;)e[i]=t[i];return e}t.exports=e},function(t,e,i){"use strict";function n(t){return"function"!=typeof t.constructor||o(t)?{}:s(r(t))}var s=i(108),r=i(109),o=i(87);t.exports=n},function(t,e,i){"use strict";function n(t){if(!o(t)||s(t)!=a)return!1;var e=r(t);if(null===e)return!0;var i=h.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&c.call(i)==d}var s=i(26),r=i(109),o=i(29),a="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,h=u.hasOwnProperty,d=c.call(Object);t.exports=n},function(t,e,i){"use strict";function n(t){return s(t,r(t))}var s=i(115),r=i(121);t.exports=n},function(t,e,i){"use strict";var n=i(127),s=i(120)(function(t,e,i,s){n(t,e,i,s)});t.exports=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e,i){var n=new l.TreeNodes(t);return t.config.sort&&(e=(0,o["default"])(e,t.config.sort)),(0,r["default"])(e,function(e){n.push((0,a.objectToNode)(t,e,i))}),n._context=i,n}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(110)),o=n(i(100));e.collectionToModel=s;var a=i(140),l=i(172)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e,i){e.id=e.id||(0,l["default"])(),"string"!=typeof e.id&&(e.id=e.id.toString());var n=e.itree=e.itree||{};n.icon=n.icon||!1;var s=n.li=n.li||{};s.attributes=s.attributes||{};var c=n.a=n.a||{};c.attributes=c.attributes||{};var h=n.state=n.state||{};return h.collapsed="boolean"==typeof h.collapsed?h.collapsed:t.defaultState.collapsed,h.selectable="boolean"==typeof h.selectable?h.selectable:t.defaultState.selectable,h.checked="boolean"==typeof h.checked&&h.checked,h.editable="boolean"==typeof h.editable?h.editable:t.defaultState.editable,h.editing="boolean"==typeof h.editing?h.editing:t.defaultState.editing,h.focused=h.focused||t.defaultState.focused,h.hidden=h.hidden||t.defaultState.hidden,h.indeterminate=h.indeterminate||t.defaultState.indeterminate,h.loading=h.loading||t.defaultState.loading,h.removed=h.removed||t.defaultState.removed,h.rendered=h.rendered||t.defaultState.rendered,h.selected=h.selected||t.defaultState.selected,e.itree.parent=i,(e=(0,o["default"])(new u.TreeNode(t),e)).hasChildren()&&(e.children=(0,a.collectionToModel)(t,e.children,e)),t.allowsLoadEvents&&(0,r["default"])(t.config.allowLoadEvents,function(i){h[i]&&t.emit("node."+i,e)}),e}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(110)),o=n(i(141));e.objectToNode=s;var a=i(139),l=n(i(142)),u=i(147)},function(t,e,i){"use strict";var n=i(116),s=i(115),r=i(120),o=i(24),a=i(87),l=i(55),u=Object.prototype.hasOwnProperty,c=r(function(t,e){if(a(e)||o(e))s(e,l(e),t);else for(var i in e)u.call(e,i)&&n(t,i,e[i])});t.exports=c},function(t,e,i){"use strict";var n=i(143),s=i(146),r=s;r.v1=n,r.v4=s,t.exports=r},function(t,e,i){"use strict";function n(t,e,i){var n=e&&i||0,s=e||[],o=(t=t||{}).clockseq!==undefined?t.clockseq:l,h=t.msecs!==undefined?t.msecs:(new Date).getTime(),d=t.nsecs!==undefined?t.nsecs:c+1,f=h-u+(d-c)/1e4;if(f<0&&t.clockseq===undefined&&(o=o+1&16383),(f<0||h>u)&&t.nsecs===undefined&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=h,c=d,l=o;var p=(1e4*(268435455&(h+=122192928e5))+d)%4294967296;s[n++]=p>>>24&255,s[n++]=p>>>16&255,s[n++]=p>>>8&255,s[n++]=255&p;var m=h/4294967296*1e4&268435455;s[n++]=m>>>8&255,s[n++]=255&m,s[n++]=m>>>24&15|16,s[n++]=m>>>16&255,s[n++]=o>>>8|128,s[n++]=255&o;for(var g=t.node||a,v=0;v<6;++v)s[n+v]=g[v];return e||r(s)}var s=i(144),r=i(145),o=s(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],l=16383&(o[6]<<8|o[7]),u=0,c=0;t.exports=n},function(t,e){(function(e){"use strict";var i,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var s=new Uint8Array(16);i=function(){return n.getRandomValues(s),s}}if(!i){var r=new Array(16);i=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}t.exports=i}).call(e,function(){return this}())},function(t){"use strict";function e(t,e){var n=e||0,s=i;return s[t[n++]]+s[t[n++]]+s[t[n++]]+s[t[n++]]+"-"+s[t[n++]]+s[t[n++]]+"-"+s[t[n++]]+s[t[n++]]+"-"+s[t[n++]]+s[t[n++]]+"-"+s[t[n++]]+s[t[n++]]+s[t[n++]]+s[t[n++]]+s[t[n++]]+s[t[n++]]}for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=e},function(t,e,i){"use strict";function n(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[n+a]=o[a];return e||r(o)}var s=i(144),r=i(145);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){var i={};return(e=(0,_["default"])(e)).push("ref"),(0,y["default"])(t,function(t,n){(0,v["default"])(e,n)||(i[n]=(0,g["default"])(t))}),i}Object.defineProperty(e,"__esModule",{value:!0}),e.TreeNode=undefined;var o=n(i(148)),a=n(i(149)),l=n(i(151)),u=n(i(90)),c=n(i(153)),h=n(i(155)),d=n(i(25)),f=n(i(24)),p=n(i(4)),m=n(i(27)),g=n(i(156)),v=n(i(91)),y=n(i(110)),_=n(i(88)),b=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),w=i(167),x=i(139),k=i(140),C=i(168),D=i(171),T=i(181),S=i(172);e.TreeNode=function(){function t(e,i,n){s(this,t);var o=this;o._tree=e,i instanceof t&&((n=(0,_["default"])(n)).push("_tree"),(0,y["default"])(i,function(t,e){(0,v["default"])(n,e)||((0,m["default"])(t)?t instanceof S.TreeNodes?o[e]=t.clone():o[e]="itree"===e?r(t):(0,g["default"])(t):o[e]=t)}))}return b(t,[{key:"addChild",value:function(t){return!(0,p["default"])(this.children)&&(0,f["default"])(this.children)||(this.children=new S.TreeNodes(this._tree),this.children._context=this),this.children.addNode(t)}},{key:"addChildren",value:function(t){var e=this,i=new S.TreeNodes;return this._tree.dom.batch(),(0,y["default"])(t,function(t){i.push(e.addChild(t))}),this._tree.dom.end(),i}},{key:"available",value:function(){return!this.hidden()&&!this.removed()}},{key:"blur",value:function(){return this.state("editing",!1),(0,w.baseStateChange)("focused",!1,"blurred",this)}},{key:"check",value:function(t){this._tree.dom.batch();var e=!t&&this._tree.config.checkbox.autoCheckChildren;return(0,w.baseStateChange)("checked",!0,"checked",this,e),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.dom.end(),this}},{key:"checked",value:function(){return this.state("checked")}},{key:"clean",value:function(){return this.recurseUp(function(t){if(t.hasParent()){var e=t.getParent();e.hasVisibleChildren()||e.hide()}}),this}},{key:"clone",value:function(e){return new t(this._tree,this,e)}},{key:"collapse",value:function(){return(0,w.baseStateChange)("collapsed",!0,"collapsed",this)}},{key:"collapsed",value:function(){return this.state("collapsed")}},{key:"context",value:function(){return this.hasParent()?this.getParent().children:this._tree.model}},{key:"copy",value:function(t){var e=this;return t&&(e=e.copyHierarchy()),{to:function(t){if(!(0,d["default"])(t.addNode))throw new Error("Destination must be an Inspire Tree instance.");return t.addNode(e.toObject())}}}},{key:"copyHierarchy",value:function(t){var e=this,i=[],n=e.getParents();if((0,y["default"])(n,function(e){i.push(e.toObject(t))}),n=i.reverse(),!t){var s=e.toObject(!0);e.hasChildren()&&(s.children=e.children.filter(function(t){return!t.state("hidden")}).toArray(),s.children._context=s),i.push(s)}var r=i[0],o=r,a=i.length;return(0,y["default"])(i,function(t,e){var n=[];e+1<a&&(n.push(i[e+1]),o.children=n,o=o.children[0])}),(0,k.objectToNode)(this._tree,r)}},{key:"deselect",value:function(t){if(this.selected()&&(!this._tree.config.selection.require||this._tree.selected().length>1)){this._tree.dom.batch();var e=!t&&this._tree.config.selection.autoSelectChildren;this.state("indeterminate",!1),(0,w.baseStateChange)("selected",!1,"deselected",this,e),this._tree.dom.end()}return this}},{key:"editable",value:function(){return this._tree.config.editable&&this._tree.config.editing.edit&&this.state("editable")}},{key:"editing",value:function(){return this.state("editing")}},{key:"expand",value:function(){var t=this;return new C.Promise(function(e,i){(t.hasChildren()||t._tree.isDynamic&&!0===t.children)&&(t.collapsed()||t.hidden())?(t.state("collapsed",!1),t.state("hidden",!1),t._tree.emit("node.expanded",t),t._tree.isDynamic&&!0===t.children?t.loadChildren().then(e)["catch"](i):(t.markDirty(),t._tree.dom.applyChanges(),e(t))):e(t)})}},{key:"expanded",value:function(){return!this.collapsed()}},{key:"expandParents",value:function(){return this.hasParent()&&this.getParent().recurseUp(function(t){t.expand()}),this}},{key:"focus",value:function(){var t=this;return t.focused()||(this._tree.dom.batch(),this._tree.blurDeep(),t.state("focused",!0),this._tree.emit("node.focused",t),t.markDirty(),this._tree.dom.end()),t}},{key:"focused",value:function(){return this.state("focused")}},{key:"getChildren",value:function(){return this.hasChildren()?this.children:new S.TreeNodes(this._tree)}},{key:"getParent",value:function(){return this.itree.parent}},{key:"getParents",value:function(){var t=new S.TreeNodes(this._tree);return this.hasParent()&&this.getParent().recurseUp(function(e){t.push(e)}),t}},{key:"getTextualHierarchy",value:function(){var t=[];return this.recurseUp(function(e){t.unshift(e.text)}),t}},{key:"hasChildren",value:function(){return(0,f["default"])(this.children)&&this.children.length>0}},{key:"hasLoadedChildren",value:function(){return(0,f["default"])(this.children)}},{key:"hasParent",value:function(){return Boolean(this.itree.parent)}},{key:"hasVisibleChildren",value:function(){var t=!1;return this.hasChildren()&&(t=this.children.filter("available").length>0),t}},{key:"hide",value:function(){var t=(0,w.baseStateChange)("hidden",!0,"hidden",this);return t.hasChildren()&&t.children.hide(),t}},{key:"hidden",value:function(){return this.state("hidden")}},{key:"indexPath",value:function(){var t=[];return this.recurseUp(function(e){t.push((0,h["default"])(e.context(),e))}),t.reverse().join(".")}},{key:"indeterminate",value:function(){return this.state("indeterminate")}},{key:"lastDeepestVisibleChild",value:function(){var t;if(this.hasChildren()&&!this.collapsed()){var e=(t=(0,c["default"])(this.children,function(t){return t.visible()})).lastDeepestVisibleChild();e&&(t=e)}return t}},{key:"loadChildren",value:function(){var t=this;return new C.Promise(function(e,i){t._tree.isDynamic&&((0,f["default"])(t.children)||!0===t.children)||i(new Error("Node does not have or support dynamic children.")),t.state("loading",!0),t.markDirty(),t._tree.dom.applyChanges();var n=function(i,n){(0,u["default"])(n)>i.length&&(t.itree.pagination.total=(0,u["default"])(n)),t._tree.dom.batch(),t.state("loading",!1);var s=(0,x.collectionToModel)(t._tree,i,t);(0,f["default"])(t.children)?t.children=t.children.concat(s):t.children=s,"checkbox"===t._tree.config.selection.mode&&t.selected()&&t.children.select(),t.markDirty(),t._tree.dom.end(),e(t.children),t._tree.emit("children.loaded",t)},s=function(e){t.state("loading",!1),t.children=new S.TreeNodes(t._tree),t.children._context=t,t.markDirty(),t._tree.dom.applyChanges(),i(e),t._tree.emit("tree.loaderror",e)},r=t._tree.config.data(t,n,s,t.itree.pagination);(0,m["default"])(r)&&(0,T.standardizePromise)(r).then(n)["catch"](s)})}},{key:"loading",value:function(){return this.state("loading")}},{key:"markDirty",value:function(){return this.itree.dirty||(this.itree.dirty=!0,this.hasParent()&&this.getParent().markDirty()),this}},{key:"matched",value:function(){return this.state("matched")}},{key:"nextVisibleAncestralSiblingNode",value:function(){var t;if(this.hasParent()){var e=this.getParent();(t=e.nextVisibleSiblingNode())||(t=e.nextVisibleAncestralSiblingNode())}return t}},{key:"nextVisibleChildNode",value:function(){var t,e=this;return e.hasChildren()&&(t=(0,l["default"])(e.children,function(t){return t.visible()})),t}},{key:"nextVisibleNode",value:function(){var t,e=this;return(t=e.nextVisibleChildNode())||(t=e.nextVisibleSiblingNode()),t||(t=e.nextVisibleAncestralSiblingNode()),t}},{key:"nextVisibleSiblingNode",value:function(){var t=this,e=t.hasParent()?t.getParent().children:this._tree.nodes(),i=(0,a["default"])(e,{id:t.id});return(0,l["default"])((0,o["default"])(e,i+1),function(t){return t.visible()})}},{key:"previousVisibleNode",value:function(){var t,e=this;return(t=e.previousVisibleSiblingNode())&&t.hasChildren()&&!t.collapsed()&&(t=t.lastDeepestVisibleChild()),!t&&e.hasParent()&&(t=e.getParent()),t}},{key:"previousVisibleSiblingNode",value:function(){var t=this.hasParent()?this.getParent().children:this._tree.nodes(),e=(0,a["default"])(t,{id:this.id});return(0,c["default"])((0,o["default"])(t,0,e),function(t){return t.visible()})}},{key:"recurseDown",value:function(t){return(0,D.recurseDown)(this,t),this}},{key:"recurseUp",value:function(t){return!1!==t(this)&&this.hasParent()&&this.getParent().recurseUp(t),this}},{key:"refreshIndeterminateState",value:function(){var t=this,e=t.indeterminate();if(t.state("indeterminate",!1),this._tree.config.dom.showCheckboxes){if(t.hasChildren()){var i=t.children.length,n=0,s=0;t.children.each(function(t){t.checked()&&s++,t.indeterminate()&&n++}),s===i?(0,w.baseStateChange)("checked",!0,"checked",t):(0,w.baseStateChange)("checked",!1,"unchecked",t),t.checked()||t.state("indeterminate",n>0||i>0&&s>0&&s<i)}t.hasParent()&&t.getParent().refreshIndeterminateState(),e!==t.state("indeterminate")&&t.markDirty()}return t}},{key:"remove",value:function(){var t=this.getParent();this.context().remove(this),t&&t.refreshIndeterminateState();var e=this.toObject();return this._tree.emit("node.removed",e),e}},{key:"removed",value:function(){return this.state("removed")}},{key:"rendered",value:function(){return this.state("rendered")}},{key:"restore",value:function(){return(0,w.baseStateChange)("removed",!1,"restored",this)}},{key:"select",value:function(t){var e=this;if(!e.selected()&&e.selectable()){if(e._tree.dom.batch(),e._tree.canAutoDeselect()){var i=e._tree.config.selection.require;e._tree.config.selection.require=!1,e._tree.deselectDeep(),e._tree.config.selection.require=i}var n=!t&&e._tree.config.selection.autoSelectChildren;(0,w.baseStateChange)("selected",!0,"selected",this,n),e._tree._lastSelectedNode=e,e.markDirty(),e._tree.dom.end()}return e}},{key:"selectable",value:function(){var t=this._tree.config.selection.allow(this);return"boolean"==typeof t?t:this.state("selectable")}},{key:"selected",value:function(){return this.state("selected")}},{key:"set",value:function(t,e){return this[t]=e,this.markDirty(),this}},{key:"show",value:function(){return(0,w.baseStateChange)("hidden",!1,"shown",this)}},{key:"state",value:function(t,e){var i=this.itree.state[t];return void 0!==e&&i!==e&&(this.itree.state[t]=e,"rendered"!==t&&this.markDirty(),this._tree.emit("node.state.changed",this,t,i,e)),i}},{key:"softRemove",value:function(){return(0,w.baseStateChange)("removed",!0,"softremoved",this,"softRemove")}},{key:"toggleCheck",value:function(){return this.checked()?this.uncheck():this.check()}},{key:"toggleCollapse",value:function(){return this.collapsed()?this.expand():this.collapse()}},{key:"toggleEditing",value:function(){return this.state("editing",!this.state("editing")),this.markDirty(),this._tree.dom.applyChanges(),this}},{key:"toggleSelect",value:function(){return this.selected()?this.deselect():this.select()}},{key:"toObject",value:function(t){var e={};return(0,y["default"])(this,function(t,i){"_tree"!==i&&"children"!==i&&"itree"!==i&&(e[i]=t)}),!t&&this.hasChildren()&&(0,d["default"])(this.children.toArray)&&(e.children=this.children.toArray()),e}},{key:"uncheck",value:function(t){this._tree.dom.batch();var e=!t&&this._tree.config.checkbox.autoCheckChildren;return(0,w.baseStateChange)("checked",!1,"unchecked",this,e),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.dom.end(),this}},{key:"visible",value:function(){var t=this;return!(t.hidden()||t.removed()||this._tree.usesNativeDOM&&!t.rendered())&&(!t.hasParent()||!t.getParent().collapsed()&&t.getParent().visible())}}]),t}()},function(t,e,i){"use strict";function n(t,e,i){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&r(t,e,i)?(e=0,i=n):(e=null==e?0:o(e),i=i===undefined?n:o(i)),s(t,e,i)):[]}var s=i(98),r=i(105),o=i(92);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var l=null==i?0:o(i);return l<0&&(l=a(n+l,0)),s(t,r(e,3),l)}var s=i(150),r=i(31),o=i(92),a=Math.max;t.exports=n},function(t){"use strict";function e(t,e,i,n){for(var s=t.length,r=i+(n?1:-1);n?r--:++r<s;)if(e(t[r],r,t))return r;return-1}t.exports=e},function(t,e,i){"use strict";var n=i(152)(i(149));t.exports=n},function(t,e,i){"use strict";function n(t){return function(e,i,n){var a=Object(e);if(!r(e)){var l=s(i,3);e=o(e),i=function(t){return l(a[t],t,a)}}var u=t(e,i,n);return u>-1?a[l?e[u]:u]:undefined}}var s=i(31),r=i(24),o=i(55);t.exports=n},function(t,e,i){"use strict";var n=i(152)(i(154));t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var u=n-1;return i!==undefined&&(u=o(i),u=i<0?a(n+u,0):l(u,n-1)),s(t,r(e,3),u,!0)}var s=i(150),r=i(31),o=i(92),a=Math.max,l=Math.min;t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var a=null==i?0:r(i);return a<0&&(a=o(n+a,0)),s(t,e,a)}var s=i(6),r=i(92),o=Math.max;t.exports=n},function(t,e,i){"use strict";function n(t){return s(t,r|o)}var s=i(157),r=1,o=4;t.exports=n},function(t,e,i){"use strict";function n(t,e,i,S,E,P){var N,I=e&k,j=e&C,O=e&D;if(i&&(N=E?i(t,S,E,P):i(t)),N!==undefined)return N;if(!w(t))return t;var H=_(t);if(H){if(N=g(t),!I)return c(t,N)}else{var L=m(t),z=L==M||L==A;if(b(t))return u(t,I);if(L==$||L==T||z&&!E){if(N=j||z?{}:y(t),!I)return j?d(t,l(N,t)):h(t,a(N,t))}else{if(!Z[L])return E?t:{};N=v(t,L,n,I)}}P||(P=new s);var W=P.get(t);if(W)return W;P.set(t,N);var F=O?j?p:f:j?keysIn:x,R=H?undefined:F(t);return r(R||t,function(s,r){R&&(s=t[r=s]),o(N,r,n(s,e,i,r,t,P))}),N}var s=i(34),r=i(107),o=i(116),a=i(158),l=i(159),u=i(130),c=i(134),h=i(160),d=i(162),f=i(48),p=i(164),m=i(50),g=i(165),v=i(166),y=i(135),_=i(4),b=i(51),w=i(27),x=i(55),k=1,C=2,D=4,T="[object Arguments]",S="[object Array]",E="[object Boolean]",P="[object Date]",N="[object Error]",M="[object Function]",A="[object GeneratorFunction]",I="[object Map]",j="[object Number]",$="[object Object]",O="[object RegExp]",H="[object Set]",L="[object String]",z="[object Symbol]",W="[object WeakMap]",F="[object ArrayBuffer]",R="[object DataView]",q="[object Float32Array]",B="[object Float64Array]",V="[object Int8Array]",Y="[object Int16Array]",U="[object Int32Array]",Q="[object Uint8Array]",K="[object Uint8ClampedArray]",X="[object Uint16Array]",G="[object Uint32Array]",Z={};Z[T]=Z[S]=Z[F]=Z[R]=Z[E]=Z[P]=Z[q]=Z[B]=Z[V]=Z[Y]=Z[U]=Z[I]=Z[j]=Z[$]=Z[O]=Z[H]=Z[L]=Z[z]=Z[Q]=Z[K]=Z[X]=Z[G]=!0,Z[N]=Z[M]=Z[W]=!1,t.exports=n},function(t,e,i){"use strict";function n(t,e){return t&&s(e,r(e),t)}var s=i(115),r=i(55);t.exports=n},function(t,e,i){"use strict";function n(t,e){return t&&s(e,r(e),t)}var s=i(115),r=i(121);t.exports=n},function(t,e,i){"use strict";function n(t,e){return s(t,r(t),e)}var s=i(115),r=i(161);t.exports=n},function(t){"use strict";function e(){return[]}t.exports=e},function(t,e,i){"use strict";function n(t,e){return s(t,r(t),e)}var s=i(115),r=i(163);t.exports=n},function(t){"use strict";function e(){return[]}t.exports=e},function(t){"use strict";function e(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}t.exports=e},function(t){"use strict";function e(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&i.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var i=Object.prototype.hasOwnProperty;t.exports=e},function(t){"use strict";function e(t){return t}t.exports=e},function(t,e){"use strict";function i(t){return _.each(t._tree.defaultState,function(e,i){t.state(i,e)}),t}function n(t,e,s,r,o){return r.state(t)!==e&&(r._tree.dom.batch(),r._tree.config.nodes.resetStateOnRestore&&"restored"===s&&i(r),r.state(t,e),r._tree.emit("node."+s,r),o&&r.hasChildren()&&r.children.recurseDown(function(i){n(t,e,s,i)}),r.markDirty(),r._tree.dom.end()),r}Object.defineProperty(e,"__esModule",{value:!0}),e.baseStateChange=n},function(t,e,i){var n,s;(function(r,o){"use strict";var a,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};undefined,a=function(){function t(t){return"function"==typeof t||"object"===(void 0===t?"undefined":l(t))&&null!==t}function e(t){return"function"==typeof t}function n(t){K=t}function s(t){X=t}function a(){return function(){return r.nextTick(f)}}function u(){return void 0!==Q?function(){Q(f)}:d()}function c(){var t=0,e=new J(f),i=document.createTextNode("");return e.observe(i,{characterData:!0}),function(){i.data=t=++t%2}}function h(){var t=new MessageChannel;return t.port1.onmessage=f,function(){return t.port2.postMessage(0)}}function d(){var t=setTimeout;return function(){return t(f,1)}}function f(){for(var t=0;t<U;t+=2){(0,it[t])(it[t+1]),it[t]=undefined,it[t+1]=undefined}U=0}function p(){try{var t=i(170);return Q=t.runOnLoop||t.runOnContext,u()}catch(e){return d()}}function m(t,e){var i=arguments,n=this,s=new this.constructor(v);s[st]===undefined&&O(s);var r,o=n._state;return o?(r=i[o-1],X(function(){return I(o,s,r,n._result)})):P(n,s,t,e),s}function g(t){var e=this;if(t&&"object"===(void 0===t?"undefined":l(t))&&t.constructor===e)return t;var i=new e(v);return D(i,t),i}function v(){}function y(){return new TypeError("You cannot resolve a promise with itself")}function _(){return new TypeError("A promises callback cannot return that same promise.")}function b(t){try{return t.then}catch(error){return lt.error=error,lt}}function w(t,e,i,n){try{t.call(e,i,n)}catch(s){return s}}function x(t,e,i){X(function(t){var n=!1,s=w(i,e,function(i){n||(n=!0,e!==i?D(t,i):S(t,i))},function(e){n||(n=!0,E(t,e))
},"Settle: "+(t._label||" unknown promise"));!n&&s&&(n=!0,E(t,s))},t)}function k(t,e){e._state===ot?S(t,e._result):e._state===at?E(t,e._result):P(e,undefined,function(e){return D(t,e)},function(e){return E(t,e)})}function C(t,i,n){i.constructor===t.constructor&&n===m&&i.constructor.resolve===g?k(t,i):n===lt?E(t,lt.error):n===undefined?S(t,i):e(n)?x(t,i,n):S(t,i)}function D(e,i){e===i?E(e,y()):t(i)?C(e,i,b(i)):S(e,i)}function T(t){t._onerror&&t._onerror(t._result),N(t)}function S(t,e){t._state===rt&&(t._result=e,t._state=ot,0!==t._subscribers.length&&X(N,t))}function E(t,e){t._state===rt&&(t._state=at,t._result=e,X(T,t))}function P(t,e,i,n){var s=t._subscribers,r=s.length;t._onerror=null,s[r]=e,s[r+ot]=i,s[r+at]=n,0===r&&t._state&&X(N,t)}function N(t){var e=t._subscribers,i=t._state;if(0!==e.length){for(var n=undefined,s=undefined,r=t._result,o=0;o<e.length;o+=3)n=e[o],s=e[o+i],n?I(i,n,s,r):s(r);t._subscribers.length=0}}function M(){this.error=null}function A(t,e){try{return t(e)}catch(i){return ut.error=i,ut}}function I(t,i,n,s){var r=e(n),o=undefined,a=undefined,l=undefined,u=undefined;if(r){if((o=A(n,s))===ut?(u=!0,a=o.error,o=null):l=!0,i===o)return void E(i,_())}else o=s,l=!0;i._state!==rt||(r&&l?D(i,o):u?E(i,a):t===ot?S(i,o):t===at&&E(i,o))}function j(t,e){try{e(function(e){D(t,e)},function(e){E(t,e)})}catch(i){E(t,i)}}function $(){return ct++}function O(t){t[st]=ct++,t._state=undefined,t._result=undefined,t._subscribers=[]}function H(t,e){this._instanceConstructor=t,this.promise=new t(v),this.promise[st]||O(this.promise),Y(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&S(this.promise,this._result))):E(this.promise,L())}function L(){return new Error("Array Methods must be provided an Array")}function z(t){return new H(this,t).promise}function W(t){var e=this;return Y(t)?new e(function(i,n){for(var s=t.length,r=0;r<s;r++)e.resolve(t[r]).then(i,n)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=new this(v);return E(e,t),e}function R(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function B(t){this[st]=$(),this._result=this._state=undefined,this._subscribers=[],v!==t&&("function"!=typeof t&&R(),this instanceof B?j(this,t):q())}function V(){var t=undefined;if(void 0!==o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(n){}if("[object Promise]"===i&&!e.cast)return}t.Promise=B}undefined;var Y=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},U=0,Q=undefined,K=undefined,X=function(t,e){it[U]=t,it[U+1]=e,2===(U+=2)&&(K?K(f):nt())},G="undefined"!=typeof window?window:undefined,Z=G||{},J=Z.MutationObserver||Z.WebKitMutationObserver,tt="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),et="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,it=new Array(1e3),nt=undefined;nt=tt?a():J?c():et?h():G===undefined?p():d();var st=Math.random().toString(36).substring(16),rt=void 0,ot=1,at=2,lt=new M,ut=new M,ct=0;return H.prototype._enumerate=function(){for(var t=this.length,e=this._input,i=0;this._state===rt&&i<t;i++)this._eachEntry(e[i],i)},H.prototype._eachEntry=function(t,e){var i=this._instanceConstructor,n=i.resolve;if(n===g){var s=b(t);if(s===m&&t._state!==rt)this._settledAt(t._state,e,t._result);else if("function"!=typeof s)this._remaining--,this._result[e]=t;else if(i===B){var r=new i(v);C(r,t,s),this._willSettleAt(r,e)}else this._willSettleAt(new i(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},H.prototype._settledAt=function(t,e,i){var n=this.promise;n._state===rt&&(this._remaining--,t===at?E(n,i):this._result[e]=i),0===this._remaining&&S(n,this._result)},H.prototype._willSettleAt=function(t,e){var i=this;P(t,undefined,function(t){return i._settledAt(ot,e,t)},function(t){return i._settledAt(at,e,t)})},B.all=z,B.race=W,B.resolve=g,B.reject=F,B._setScheduler=n,B._setAsap=s,B._asap=X,B.prototype={constructor:B,then:m,"catch":function(t){return this.then(null,t)}},B.polyfill=V,B.Promise=B,B},"object"===l(e)&&void 0!==t?t.exports=a():(s="function"==typeof(n=a)?n.call(e,i,e,t):n)===undefined||(t.exports=s)}).call(e,i(169),function(){return this}())},function(t){"use strict";function e(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function n(t){if(u===setTimeout)return setTimeout(t,0);if((u===e||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(i){try{return u.call(null,t,0)}catch(i){return u.call(this,t,0)}}}function s(t){if(c===clearTimeout)return clearTimeout(t);if((c===i||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function r(){p&&d&&(p=!1,d.length?f=d.concat(f):m=-1,f.length&&o())}function o(){if(!p){var t=n(r);p=!0;for(var e=f.length;e;){for(d=f,f=[];++m<e;)d&&d[m].run();m=-1,e=f.length}d=null,p=!1,s(t)}}function a(t,e){this.fun=t,this.array=e}function l(){}var u,c,h=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:e}catch(t){u=e}try{c="function"==typeof clearTimeout?clearTimeout:i}catch(t){c=i}}();var d,f=[],p=!1,m=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];f.push(new a(t,e)),1!==f.length||p||n(o)},a.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(){},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){var i;return t instanceof a.TreeNodes?(0,r["default"])(t,function(t){return i=s(t,e)}):t instanceof o.TreeNode&&!1!==(i=e(t))&&t.hasChildren()&&(i=s(t.children,e)),i}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(110));e.recurseDown=s;var o=i(147),a=i(172)},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}function l(t,e){if(e)return this.extract(t);var i=c(t);return this.flatten(function(e){return("removed"===t||!e.removed())&&i(e)})}function u(t,e,i,n){return e=(0,x["default"])(e),t._tree.dom.batch(),t[n?"recurseDown":"each"](function(t){(0,w["default"])(e,function(e){(0,b["default"])(t[e])&&t[e].apply(t,i)})}),t._tree.dom.end(),t}function c(t){var e=t;return(0,_["default"])(t)&&(e=function(e){return(0,b["default"])(e[t])?e[t]():e[t]}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.TreeNodes=undefined;var h=n(i(100)),d=n(i(173)),f=n(i(30)),p=n(i(178)),m=n(i(123)),g=n(i(24)),v=n(i(179)),y=n(i(4)),_=n(i(89)),b=n(i(25)),w=n(i(110)),x=n(i(88)),k=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),C=i(140),D=i(168),T=i(171),S=i(147);e.TreeNodes=function(){function t(e,i){s(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n._tree=e,n.length=0;var o=n;return((0,y["default"])(i)||i instanceof t)&&(0,w["default"])(i,function(t){t instanceof S.TreeNode?o.push(t.clone()):o.addNode(t)}),n}return o(t,a(Array)),k(t,[{key:"addNode",value:function(t){var e=this.length;return this._tree.config.sort&&(e=(0,v["default"])(this,t,this._tree.config.sort)),this.insertAt(e,t)}},{key:"available",value:function(t){return l.call(this,"available",t)}},{key:"blur",value:function(){return this.invoke("blur")}},{key:"blurDeep",value:function(){return this.invokeDeep("blur")}},{key:"checked",value:function(t){return l.call(this,"checked",t)}},{key:"clean",value:function(){return this.invoke("clean")}},{key:"clone",value:function(){return new t(this._tree,this)}},{key:"collapse",value:function(){return this.invoke("collapse")}},{key:"collapsed",value:function(t){return l.call(this,"collapsed",t)}},{key:"collapseDeep",value:function(){return this.invokeDeep("collapse")}},{key:"concat",value:function(e){var i=new t(this._tree);i._context=this._context;var n=function(t){t instanceof S.TreeNode&&i.push(t)};return(0,w["default"])(this,n),(0,w["default"])(e,n),i}},{key:"context",value:function(){return this._context||this._tree}},{key:"copy",value:function(e){var i=this;return{to:function(n){if(!(0,b["default"])(n.addNodes))throw new Error("Destination must be an Inspire Tree instance.");var s=new t(this._tree);return(0,w["default"])(i,function(t){s.push(t.copy(e).to(n))}),s}}}},{key:"deepest",value:function(){var e=new t(this._tree);return this.recurseDown(function(t){t.children||e.push(t)}),e}},{key:"deselect",value:function(){return this.invoke("deselect")}},{key:"deselectDeep",value:function(){return this.invokeDeep("deselect")}},{key:"each",value:function(t){return(0,w["default"])(this,t),this}},{key:"editable",value:function(t){return l.call(this,"editable",t)}},{key:"editing",value:function(t){return l.call(this,"editing",t)}},{key:"expand",value:function(){return this.invoke("expand")}},{key:"expanded",value:function(t){return l.call(this,"expanded",t)}},{key:"expandDeep",value:function(){var t=this;return new D.Promise(function(e){var i=0,n=function(){0==--i&&e(t)};t.recurseDown(function(t){i++,t.children?t.expand()["catch"](n).then(function(){t.children.expandDeep()["catch"](n).then(n)}):n()})})}},{key:"expandParents",value:function(){return this.invoke("expandParents")}},{key:"extract",value:function(e){var i=this.flatten(e),n=new t(this._tree);return(0,w["default"])(i,function(t){n.addNode(t.copyHierarchy())}),n}},{key:"filter",value:function(e){var i=c(e),n=new t(this._tree);return(0,w["default"])(this,function(t){i(t)&&n.push(t)}),n}},{key:"flatten",value:function(e){var i=new t(this._tree),n=c(e);return this.recurseDown(function(t){n(t)&&i.push(t)}),i}},{key:"focused",value:function(t){return l.call(this,"focused",t)}},{key:"get",value:function(t){return this[t]}},{key:"hidden",value:function(t){return l.call(this,"hidden",t)}},{key:"hide",value:function(){return this.invoke("hide")}},{key:"hideDeep",value:function(){return this.invokeDeep("hide")}},{key:"indeterminate",value:function(t){return l.call(this,"indeterminate",t)}},{key:"insertAt",value:function(e,i){if(i.id){var n=this.node(i.id);if(n)return n.restore().show(),(0,g["default"])(i.children)?((0,g["default"])(n.children)||(n.children=new t(this._tree),n.children._context=n),(0,w["default"])(i.children,function(t){n.children.addNode(t)})):i.children&&(0,m["default"])(n.children)&&(n.children=i.children),n.markDirty(),this._tree.dom.applyChanges(),n}var s=this._tree.isNode(i)?i:(0,C.objectToNode)(this._tree,i);return this.splice(e,0,s),this._context&&(s.itree.parent=this._context,this._context.refreshIndeterminateState().markDirty()),this._tree.emit("node.added",s),s.markDirty(),this.length-1!==e&&this.invoke("markDirty"),this._tree.dom.applyChanges(),s}},{key:"invoke",value:function(t,e){return u(this,t,e)}},{key:"invokeDeep",value:function(t,e){return u(this,t,e,!0)}},{key:"loading",value:function(t){return l.call(this,"loading",t)}},{key:"matched",value:function(t){return l.call(this,"matched",t)}},{key:"node",value:function(t){var e;return(0,p["default"])(t)&&(t=t.toString()),this.recurseDown(function(i){if(i.id===t)return e=i,!1}),e}},{key:"nodes",value:function(e){var i;return(0,y["default"])(e)&&(e=(0,f["default"])(e,function(t){return(0,p["default"])(t)&&(t=t.toString()),t}),i=new t(this._tree),this.recurseDown(function(t){e.indexOf(t.id)>-1&&i.push(t)})),(0,y["default"])(e)?i:this}},{key:"recurseDown",value:function(t){return(0,T.recurseDown)(this,t),this}},{key:"remove",value:function(t){return(0,d["default"])(this,{id:t.id}),this._context&&this._context.markDirty(),this._tree.dom.applyChanges(),this}},{key:"removed",value:function(t){return l.call(this,"removed",t)}},{key:"restore",value:function(){return this.invoke("restore")}},{key:"restoreDeep",value:function(){return this.invokeDeep("restore")}},{key:"select",value:function(){return this.invoke("select")}},{key:"selectable",value:function(t){return l.call(this,"selectable",t)}},{key:"selectDeep",value:function(){return this.invokeDeep("select")}},{key:"selected",value:function(t){return l.call(this,"selected",t)}},{key:"show",value:function(){return this.invoke("show")}},{key:"showDeep",value:function(){return this.invokeDeep("show")}},{key:"softRemove",value:function(){return this.invoke("softRemove")}},{key:"sort",value:function(t){var e=this;if(t=t||this._tree.config.sort){var i=(0,h["default"])(e,t);e.length=0,(0,w["default"])(i,function(t){e.push(t)})}return e}},{key:"state",value:function(){return this.invoke("state",arguments)}},{key:"stateDeep",value:function(){return this.invokeDeep("state",arguments)}},{key:"tree",value:function(){return this._tree}},{key:"toArray",value:function(){var t=[];return(0,w["default"])(this,function(e){t.push(e.toObject())}),t}},{key:"visible",value:function(t){return l.call(this,"visible",t)}}]),t}()},function(t,e,i){"use strict";function n(t,e){var i=[];if(!t||!t.length)return i;var n=-1,o=[],a=t.length;for(e=s(e,3);++n<a;){var l=t[n];e(l,n,t)&&(i.push(l),o.push(n))}return r(t,o),i}var s=i(31),r=i(174);t.exports=n},function(t,e,i){"use strict";function n(t,e){for(var i=t?e.length:0,n=i-1;i--;){var a=e[i];if(i==n||a!==l){var l=a;r(a)?o.call(t,a,1):s(t,a)}}return t}var s=i(175),r=i(71),o=Array.prototype.splice;t.exports=n},function(t,e,i){"use strict";function n(t,e){return e=s(e,t),null==(t=o(t,e))||delete t[a(r(e))]}var s=i(60),r=i(176),o=i(177),a=i(67);t.exports=n},function(t){"use strict";function e(t){var e=null==t?0:t.length;return e?t[e-1]:undefined}t.exports=e},function(t,e,i){"use strict";function n(t,e){return e.length<2?t:s(t,r(e,0,-1))}var s=i(59),r=i(98);t.exports=n},function(t,e,i){"use strict";function n(t){return"number"==typeof t||r(t)&&s(t)==o}var s=i(26),r=i(29),o="[object Number]";t.exports=n},function(t,e,i){"use strict";function n(t,e,i){return r(t,e,s(i,2))}var s=i(31),r=i(180);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){e=i(e);for(var l=0,u=null==t?0:t.length,c=e!=e,h=null===e,d=s(e),f=e===undefined;l<u;){var p=o((l+u)/2),m=i(t[p]),g=m!==undefined,v=null===m,y=m==m,_=s(m);if(c)var b=n||y;else b=f?y&&(n||g):h?y&&g&&(n||!v):d?y&&g&&!v&&(n||!_):!v&&!_&&(n?m<=e:m<e);b?l=p+1:u=p}return a(u,r)}var s=i(62),r=4294967295-1,o=Math.floor,a=Math.min;t.exports=n},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t){return new a.Promise(function(e,i){if(!(0,o["default"])(t))return i(new Error("Invalid Promise"));(0,r["default"])(t.then)&&t.then(e),(0,r["default"])(t.error)?t.error(i):(0,r["default"])(t["catch"])&&t["catch"](i)})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(25)),o=n(i(27));e.standardizePromise=s;var a=i(168)},function(t,e,i){var n,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){function o(){this._events={},this._conf&&a.call(this,this._conf)}function a(t){t?(this._conf=t,t.delimiter&&(this.delimiter=t.delimiter),this._events.maxListeners=t.maxListeners!==r?t.maxListeners:f,t.wildcard&&(this.wildcard=t.wildcard),t.newListener&&(this.newListener=t.newListener),t.verboseMemoryLeak&&(this.verboseMemoryLeak=t.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._events.maxListeners=f}function l(t,e){var i="(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.";this.verboseMemoryLeak?(i+=" Event name: %s.",console.error(i,t,e)):console.error(i,t),console.trace&&console.trace()}function u(t){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,a.call(this,t)}function c(t,e,i,n){if(!i)return[];var s,r,o,a,l,u,h,d=[],f=e.length,p=e[n],m=e[n+1];if(n===f&&i._listeners){if("function"==typeof i._listeners)return t&&t.push(i._listeners),[i];for(s=0,r=i._listeners.length;s<r;s++)t&&t.push(i._listeners[s]);return[i]}if("*"===p||"**"===p||i[p]){if("*"===p){for(o in i)"_listeners"!==o&&i.hasOwnProperty(o)&&(d=d.concat(c(t,e,i[o],n+1)));return d}if("**"===p){for(o in(h=n+1===f||n+2===f&&"*"===m)&&i._listeners&&(d=d.concat(c(t,e,i,f))),i)"_listeners"!==o&&i.hasOwnProperty(o)&&("*"===o||"**"===o?(i[o]._listeners&&!h&&(d=d.concat(c(t,e,i[o],f))),d=d.concat(c(t,e,i[o],n))):d=o===m?d.concat(c(t,e,i[o],n+2)):d.concat(c(t,e,i[o],n)));return d}d=d.concat(c(t,e,i[p],n+1))}if((a=i["*"])&&c(t,e,a,n+1),l=i["**"])if(n<f)for(o in l._listeners&&c(t,e,l,f),l)"_listeners"!==o&&l.hasOwnProperty(o)&&(o===m?c(t,e,l[o],n+2):o===p?c(t,e,l[o],n+1):((u={})[o]=l[o],c(t,e,{"**":u},n+1)));else l._listeners?c(t,e,l,f):l["*"]&&l["*"]._listeners&&c(t,e,l["*"],f);return d}function h(t,e){for(var i=0,n=(t="string"==typeof t?t.split(this.delimiter):t.slice()).length;i+1<n;i++)if("**"===t[i]&&"**"===t[i+1])return;for(var s=this.listenerTree,o=t.shift();o!==r;){if(s[o]||(s[o]={}),s=s[o],0===t.length)return s._listeners?("function"==typeof s._listeners&&(s._listeners=[s._listeners]),s._listeners.push(e),!s._listeners.warned&&this._events.maxListeners>0&&s._listeners.length>this._events.maxListeners&&(s._listeners.warned=!0,l.call(this,s._listeners.length,o))):s._listeners=e,!0;o=t.shift()}return!0}var d=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},f=10;u.EventEmitter2=u,u.prototype.delimiter=".",u.prototype.setMaxListeners=function(t){t!==r&&(this._events||o.call(this),this._events.maxListeners=t,this._conf||(this._conf={}),this._conf.maxListeners=t)},u.prototype.event="",u.prototype.once=function(t,e){return this.many(t,1,e),this},u.prototype.many=function(t,e,i){function n(){0==--e&&s.off(t,n),i.apply(this,arguments)}var s=this;if("function"!=typeof i)throw new Error("many only accepts instances of Function");return n._origin=i,this.on(t,n),s},u.prototype.emit=function(){this._events||o.call(this);var t=arguments[0];if("newListener"===t&&!this.newListener&&!this._events.newListener)return!1;var e,i,n,s,r,a=arguments.length;if(this._all&&this._all.length){if(r=this._all.slice(),a>3)for(e=new Array(a),s=0;s<a;s++)e[s]=arguments[s];for(n=0,i=r.length;n<i;n++)switch(this.event=t,a){case 1:r[n].call(this,t);break;case 2:r[n].call(this,t,arguments[1]);break;case 3:r[n].call(this,t,arguments[1],arguments[2]);break;default:r[n].apply(this,e)}}if(this.wildcard){r=[];var l="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,r,l,this.listenerTree,0)}else{if("function"==typeof(r=this._events[t])){switch(this.event=t,a){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(e=new Array(a-1),s=1;s<a;s++)e[s-1]=arguments[s];r.apply(this,e)}return!0}r&&(r=r.slice())}if(r&&r.length){if(a>3)for(e=new Array(a-1),s=1;s<a;s++)e[s-1]=arguments[s];for(n=0,i=r.length;n<i;n++)switch(this.event=t,a){case 1:r[n].call(this);break;case 2:r[n].call(this,arguments[1]);break;case 3:r[n].call(this,arguments[1],arguments[2]);break;default:r[n].apply(this,e)}return!0}if(!this._all&&"error"===t)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},u.prototype.emitAsync=function(){this._events||o.call(this);var t=arguments[0];if("newListener"===t&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var e,i,n,s,r,a=[],l=arguments.length;if(this._all){if(l>3)for(e=new Array(l),s=1;s<l;s++)e[s]=arguments[s];for(n=0,i=this._all.length;n<i;n++)switch(this.event=t,l){case 1:a.push(this._all[n].call(this,t));break;case 2:a.push(this._all[n].call(this,t,arguments[1]));break;case 3:a.push(this._all[n].call(this,t,arguments[1],arguments[2]));break;default:a.push(this._all[n].apply(this,e))}}if(this.wildcard){r=[];var u="string"==typeof t?t.split(this.delimiter):t.slice();c.call(this,r,u,this.listenerTree,0)}else r=this._events[t];if("function"==typeof r)switch(this.event=t,l){case 1:a.push(r.call(this));break;case 2:a.push(r.call(this,arguments[1]));break;case 3:a.push(r.call(this,arguments[1],arguments[2]));break;default:for(e=new Array(l-1),s=1;s<l;s++)e[s-1]=arguments[s];a.push(r.apply(this,e))}else if(r&&r.length){if(l>3)for(e=new Array(l-1),s=1;s<l;s++)e[s-1]=arguments[s];for(n=0,i=r.length;n<i;n++)switch(this.event=t,l){case 1:a.push(r[n].call(this));break;case 2:a.push(r[n].call(this,arguments[1]));break;case 3:a.push(r[n].call(this,arguments[1],arguments[2]));break;default:a.push(r[n].apply(this,e))}}else if(!this._all&&"error"===t)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(a)},u.prototype.on=function(t,e){if("function"==typeof t)return this.onAny(t),this;if("function"!=typeof e)throw new Error("on only accepts instances of Function");return this._events||o.call(this),this.emit("newListener",t,e),this.wildcard?(h.call(this,t,e),this):(this._events[t]?("function"==typeof this._events[t]&&(this._events[t]=[this._events[t]]),this._events[t].push(e),!this._events[t].warned&&this._events.maxListeners>0&&this._events[t].length>this._events.maxListeners&&(this._events[t].warned=!0,l.call(this,this._events[t].length,t))):this._events[t]=e,this)},u.prototype.onAny=function(t){if("function"!=typeof t)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(t),this},u.prototype.addListener=u.prototype.on,u.prototype.off=function(t,e){function i(t){if(t!==r){var e=Object.keys(t);for(var n in e){var o=e[n],a=t[o];a instanceof Function||"object"!==(void 0===a?"undefined":s(a))||null===a||(Object.keys(a).length>0&&i(t[o]),0===Object.keys(a).length&&delete t[o])}}}if("function"!=typeof e)throw new Error("removeListener only takes instances of Function");var n,o=[];if(this.wildcard){var a="string"==typeof t?t.split(this.delimiter):t.slice();o=c.call(this,null,a,this.listenerTree,0)}else{if(!this._events[t])return this;n=this._events[t],o.push({_listeners:n})}for(var l=0;l<o.length;l++){var u=o[l];if(n=u._listeners,d(n)){for(var h=-1,f=0,p=n.length;f<p;f++)if(n[f]===e||n[f].listener&&n[f].listener===e||n[f]._origin&&n[f]._origin===e){h=f;break}if(h<0)continue;return this.wildcard?u._listeners.splice(h,1):this._events[t].splice(h,1),0===n.length&&(this.wildcard?delete u._listeners:delete this._events[t]),this.emit("removeListener",t,e),this}(n===e||n.listener&&n.listener===e||n._origin&&n._origin===e)&&(this.wildcard?delete u._listeners:delete this._events[t],this.emit("removeListener",t,e))}return i(this.listenerTree),this},u.prototype.offAny=function(t){var e,i=0,n=0;if(t&&this._all&&this._all.length>0){for(i=0,n=(e=this._all).length;i<n;i++)if(t===e[i])return e.splice(i,1),this.emit("removeListenerAny",t),this}else{for(i=0,n=(e=this._all).length;i<n;i++)this.emit("removeListenerAny",e[i]);this._all=[]}return this},u.prototype.removeListener=u.prototype.off,u.prototype.removeAllListeners=function(t){if(0===arguments.length)return!this._events||o.call(this),this;if(this.wildcard)for(var e="string"==typeof t?t.split(this.delimiter):t.slice(),i=c.call(this,null,e,this.listenerTree,0),n=0;n<i.length;n++){i[n]._listeners=null}else this._events&&(this._events[t]=null);return this},u.prototype.listeners=function(t){if(this.wildcard){var e=[],i="string"==typeof t?t.split(this.delimiter):t.slice();return c.call(this,e,i,this.listenerTree,0),e}return this._events||o.call(this),this._events[t]||(this._events[t]=[]),d(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]},u.prototype.listenerCount=function(t){return this.listeners(t).length},u.prototype.listenersAny=function(){return this._all?this._all:[]},(n=function(){return u}.call(e,i,e,t))===r||(t.exports=n)}()},function(){"use strict"},,,,,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(){return{text:"New Node",itree:{state:{editing:!0,focused:!0}}}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(i(24)),a=n(i(189)),l=n(i(191)),u=n(i(27)),c=n(i(58)),h=n(i(148)),d=n(i(30)),f=n(i(4)),p=n(i(89)),m=n(i(106)),g=n(i(193)),v=n(i(85)),y=n(i(19)),_=n(i(196)),b=n(i(110)),w=n(i(25)),x=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),k=i(199),C=i(234),D=n(i(142)),T=i(235),S=i(236),E=i(237),P=function(){function t(e){s(this,t),this._tree=e,this.batching=0,this.dropTargets=[],this.$scrollLayer,this.isDynamic=(0,w["default"])(this._tree.config.data),this.contextMenuChoices=this._tree.config.contextMenu}return x(t,[{key:"applyChanges",value:function(){this.batching>0||this.renderNodes()}},{key:"attach",value:function(t){var e=this;if(e.$target=e.getElement(t),e.$scrollLayer=e.getScrollableAncestor(e.$target),!e.$target)throw new Error("No valid element to attach to.");var i=e.$target.className.split(" ");i.push("inspire-tree"),e._tree.config.editable&&(i.push("editable"),(0,b["default"])((0,_["default"])(e._tree.config.editing,y["default"]),function(t,e){i.push("editable-"+e)})),e.$target.className=i.join(" "),e.$target.setAttribute("tabindex",e._tree.config.tabindex||0),e.$target.addEventListener("keyup",e.keyboardListener.bind(e)),e.contextMenuChoices&&document.body.addEventListener("click",function(){e.closeContextMenu()});var n=e._tree.config.dragTargets;(0,v["default"])(n)||(0,b["default"])(n,function(t){var i=e.getElement(t);if(!i)throw new Error("No valid element found for drop target "+t);e.dropTargets.push(i)}),e.isDragDropEnabled=e.dropTargets.length>0,e.isDragDropEnabled&&(document.addEventListener("mouseup",e.mouseUpListener.bind(e)),document.addEventListener("mousemove",e.mouseMoveListener.bind(e))),e._tree.on("node.focused",function(t){var e=t.itree.ref.node.querySelector(".title");e!==document.activeElement&&e.focus()}),this.pagination={limit:this.getNodesLimit()};var s=this.pagination.limit;e._tree.on("model.loaded",function(){e._tree.nodes().recurseDown(function(t){t.children&&(t.itree.pagination={limit:s,total:t.hasChildren()?t.children.length:-1})})}),e._tree.on("node.added",function(t){t.children&&(t.itree.pagination={limit:s,total:t.hasChildren()?t.children.length:-1})}),(e._tree.config.dom.deferredRendering||e._tree.config.deferredLoading)&&e._tree.config.dom.autoLoadMore&&e.$target.addEventListener("scroll",(0,g["default"])(e.scrollListener.bind(e),20)),e.$target.inspireTree=e._tree}},{key:"batch",value:function(){this.batching<0&&(this.batching=0),this.batching++}},{key:"clearSelection",value:function(){document.selection&&document.selection.empty?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()}},{key:"closeContextMenu",value:function(){this.contextMenuNode&&(this.contextMenuNode.parentNode.removeChild(this.contextMenuNode),this.contextMenuNode=null)}},{key:"createCheckbox",value:function(t){var e=this;return new T.VCache({checked:t.checked(),indeterminate:t.indeterminate()},E.VStateCompare,function(){return(0,k.h)("input",{attributes:{type:"checkbox",name:t.checkboxName,value:t.id},checked:t.checked(),indeterminate:t.indeterminate(),onclick:function(i){var n=function(){t.toggleCheck()};e._tree.emit("node.click",i,t,n),i.treeDefaultPrevented||n()}},[])})}},{key:"createContextMenu",value:function(t,e){var i=this;return(0,k.h)("ul.itree-menu",{onclick:function(t){t.stopPropagation()}},(0,m["default"])(t,function(t,n){t.push(i.createContextMenuListItem(n,e))},[]))}},{key:"createContextMenuListItem",value:function(t,e){var i=this;return(0,k.h)("li",[[(0,k.h)("a",{onclick:function(n){t.handler(n,e,i.closeContextMenu)}},t.text)]])}},{key:"createDraggableElement",value:function(t,e){this.$dragNode=this.nodeFromTitleDOMElement(t);var i=t.getBoundingClientRect(),n=e.clientX-i.left,s=e.clientY-i.top;this.dragHandleOffset={left:n,top:s},this.$dragElement=t.cloneNode(!0),this.$dragElement.className+=" dragging",this.$dragElement.style.top=i.top+"px",this.$dragElement.style.left=i.left+"px",this.$target.appendChild(this.$dragElement)}},{key:"createEditField",value:function(t){var e=this;return new T.VCache({},E.VStateCompare,function(){var i=new C.DOMReference,n=function(){t.set("text",i.node.value),t.state("editing",!1),t.markDirty(),e.applyChanges()};return(0,k.h)("form",{onsubmit:function(t){t.preventDefault()}},[(0,k.h)("input",{ref:i,value:t.text,onclick:function(t){t.stopPropagation()},onkeypress:function(t){13===t.which&&n()}}),(0,k.h)("span.btn-group",[(0,k.h)("button.btn.icon.icon-check",{attributes:{title:"Save",type:"button"},onclick:function(t){t.stopPropagation(),n()}}),(0,k.h)("button.btn.icon.icon-cross",{attributes:{title:"Cancel",type:"button"},onclick:function(e){e.stopPropagation(),t.toggleEditing()}})])])})}},{key:"createEmptyListItemNode",value:function(t){return new T.VCache({unloaded:t},E.VStateCompare,function(){return(0,k.h)("ol",[(0,k.h)("li.leaf",[(0,k.h)("span.title.icon.icon-file-empty.empty",[t?"Loading...":"No Results"])])])})}},{key:"createListItemNode",value:function(t){var e=this;return new T.VCache({dirty:t.itree.dirty,text:t.text},E.VStateCompare,function(){t.state("rendered",!0);var i=t.itree.li.attributes||{};t.itree.ref=new C.DOMReference;var n=[],s=[];!t.editing()&&e._tree.config.editing.edit&&n.push((0,k.h)("a.btn.icon.icon-pencil",{attributes:{title:"Edit this node"},onclick:function(e){e.stopPropagation(),t.toggleEditing()}})),!t.editing()&&e._tree.config.editing.add&&n.push((0,k.h)("a.btn.icon.icon-plus",{attributes:{title:"Add a child node"},onclick:function(e){e.stopPropagation(),t.addChild(r()),t.expand()}})),!t.editing()&&e._tree.config.editing.remove&&n.push((0,k.h)("a.btn.icon.icon-minus",{attributes:{title:"Remove this node"},onclick:function(e){e.stopPropagation(),t.remove()}})),n.length&&s.push((0,k.h)("span.btn-group",n)),s.push(e.createTitleContainer(t)),s.push((0,k.h)("div.wholerow")),t.hasChildren()?s.push(e.createOrderedList(t.children,t)):e.isDynamic&&!t.hasLoadedChildren()?s.push(e.createEmptyListItemNode(!0)):e.isDynamic&&s.push(e.createEmptyListItemNode());var o=".",a=t.itree.state;(0,b["default"])(a,function(t,e){a[e]&&(o+="."+e)}),!t.hidden()&&t.removed()&&(o+=".hidden"),t.expanded()&&(o+=".expanded"),o+=t.children?".folder":".leaf";var l=i["class"]||i.className;return(0,w["default"])(l)&&(l=l(t)),l&&((0,p["default"])(l)?o+="."+l.replace(" ","."):(0,f["default"])(l)&&(o+="."+l.join("."))),i["data-uid"]=t.id,t.itree.dirty=!1,(0,k.h)("li"+o,{attributes:i,ref:t.itree.ref},s)})}},{key:"createListItemNodes",value:function(t){var e=this;return(0,d["default"])(t,function(t){return e.createListItemNode(t)})}},{key:"createLoadingTextNode",value:function(){return new T.VCache({text:(0,D["default"])()},E.VStateCompare,function(){
return(0,k.h)("li.leaf",[(0,k.h)("span.title.icon.icon-more",["Loading..."])])})}},{key:"createLoadMoreNode",value:function(t){var e=this;return new T.VCache({text:(0,D["default"])()},E.VStateCompare,function(){return(0,k.h)("li.leaf.detached",[(0,k.h)("a.title.icon.icon-more.load-more",{onclick:function(i){i.preventDefault(),e.loadMore(t,i)}},["Load More"])])})}},{key:"createOrderedList",value:function(t,e){var i=this,n={},s=t,r=this.getContextPagination(e);if(this._tree.config.dom.deferredRendering){var o=r.limit||this.getNodesLimit();s=(0,h["default"])(t,0,o)}return new T.VCache({nodes:s,nodeCount:s.length,loading:this.loading},S.VArrayDirtyCompare,function(){var t=[i.createListItemNodes(s)];return(i._tree.config.dom.deferredRendering||i._tree.config.deferredLoading)&&r.limit<r.total&&(i.loading?t.push(i.createLoadingTextNode()):t.push(i.createLoadMoreNode(e))),(0,k.h)("ol",n,t)})}},{key:"createTitleAnchor",value:function(t,e){var i=this;return new T.VCache({editing:t.editing(),expanded:t.expanded(),icon:t.itree.icon,text:t.text,hasOrWillHaveChildren:e},E.VStateCompare,function(n,s){var r=t.itree.a.attributes||{},o=["title","icon"];if(!i._tree.config.dom.showCheckboxes){var a=t.expanded()?"icon-folder-open":"icon-folder";o.push(s.state.icon||(e?a:"icon-file-empty"))}r.tabindex=1,r.unselectable="on";var l=[t.editing()?i.createEditField(t):s.state.text];return(0,k.h)("a."+o.join("."),{attributes:r,onblur:function(){t.blur()},oncontextmenu:function(e){if(i.contextMenuChoices){var n=function(){i.renderContextMenu(e,t)};i._tree.emit("node.contextmenu",e,t,n),e.treeDefaultPrevented||n()}},onclick:function(e){var n=function(){if(e.preventDefault(),!t.editing()){if((e.metaKey||e.ctrlKey||e.shiftKey)&&i._tree.disableDeselection(),e.shiftKey){i.clearSelection();var n=i._tree.lastSelectedNode();n&&i._tree.selectBetween.apply(i._tree,i._tree.boundingNodes(n,t))}t.selected()?i._tree.config.selection.disableDirectDeselection||t.deselect():t.select(),i._tree.enableDeselection()}};i._tree.emit("node.click",e,t,n),e.treeDefaultPrevented||n()},ondblclick:function(e){var n=function(){i.clearSelection(),t.toggleCollapse()};i._tree.emit("node.dblclick",e,t,n),e.treeDefaultPrevented||n()},onfocus:function(){t.focus()},onmousedown:function(){i.isDragDropEnabled&&(i.isMouseHeld=!0)}},l)})}},{key:"createTitleContainer",value:function(t){var e=this,i=e.isDynamic?Boolean(t.children):t.hasVisibleChildren();return new T.VCache({checked:t.checked(),collapsed:t.collapsed(),dirty:t.itree.dirty,editing:t.editing(),hasVisibleChildren:i,indeterminate:t.indeterminate(),selected:t.selected(),text:t.text},E.VStateCompare,function(){var n=[];return i&&n.push(e.createToggleAnchor(t)),e._tree.config.dom.showCheckboxes&&n.push(e.createCheckbox(t)),n.push(e.createTitleAnchor(t,Boolean(t.children))),(0,k.h)("div.title-wrap",n)})}},{key:"createToggleAnchor",value:function(t){return new T.VCache({collapsed:t.collapsed()},E.VStateCompare,function(e,i){var n=i.state.collapsed?".icon-expand":".icon-collapse";return(0,k.h)("a.toggle.icon"+n,{onclick:function(){t.toggleCollapse()}},[])})}},{key:"end",value:function(){this.batching--,0===this.batching&&this.applyChanges()}},{key:"getContextPagination",value:function(t){return t?(0,c["default"])(t,"itree.pagination"):this.pagination}},{key:"getElement",value:function(t){var e;if(t instanceof HTMLElement)e=t;else if((0,u["default"])(t)&&(0,u["default"])(t[0]))e=t[0];else if((0,p["default"])(t)){var i=document.querySelector(t);i&&(e=i)}return e}},{key:"getNodesLimit",value:function(){var t=this._tree.config.pagination.limit;return t>0?t:(0,l["default"])(this.$scrollLayer.clientHeight/this._tree.config.dom.nodeHeight)}},{key:"getScrollableAncestor",value:function(t){t instanceof Element&&("auto"!==getComputedStyle(t).overflow&&t.parentNode&&(t=this.getScrollableAncestor(t.parentNode)));return t}},{key:"keyboardListener",value:function(t){var e=this._tree.focused();if(e)switch(e=e[0],t.which){case 40:this.moveFocusDownFrom(e);break;case 13:e.toggleSelect();break;case 37:e.collapse();break;case 39:e.expand();break;case 38:this.moveFocusUpFrom(e)}}},{key:"loadMore",value:function(t,e){var i=this;if(!this.loading){var n,s=this.getContextPagination(t);return this.loading=!0,this.batch(),(0,a["default"])(t,"markDirty"),s.limit+=this.getNodesLimit(),this._tree.emit("node.paginate",t,s,e),this._tree.config.deferredLoading?n=t?t.loadChildren():this._tree.load(this._tree.config.data):this.loading=!1,this.end(),this._tree.config.deferredLoading&&n.then(function(){i.loading=!1,i.applyChanges()})["catch"](function(){this.loading=!1,this.applyChanges()}),n}}},{key:"mouseMoveListener",value:function(t){if(this.isMouseHeld&&!this.$dragElement)this.createDraggableElement(t.target,t);else if(this.$dragElement){t.preventDefault(),t.stopPropagation();var e,i=t.clientX-this.dragHandleOffset.left,n=t.clientY-this.dragHandleOffset.top;this.$dragElement.style.left=i+"px",this.$dragElement.style.top=n+"px",(0,b["default"])(this.dropTargets,function(i){var n=i.getBoundingClientRect();if(t.clientX>=n.left&&t.clientX<=n.right&&t.clientY>=n.top&&t.clientY<=n.bottom)return e=i,!1}),!this.$activeDropTarget&&e&&-1===e.className.indexOf("itree-active-drop-target")&&(e.className+=" itree-active-drop-target"),this.$activeDropTarget=e}}},{key:"mouseUpListener",value:function(){if(this.isMouseHeld=!1,this.$dragElement&&(this.$dragElement.parentNode.removeChild(this.$dragElement),this.$activeDropTarget)){var t=(0,w["default"])((0,c["default"])(this.$activeDropTarget,"inspireTree.addNode"));if(this._tree.emit("node.dropout",this.$dragNode,this.$activeDropTarget,t),t){var e=this.$activeDropTarget.inspireTree.addNode(this.$dragNode.copyHierarchy().toObject());this.$activeDropTarget.inspireTree.emit("node.dropin",e)}}this.$activeDropTarget&&(this.$activeDropTarget.className=this.$activeDropTarget.className.replace("itree-active-drop-target","")),this.$dragNode=null,this.$dragElement=null,this.$activeDropTarget=null}},{key:"moveFocusDownFrom",value:function(t){var e=t.nextVisibleNode();e&&e.focus()}},{key:"moveFocusUpFrom",value:function(t){var e=t.previousVisibleNode();e&&e.focus()}},{key:"nodeFromTitleDOMElement",value:function(t){var e=t.parentNode.parentNode.getAttribute("data-uid");return this._tree.node(e)}},{key:"renderContextMenu",value:function(t,e){var i=this.contextMenuChoices;if((0,o["default"])(i)){if(t.preventDefault(),!this.contextMenuNode){var n=this.createContextMenu(i,e);this.contextMenuNode=(0,k.create)(n),document.body.appendChild(this.contextMenuNode)}this.contextMenuNode.style.top=t.clientY+"px",this.contextMenuNode.style.left=t.clientX+"px"}}},{key:"renderNodes",value:function(t){if(!this.rendering){this.rendering=!0;var e=this.createOrderedList(t||this._tree.nodes());if(this.rootNode){var i=(0,k.diff)(this.ol,e);this.rootNode=(0,k.patch)(this.rootNode,i)}else this.rootNode=(0,k.create)(e),this.$target.appendChild(this.rootNode),this._tree.config.editing.add&&this.$target.appendChild((0,k.create)(new T.VCache({},S.VArrayDirtyCompare,function(){return(0,k.h)("a.btn.icon.icon-plus",{attributes:{title:"Add a new root node"},onclick:function(){this._tree.focused().blur(),this._tree.addNode(r())}})})));this.ol=e,this.rendering=!1}}},{key:"scrollListener",value:function(t){var e=this;if(!this.rendering&&!this.loading){var i=this.$scrollLayer.getBoundingClientRect(),n=document.querySelectorAll(".load-more");(0,b["default"])(n,function(n){var s=n.getBoundingClientRect();if(!(i.right<s.left||i.left>s.right||i.bottom<s.top||i.top>s.bottom)){var r,o=n.parentNode.parentNode.parentNode;"LI"===o.tagName&&(r=e._tree.node(o.getAttribute("data-uid"))),e.loadMore(r,t)}})}}},{key:"scrollSelectedIntoView",value:function(){var t=document.querySelector(".inspire-tree").querySelector(".selected");t&&dom.$scrollLayer&&(dom.$scrollLayer.scrollTop=t.offsetTop)}}]),t}();e["default"]=P,t.exports=e["default"]},function(t,e,i){"use strict";var n=i(190),s=i(18)(n);t.exports=s},function(t,e,i){"use strict";function n(t,e,i){e=r(e,t);var n=null==(t=a(t,e))?t:t[l(o(e))];return null==n?undefined:s(n,t,i)}var s=i(21),r=i(60),o=i(176),a=i(177),l=i(67);t.exports=n},function(t,e,i){"use strict";var n=i(192)("ceil");t.exports=n},function(t,e,i){"use strict";function n(t){var e=Math[t];return function(t,i){if(t=r(t),i=null==i?0:a(s(i),292)){var n=(o(t)+"e").split("e"),l=e(n[0]+"e"+(+n[1]+i));return+((n=(o(l)+"e").split("e"))[0]+"e"+(+n[1]-i))}return e(t)}}var s=i(92),r=i(94),o=i(65),a=Math.min;t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n=!0,a=!0;if("function"!=typeof t)throw new TypeError(o);return r(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),s(t,e,{leading:n,maxWait:e,trailing:a})}var s=i(194),r=i(27),o="Expected a function";t.exports=n},function(t,e,i){"use strict";function n(t,e,i){function n(e){var i=y,n=_;return y=_=undefined,C=e,w=t.apply(n,i)}function c(t){return C=t,x=setTimeout(f,e),D?n(t):w}function h(t){var i=e-(t-k);return T?u(i,b-(t-C)):i}function d(t){var i=t-k;return k===undefined||i>=e||i<0||T&&t-C>=b}function f(){var t=r();if(d(t))return p(t);x=setTimeout(f,h(t))}function p(t){return x=undefined,S&&y?n(t):(y=_=undefined,w)}function m(){x!==undefined&&clearTimeout(x),C=0,y=k=_=x=undefined}function g(){return x===undefined?w:p(r())}function v(){var t=r(),i=d(t);if(y=arguments,_=this,k=t,i){if(x===undefined)return c(k);if(T)return x=setTimeout(f,e),n(k)}return x===undefined&&(x=setTimeout(f,e)),w}var y,_,b,w,x,k,C=0,D=!1,T=!1,S=!0;if("function"!=typeof t)throw new TypeError(a);return e=o(e)||0,s(i)&&(D=!!i.leading,b=(T="maxWait"in i)?l(o(i.maxWait)||0,e):b,S="trailing"in i?!!i.trailing:S),v.cancel=m,v.flush=g,v}var s=i(27),r=i(195),o=i(94),a="Expected a function",l=Math.max,u=Math.min;t.exports=n},function(t,e,i){"use strict";var n=i(15),s=function(){return n.Date.now()};t.exports=s},function(t,e,i){"use strict";function n(t,e){if(null==t)return{};var i=s(a(t),function(t){return[t]});return e=r(e),o(t,i,function(t,i){return e(t,i[0])})}var s=i(8),r=i(31),o=i(197),a=i(164);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){for(var n=-1,a=e.length,l={};++n<a;){var u=e[n],c=s(t,u);i(c,u)&&r(l,o(u,t),c)}return l}var s=i(59),r=i(198),o=i(60);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){if(!a(t))return t;for(var u=-1,c=(e=r(e,t)).length,h=c-1,d=t;null!=d&&++u<c;){var f=l(e[u]),p=i;if(u!=h){var m=d[f];(p=n?n(m,f,d):undefined)===undefined&&(p=a(m)?m:o(e[u+1])?[]:{})}s(d,f,p),d=d[f]}return t}var s=i(116),r=i(60),o=i(71),a=i(27),l=i(67);t.exports=n},function(t,e,i){"use strict";var n=i(200),s=i(213),r=i(222),o=i(233),a=i(224),l=i(225);t.exports={diff:n,patch:s,h:r,create:o,VNode:a,VText:l}},function(t,e,i){"use strict";var n=i(201);t.exports=n},function(t,e,i){"use strict";function n(t,e){var i={a:t};return s(t,e,i,0),i}function s(t,e,i,n){if(t!==e){var s=i[n],a=!1;if(w(t)||w(e))l(t,e,i,n);else if(null==e)b(t)||(o(t,i,n),s=i[n]),s=m(s,new v(v.REMOVE,t,e));else if(y(e))if(y(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var u=k(t.properties,e.properties);u&&(s=m(s,new v(v.PROPS,t,u))),s=r(t,e,i,s,n)}else s=m(s,new v(v.VNODE,t,e)),a=!0;else s=m(s,new v(v.VNODE,t,e)),a=!0;else _(e)?_(t)?t.text!==e.text&&(s=m(s,new v(v.VTEXT,t,e))):(s=m(s,new v(v.VTEXT,t,e)),a=!0):b(e)&&(b(t)||(a=!0),s=m(s,new v(v.WIDGET,t,e)));s&&(i[n]=s),a&&o(t,i,n)}}function r(t,e,i,n,r){for(var o=t.children,a=d(o,e.children),l=a.children,u=o.length,c=l.length,h=u>c?u:c,f=0;f<h;f++){var p=o[f],g=l[f];r+=1,p?s(p,g,i,r):g&&(n=m(n,new v(v.INSERT,null,g))),y(p)&&p.count&&(r+=p.count)}return a.moves&&(n=m(n,new v(v.ORDER,t,a.moves))),n}function o(t,e,i){c(t,e,i),a(t,e,i)}function a(t,e,i){if(b(t))"function"==typeof t.destroy&&(e[i]=m(e[i],new v(v.REMOVE,t,null)));else if(y(t)&&(t.hasWidgets||t.hasThunks))for(var n=t.children,s=n.length,r=0;r<s;r++){var o=n[r];a(o,e,i+=1),y(o)&&o.count&&(i+=o.count)}else w(t)&&l(t,null,e,i)}function l(t,e,i,s){var r=x(t,e),o=n(r.a,r.b);u(o)&&(i[s]=new v(v.THUNK,null,o))}function u(t){for(var e in t)if("a"!==e)return!0;return!1}function c(t,e,i){if(y(t)){if(t.hooks&&(e[i]=m(e[i],new v(v.PROPS,t,h(t.hooks)))),t.descendantHooks||t.hasThunks)for(var n=t.children,s=n.length,r=0;r<s;r++){var o=n[r];c(o,e,i+=1),y(o)&&o.count&&(i+=o.count)}}else w(t)&&l(t,null,e,i)}function h(t){var e={};for(var i in t)e[i]=undefined;return e}function d(t,e){var i=p(e),n=i.keys,s=i.free;if(s.length===e.length)return{children:e,moves:null};var r=p(t),o=r.keys;if(r.free.length===t.length)return{children:e,moves:null};for(var a=[],l=0,u=s.length,c=0,h=0;h<t.length;h++){var d,m=t[h];m.key?n.hasOwnProperty(m.key)?(d=n[m.key],a.push(e[d])):(d=h-c++,a.push(null)):l<u?(d=s[l++],a.push(e[d])):(d=h-c++,a.push(null))}for(var g=l>=s.length?e.length:s[l],v=0;v<e.length;v++){var y=e[v];y.key?o.hasOwnProperty(y.key)||a.push(y):v>=g&&a.push(y)}for(var _,b=a.slice(),w=0,x=[],k=[],C=0;C<e.length;){var D=e[C];for(_=b[w];null===_&&b.length;)x.push(f(b,w,null)),_=b[w];_&&_.key===D.key?(w++,C++):D.key?(_&&_.key&&n[_.key]!==C+1?(x.push(f(b,w,_.key)),(_=b[w])&&_.key===D.key?w++:k.push({key:D.key,to:C})):k.push({key:D.key,to:C}),C++):_&&_.key&&x.push(f(b,w,_.key))}for(;w<b.length;)_=b[w],x.push(f(b,w,_&&_.key));return x.length!==c||k.length?{children:a,moves:{removes:x,inserts:k}}:{children:a,moves:null}}function f(t,e,i){return t.splice(e,1),{from:e,key:i}}function p(t){for(var e={},i=[],n=t.length,s=0;s<n;s++){var r=t[s];r.key?e[r.key]=s:i.push(s)}return{keys:e,free:i}}function m(t,e){return t?(g(t)?t.push(e):t=[t,e],t):e}var g=i(202),v=i(203),y=i(205),_=i(206),b=i(207),w=i(208),x=i(209),k=i(210);t.exports=n},function(t){"use strict";function e(t){return"[object Array]"===n.call(t)}var i=Array.isArray,n=Object.prototype.toString;t.exports=i||e},function(t,e,i){"use strict";function n(t,e,i){this.type=Number(t),this.vNode=e,this.patch=i}var s=i(204);n.NONE=0,n.VTEXT=1,n.VNODE=2,n.WIDGET=3,n.PROPS=4,n.ORDER=5,n.INSERT=6,n.REMOVE=7,n.THUNK=8,t.exports=n,n.prototype.version=s,n.prototype.type="VirtualPatch"},function(t){"use strict";t.exports="2"},function(t,e,i){"use strict";function n(t){return t&&"VirtualNode"===t.type&&t.version===s}var s=i(204);t.exports=n},function(t,e,i){"use strict";function n(t){return t&&"VirtualText"===t.type&&t.version===s}var s=i(204);t.exports=n},function(t){"use strict";function e(t){return t&&"Widget"===t.type}t.exports=e},function(t){"use strict";function e(t){return t&&"Thunk"===t.type}t.exports=e},function(t,e,i){"use strict";function n(t,e){var i=t,n=e;return l(e)&&(n=s(e,t)),l(t)&&(i=s(t,null)),{a:i,b:n}}function s(t,e){var i=t.vnode;if(i||(i=t.vnode=t.render(e)),!(r(i)||o(i)||a(i)))throw new Error("thunk did not return a valid node");return i}var r=i(205),o=i(206),a=i(207),l=i(208);t.exports=n},function(t,e,i){"use strict";function n(t,e){var i;for(var a in t){a in e||((i=i||{})[a]=undefined);var l=t[a],u=e[a];if(l!==u)if(r(l)&&r(u))if(s(u)!==s(l))(i=i||{})[a]=u;else if(o(u))(i=i||{})[a]=u;else{var c=n(l,u);c&&((i=i||{})[a]=c)}else(i=i||{})[a]=u}for(var h in e)h in t||((i=i||{})[h]=e[h]);return i}function s(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var r=i(211),o=i(212);t.exports=n},function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":e(t))&&null!==t}},function(t){"use strict";function e(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))}t.exports=e},function(t,e,i){"use strict";var n=i(214);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){return(i=i||{}).patch=i.patch&&i.patch!==n?i.patch:s,i.render=i.render||u,i.patch(t,e,i)}function s(t,e,i){var n=o(e);if(0===n.length)return t;var s=c(t,e.a,n),l=t.ownerDocument;i.document||l===a||(i.document=l);for(var u=0;u<n.length;u++){var h=n[u];t=r(t,s[h],e[h],i)}return t}function r(t,e,i,n){if(!e)return t;var s;if(l(i))for(var r=0;r<i.length;r++)s=h(i[r],e,n),e===t&&(t=s);else s=h(i,e,n),e===t&&(t=s);return t}function o(t){var e=[];for(var i in t)"a"!==i&&e.push(Number(i));return e}var a=i(215),l=i(202),u=i(217),c=i(219),h=i(220);t.exports=n},function(t,e,i){(function(e){"use strict";var n=void 0!==e?e:"undefined"!=typeof window?window:{},s=i(216);if("undefined"!=typeof document)t.exports=document;else{var r=n["__GLOBAL_DOCUMENT_CACHE@4"];r||(r=n["__GLOBAL_DOCUMENT_CACHE@4"]=s),t.exports=r}}).call(e,function(){return this}())},function(){},function(t,e,i){"use strict";function n(t,e){var i=e&&e.document||s,c=e?e.warn:null;if(t=u(t).a,l(t))return t.init();if(a(t))return i.createTextNode(t.text);if(!o(t))return c&&c("Item is not a valid virtual dom node",t),null;var h=null===t.namespace?i.createElement(t.tagName):i.createElementNS(t.namespace,t.tagName),d=t.properties;r(h,d);for(var f=t.children,p=0;p<f.length;p++){var m=n(f[p],e);m&&h.appendChild(m)}return h}var s=i(215),r=i(218),o=i(205),a=i(206),l=i(207),u=i(209);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){for(var n in e){var o=e[n];o===undefined?s(t,n,o,i):l(o)?(s(t,n,o,i),o.hook&&o.hook(t,n,i?i[n]:undefined)):a(o)?r(t,e,i,n,o):t[n]=o}}function s(t,e,i,n){if(n){var s=n[e];if(l(s))s.unhook&&s.unhook(t,e,i);else if("attributes"===e)for(var r in s)t.removeAttribute(r);else if("style"===e)for(var o in s)t.style[o]="";else t[e]="string"==typeof s?"":null}}function r(t,e,i,n,s){var r=i?i[n]:undefined;if("attributes"!==n)if(r&&a(r)&&o(r)!==o(s))t[n]=s;else{a(t[n])||(t[n]={});var l="style"===n?"":undefined;for(var u in s){var c=s[u];t[n][u]=c===undefined?l:c}}else for(var h in s){var d=s[h];d===undefined?t.removeAttribute(h):t.setAttribute(h,d)}}function o(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var a=i(211),l=i(212);t.exports=n},function(t){"use strict";function e(t,e,n,r){return n&&0!==n.length?(n.sort(s),i(t,e,n,r,0)):{}}function i(t,e,s,o,a){if(o=o||{},t){n(s,a,a)&&(o[a]=t);var l=e.children;if(l)for(var u=t.childNodes,c=0;c<e.children.length;c++){a+=1;var h=l[c]||r,d=a+(h.count||0);n(s,a,d)&&i(u[c],h,s,o,a),a=d}}return o}function n(t,e,i){if(0===t.length)return!1;for(var n,s,r=0,o=t.length-1;r<=o;){if(s=t[n=(o+r)/2>>0],r===o)return s>=e&&s<=i;if(s<e)r=n+1;else{if(!(s>i))return!0;o=n-1}}return!1}function s(t,e){return t>e?1:-1}var r={};t.exports=e},function(t,e,i){"use strict";function n(t,e,i){var n=t.type,u=t.vNode,f=t.patch;switch(n){case p.REMOVE:return s(e,u);case p.INSERT:return r(e,f,i);case p.VTEXT:return o(e,u,f,i);case p.WIDGET:return a(e,u,f,i);case p.VNODE:return l(e,u,f,i);case p.ORDER:return c(e,f),e;case p.PROPS:return d(e,f,u.properties),e;case p.THUNK:return h(e,i.patch(e,f,i));default:return e}}function s(t,e){var i=t.parentNode;return i&&i.removeChild(t),u(t,e),null}function r(t,e,i){var n=i.render(e,i);return t&&t.appendChild(n),t}function o(t,e,i,n){var s;if(3===t.nodeType)t.replaceData(0,t.length,i.text),s=t;else{var r=t.parentNode;s=n.render(i,n),r&&s!==t&&r.replaceChild(s,t)}return s}function a(t,e,i,n){var s,r=m(e,i);s=r?i.update(e,t)||t:n.render(i,n);var o=t.parentNode;return o&&s!==t&&o.replaceChild(s,t),r||u(t,e),s}function l(t,e,i,n){var s=t.parentNode,r=n.render(i,n);return s&&r!==t&&s.replaceChild(r,t),r}function u(t,e){"function"==typeof e.destroy&&f(e)&&e.destroy(t)}function c(t,e){for(var i,n,s,r=t.childNodes,o={},a=0;a<e.removes.length;a++)i=r[(n=e.removes[a]).from],n.key&&(o[n.key]=i),t.removeChild(i);for(var l=r.length,u=0;u<e.inserts.length;u++)i=o[(s=e.inserts[u]).key],t.insertBefore(i,s.to>=l++?null:r[s.to])}function h(t,e){return t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t),e}var d=i(218),f=i(207),p=i(203),m=i(221);t.exports=n},function(t,e,i){"use strict";function n(t,e){return!(!s(t)||!s(e))&&("name"in t&&"name"in e?t.id===e.id:t.init===e.init)}var s=i(207);t.exports=n},function(t,e,i){"use strict";var n=i(223);t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n,o,l,u,c=[];return!i&&a(e)&&(i=e,o={}),n=y(t,o=o||e||{}),o.hasOwnProperty("key")&&(l=o.key,o.key=undefined),o.hasOwnProperty("namespace")&&(u=o.namespace,o.namespace=undefined),"INPUT"!==n||u||!o.hasOwnProperty("value")||o.value===undefined||g(o.value)||(o.value=_(o.value)),r(o),i!==undefined&&null!==i&&s(i,c,n,o),new h(n,o,c,l,u)}function s(t,e,i,n){if("string"==typeof t)e.push(new d(t));else if("number"==typeof t)e.push(new d(String(t)));else if(o(t))e.push(t);else{if(!c(t)){if(null===t||t===undefined)return;throw l({foreignObject:t,parentVnode:{tagName:i,properties:n}})}for(var r=0;r<t.length;r++)s(t[r],e,i,n)}}function r(t){for(var e in t)if(t.hasOwnProperty(e)){var i=t[e];if(g(i))continue;"ev-"===e.substr(0,3)&&(t[e]=b(i))}}function o(t){return f(t)||p(t)||m(t)||v(t)}function a(t){return"string"==typeof t||c(t)||o(t)}function l(t){var e=new Error;return e.type="virtual-hyperscript.unexpected.virtual-element",e.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+u(t.foreignObject)+".\nThe parent vnode is:\n"+u(t.parentVnode),e.foreignObject=t.foreignObject,e.parentVnode=t.parentVnode,e}function u(t){try{return JSON.stringify(t,null,"    ")}catch(e){return String(t)}}var c=i(202),h=i(224),d=i(225),f=i(205),p=i(206),m=i(207),g=i(212),v=i(208),y=i(226),_=i(228),b=i(229);t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n,s){this.tagName=t,this.properties=e||u,this.children=i||c,this.key=null!=n?String(n):undefined,this.namespace="string"==typeof s?s:null;var h,d=i&&i.length||0,f=0,p=!1,m=!1,g=!1;for(var v in e)if(e.hasOwnProperty(v)){var y=e[v];l(y)&&y.unhook&&(h||(h={}),h[v]=y)}for(var _=0;_<d;_++){var b=i[_];r(b)?(f+=b.count||0,!p&&b.hasWidgets&&(p=!0),!m&&b.hasThunks&&(m=!0),g||!b.hooks&&!b.descendantHooks||(g=!0)):!p&&o(b)?"function"==typeof b.destroy&&(p=!0):!m&&a(b)&&(m=!0)}this.count=d+f,this.hasWidgets=p,this.hasThunks=m,this.hooks=h,this.descendantHooks=g}var s=i(204),r=i(205),o=i(207),a=i(208),l=i(212);t.exports=n;var u={},c=[];n.prototype.version=s,n.prototype.type="VirtualNode"},function(t,e,i){"use strict";function n(t){this.text=String(t)}var s=i(204);t.exports=n,n.prototype.version=s,n.prototype.type="VirtualText"},function(t,e,i){"use strict";function n(t,e){if(!t)return"DIV";var i,n,a,l,u=!e.hasOwnProperty("id"),c=s(t,r),h=null;for(o.test(c[1])&&(h="DIV"),l=0;l<c.length;l++)(n=c[l])&&(a=n.charAt(0),h?"."===a?(i=i||[]).push(n.substring(1,n.length)):"#"===a&&u&&(e.id=n.substring(1,n.length)):h=n);return i&&(e.className&&i.push(e.className),e.className=i.join(" ")),e.namespace?h:h.toUpperCase()}var s=i(227),r=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,o=/^\.|#/;t.exports=n},function(t){"use strict";var e,i,n;t.exports=(i=String.prototype.split,n=/()??/.exec("")[1]===e,function(t,s,r){if("[object RegExp]"!==Object.prototype.toString.call(s))return i.call(t,s,r);var o,a,l,u,c=[],h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.extended?"x":"")+(s.sticky?"y":""),d=0;for(s=new RegExp(s.source,h+"g"),t+="",n||(o=new RegExp("^"+s.source+"$(?!\\s)",h)),r=r===e?-1>>>0:r>>>0;(a=s.exec(t))&&!((l=a.index+a[0].length)>d&&(c.push(t.slice(d,a.index)),!n&&a.length>1&&a[0].replace(o,function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(a[t]=e)}),a.length>1&&a.index<t.length&&Array.prototype.push.apply(c,a.slice(1)),u=a[0].length,d=l,c.length>=r));)s.lastIndex===a.index&&s.lastIndex++;return d===t.length?!u&&s.test("")||c.push(""):c.push(t.slice(d)),c.length>r?c.slice(0,r):c})},function(t){"use strict";function e(t){if(!(this instanceof e))return new e(t);this.value=t}t.exports=e,e.prototype.hook=function(t,e){t[e]!==this.value&&(t[e]=this.value)}},function(t,e,i){"use strict";function n(t){if(!(this instanceof n))return new n(t);this.value=t}var s=i(230);t.exports=n,n.prototype.hook=function(t,e){s(t)[e.substr(3)]=this.value},n.prototype.unhook=function(t,e){s(t)[e.substr(3)]=undefined}},function(t,e,i){"use strict";function n(t){var e=t[r];return e||(e=t[r]={}),e}var s="7";i(231)("ev-store",s);var r="__EV_STORE_KEY@"+s;t.exports=n},function(t,e,i){"use strict";function n(t,e,i){var n="__INDIVIDUAL_ONE_VERSION_"+t,r=s(n+"_ENFORCE_SINGLETON",e);if(r!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+r+" installed.\nThis means you cannot install version "+e);return s(n,i)}var s=i(232);t.exports=n},function(t,e){(function(e){"use strict";function i(t,e){return t in n?n[t]:(n[t]=e,e)}var n="undefined"!=typeof window?window:void 0!==e?e:{};t.exports=i}).call(e,function(){return this}())},function(t,e,i){"use strict";var n=i(217);t.exports=n},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();e.DOMReference=function(){function t(){i(this,t)}return n(t,[{key:"hook",value:function(t){this.node=t}}]),t}()},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();e.VCache=function(){function t(e,n,s){i(this,t),this.type="Thunk",this.renderFn=s,this.cmpFn=n,this.state=e}return n(t,[{key:"render",value:function(t){var e=t?t.state:null;return e&&this.state&&!this.cmpFn(e,this.state)?t.vnode:this.renderFn(t,this)}}]),t}()},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){return!!e.force||(t.nodeCount!==e.nodeCount||(t.loading!==e.loading||(0,r["default"])(e.nodes,"itree.dirty")))}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(151));e.VArrayDirtyCompare=s},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function s(t,e){var i=e.dirty||!1;return i||(0,r["default"])(e,function(e,n){if("dirty"!==n&&e!==t[n])return i=!0,!1}),i}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(110));e.VStateCompare=s}])}),function(t){function e(t){return t.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}function i(t){return t.replace(/(:|\.)/g,"\\$1")}var n=e(location.pathname),s=function(e){var i=[],n=!1,s=e.dir&&"left"==e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!=document&&this!=window){var e=t(this);e[s]()>0?i.push(this):(e[s](1),n=e[s]()>0,e[s](0),n&&i.push(this))}}),"first"===e.el&&i.length&&(i=[i.shift()]),i};t.fn.extend({scrollable:function(t){return this.pushStack(s.call(this,{dir:t}))},firstScrollable:function(t){return this.pushStack(s.call(this,{el:"first",dir:t}))},smoothScroll:function(s){s=s||{};var r=t.extend({},t.fn.smoothScroll.defaults,s);return this.die("click.smoothscroll").live("click.smoothscroll",function(s){var o={},a=t(this),l=location.hostname===this.hostname||!this.hostname,u=r.scrollTarget||(e(this.pathname)||n)===n,c=i(this.hash),h=!0;if(r.scrollTarget||l&&u&&c){u=0;for(var d=(l=r.exclude).length;h&&u<d;)a.is(i(l[u++]))&&(h=!1);for(u=0,d=(l=r.excludeWithin).length;h&&u<d;)a.closest(l[u++]).length&&(h=!1)}else h=!1;h&&(s.preventDefault(),t.extend(o,r,{scrollTarget:r.scrollTarget||c,link:this}),t.smoothScroll(o))}),this}}),t.smoothScroll=function(e,i){var n,s,r,o=0;s="offset";var a="scrollTop",l={};"number"==typeof e?(n=t.fn.smoothScroll.defaults,r=e):((n=t.extend({},t.fn.smoothScroll.defaults,e||{})).scrollElement&&(s="position","static"==n.scrollElement.css("position")&&n.scrollElement.css("position","relative")),r=i||t(n.scrollTarget)[s]()&&t(n.scrollTarget)[s]()[n.direction]||0),a="left"==(n=t.extend({link:null},n)).direction?"scrollLeft":a,n.scrollElement?o=(s=n.scrollElement)[a]():s=t("html, body").firstScrollable(),l[a]=r+o+n.offset,t.isFunction(n.beforeScroll)&&n.beforeScroll.call(s,n),s.animate(l,{duration:n.speed,easing:n.easing,complete:function(){n.afterScroll&&t.isFunction(n.afterScroll)&&n.afterScroll.call(n.link,n)}})},t.smoothScroll.version="1.4.1",t.fn.smoothScroll.defaults={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:null,afterScroll:null,easing:"swing",speed:400}}(jQuery),function(t){"use strict";t(function(){var e;t.support.transition=(e=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(e.style[t]!==undefined)return i[t]}())&&{end:e}})}(window.jQuery),function(t){"use strict";var e=function(e,i){this.options=t.extend({},t.fn.affix.defaults,i),this.$window=t(window).on("scroll.affix.data-api",t.proxy(this.checkPosition,this)).on("click.affix.data-api",t.proxy(function(){setTimeout(t.proxy(this.checkPosition,this),1)},this)),this.$element=t(e),this.checkPosition()};e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e,i=t(document).height(),n=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,o=r.bottom,a=r.top,l="affix affix-top affix-bottom";"object"!=typeof r&&(o=a=r),"function"==typeof a&&(a=r.top()),"function"==typeof o&&(o=r.bottom()),e=!(null!=this.unpin&&n+this.unpin<=s.top)&&(null!=o&&s.top+this.$element.height()>=i-o?"bottom":null!=a&&n<=a&&"top"),this.affixed!==e&&(this.affixed=e,this.unpin="bottom"==e?s.top-n:null,this.$element.removeClass(l).addClass("affix"+(e?"-"+e:"")))}};var i=t.fn.affix;t.fn.affix=function(i){return this.each(function(){var n=t(this),s=n.data("affix"),r="object"==typeof i&&i;s||n.data("affix",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.affix.Constructor=e,t.fn.affix.defaults={offset:0},t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)})})}(window.jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){n.trigger("closed").remove()}var n,s=t(this),r=s.attr("data-target");r||(r=(r=s.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),n=t(r),e&&e.preventDefault(),n.length||(n=s.hasClass("alert")?s:s.parent()),n.trigger(e=t.Event("close")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.on(t.support.transition.end,i):i())};var n=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var n=t(this),s=n.data("alert");s||n.data("alert",s=new i(this)),"string"==typeof e&&s[e].call(n)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.alert.data-api",e,i.prototype.close)}(window.jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.button.defaults,i)};e.prototype.setState=function(t){var e="disabled",i=this.$element,n=i.data(),s=i.is("input")?"val":"html";t+="Text",n.resetText||i.data("resetText",i[s]()),i[s](n[t]||this.options[t]),setTimeout(function(){"loadingText"==t?i.addClass(e).attr(e,e):i.removeClass(e).removeAttr(e)},0)},e.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons-radio"]');t&&t.find(".active").removeClass("active"),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var n=t(this),s=n.data("button"),r="object"==typeof i&&i;s||n.data("button",s=new e(this,r)),"toggle"==i?s.toggle():i&&s.setState(i)})},t.fn.button.defaults={loadingText:"loading..."},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle")})}(window.jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))
};e.prototype={cycle:function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},getActiveIndex:function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},to:function(e){var i=this.getActiveIndex(),n=this;if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid",function(){n.to(e)}):i==e?this.pause().cycle():this.slide(e>i?"next":"prev",t(this.$items[e]))},pause:function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition.end&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),clearInterval(this.interval),this.interval=null,this},next:function(){if(!this.sliding)return this.slide("next")},prev:function(){if(!this.sliding)return this.slide("prev")},slide:function(e,i){var n,s=this.$element.find(".item.active"),r=i||s[e](),o=this.interval,a="next"==e?"left":"right",l="next"==e?"first":"last",u=this;if(this.sliding=!0,o&&this.pause(),r=r.length?r:this.$element.find(".item")[l](),n=t.Event("slide",{relatedTarget:r[0],direction:a}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var e=t(u.$indicators.children()[u.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(n),n.isDefaultPrevented())return;r.addClass(e),r[0].offsetWidth,s.addClass(a),r.addClass(a),this.$element.one(t.support.transition.end,function(){r.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger("slid")},0)})}else{if(this.$element.trigger(n),n.isDefaultPrevented())return;s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return o&&this.cycle(),this}}};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var n=t(this),s=n.data("carousel"),r=t.extend({},t.fn.carousel.defaults,"object"==typeof i&&i),o="string"==typeof i?i:r.slide;s||n.data("carousel",s=new e(this,r)),"number"==typeof i?s.to(i):o?s[o]():r.interval&&s.pause().cycle()})},t.fn.carousel.defaults={interval:5e3,pause:"hover"},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,n,s=t(this),r=t(s.attr("data-target")||(i=s.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),o=t.extend({},r.data(),s.data());r.carousel(o),(n=s.attr("data-slide-to"))&&r.data("carousel").pause().to(n).cycle(),e.preventDefault()})}(window.jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.collapse.defaults,i),this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.prototype={constructor:e,dimension:function(){return this.$element.hasClass("width")?"width":"height"},show:function(){var e,i,n,s;if(!this.transitioning&&!this.$element.hasClass("in")){if(e=this.dimension(),i=t.camelCase(["scroll",e].join("-")),(n=this.$parent&&this.$parent.find("> .accordion-group > .in"))&&n.length){if((s=n.data("collapse"))&&s.transitioning)return;n.collapse("hide"),s||n.data("collapse",null)}this.$element[e](0),this.transition("addClass",t.Event("show"),"shown"),t.support.transition&&this.$element[e](this.$element[0][i])}},hide:function(){var e;!this.transitioning&&this.$element.hasClass("in")&&(e=this.dimension(),this.reset(this.$element[e]()),this.transition("removeClass",t.Event("hide"),"hidden"),this.$element[e](0))},reset:function(t){var e=this.dimension();return this.$element.removeClass("collapse")[e](t||"auto")[0].offsetWidth,this.$element[null!==t?"addClass":"removeClass"]("collapse"),this},transition:function(e,i,n){var s=this,r=function(){"show"==i.type&&s.reset(),s.transitioning=0,s.$element.trigger(n)};this.$element.trigger(i),i.isDefaultPrevented()||(this.transitioning=1,this.$element[e]("in"),t.support.transition&&this.$element.hasClass("collapse")?this.$element.one(t.support.transition.end,r):r())},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var n=t(this),s=n.data("collapse"),r=t.extend({},t.fn.collapse.defaults,n.data(),"object"==typeof i&&i);s||n.data("collapse",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.collapse.defaults={toggle:!0},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.collapse.data-api","[data-toggle=collapse]",function(e){var i,n=t(this),s=n.attr("data-target")||e.preventDefault()||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),r=t(s).data("collapse")?"toggle":n.data();n[t(s).hasClass("in")?"addClass":"removeClass"]("collapsed"),t(s).collapse(r)})}(window.jQuery),function(t){"use strict";function e(){t(".dropdown-backdrop").remove(),t(n).each(function(){i(t(this)).removeClass("open")})}function i(e){var i,n=e.attr("data-target");return n||(n=(n=e.attr("href"))&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),(i=n&&t(n))&&i.length||(i=e.parent()),i}var n="[data-toggle=dropdown]",s=function(e){var i=t(e).on("click.dropdown.data-api",this.toggle);t("html").on("click.dropdown.data-api",function(){i.parent().removeClass("open")})};s.prototype={constructor:s,toggle:function(){var n,s,r=t(this);if(!r.is(".disabled, :disabled"))return s=(n=i(r)).hasClass("open"),e(),s||("ontouchstart"in document.documentElement&&t('<div class="dropdown-backdrop"/>').insertBefore(t(this)).on("click",e),n.toggleClass("open")),r.focus(),!1},keydown:function(e){var s,r,o,a,l;if(/(38|40|27)/.test(e.keyCode)&&(s=t(this),e.preventDefault(),e.stopPropagation(),!s.is(".disabled, :disabled"))){if(!(a=(o=i(s)).hasClass("open"))||a&&27==e.keyCode)return 27==e.which&&o.find(n).focus(),s.click();(r=t("[role=menu] li:not(.divider):visible a",o)).length&&(l=r.index(r.filter(":focus")),38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<r.length-1&&l++,~l||(l=0),r.eq(l).focus())}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var i=t(this),n=i.data("dropdown");n||i.data("dropdown",n=new s(this)),"string"==typeof e&&n[e].call(i)})},t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.dropdown.data-api",e).on("click.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.dropdown.data-api",n,s.prototype.toggle).on("keydown.dropdown.data-api",n+", [role=menu]",s.prototype.keydown)}(window.jQuery),function(t){"use strict";var e=function(e,i){this.options=i,this.$element=t(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",t.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};e.prototype={constructor:e,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var e=this,i=t.Event("show");this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var i=t.support.transition&&e.$element.hasClass("fade");e.$element.parent().length||e.$element.appendTo(document.body),e.$element.show(),i&&e.$element[0].offsetWidth,e.$element.addClass("in").attr("aria-hidden",!1),e.enforceFocus(),i?e.$element.one(t.support.transition.end,function(){e.$element.focus().trigger("shown")}):e.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault();e=t.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),t.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var e=this;t(document).on("focusin.modal",function(t){e.$element[0]===t.target||e.$element.has(t.target).length||e.$element.focus()})},escape:function(){var t=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&t.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var e=this,i=setTimeout(function(){e.$element.off(t.support.transition.end),e.hideModal()},500);this.$element.one(t.support.transition.end,function(){clearTimeout(i),e.hideModal()})},hideModal:function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(e){var i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&i;if(this.$backdrop=t('<div class="modal-backdrop '+i+'" />').appendTo(document.body),this.$backdrop.click("static"==this.options.backdrop?t.proxy(this.$element[0].focus,this.$element[0]):t.proxy(this.hide,this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one(t.support.transition.end,e):e()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(t.support.transition.end,e):e()):e&&e()}};var i=t.fn.modal;t.fn.modal=function(i){return this.each(function(){var n=t(this),s=n.data("modal"),r=t.extend({},t.fn.modal.defaults,n.data(),"object"==typeof i&&i);s||n.data("modal",s=new e(this,r)),"string"==typeof i?s[i]():r.show&&s.show()})},t.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),n=i.attr("href"),s=t(i.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=s.data("modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},s.data(),i.data());e.preventDefault(),s.modal(r).one("hide",function(){i.focus()})})}(window.jQuery),function(t){"use strict";function e(e,i){var n,s=t.proxy(this.process,this),r=t(e).is("body")?t(window):t(e);this.options=t.extend({},t.fn.scrollspy.defaults,i),this.$scrollElement=r.on("scroll.scroll-spy.data-api",s),this.selector=(this.options.target||(n=t(e).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=t("body"),this.refresh(),this.process()}e.prototype={constructor:e,refresh:function(){var e=this;this.offsets=t([]),this.targets=t([]),this.$body.find(this.selector).map(function(){var i=t(this),n=i.data("target")||i.attr("href"),s=/^#\w/.test(n)&&t(n);return s&&s.length&&[[s.position().top+(!t.isWindow(e.$scrollElement.get(0))&&e.$scrollElement.scrollTop()),n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},process:function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),n=this.offsets,s=this.targets,r=this.activeTarget;if(e>=i)return r!=(t=s.last()[0])&&this.activate(t);for(t=n.length;t--;)r!=s[t]&&e>=n[t]&&(!n[t+1]||e<=n[t+1])&&this.activate(s[t])},activate:function(e){var i,n;this.activeTarget=e,t(this.selector).parent(".active").removeClass("active"),n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',(i=t(n).parent("li").addClass("active")).parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate")}};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each(function(){var n=t(this),s=n.data("scrollspy"),r="object"==typeof i&&i;s||n.data("scrollspy",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.defaults={offset:10},t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(window.jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype={constructor:e,show:function(){var e,i,n,s=this.element,r=s.closest("ul:not(.dropdown-menu)"),o=s.attr("data-target");o||(o=(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),s.parent("li").hasClass("active")||(e=r.find(".active:last a")[0],n=t.Event("show",{relatedTarget:e}),s.trigger(n),n.isDefaultPrevented()||(i=t(o),this.activate(s.parent("li"),r),this.activate(i,i.parent(),function(){s.trigger({type:"shown",relatedTarget:e})})))},activate:function(e,i,n){function s(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var r=i.find("> .active"),o=n&&t.support.transition&&r.hasClass("fade");o?r.one(t.support.transition.end,s):s(),r.removeClass("in")}};var i=t.fn.tab;t.fn.tab=function(i){return this.each(function(){var n=t(this),s=n.data("tab");s||n.data("tab",s=new e(this)),"string"==typeof i&&s[i]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(window.jQuery),function(t){"use strict";var e=function(t,e){this.init("tooltip",t,e)};e.prototype={constructor:e,init:function(e,i,n){var s,r,o,a,l;for(this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.enabled=!0,l=(o=this.options.trigger.split(" ")).length;l--;)"click"==(a=o[l])?this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseenter":"focus",r="hover"==a?"mouseleave":"blur",this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.leave,this)));this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(e){return(e=t.extend({},t.fn[this.type].defaults,this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},enter:function(e){var i,n=t.fn[this.type].defaults,s={};if(this._options&&t.each(this._options,function(t,e){n[t]!=e&&(s[t]=e)},this),!(i=t(e.currentTarget)[this.type](s).data(this.type)).options.delay||!i.options.delay.show)return i.show();clearTimeout(this.timeout),i.hoverState="in",this.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)},leave:function(e){var i=t(e.currentTarget)[this.type](this._options).data(this.type);if(this.timeout&&clearTimeout(this.timeout),!i.options.delay||!i.options.delay.hide)return i.hide();i.hoverState="out",this.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)},show:function(){var e,i,n,s,r,o,a=t.Event("show");if(this.hasContent()&&this.enabled){if(this.$element.trigger(a),a.isDefaultPrevented())return;switch(e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),r="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,e.detach().css({top:0,left:0,display:"block"}),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element),i=this.getPosition(),n=e[0].offsetWidth,s=e[0].offsetHeight,r){case"bottom":o={top:i.top+i.height,left:i.left+i.width/2-n/2};break;case"top":o={top:i.top-s,left:i.left+i.width/2-n/2};break;case"left":o={top:i.top+i.height/2-s/2,left:i.left-n};break;case"right":o={top:i.top+i.height/2-s/2,left:i.left+i.width}}this.applyPlacement(o,r),this.$element.trigger("shown")}},applyPlacement:function(t,e){var i,n,s,r,o=this.tip(),a=o[0].offsetWidth,l=o[0].offsetHeight;o.offset(t).addClass(e).addClass("in"),i=o[0].offsetWidth,n=o[0].offsetHeight,"top"==e&&n!=l&&(t.top=t.top+l-n,r=!0),"bottom"==e||"top"==e?(s=0,t.left<0&&(s=-2*t.left,t.left=0,o.offset(t),i=o[0].offsetWidth,n=o[0].offsetHeight),this.replaceArrow(s-a+i,i,"left")):this.replaceArrow(n-l,n,"top"),r&&o.offset(t)},replaceArrow:function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},setContent:function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},hide:function(){function e(){var e=setTimeout(function(){i.off(t.support.transition.end).detach()},500);i.one(t.support.transition.end,function(){clearTimeout(e),i.detach()})}var i=this.tip(),n=t.Event("hide");if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?e():i.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},getTitle:function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},tip:function(){return this.$tip=this.$tip||t(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(e){var i=e?t(e.currentTarget)[this.type](this._options).data(this.type):this;i.tip().hasClass("in")?i.hide():i.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each(function(){var n=t(this),s=n.data("tooltip"),r="object"==typeof i&&i;s||n.data("tooltip",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.tooltip.Constructor=e,t.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(window.jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype,{constructor:e,setContent:function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"html":"text"](i),t.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var t=this.$element,e=this.options;return("function"==typeof e.content?e.content.call(t[0]):e.content)||t.attr("data-content")},tip:function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var n=t(this),s=n.data("popover"),r="object"==typeof i&&i;s||n.data("popover",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.popover.Constructor=e,t.fn.popover.defaults=t.extend({},t.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(window.jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.options=t.extend({},t.fn.typeahead.defaults,i),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=t(this.options.menu),this.shown=!1,this.listen()};e.prototype={constructor:e,select:function(){var t=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(t)).change(),this.hide()},updater:function(t){return t},show:function(){var e=t.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:e.top+e.height,left:e.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(){var e;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(e=t.isFunction(this.source)?this.source(this.query,t.proxy(this.process,this)):this.source)?this.process(e):this},process:function(e){var i=this;return e=t.grep(e,function(t){return i.matcher(t)}),(e=this.sorter(e)).length?this.render(e.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(t){return~t.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(t){for(var e,i=[],n=[],s=[];e=t.shift();)e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?n.push(e):s.push(e):i.push(e);return i.concat(n,s)},highlighter:function(t){var e=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return t.replace(new RegExp("("+e+")","ig"),function(t,e){return"<strong>"+e+"</strong>"})},render:function(e){var i=this;return(e=t(e).map(function(e,n){return(e=t(i.options.item).attr("data-value",n)).find("a").html(i.highlighter(n)),e[0]})).first().addClass("active"),this.$menu.html(e),this},next:function(){var e=this.$menu.find(".active").removeClass("active").next();e.length||(e=t(this.$menu.find("li")[0])),e.addClass("active")},prev:function(){var t=this.$menu.find(".active").removeClass("active").prev();t.length||(t=this.$menu.find("li").last()),t.addClass("active")},listen:function(){this.$element.on("focus",t.proxy(this.focus,this)).on("blur",t.proxy(this.blur,this)).on("keypress",t.proxy(this.keypress,this)).on("keyup",t.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",t.proxy(this.keydown,this)),this.$menu.on("click",t.proxy(this.click,this)).on("mouseenter","li",t.proxy(this.mouseenter,this)).on("mouseleave","li",t.proxy(this.mouseleave,this))},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},move:function(t){if(this.shown){switch(t.keyCode){case 9:case 13:case 27:t.preventDefault();break;case 38:t.preventDefault(),this.prev();break;case 40:t.preventDefault(),this.next()}t.stopPropagation()}},keydown:function(e){this.suppressKeyPressRepeat=~t.inArray(e.keyCode,[40,38,9,13,27]),this.move(e)},keypress:function(t){this.suppressKeyPressRepeat||this.move(t)},keyup:function(t){switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}t.stopPropagation(),t.preventDefault()},focus:function(){this.focused=!0},blur:function(){this.focused=!1,!this.mousedover&&this.shown&&this.hide()},click:function(t){t.stopPropagation(),t.preventDefault(),this.select(),this.$element.focus()},mouseenter:function(e){this.mousedover=!0,this.$menu.find(".active").removeClass("active"),t(e.currentTarget).addClass("active")},mouseleave:function(){this.mousedover=!1,!this.focused&&this.shown&&this.hide()}};var i=t.fn.typeahead;t.fn.typeahead=function(i){return this.each(function(){var n=t(this),s=n.data("typeahead"),r="object"==typeof i&&i;s||n.data("typeahead",s=new e(this,r)),"string"==typeof i&&s[i]()})},t.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},t.fn.typeahead.Constructor=e,t.fn.typeahead.noConflict=function(){return t.fn.typeahead=i,this},t(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(){var e=t(this);e.data("typeahead")||e.typeahead(e.data())})}(window.jQuery),$(function(){IbQuestionbank.PatchBootstrap.addAfterShowCallbackToPopover(),$(".js-autocomplete").each(function(){var t=$(this);t.autocomplete({source:t.attr("data-endpoint")})}),$(".chzn-select").chosen(),$("[data-toggle=tooltip]").tooltip(),$("#manual_filterrific_filter").keypress(function(t){13==t.which&&(t.preventDefault(),$("#manual_filterrific_filter").submit())}),$("#manual_filterrific_filter").submit(function(){var t=$("#manual_filterrific_filter"),e=t.attr("action");return $(".filterrific_spinner").show(),$.ajax({url:e,data:t.serialize(),type:"GET",dataType:"script"}).done(function(){$(".filterrific_spinner").hide()}),!1}),$(document).on("click",".questions_list .question_group .content .question, .questions_list .question_group .content .specification",function(){var t=$(this).closest(".question_group").data("question_id");IbQuestionbank.QuestionGroup.openModal(t)})}),void 0===Filterrific)var Filterrific={};if(Filterrific.submitFilterForm=function(){var t=$(this).parents("form"),e=t.attr("action");$(".filterrific_spinner").show(),$.ajax({url:e,data:t.serialize(),type:"GET",dataType:"script"}).done(function(){$(".filterrific_spinner").hide()})},function(t){t.fn.filterrific_observe_field=function(e,i){return e*=1e3,this.each(function(){var n=t(this),s=n.val(),r=function(){if(o())l&&clearInterval(l);else{var t=n.val();s!=t&&(s=t,n.map(i))}},o=function(){return 0==n.closest("html").length},a=function(){l&&(clearInterval(l),l=setInterval(r,e))};r();var l=setInterval(r,e);n.bind("keyup click mousemove",a)})}}(jQuery),Filterrific.init=function(){$("#filterrific_filter").on("change",":input",Filterrific.submitFilterForm),$(".filterrific-periodically-observed").filterrific_observe_field(.5,Filterrific.submitFilterForm)},jQuery(document).on("turbolinks:load",function(){jQuery(document).off("ready page:load"),Filterrific.init()}),jQuery(document).on("ready page:load",function(){Filterrific.init()}),void 0===IbQuestionbank)var IbQuestionbank={};IbQuestionbank.TeacherTest={updateExportDownloadLinkViewOptions:function(){var t=$(".js-pdf_download_link").data("update-view-options-url");$.ajax({url:t,data:$(".js-view_options_control").serialize(),type:"PUT",dataType:"script"})}},IbQuestionbank.Filterrific={submitFilterForm:function(){var t=$(this).parents("form"),e=t.attr("action");$.ajax({url:e,data:t.serialize(),type:"GET",dataType:"script"})}},IbQuestionbank.Formulae={typeSet:function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub])}},IbQuestionbank.PatchBootstrap={addAfterShowCallbackToPopover:function(){var t=$.fn.popover.Constructor.prototype.show;$.fn.popover.Constructor.prototype.show=function(){t.call(this),this.options.afterShow&&this.options.afterShow()}},computePopoverPlacement:function(t,e){return $(e).position().top<600?"bottom":"top"}},IbQuestionbank.QuestionGroup={openModal:function(t){$("#questionGroupModal-"+t).modal()}};