var antiClickjack;(function(n,t){function dt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||r!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in n)}function kf(n){var t=gt[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ir(n,r,u,f){if(i.acceptData(n)){var s,h,c=i.expando,a=typeof r=="string",l=n.nodeType,o=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&o[e]&&(f||o[e].data)||!a||u!==t)return e||(l?n[c]=e=b.pop()||i.guid++:e=c),o[e]||(o[e]={},l||(o[e].toJSON=i.noop)),(typeof r=="object"||typeof r=="function")&&(f?o[e]=i.extend(o[e],r):o[e].data=i.extend(o[e].data,r)),s=o[e],f||(s.data||(s.data={}),s=s.data),u!==t&&(s[i.camelCase(r)]=u),a?(h=s[r],h==null&&(h=s[i.camelCase(r)])):h=s,h}}function rr(n,t,r){if(i.acceptData(n)){var o,h,e,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data,e)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" ")),o=0,h=t.length;o<h;o++)delete e[t[o]];if(!(r?ni:i.isEmptyObject)(e))return}(r||(delete u[f].data,ni(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function ur(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(tr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:+u+""===u?+u:nr.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ni(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ht(){return!0}function d(){return!1}function cr(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function lr(n,t,r){if(t=t||0,i.isFunction(t))return i.grep(n,function(n,i){var u=!!t.call(n,i,n);return u===r});if(t.nodeType)return i.grep(n,function(n){return n===t===r});if(typeof t=="string"){var u=i.grep(n,function(n){return n.nodeType===1});if(fe.test(t))return i.filter(t,u,!r);t=i.filter(t,u)}return i.grep(n,function(n){return i.inArray(n,t)>=0===r})}function ar(n){var i=vr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function ye(n,t){return n.getElementsByTagName(t)[0]||n.appendChild(n.ownerDocument.createElement(t))}function dr(n){var t=n.getAttributeNode("type");return n.type=(t&&t.specified)+"/"+n.type,n}function gr(n){var t=le.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function si(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function nu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function pe(n,t){var r,f,u;if(t.nodeType===1){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}r==="script"&&t.text!==n.text?(dr(t).text=n.text,gr(t)):r==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):r==="input"&&ei.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):r==="option"?t.defaultSelected=t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;(e=s[h])!=null;h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function we(n){ei.test(n.type)&&(n.defaultChecked=n.checked)}function fu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=uu.length;i--;)if(t=uu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)}function eu(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&ut(r)&&(e[u]=i._data(r,"olddisplay",cu(r.nodeName)))):e[u]||(o=ut(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function ou(n,t,i){var r=ge.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function su(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function hu(n,t,r){var e=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box";if(u<=0||u==null){if(u=y(n,t,f),(u<0||u==null)&&(u=n.style[t]),ct.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+su(n,t,r||(o?"border":"content"),e,f)+"px"}function cu(n){var u=r,t=iu[n];return t||(t=lu(n,u),t!=="none"&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=lu(n,u),rt.detach()),iu[n]=t),t}function lu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function ci(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ro.test(n)?u(n,i):ci(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)ci(n+"["+f+"]",t[f],r,u)}function ku(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function du(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===vi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function yi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function co(n,i,r){var s,o,e,u,h=n.contents,f=n.dataTypes,c=n.responseFields;for(u in c)u in r&&(i[c[u]]=r[u]);while(f[0]==="*")f.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(u in h)if(h[u]&&h[u].test(o)){f.unshift(u);break}if(f[0]in r)e=f[0];else{for(u in r){if(!f[0]||n.converters[u+" "+f[0]]){e=u;break}s||(s=u)}e=e||s}if(e)return e!==f[0]&&f.unshift(e),r[e]}function lo(n,t){var o,r,i,e,u={},h=0,s=n.dataTypes.slice(),f=s[0];if(n.dataFilter&&(t=n.dataFilter(t,n.dataType)),s[1])for(i in n.converters)u[i.toLowerCase()]=n.converters[i];for(;r=s[++h];)if(r!=="*"){if(f!=="*"&&f!==r){if(i=u[f+" "+r]||u["* "+r],!i)for(o in u)if(e=o.split(" "),e[1]===r&&(i=u[f+" "+e[0]]||u["* "+e[0]],i)){i===!0?i=u[o]:u[o]!==!0&&(r=e[0],s.splice(h--,0,r));break}if(i!==!0)if(i&&n.throws)t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+f+" to "+r}}}f=r}return{state:"success",data:t}}function nf(){try{return new n.XMLHttpRequest}catch(t){}}function ao(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function tf(){return setTimeout(function(){tt=t}),tt=i.now()}function wo(n,t){i.each(t,function(t,i){for(var u=(ft[t]||[]).concat(ft["*"]),r=0,f=u.length;r<f;r++)if(u[r].call(n,t,i))return})}function rf(n,t,r){var e,o,s=0,l=yt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=tt||tf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:tt||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(bo(h,u.opts.specialEasing);s<l;s++)if(e=yt[s].call(u,n,h,u.opts),e)return e;return wo(u,h),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,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 bo(n,t){var u,f,r,e,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,o,v,a,s,y,l,f,b,h=this,e=n.style,p={},w=[],c=n.nodeType&&ut(n);r.queue||(f=i._queueHooks(n,"fx"),f.unqueued==null&&(f.unqueued=0,b=f.empty.fire,f.empty.fire=function(){f.unqueued||b()}),f.unqueued++,h.always(function(){h.always(function(){f.unqueued--;i.queue(n,"fx").length||f.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(r.overflow=[e.overflow,e.overflowX,e.overflowY],i.css(n,"display")==="inline"&&i.css(n,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&cu(n.nodeName)!=="inline"?e.zoom=1:e.display="inline-block"));r.overflow&&(e.overflow="hidden",i.support.shrinkWrapBlocks||h.always(function(){e.overflow=r.overflow[0];e.overflowX=r.overflow[1];e.overflowY=r.overflow[2]}));for(o in t)if(a=t[o],vo.exec(a)){if(delete t[o],y=y||a==="toggle",a===(c?"hide":"show"))continue;w.push(o)}if(v=w.length,v)for(s=i._data(n,"fxshow")||i._data(n,"fxshow",{}),("hidden"in s)&&(c=s.hidden),y&&(s.hidden=!c),c?i(n).show():h.done(function(){i(n).hide()}),h.done(function(){var t;i._removeData(n,"fxshow");for(t in p)i.style(n,t,p[t])}),o=0;o<v;o++)u=w[o],l=h.createTween(u,c?s[u]:0),p[u]=s[u]||i.style(n,u),u in s||(s[u]=l.start,c&&(l.end=l.start,l.start=u==="width"||u==="height"?1:0))}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function pt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function uf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var et,wi,o=typeof t,r=n.document,ff=n.location,ef=n.jQuery,of=n.$,ot={},b=[],wt="1.9.1",bi=b.concat,bt=b.push,l=b.slice,ki=b.indexOf,sf=ot.toString,it=ot.hasOwnProperty,kt=wt.trim,i=function(n,t){return new i.fn.init(n,t,wi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,hf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,cf=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,di=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,lf=/^[\],:{}\s]*$/,af=/(?:^|:|,)(?:\s*\[)+/g,vf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,yf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,pf=/^-ms-/,wf=/-([\da-z])/gi,bf=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||n.type==="load"||r.readyState==="complete")&&(gi(),i.ready())},gi=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},gt,nr,tr,pi,lt,g,nt,gu,at;i.fn=i.prototype={jquery:wt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if(typeof n=="string"){if(e=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:cf.exec(n),e&&(e[1]||!u)){if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),di.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:bt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({noConflict:function(t){return n.$===i&&(n.$=of),t&&n.jQuery===i&&(n.jQuery=ef),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):typeof n=="object"||typeof n=="function"?ot[sf.call(n)]||"object":typeof n},isPlainObject:function(n){if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!it.call(n,"constructor")&&!it.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}for(var r in n);return r===t||it.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(u=t,t=!1);t=t||r;var f=di.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(t===null)return t;if(typeof t=="string"&&(t=i.trim(t),t&&lf.test(t.replace(vf,"@").replace(yf,"]").replace(af,""))))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;if(!r||typeof r!="string")return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(pf,"ms-").replace(wf,bf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=dt(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:kt&&!kt.call("﻿ ")?function(n){return n==null?"":kt.call(n)}:function(n){return n==null?"":(n+"").replace(hf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(dt(Object(n))?i.merge(r,typeof n=="string"?[n]:n):bt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(ki)return ki.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if(typeof f=="number")for(;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;r<e;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=dt(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),u!=null&&(f[f.length]=u);return bi.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=u==null;if(i.type(u)==="object"){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;h<l;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),r.readyState==="complete")setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=n.frameElement==null&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}gi();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});wi=i(r);gt={};i.Callbacks=function(n){n=typeof n=="string"?gt[n]||kf(n):i.extend({},n);var o,f,c,s,e,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,e=l||0,l=0,s=r.length,o=!0;r&&e<s;e++)if(r[e].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}o=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);e==="function"?n.unique&&h.has(f)||r.push(f):f&&f.length&&e!=="string"&&u(f)})})(arguments);o?s=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),o&&(u<=s&&s--,u<=e&&e--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!!(r&&r.length)},empty:function(){return r=[],this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return t=t||[],t=[n,t.slice?t.slice():t],r&&(!c||u)&&(o?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(){var u,s,e,f,h,c,l,a,y,v,t=r.createElement("div");if(t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",s=t.getElementsByTagName("*"),e=t.getElementsByTagName("a")[0],!s||!e||!s.length)return{};h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=t.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";u={getSetAttribute:t.className!=="t",leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.5/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:!!f.value,optSelected:l.selected,enctype:!!r.createElement("form").enctype,html5Clone:r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",boxModel:r.compatMode==="CSS1Compat",deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1};f.checked=!0;u.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;u.optDisabled=!l.disabled;try{delete t.test}catch(p){u.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");u.input=f.getAttribute("value")==="";f.value="t";f.setAttribute("type","radio");u.radioValue=f.value==="t";f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);u.appendChecked=f.checked;u.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;t.attachEvent&&(t.attachEvent("onclick",function(){u.noCloneEvent=!1}),t.cloneNode(!0).click());for(v in{submit:!0,change:!0,focusin:!0})t.setAttribute(a="on"+v,"t"),u[v+"Bubbles"]=a in n||t.attributes[a].expando===!1;return t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",u.clearCloneStyle=t.style.backgroundClip==="content-box",i(function(){var e,f,i,h="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(e=r.createElement("div"),e.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(e).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",i=t.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",y=i[0].offsetHeight===0,i[0].style.display="",i[1].style.display="none",u.reliableHiddenOffsets=y&&i[0].offsetHeight===0,t.innerHTML="",t.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",u.boxSizing=t.offsetWidth===4,u.doesNotIncludeMarginInBodyOffset=s.offsetTop!==1,n.getComputedStyle&&(u.pixelPosition=(n.getComputedStyle(t,null)||{}).top!=="1%",u.boxSizingReliable=(n.getComputedStyle(t,null)||{width:"4px"}).width==="4px",f=t.appendChild(r.createElement("div")),f.style.cssText=t.style.cssText=h,f.style.marginRight=f.style.width="0",t.style.width="1px",u.reliableMarginRight=!parseFloat((n.getComputedStyle(f,null)||{}).marginRight)),typeof t.style.zoom!==o&&(t.innerHTML="",t.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",u.inlineBlockNeedsLayout=t.offsetWidth===3,t.style.display="block",t.innerHTML="<div><\/div>",t.firstChild.style.width="5px",u.shrinkWrapBlocks=t.offsetWidth!==3,u.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(e),e=t=i=f=null)}),s=h=c=l=e=f=null,u}();nr=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;tr=/([A-Z])/g;i.extend({cache:{},expando:"jQuery"+(wt+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ni(n)},data:function(n,t,i){return ir(n,t,i)},removeData:function(n,t){return rr(n,t)},_data:function(n,t,i){return ir(n,t,i,!0)},_removeData:function(n,t){return rr(n,t,!0)},acceptData:function(n){if(n.nodeType&&n.nodeType!==1&&n.nodeType!==9)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,u=this[0],o=0,s=null;if(n===t){if(this.length&&(s=i.data(u),u.nodeType===1&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;o<e.length;o++)f=e[o].name,f.indexOf("data-")||(f=i.camelCase(f.slice(5)),ur(u,f,s[f]));i._data(u,"parsedAttrs",!0)}return s}return typeof n=="object"?this.each(function(){i.data(this,n)}):i.access(this,function(r){if(r===t)return u?ur(u,n,i.data(u,n)):null;this.each(function(){i.data(this,n,r)})},null,r,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var f=i.queue(n,t),e=f.length,r=f.shift(),u=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};r==="inprogress"&&(r=f.shift(),e--);u.cur=r;r&&(t==="fx"&&f.unshift("inprogress"),delete u.stop,r.call(n,o,u));!e&&u&&u.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var k,fr,ti=/[\t\r\n]/g,df=/\r/g,gf=/^(?:input|select|textarea|button|object)$/i,ne=/^(?:a|area)$/i,er=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,ii=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ri=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(t=this[f],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(ti," "):" "),r){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,r,t,u,o,f=0,h=this.length,c=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(r=this[f],t=r.nodeType===1&&(r.className?(" "+r.className+" ").replace(ti," "):""),t){for(o=0;u=e[o++];)while(t.indexOf(" "+u+" ")>=0)t=t.replace(" "+u+" "," ");r.className=n?i.trim(t):""}return this},toggleClass:function(n,t){var r=typeof n,u=typeof t=="boolean";return i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var f,c=0,h=i(this),e=t,l=n.match(s)||[];f=l[c++];)e=u?e:!h.hasClass(f),h[e?"addClass":"removeClass"](f);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ti," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f,o=i(this);this.nodeType===1&&(f=e?n.call(this,u,o.val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(df,""):u==null?"":u):void 0}});i.extend({valHooks:{option:{get:function(n){var t=n.attributes.value;return!t||t.specified?n.value:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){var r=i.makeArray(t);return i(n).find("option").each(function(){this.selected=i.inArray(i(this).val(),r)>=0}),r.length||(n.selectedIndex=-1),r}}},attr:function(n,r,u){var f,s,e,h=n.nodeType;if(n&&h!==3&&h!==8&&h!==2){if(typeof n.getAttribute===o)return i.prop(n,r,u);if(s=h!==1||!i.isXMLDoc(n),s&&(r=r.toLowerCase(),f=i.attrHooks[r]||(er.test(r)?fr:k)),u!==t)if(u===null)i.removeAttr(n,r);else return f&&s&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u);else return f&&s&&"get"in f&&(e=f.get(n,r))!==null?e:(typeof n.getAttribute!==o&&(e=n.getAttribute(r)),e==null?t:e)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,er.test(r)?!a&&ii.test(r)?n[i.camelCase("default-"+r)]=n[u]=!1:n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var i=n.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):gf.test(n.nodeName)||ne.test(n.nodeName)&&n.href?0:t}}}});fr={get:function(n,r){var u=i.prop(n,r),f=typeof u=="boolean"&&n.getAttribute(r),e=typeof u=="boolean"?ri&&a?f!=null:ii.test(r)?n[i.camelCase("default-"+r)]:!!f:n.getAttributeNode(r);return e&&e.value!==!1?r.toLowerCase():t},set:function(n,t,r){return t===!1?i.removeAttr(n,r):ri&&a||!ii.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};ri&&a||(i.attrHooks.value={get:function(n,r){var u=n.getAttributeNode(r);return i.nodeName(n,"input")?n.defaultValue:u&&u.specified?u.value:t},set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return k&&k.set(n,t,r)}});a||(k=i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&(i==="id"||i==="name"||i==="coords"?r.value!=="":r.specified)?r.value:t},set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="",r==="value"||i===n.getAttribute(r)?i:t}},i.attrHooks.contenteditable={get:k.get,set:function(n,t,i){k.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]=i.extend(i.attrHooks[t],{set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}})}));i.support.hrefNormalized||(i.each(["href","src","width","height"],function(n,r){i.attrHooks[r]=i.extend(i.attrHooks[r],{get:function(n){var i=n.getAttribute(r,2);return i==null?t:i}})}),i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}));i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected=i.extend(i.propHooks.selected,{get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}));i.support.enctype||(i.propFix.enctype="encoding");i.support.checkOn||i.each(["radio","checkbox"],function(){i.valHooks[this]={get:function(n){return n.getAttribute("value")===null?"on":n.value}}});i.each(["radio","checkbox"],function(){i.valHooks[this]=i.extend(i.valHooks[this],{set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}})});var ui=/^(?:input|select|textarea)$/i,te=/^key/,ie=/^(?:mouse|contextmenu)|click/,or=/^(?:focusinfocus|focusoutblur)$/,sr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(l.elem,arguments):t},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=sr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0;n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;){if(h=sr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!h||h.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,h,p,l,c,w,b=[e||r],s=it.call(u,"type")?u.type:u,y=it.call(u,"namespace")?u.namespace.split("."):[];if((h=c=e=e||r,e.nodeType!==3&&e.nodeType!==8)&&!or.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(y=s.split("."),s=y.shift(),y.sort()),v=s.indexOf(":")<0&&"on"+s,u=u[i.expando]?u:new i.Event(s,typeof u=="object"&&u),u.isTrigger=!0,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=f==null?[u]:i.makeArray(f,[u]),l=i.event.special[s]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(p=l.delegateType||s,or.test(p+s)||(h=h.parentNode);h;h=h.parentNode)b.push(h),c=h;c===(e.ownerDocument||r)&&b.push(c.defaultView||c.parentWindow||n)}for(w=0;(h=b[w++])&&!u.isPropagationStopped();)u.type=w>1?p:l.bindType||s,a=(i._data(h,"events")||{})[u.type]&&i._data(h,"handle"),a&&a.apply(h,f),a=v&&h[v],a&&i.acceptData(h)&&a.apply&&a.apply(h,f)===!1&&u.preventDefault();if(u.type=s,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(e.ownerDocument,f)===!1)&&!(s==="click"&&i.nodeName(e,"a"))&&i.acceptData(e)&&v&&e[s]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=s;try{e[s]()}catch(k){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||n.type!=="click"))for(;u!=this;u=u.parentNode||this)if(u.nodeType===1&&(u.disabled!==!0||n.type!=="click")){for(f=[],s=0;s<h;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ie.test(u)?this.mouseHooks:te.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},special:{load:{noBubble:!0},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1}},focus:{trigger:function(){if(this!==r.activeElement&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===r.activeElement&&this.blur)return this.blur(),!1},delegateType:"focusout"},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ht:d):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=ht,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=ht,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ht;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(ui.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=d;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=d),this.each(function(){i.event.remove(this,n,u,r)})},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}}),function(n,t){function ti(n){return tr.test(n+"")}function ii(){var n,t=[];return n=function(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}}function l(n){return n[f]=!0,n}function b(n){var t=s.createElement("div");try{return n(t)}catch(i){return!1}finally{t=null}}function u(n,t,i,r){var y,u,e,l,p,v,w,h,d,b;if((t?t.ownerDocument||t:k)!==s&&it(t),t=t||s,i=i||[],!n||typeof n!="string")return i;if((l=t.nodeType)!==1&&l!==9)return[];if(!c&&!r){if(y=ir.exec(n))if(e=y[1]){if(l===9)if(u=t.getElementById(e),u&&u.parentNode){if(u.id===e)return i.push(u),i}else return i;else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(e))&&et(t,u)&&u.id===e)return i.push(u),i}else{if(y[2])return ut.apply(i,ft.call(t.getElementsByTagName(n),0)),i;if((e=y[3])&&o.getByClassName&&t.getElementsByClassName)return ut.apply(i,ft.call(t.getElementsByClassName(e),0)),i}if(o.qsa&&!a.test(n)){if(w=!0,h=f,d=t,b=l===9&&n,l===1&&t.nodeName.toLowerCase()!=="object"){for(v=yt(n),(w=t.getAttribute("id"))?h=w.replace(fr,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",p=v.length;p--;)v[p]=h+pt(v[p]);d=ni.test(n)&&t.parentNode||t;b=v.join(",")}if(b)try{return ut.apply(i,ft.call(d.querySelectorAll(b),0)),i}catch(g){}finally{w||t.removeAttribute("id")}}}return lr(n.replace(at,"$1"),t,i,r)}function yi(n,t){var i=t&&n,r=i&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function or(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function sr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function g(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function yt(n,t){var e,f,s,o,i,h,c,l=hi[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ki.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=di.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),i=i.slice(e.length));for(o in r.filter)(f=vt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):hi(n,h).slice(0)}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",e=wi++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var h,s,c,l=v+" "+e;if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u)if(c=t[f]||(t[f]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ot)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,o)||ot,s[1]===!0)return!0}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||cr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?dt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):ut.apply(e,h)})}function ei(n){for(var s,u,i,o=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return dt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ht)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];t<o;t++)if(u=r.relative[n[t].type])e=[ri(ui(e),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[f]){for(i=++t;i<o;i++)if(r.relative[n[i].type])break;return fi(t>1&&ui(e),t>1&&pt(n.slice(0,t-1)).replace(at,"$1"),u,t<i&&ei(n.slice(t,i)),i<o&&ei(n=n.slice(i)),i<o&&pt(n))}e.push(u)}return ui(e)}function hr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var p,d,b,w=[],k=0,y="0",g=o&&[],nt=a!=null,tt=ht,rt=o||e&&r.find.TAG("*",a&&h.parentNode||h),it=v+=tt==null?1:Math.random()||.1;for(nt&&(ht=h!==s&&h,ot=f);(p=rt[y])!=null;y++){if(e&&p){for(d=0;b=n[d++];)if(b(p,h,c)){l.push(p);break}nt&&(v=it,ot=++f)}i&&((p=!b&&p)&&k--,o&&g.push(p))}if(k+=y,i&&y!==k){for(d=0;b=t[d++];)b(g,w,h,c);if(o){if(k>0)while(y--)g[y]||w[y]||(w[y]=bi.call(l));w=wt(w)}ut.apply(l,w);nt&&!o&&w.length>0&&k+t.length>1&&u.uniqueSort(l)}return nt&&(v=it,ht=tt),g};return i?l(o):o}function cr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function lr(n,t,i,u){var o,f,e,h,l,s=yt(n);if(!u&&s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&t.nodeType===9&&!c&&r.relative[f[1].type]){if(t=r.find.ID(e.matches[0].replace(p,w),t)[0],!t)return i;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],r.relative[h=e.type])break;if((l=r.find[h])&&(u=l(e.matches[0].replace(p,w),ni.test(f[0].type)&&t.parentNode||t))){if(f.splice(o,1),n=u.length&&pt(f),!n)return ut.apply(i,ft.call(u,0)),i;break}}}return bt(n,s)(u,t,c,i,ni.test(n)),i}function pi(){}var nt,ot,r,st,oi,bt,tt,ht,it,s,h,c,a,rt,ct,et,kt,f="sizzle"+-new Date,k=n.document,o={},v=0,wi=0,si=ii(),hi=ii(),ci=ii(),y=typeof t,li=-2147483648,lt=[],bi=lt.pop,ut=lt.push,ft=lt.slice,dt=lt.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},e="[\\x20\\t\\r\\n\\f]",d="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ai=d.replace("w","w#"),vi="\\["+e+"*("+d+")"+e+"*(?:([*^$|!~]?=)"+e+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+ai+")|)|)"+e+"*\\]",gt=":("+d+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+vi.replace(3,8)+")*)|.*)\\)|)",at=new RegExp("^"+e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+e+"+$","g"),ki=new RegExp("^"+e+"*,"+e+"*"),di=new RegExp("^"+e+"*([\\x20\\t\\r\\n\\f>+~])"+e+"*"),gi=new RegExp(gt),nr=new RegExp("^"+ai+"$"),vt={ID:new RegExp("^#("+d+")"),CLASS:new RegExp("^\\.("+d+")"),NAME:new RegExp("^\\[name=['\"]?("+d+")['\"]?\\]"),TAG:new RegExp("^("+d.replace("w","w*")+")"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+e+"*(even|odd|(([+-]|)(\\d*)n|)"+e+"*(?:([+-]|)"+e+"*(\\d+)|))"+e+"*\\)|)","i"),needsContext:new RegExp("^"+e+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+e+"*((?:-\\d)?\\d*)"+e+"*\\)|)(?=[^-]|$)","i")},ni=/[\x20\t\r\n\f]*[+~]/,tr=/^[^{]+\{\s*\[native code/,ir=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rr=/^(?:input|select|textarea|button)$/i,ur=/^h\d$/i,fr=/'|\\/g,er=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,p=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,w=function(n,t){var i="0x"+t-65536;return i!==i?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)};try{ft.call(k.documentElement.childNodes,0)[0].nodeType}catch(ar){ft=function(n){for(var t,i=[];t=this[n++];)i.push(t);return i}}oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};it=u.setDocument=function(n){var i=n?n.ownerDocument||n:k;return i===s||i.nodeType!==9||!i.documentElement?s:(s=i,h=i.documentElement,c=oi(i),o.tagNameNoComments=b(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),o.attributes=b(function(n){n.innerHTML="<select><\/select>";var t=typeof n.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),o.getByClassName=b(function(n){return(n.innerHTML="<div class='hidden e'><\/div><div class='hidden'><\/div>",!n.getElementsByClassName||!n.getElementsByClassName("e").length)?!1:(n.lastChild.className="e",n.getElementsByClassName("e").length===2)}),o.getByName=b(function(n){n.id=f+0;n.innerHTML="<a name='"+f+"'><\/a><div name='"+f+"'><\/div>";h.insertBefore(n,h.firstChild);var t=i.getElementsByName&&i.getElementsByName(f).length===2+i.getElementsByName(f+0).length;return o.getIdNotName=!i.getElementById(f),h.removeChild(n),t}),r.attrHandle=b(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild&&typeof n.firstChild.getAttribute!==y&&n.firstChild.getAttribute("href")==="#"})?{}:{href:function(n){return n.getAttribute("href",2)},type:function(n){return n.getAttribute("type")}},o.getIdNotName?(r.find.ID=function(n,t){if(typeof t.getElementById!==y&&!c){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(p,w);return function(n){return n.getAttribute("id")===t}}):(r.find.ID=function(n,i){if(typeof i.getElementById!==y&&!c){var r=i.getElementById(n);return r?r.id===n||typeof r.getAttributeNode!==y&&r.getAttributeNode("id").value===n?[r]:t:[]}},r.filter.ID=function(n){var t=n.replace(p,w);return function(n){var i=typeof n.getAttributeNode!==y&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=o.tagNameNoComments?function(n,t){if(typeof t.getElementsByTagName!==y)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},r.find.NAME=o.getByName&&function(n,t){if(typeof t.getElementsByName!==y)return t.getElementsByName(name)},r.find.CLASS=o.getByClassName&&function(n,t){if(typeof t.getElementsByClassName!==y&&!c)return t.getElementsByClassName(n)},rt=[],a=[":focus"],(o.qsa=ti(i.querySelectorAll))&&(b(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||a.push("\\["+e+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)");n.querySelectorAll(":checked").length||a.push(":checked")}),b(function(n){n.innerHTML="<input type='hidden' i=''/>";n.querySelectorAll("[i^='']").length&&a.push("[*^$]="+e+"*(?:\"\"|'')");n.querySelectorAll(":enabled").length||a.push(":enabled",":disabled");n.querySelectorAll("*,:x");a.push(",.*:")})),(o.matchesSelector=ti(ct=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&b(function(n){o.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");rt.push("!=",gt)}),a=new RegExp(a.join("|")),rt=new RegExp(rt.join("|")),et=ti(h.contains)||h.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=h.compareDocumentPosition?function(n,t){var r;return n===t?(tt=!0,0):(r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t))?r&1||n.parentNode&&n.parentNode.nodeType===11?n===i||et(k,n)?-1:t===i||et(k,t)?1:0:r&4?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return tt=!0,0;if(o&&s){if(o===s)return yi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?yi(f[u],e[u]):f[u]===k?-1:e[u]===k?1:0},tt=!1,[0,0].sort(kt),o.detectDuplicates=tt,s)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&it(n),t=t.replace(er,"='$1']"),o.matchesSelector&&!c&&(!rt||!rt.test(t))&&!a.test(t))try{var i=ct.call(n,t);if(i||o.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&it(n),et(n,t)};u.attr=function(n,t){var i;return((n.ownerDocument||n)!==s&&it(n),c||(t=t.toLowerCase()),i=r.attrHandle[t])?i(n):c||o.attributes?n.getAttribute(t):((i=n.getAttributeNode(t))||n.getAttribute(t))&&n[t]===!0?t:i&&i.specified?i.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=1,i=0;if(tt=!o.detectDuplicates,n.sort(kt),tt){for(;r=n[t];t++)r===n[t-1]&&(i=u.push(t));while(i--)n.splice(u[i],1)}return n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else for(;r=n[u];u++)i+=st(r);return i};r=u.selectors={cacheLength:50,createPseudo:l,match:vt,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(p,w),n[3]=(n[4]||n[5]||"").replace(p,w),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return vt.CHILD.test(n[0])?null:(n[4]?n[2]=n[4]:t&&gi.test(t)&&(i=yt(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){return n==="*"?function(){return!0}:(n=n.replace(p,w).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===n})},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+e+")"+n+"("+e+"|$)"))&&si(n,function(n){return t.test(n.className||typeof n.getAttribute!==y&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),a=k[n]||[],y=a[0]===v&&a[1],l=a[0]===v&&a[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[v,y,l];break}}else if(d&&(a=(t[f]||(t[f]={}))[n])&&a[0]===v)l=a[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var e,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[f]?i(t):i.length>1?(e=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=dt.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,e)}):i}},pseudos:{not:l(function(n){var i=[],r=[],t=bt(n.replace(at,"$1"));return t[f]?l(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return nr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(p,w).toLowerCase(),function(t){var i;do if(i=c?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===h},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||n.nodeType===3||n.nodeType===4)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return ur.test(n.nodeName)},input:function(n){return rr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()===n.type)},first:g(function(){return[0]}),last:g(function(n,t){return[t-1]}),eq:g(function(n,t,i){return[i<0?i+t:i]}),even:g(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:g(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:g(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:g(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};for(nt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[nt]=or(nt);for(nt in{submit:!0,reset:!0})r.pseudos[nt]=sr(nt);bt=u.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=yt(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,hr(e,u))}return i};r.pseudos.nth=r.pseudos.eq;r.filters=pi.prototype=r.pseudos;r.setFilters=new pi;it();u.attr=i.attr;i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);var re=/Until$/,ue=/^(?:parents|prev(?:Until|All))/,fe=/^.[^:#\[\.,]*$/,hr=i.expr.match.needsContext,ee={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r,f,u=this.length;if(typeof n!="string")return f=this,this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=[],t=0;t<u;t++)i.find(n,this[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=(this.selector?this.selector+" ":"")+n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(lr(this,n,!1))},filter:function(n){return this.pushStack(lr(this,n,!0))},is:function(n){return!!n&&(typeof n=="string"?hr.test(n)?i(n,this.context).index(this[0])>=0:i.filter(n,this).length>0:this.filter(n).length>0)},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=hr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r.ownerDocument&&r!==t&&r.nodeType!==11;){if(e?e.index(r)>-1:i.find.matchesSelector(r,n)){u.push(r);break}r=r.parentNode}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.fn.andSelf=i.fn.addBack;i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return cr(n,"nextSibling")},prev:function(n){return cr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return re.test(n)||(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),f=this.length>1&&!ee[n]?i.unique(f):f,this.length>1&&ue.test(n)&&(f=f.reverse()),this.pushStack(f)}});i.extend({filter:function(n,t,r){return r&&(n=":not("+n+")"),t.length===1?i.find.matchesSelector(t[0],n)?[t[0]]:[]:i.find.matches(n,t)},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var vr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",oe=/ jQuery\d+="(?:null|\d+)"/g,yr=new RegExp("<(?:"+vr+")[\\s/>]","i"),fi=/^\s+/,pr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,wr=/<([\w:]+)/,br=/<tbody/i,se=/<|&#?\w+;/,he=/<(?:script|style|link)/i,ei=/^(?:checkbox|radio)$/i,ce=/checked\s*(?:[^=]|=\s*.checked.)/i,kr=/^$|\/(?:java|ecma)script/i,le=/^true\/(.*)/,ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={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:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},ve=ar(r),oi=ve.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(n){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&this.appendChild(n)})},prepend:function(){return this.domManip(arguments,!0,function(n){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&this.insertBefore(n,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,!1,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,f=0;(r=this[f])!=null;f++)(!n||i.filter(n,[r]).length>0)&&(t||r.nodeType!==1||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&si(u(r,"script")),r.parentNode.removeChild(r)));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(oe,""):t;if(typeof n=="string"&&!he.test(n)&&(i.support.htmlSerialize||!yr.test(n))&&(i.support.leadingWhitespace||!fi.test(n))&&!e[(wr.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(pr,"<$1><\/$2>");try{for(;f<o;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(n){var t=i.isFunction(n);return t||typeof n=="string"||(n=i(n).not(this).detach()),this.domManip([n],!0,function(n){var r=this.nextSibling,t=this.parentNode;t&&(i(this).remove(),t.insertBefore(n,r))})},detach:function(n){return this.remove(n,!0)},domManip:function(n,r,f){n=bi.apply([],n);var c,e,l,s,y,h,o=0,a=this.length,w=this,b=a-1,v=n[0],p=i.isFunction(v);if(p||!(a<=1||typeof v!="string"||i.support.checkClone||!ce.test(v)))return this.each(function(i){var u=w.eq(i);p&&(n[0]=v.call(this,i,r?u.html():t));u.domManip(n,r,f)});if(a&&(h=i.buildFragment(n,this[0].ownerDocument,!1,this),c=h.firstChild,h.childNodes.length===1&&(h=c),c)){for(r=r&&i.nodeName(c,"tr"),s=i.map(u(h,"script"),dr),l=s.length;o<a;o++)e=h,o!==b&&(e=i.clone(e,!0,!0),l&&i.merge(s,u(e,"script"))),f.call(r&&i.nodeName(this[o],"table")?ye(this[o],"tbody"):this[o],e,o);if(l)for(y=s[s.length-1].ownerDocument,i.map(s,gr),o=0;o<l;o++)e=s[o],kr.test(e.type||"")&&!i._data(e,"globalEval")&&i.contains(y,e)&&(e.src?i.ajax({url:e.src,type:"GET",dataType:"script",async:!1,global:!1,throws:!0}):i.globalEval((e.text||e.textContent||e.innerHTML||"").replace(ae,"")));h=c=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),bt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!yr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(oi.innerHTML=n.outerHTML,oi.removeChild(o=oi.firstChild)),(!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=u(o),s=u(n),e=0;(h=s[e])!=null;++e)f[e]&&pe(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;(h=s[e])!=null;e++)nu(h,f[e]);else nu(n,o);return f=u(o,"script"),f.length>0&&si(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=ar(t),c=[],v=0;v<b;v++)if(o=n[v],o||o===0)if(i.type(o)==="object")i.merge(c,o.nodeType?[o]:o);else if(se.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(wr.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(pr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&fi.test(o)&&c.push(t.createTextNode(fi.exec(o)[0])),!i.support.tbody)for(o=y==="table"&&!br.test(o)?s.firstChild:l[1]==="<table>"&&!br.test(o)?s:0,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),we),v=0;o=c[v++];)if((!f||i.inArray(o,f)===-1)&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&si(s),r))for(h=0;o=s[h++];)kr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,e,u,f,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;(r=n[c])!=null;c++)if((t||i.acceptData(r))&&(u=r[s],f=u&&h[u],f)){if(f.events)for(e in f.events)a[e]?i.event.remove(r,e):i.removeEvent(r,e,f.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}}});var rt,v,y,hi=/alpha\([^)]*\)/i,be=/opacity\s*=\s*([^)]*)/,ke=/^(top|right|bottom|left)$/,de=/^(none|table(?!-c[ea]).+)/,tu=/^margin/,ge=new RegExp("^("+st+")(.*)$","i"),ct=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),no=new RegExp("^([+-])=("+st+")","i"),iu={BODY:"block"},to={position:"absolute",visibility:"hidden",display:"block"},ru={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],uu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;f<e;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return eu(this,!0)},hide:function(){return eu(this)},toggle:function(n){var t=typeof n=="boolean";return this.each(function(){(t?n:ut(this))?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=fu(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u!==t){if(s=typeof u,s==="string"&&(o=no.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||u!==""||r.indexOf("background")!==0||(c[r]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r]}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return(r=i.cssProps[s]||(i.cssProps[s]=fu(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),e==="normal"&&r in ru&&(e=ru[r]),u===""||u)?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(e!==""||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),ct.test(e)&&tu.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return u==null&&f&&f[i]&&(u=f[i]),ct.test(u)&&!ke.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left=i==="fontSize"?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),u===""?"auto":u});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&de.test(i.css(n,"display"))?i.swap(n,to,function(){return hu(n,t,u)}):hu(n,t,u)},set:function(n,r,u){var f=u&&v(n);return ou(n,r,u?su(n,t,u,i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return be.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(hi,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=hi.test(f)?f.replace(hi,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return r=y(n,t),ct.test(r)?i(n).position()[t]+"px":r}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};tu.test(n)||(i.cssHooks[n+t].set=ou)});var io=/%20/g,ro=/\[\]$/,au=/\r?\n/g,uo=/^(?:submit|button|image|reset|file)$/i,fo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&fo.test(this.nodeName)&&!uo.test(n)&&(this.checked||!ei.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(au,"\r\n")}}):{name:t.name,value:r.replace(au,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():t==null?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)ci(u,n[u],r,e);return f.join("&").replace(io,"+")};i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.hover=function(n,t){return this.mouseenter(n).mouseleave(t||n)};var w,c,li=i.now(),ai=/\?/,eo=/#.*$/,vu=/([?&])_=[^&]*/,oo=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,so=/^(?:GET|HEAD)$/,ho=/^\/\//,yu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,pu=i.fn.load,wu={},vi={},bu="*/".concat("*");try{c=ff.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=yu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if(typeof n!="string"&&pu)return pu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&typeof r=="object"&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":bu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":n.String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?yi(yi(n,i.ajaxSettings),t):yi(i.ajaxSettings,n)},ajaxPrefilter:ku(wu),ajaxTransport:ku(vi),ajax:function(n,r){function k(n,r,s,c){var l,k,w,rt,p,a=r;o!==2&&(o=2,g&&clearTimeout(g),v=t,d=c||"",f.readyState=n>0?4:0,s&&(rt=co(u,f,s)),n>=200&&n<300||n===304?(u.ifModified&&(p=f.getResponseHeader("Last-Modified"),p&&(i.lastModified[e]=p),p=f.getResponseHeader("etag"),p&&(i.etag[e]=p)),n===204?(l=!0,a="nocontent"):n===304?(l=!0,a="notmodified"):(l=lo(u,rt),a=l.state,k=l.data,w=l.error,l=!w)):(w=a,(n||!a)&&(a="error",n<0&&(n=0))),f.status=n,f.statusText=(r||a)+"",l?tt.resolveWith(h,[k,a,f]):tt.rejectWith(h,[f,a,w]),f.statusCode(b),b=t,y&&nt.trigger(l?"ajaxSuccess":"ajaxError",[f,u,l?k:w]),it.fireWith(h,[f,a]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(r=n,n=t);r=r||{};var l,a,e,d,g,y,v,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(o===2){if(!p)for(p={};t=oo.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return o===2?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return v&&v.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(eo,"").replace(ho,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],u.crossDomain==null&&(l=yu.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!==w[1]||l[2]!==w[2]||(l[3]||(l[1]==="http:"?80:443))!=(w[3]||(w[1]==="http:"?80:443))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),du(wu,u,r,f),o===2)return f;y=u.global;y&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!so.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(ai.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=vu.test(e)?e.replace(vu,"$1_="+li++):e+(ai.test(e)?"&":"?")+"_="+li++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+bu+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(v=du(vi,u,r,f),v){f.readyState=1;y&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(rt,k)}catch(et){if(o<2)k(-1,et);else throw et;}}else k(-1,"No Transport");return f},getScript:function(n,r){return i.get(n,t,r,"script")},getJSON:function(n,t,r){return i.get(n,t,r,"json")}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){if(u)u.onload(t,!0)}}}});pi=[];lt=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=pi.pop()||i.expando+"_"+li++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(lt.test(r.url)?"url":typeof r.data=="string"&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&lt.test(r.data)&&"data");if(h||r.dataTypes[0]==="jsonp")return e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(lt,"$1"+e):r.jsonp!==!1&&(r.url+=(ai.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,pi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"});gu=0;at=n.ActiveXObject&&function(){for(var n in g)g[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&nf()||ao()}:nf;nt=i.ajaxSettings.xhr();i.support.cors=!!nt&&"withCredentials"in nt;nt=i.support.ajax=!!nt;nt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,at&&delete g[h]),f)o.readyState!==4&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();typeof o.responseText=="string"&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?s===1223&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?o.readyState===4?setTimeout(u):(h=++gu,at&&(g||(g={},i(n).unload(at)),g[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var tt,vt,vo=/^(?:toggle|show|hide)$/,yo=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),po=/queueHooks$/,yt=[ko],ft={"*":[function(n,t){var o,s,r=this.createTween(n,t),e=yo.exec(t),h=r.cur(),u=+h||0,f=1,c=20;if(e){if(o=+e[2],s=e[3]||(i.cssNumber[n]?"":"px"),s!=="px"&&u){u=i.css(r.elem,n,!0)||o||1;do f=f||".5",u=u/f,i.style(r.elem,n,u+s);while(f!==(f=r.cur()/h)&&f!==1&&--c)}r.unit=s;r.start=u;r.end=e[1]?u+(e[1]+1)*o:o}return r}]};i.Animation=i.extend(rf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?yt.unshift(n):yt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var t,r=f.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(pt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=rf(this,i.extend({},n),e);f.finish=function(){t.stop(!0)};(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&po.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.cur&&e.cur.finish&&e.cur.finish.call(this),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(tt=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();tt=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){vt||(vt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(vt);vt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return(r=s.documentElement,!i.contains(r,u))?f:(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=uf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)})};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||r.documentElement;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||r.documentElement})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=uf(n);if(e===t)return o?r in o?o[r]:o.document.documentElement[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||typeof f!="boolean"),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:r.nodeType===9?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});n.jQuery=n.$=i;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return i})})(window);jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(n,t,i){function r(i){var r=t.console;o[i]||(o[i]=!0,n.migrateWarnings.push(i),r&&r.warn&&!n.migrateMute&&(r.warn("JQMIGRATE: "+i),n.migrateTrace&&r.trace&&r.trace()))}function e(t,u,f,e){if(Object.defineProperty)try{return Object.defineProperty(t,u,{configurable:!0,enumerable:!0,get:function(){return r(e),f},set:function(n){r(e);f=n}}),i}catch(o){}n._definePropertyBroken=!0;t[u]=f}var o={},l,a,v;n.migrateWarnings=[];!n.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active");n.migrateTrace===i&&(n.migrateTrace=!0);n.migrateReset=function(){o={};n.migrateWarnings.length=0};"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var s=n("<input/>",{size:1}).attr("size")&&n.attrFn,h=n.attr,g=n.attrHooks.value&&n.attrHooks.value.get||function(){return null},nt=n.attrHooks.value&&n.attrHooks.value.set||function(){return i},tt=/^(?:input|button)$/i,it=/^[238]$/,rt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ut=/^(?:checked|selected)$/i;e(n,"attrFn",s||{},"jQuery.attrFn is deprecated");n.attr=function(t,u,f,e){var o=u.toLowerCase(),c=t&&t.nodeType;return e&&(4>h.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!it.test(c)&&(s?u in s:n.isFunction(n.fn[u])))?n(t)[u](f):("type"===u&&f!==i&&tt.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!n.attrHooks[o]&&rt.test(o)&&(n.attrHooks[o]={get:function(t,r){var u,f=n.prop(t,r);return f===!0||"boolean"!=typeof f&&(u=t.getAttributeNode(r))&&u.nodeValue!==!1?r.toLowerCase():i},set:function(t,i,r){var u;return i===!1?n.removeAttr(t,r):(u=n.propFix[r]||r,u in t&&(t[u]=!0),t.setAttribute(r,r.toLowerCase())),r}},ut.test(o)&&r("jQuery.fn.attr('"+o+"') may use property instead of attribute")),h.call(n,t,u,f))};n.attrHooks.value={get:function(n,t){var i=(n.nodeName||"").toLowerCase();return"button"===i?g.apply(this,arguments):("input"!==i&&"option"!==i&&r("jQuery.fn.attr('value') no longer gets properties"),t in n?n.value:null)},set:function(n,t){var u=(n.nodeName||"").toLowerCase();return"button"===u?nt.apply(this,arguments):("input"!==u&&"option"!==u&&r("jQuery.fn.attr('value', val) no longer sets properties"),n.value=t,i)}};var f,u,c=n.fn.init,ft=n.parseJSON,et=/^([^<]*)(<[\w\W]+>)([^>]*)$/;n.fn.init=function(t,i,u){var f;return t&&"string"==typeof t&&!n.isPlainObject(i)&&(f=et.exec(n.trim(t)))&&f[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),f[3]&&r("$(html) HTML text after last tag is ignored"),"#"===f[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),n.error("JQMIGRATE: Invalid selector string (XSS)")),i&&i.context&&(i=i.context),n.parseHTML)?c.call(this,n.parseHTML(f[2],i,!0),i,u):c.apply(this,arguments)};n.fn.init.prototype=n.fn;n.parseJSON=function(n){return n||null===n?ft.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)};n.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||0>n.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};n.browser||(f=n.uaMatch(navigator.userAgent),u={},f.browser&&(u[f.browser]=!0,u.version=f.version),u.chrome?u.webkit=!0:u.webkit&&(u.safari=!0),n.browser=u);e(n,"browser",n.browser,"jQuery.browser is deprecated");n.sub=function(){function t(n,i){return new t.fn.init(n,i)}n.extend(!0,t,this);t.superclass=this;t.fn=t.prototype=this();t.fn.constructor=t;t.sub=this.sub;t.fn.init=function(r,u){return u&&u instanceof n&&!(u instanceof t)&&(u=t(u)),n.fn.init.call(this,r,u,i)};t.fn.init.prototype=t.fn;var i=t(document);return r("jQuery.sub() is deprecated"),t};n.ajaxSetup({converters:{"text json":n.parseJSON}});l=n.fn.data;n.fn.data=function(t){var f,u,e=this[0];return!e||"events"!==t||1!==arguments.length||(f=n.data(e,t),u=n._data(e,t),f!==i&&f!==u||u===i)?l.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),u)};a=/\/(java|ecma)script/i;v=n.fn.andSelf||n.fn.addBack;n.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),v.apply(this,arguments)};n.clean||(n.clean=function(t,u,f,e){u=u||document;u=!u.nodeType&&u[0]||u;u=u.ownerDocument||u;r("jQuery.clean() is deprecated");var s,o,c,l,h=[];if(n.merge(h,n.buildFragment(t,u).childNodes),f)for(c=function(n){return!n.type||a.test(n.type)?e?e.push(n.parentNode?n.parentNode.removeChild(n):n):f.appendChild(n):i},s=0;null!=(o=h[s]);s++)n.nodeName(o,"script")&&c(o)||(f.appendChild(o),o.getElementsByTagName!==i&&(l=n.grep(n.merge([],o.getElementsByTagName("script")),c),h.splice.apply(h,[s+1,0].concat(l)),s+=l.length));return h});var ot=n.event.add,st=n.event.remove,ht=n.event.trigger,ct=n.fn.toggle,y=n.fn.live,p=n.fn.die,w="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",b=RegExp("\\b(?:"+w+")\\b"),k=/(?:^|\s)hover(\.\S+|)\b/,d=function(t){return"string"!=typeof t||n.event.special.hover?t:(k.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(k,"mouseenter$1 mouseleave$1"))};n.event.props&&"attrChange"!==n.event.props[0]&&n.event.props.unshift("attrChange","attrName","relatedNode","srcElement");n.event.dispatch&&e(n.event,"handle",n.event.dispatch,"jQuery.event.handle is undocumented and deprecated");n.event.add=function(n,t,i,u,f){n!==document&&b.test(t)&&r("AJAX events should be attached to document: "+t);ot.call(this,n,d(t||""),i,u,f)};n.event.remove=function(n,t,i,r,u){st.call(this,n,d(t)||"",i,r,u)};n.fn.error=function(){var n=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),n.splice(0,0,"error"),arguments.length?this.bind.apply(this,n):(this.triggerHandler.apply(this,n),this)};n.fn.toggle=function(t,i){if(!n.isFunction(t)||!n.isFunction(i))return ct.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var u=arguments,e=t.guid||n.guid++,f=0,o=function(i){var r=(n._data(this,"lastToggle"+t.guid)||0)%f;return n._data(this,"lastToggle"+t.guid,r+1),i.preventDefault(),u[r].apply(this,arguments)||!1};for(o.guid=e;u.length>f;)u[f++].guid=e;return this.click(o)};n.fn.live=function(t,i,u){return r("jQuery.fn.live() is deprecated"),y?y.apply(this,arguments):(n(this.context).on(t,this.selector,i,u),this)};n.fn.die=function(t,i){return r("jQuery.fn.die() is deprecated"),p?p.apply(this,arguments):(n(this.context).off(t,this.selector||"**",i),this)};n.event.trigger=function(n,t,i,u){return i||b.test(n)||r("Global events are undocumented and deprecated"),ht.call(this,n,t,i||document,u)};n.each(w.split("|"),function(t,i){n.event.special[i]={setup:function(){var t=this;return t!==document&&(n.event.add(document,i+"."+n.guid,function(){n.event.trigger(i,null,t,!0)}),n._data(this,i,n.guid++)),!1},teardown:function(){return this!==document&&n.event.remove(document,i+"."+n._data(this,i)),!1}}})}(jQuery,window),function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var e,h,f,c;(e=t.getAttribute("data-ajax-confirm"),!e||window.confirm(e))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:!!t.getAttribute("data-ajax-cache"),beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})}(jQuery),function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var r;return i.settings.submitHandler?(i.submitButton&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&r.remove(),!1):!0}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t];delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),i)}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(t.which!==9||this.elementValue(n)!=="")&&(n.name in this.submitted||n===this.lastActive)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0],t)}var r,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();r=this.groups={};n.each(this.settings.groups,function(t,i){n.each(i.split(/\s/),function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",i).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",i);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.validationTargetFor(this.clean(t));this.lastElement=t;this.prepareElement(t);this.currentElements=n(t);var i=this.check(t)!==!1;return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0;for(var i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.replace(" ",".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var r=n(t).attr("type"),i=n(t).val();return r==="radio"||r==="checkbox"?n('input[name="'+n(t).attr("name")+'"]:checked').val():typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){var r,u;t=this.validationTargetFor(this.clean(t));var f=n(t).rules(),e=!1,s=this.elementValue(t),i;for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,s,t,u.parameters),i==="dependency-mismatch"){e=!0;continue}if(e=!1,i==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!i)return this.formatAndAdd(t,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+u.method+"' method",o),o;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customDataMessage:function(t,i){return n(t).data("msg-"+i.toLowerCase())||t.attributes&&n(t).attr("data-msg-"+i.toLowerCase())},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")===i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(n){return this.checkable(n)&&(n=this.findByName(n.name).not(this.settings.ignore)[0]),n},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find('[name="'+t+'"]')},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var u={},f=n(t),r,i;for(r in n.validator.methods)r==="required"?(i=f.get(0).getAttribute(r),i===""&&(i=!0),i=!!i):i=f.attr(r),i?u[r]=i:f[0].getAttribute("type")===r&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!==undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage;e=r===!0||r==="true";e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.invalid[i.name]=!0,u.showErrors(s));f.valid=e;u.stopRequest(i,e)}},r)),"pending")},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(n)},url:function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e;if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){var r=arguments;return r[0]=n.event.fix(t),r[0].type=i,n.event.handle.apply(this,r)}}});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this),i="__jquery_unobtrusive_validation_form_reset";if(!t.data(i)){t.data(i,!0);try{t.data("validator").resetForm()}finally{t.removeData(i)}t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){var i=n(t.form).find(":input").filter("[name='"+f(s)+"']");return i.is(":checkbox")?i.filter(":checked").val()||i.filter(":hidden").val()||"":i.is(":radio")?i.filter(":checked").val()||"":i.val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery);self===top?(antiClickjack=document.getElementById("antiClickjack"),antiClickjack.parentNode.removeChild(antiClickjack)):($("input:hidden[name='McConfig.XFrameOption']").val()=="deny"&&(top.location=self.location),antiClickjack=document.getElementById("antiClickjack"),antiClickjack.parentNode.removeChild(antiClickjack)),function(n){"use strict";n.fn.fitVids=function(t){var r={customSelector:null},i,u;return document.getElementById("fit-vids-style")||(i=document.createElement("div"),u=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0],i.className="fit-vids-style",i.id="fit-vids-style",i.style.display="none",i.innerHTML="&shy;<style>                 .fluid-width-video-wrapper {                   width: 100%;                                position: relative;                         padding: 0;                              }                                                                                       .fluid-width-video-wrapper iframe,          .fluid-width-video-wrapper object,          .fluid-width-video-wrapper embed {             position: absolute;                         top: 0;                                     left: 0;                                    width: 100%;                                height: 100%;                            }                                         <\/style>",u.parentNode.insertBefore(i,u)),t&&n.extend(r,t),this.each(function(){var i=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"],t;r.customSelector&&i.push(r.customSelector);t=n(this).find(i.join(","));t=t.not("object object");t.each(function(){var t=n(this),i;if((this.tagName.toLowerCase()!=="embed"||!t.parent("object").length)&&!t.parent(".fluid-width-video-wrapper").length){var r=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),u=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),f=r/u;t.attr("id")||(i="fitvid"+Math.floor(Math.random()*999999),t.attr("id",i));t.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",f*100+"%");t.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(n){n.fn.unveil=function(t,i){function o(){var t=u.filter(function(){var t=n(this);if(!t.is(":hidden")){var i=r.scrollTop(),e=i+r.height(),u=t.offset().top,o=u+t.height();return o>=i-f&&u<=e+f}});e=t.trigger("unveil");u=u.not(e)}var r=n(window),f=t||0,s=window.devicePixelRatio>1,h=s?"data-src-retina":"data-src",u=this,e;this.one("unveil",function(){var n=this.getAttribute(h);n=n||this.getAttribute("data-src");n&&(this.setAttribute("src",n),typeof i=="function"&&i.call(this))});r.on("scroll.unveil resize.unveil lookup.unveil",o);return o(),this}}(window.jQuery||window.Zepto),function(n,t,i){function a(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function e(n,r){var f=this,u=i(f);if(f.value==u.attr("placeholder")&&u.hasClass("placeholder"))if(u.data("placeholder-password")){if(u=u.hide().next().show().attr("id",u.removeAttr("id").data("placeholder-id")),n===!0)return u[0].value=r;u.focus()}else f.value="",u.removeClass("placeholder"),f==t.activeElement&&f.select()}function s(){var t,r=this,n=i(r),u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(f){t=i("<input>").attr(i.extend(a(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":n,"placeholder-id":u}).bind("focus.placeholder",e);n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder");n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}var f="placeholder"in t.createElement("input"),o="placeholder"in t.createElement("textarea"),h=i.fn,c=i.valHooks,l=i.propHooks,u,r;f&&o?(r=h.placeholder=function(){return this},r.input=r.textarea=!0):(r=h.placeholder=function(){var n=this;return n.filter((f?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},r.input=f,r.textarea=o,u={get:function(n){var t=i(n),r=t.data("placeholder-password");return r?r[0].value:t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,r){var u=i(n),f=u.data("placeholder-password");return f?f[0].value=r:u.data("placeholder-enabled")?(r==""?(n.value=r,n!=t.activeElement&&s.call(n)):u.hasClass("placeholder")?e.call(n,!0,r)||(n.value=r):n.value=r,u):n.value=r}},f||(c.input=u,l.value=u),o||(c.textarea=u,l.value=u),i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(e);setTimeout(function(){n.each(s)},10)})}),i(n).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;u<s;u++)if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}else r&&r.detach();return o}function o(t,r,u,f,e){var a=t.contents(),s=!1,v,l,p,h,c;for(t.empty(),v="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",l=0,p=a.length;l<p;l++){if(s)break;(h=a[l],c=n(h),typeof h!="undefined"&&(h.nodeType!=3||n.trim(h.data).length!=0))&&(t.append(c),e&&t[t.is(v)?"after":"append"](e),i(u,f)&&(s=h.nodeType==3?y(c,r,u,f,e):o(c,r,u,f,e),s||(c.remove(),s=!0)),s||e&&e.detach())}return s}function y(t,u,e,o,c){var l=t[0],nt,w,d;if(!l)return!1;var a=h(l),tt=a.indexOf(" ")!==-1?" ":"　",b=o.wrap=="letter"?"":tt,v=a.split(b),g=-1,p=-1,k=0,y=v.length-1;for(o.fallbackToLetter&&y==0&&y==k&&(b="",v=a.split(b),y=v.length-1);k<=y&&!(k==0&&y==0);){if(nt=Math.floor((k+y)/2),nt==p)break;p=nt;f(l,v.slice(0,p+1).join(b)+o.ellipsis);i(e,o)?y=p:(g=p,k=p)}return g==-1||v.length==1&&v[0].length==0?(w=t.parent(),t.remove(),d=c&&c.closest(w).length?c.length:0,w.contents().length>d?l=r(w.contents().eq(-1-d),u):(l=r(w,u,!0),d||w.remove()),l&&(a=s(h(l),o),f(l,a),d&&c&&n(l).parent().append(c))):(a=s(v.slice(0,g+1).join(b),o),f(l,a)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function s(t,i){while(n.inArray(t.slice(-1),i.lastCharacter.remove)>-1)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function u(n){return{width:n.innerWidth(),height:n.innerHeight()}}function f(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function h(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function c(n){do n=n.previousSibling;while(n&&n.nodeType!==1&&n.nodeType!==3);return n}function r(t,i,u){var e=t&&t[0],f;if(e){if(!u){if(e.nodeType===3)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=c(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=c(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?typeof t=="string"?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;i<f;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}function b(n,t){return n?(t=typeof t=="string"?"dotdotdot: "+t:["dotdotdot:",t],typeof console!="undefined"&&typeof window.console.log!="undefined",!1):!1}var e,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r;if(this.length==0)return t&&t.debug===!1||b(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");r.css("white-space")==="nowrap"&&r.css("white-space","normal");r.bind_events=function(){return r.bind("update.dot",function(t,u){t.preventDefault();t.stopPropagation();f.maxHeight=typeof f.height=="number"?f.height:w(r);f.maxHeight+=f.tolerance;typeof u!="undefined"&&((typeof u=="string"||u instanceof HTMLElement)&&(u=n("<div />").append(u).contents()),u instanceof n&&(c=u));h=r.wrapInner('<div class="dotdotdot" />').children();h.empty().append(c.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0,"font-size":n(this).css("font-size")});var e=!1,l=!1;return s.afterElement&&(e=s.afterElement.clone(!0),e.show(),s.afterElement.remove()),i(h,f)&&(l=f.wrap=="children"?v(h,f,e):o(h,r,h,f,e)),h.replaceWith(h.contents()),h=null,n.isFunction(f.callback)&&f.callback.call(r[0],l,c),s.isTruncated=l,l}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],c),c}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().empty().append(c).attr("style",r.data("dotdotdot-style")||"").data("dotdotdot",!1)}),r};r.unbind_events=function(){return r.unbind(".dot"),r};r.watch=function(){if(r.unwatch(),f.watch=="window"){var t=n(window),i=t.width(),e=t.height();t.bind("resize.dot"+s.dotId,function(){i==t.width()&&e==t.height()&&f.windowResizeFix||(i=t.width(),e=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},10))})}else a=u(r),l=setInterval(function(){var n=u(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=u(r))},100);return r};r.unwatch=function(){return n(window).unbind("resize.dot"+s.dotId),l&&clearInterval(l),r};var c=r.contents(),f=n.extend(!0,{},n.fn.dotdotdot.defaults,t),s={},a={},l=null,h=null;return f.lastCharacter.remove instanceof Array||(f.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),f.lastCharacter.noEllipsis instanceof Array||(f.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),s.afterElement=p(f.after,r),s.isTruncated=!1,s.dotId=e++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),f.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0,debug:!1},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},e=1,l=n.fn.html,n.fn.html=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),-(e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f))+i)},easeOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u)==1?i+r:(f||(f=u*.3),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin((t*u-o)*2*Math.PI/f)+r+i)},easeInOutElastic:function(n,t,i,r,u){var o=1.70158,f=0,e=r;return t==0?i:(t/=u/2)==2?i+r:(f||(f=u*.3*1.5),e<Math.abs(r)?(e=r,o=f/4):o=f/(2*Math.PI)*Math.asin(r/e),t<1)?-.5*e*Math.pow(2,10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)+i:e*Math.pow(2,-10*(t-=1))*Math.sin((t*u-o)*2*Math.PI/f)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n,t,i){function e(n){return n}function o(n){return s(decodeURIComponent(n.replace(f," ")))}function s(n){return n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),n}function u(n){return r.json?JSON.parse(n):n}var f=/\+/g,r=n.cookie=function(f,s,h){var v,l,c,w;if(s!==i)return h=n.extend({},r.defaults,h),s===null&&(h.expires=-1),typeof h.expires=="number"&&(v=h.expires,l=h.expires=new Date,l.setDate(l.getDate()+v)),s=r.json?JSON.stringify(s):String(s),t.cookie=[encodeURIComponent(f),"=",r.raw?s:encodeURIComponent(s),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("");var y=r.raw?e:o,p=t.cookie.split("; "),a=f?null:{};for(c=0,w=p.length;c<w;c++){var b=p[c].split("="),k=y(b.shift()),d=y(b.join("="));if(f&&f===k){a=u(d);break}f||(a[k]=u(d))}return a};r.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==null?(n.cookie(t,null,i),!0):!1}}(jQuery,document);!function(n,t){typeof define=="function"?define(t):typeof module!="undefined"&&module.exports?module.exports.browser=t():this[n]=t()}("bowser",function(){function k(){return c?{name:"Internet Explorer",msie:i,version:n.match(/(msie |rv:)(\d+(\.\d+)?)/i)[2]}:y?{name:"Opera",opera:i,version:n.match(u)?n.match(u)[1]:n.match(/opr\/(\d+(\.\d+)?)/i)[1]}:e?{name:"Chrome",webkit:i,chrome:i,version:n.match(/(?:chrome|crios)\/(\d+(\.\d+)?)/i)[1]}:o?{name:"PhantomJS",webkit:i,phantom:i,version:n.match(/phantomjs\/(\d+(\.\d+)+)/i)[1]}:a?{name:"TouchPad",webkit:i,touchpad:i,version:n.match(/touchpad\/(\d+(\.\d+)?)/i)[1]}:f||s?(r={name:f?"iPhone":"iPad",webkit:i,mobile:i,ios:i,iphone:f,ipad:s},u.test(n)&&(r.version=n.match(u)[1]),r):v?{name:"Android",webkit:i,android:i,mobile:i,version:(n.match(u)||n.match(h))[1]}:l?{name:"Safari",webkit:i,safari:i,version:n.match(u)[1]}:w?(r={name:"Gecko",gecko:i,mozilla:i,version:n.match(h)[1]},p&&(r.name="Firefox",r.firefox=i),r):b?{name:"SeaMonkey",seamonkey:i,version:n.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]}:{}}var n=navigator.userAgent,i=!0,c=/(msie|trident)/i.test(n),e=/chrome|crios/i.test(n),o=/phantom/i.test(n),l=/safari/i.test(n)&&!e&&!o,f=/iphone/i.test(n),s=/ipad/i.test(n),a=/touchpad/i.test(n),v=/android/i.test(n),y=/opera/i.test(n)||/opr/i.test(n),p=/firefox/i.test(n),w=/gecko\//i.test(n),b=/seamonkey\//i.test(n),u=/version\/(\d+(\.\d+)?)/i,h=/firefox\/(\d+(\.\d+)?)/i,r,t=k();return t.msie&&t.version>=8||t.chrome&&t.version>=10||t.firefox&&t.version>=4||t.safari&&t.version>=5||t.opera&&t.version>=10?t.a=i:t.msie&&t.version<8||t.chrome&&t.version<10||t.firefox&&t.version<4||t.safari&&t.version<5||t.opera&&t.version<10?t.c=i:t.x=i,t}),function(){var y=this,lt=y._,e={},r=Array.prototype,nt=Object.prototype,at=Function.prototype,p=r.push,t=r.slice,o=r.concat,f=nt.toString,vt=nt.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,s=r.indexOf,st=r.lastIndexOf,yt=Array.isArray,pt=Object.keys,w=at.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this._wrapped=t},i,b,k,h,c,d,l,a,u,ht,ct,v;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=n),exports._=n):y._=n;n.VERSION="1.5.2";i=n.each=n.forEach=function(t,i,r){var o,u,f;if(t!=null)if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;u<f;u++)if(i.call(r,t[u],u,t)===e)return}else for(o=n.keys(t),u=0,f=o.length;u<f;u++)if(i.call(r,t[o[u]],o[u],t)===e)return};n.map=n.collect=function(n,t,r){var u=[];return n==null?u:it&&n.map===it?n.map(t,r):(i(n,function(n,i,f){u.push(t.call(r,n,i,f))}),u)};b="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(t,r,u,f){var e=arguments.length>2;if(t==null&&(t=[]),rt&&t.reduce===rt)return f&&(r=n.bind(r,f)),e?t.reduce(r,u):t.reduce(r);if(i(t,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(b);return u};n.reduceRight=n.foldr=function(t,r,u,f){var o=arguments.length>2,e,s;if(t==null&&(t=[]),ut&&t.reduceRight===ut)return f&&(r=n.bind(r,f)),o?t.reduceRight(r,u):t.reduceRight(r);if(e=t.length,e!==+e&&(s=n.keys(t),e=s.length),i(t,function(n,i,h){i=s?s[--e]:--e;o?u=r.call(f,u,t[i],i,h):(u=t[i],o=!0)}),!o)throw new TypeError(b);return u};n.find=n.detect=function(n,t,i){var r;return k(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r};n.filter=n.select=function(n,t,r){var u=[];return n==null?u:ft&&n.filter===ft?n.filter(t,r):(i(n,function(n,i,f){t.call(r,n,i,f)&&u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(t,r,u){r||(r=n.identity);var f=!0;return t==null?f:et&&t.every===et?t.every(r,u):(i(t,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return e}),!!f)};k=n.some=n.any=function(t,r,u){r||(r=n.identity);var f=!1;return t==null?f:ot&&t.some===ot?t.some(r,u):(i(t,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return e}),!!f)};n.contains=n.include=function(n,t){return n==null?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:k(n,function(n){return n===t})};n.invoke=function(i,r){var u=t.call(arguments,2),f=n.isFunction(r);return n.map(i,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,function(n){return n[i]})};n.where=function(t,i,r){return n.isEmpty(i)?r?void 0:[]:n[r?"find":"filter"](t,function(n){for(var t in i)if(i[t]!==n[t])return!1;return!0})};n.findWhere=function(t,i){return n.where(t,i,!0)};n.max=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);if(!r&&n.isEmpty(t))return-Infinity;var f={computed:-Infinity,value:-Infinity};return i(t,function(n,t,i){var e=r?r.call(u,n,t,i):n;e>f.computed&&(f={value:n,computed:e})}),f.value};n.min=function(t,r,u){if(!r&&n.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);if(!r&&n.isEmpty(t))return Infinity;var f={computed:Infinity,value:Infinity};return i(t,function(n,t,i){var e=r?r.call(u,n,t,i):n;e<f.computed&&(f={value:n,computed:e})}),f.value};n.shuffle=function(t){var u,f=0,r=[];return i(t,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return arguments.length<2||r?t[n.random(t.length-1)]:n.shuffle(t).slice(0,Math.max(0,i))};h=function(t){return n.isFunction(t)?t:function(n){return n[t]}};n.sortBy=function(t,i,r){var u=h(i);return n.pluck(n.map(t,function(n,t,i){return{value:n,index:t,criteria:u.call(r,n,t,i)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(i<r||r===void 0)return-1}return n.index-t.index}),"value")};c=function(t){return function(r,u,f){var e={},o=u==null?n.identity:h(u);return i(r,function(n,i){var u=o.call(f,n,i,r);t(e,u,n)}),e}};n.groupBy=c(function(t,i,r){(n.has(t,i)?t[i]:t[i]=[]).push(r)});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(t,i,r,u){var e;r=r==null?n.identity:h(r);for(var s=r.call(u,i),f=0,o=t.length;f<o;)e=f+o>>>1,r.call(u,t[e])<s?f=e+1:o=e;return f};n.toArray=function(i){return i?n.isArray(i)?t.call(i):i.length===+i.length?n.map(i,n.identity):n.values(i):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,i,r){if(n!=null)return i==null||r?n[0]:t.call(n,0,i)};n.initial=function(n,i,r){return t.call(n,0,n.length-(i==null||r?1:i))};n.last=function(n,i,r){if(n!=null)return i==null||r?n[n.length-1]:t.call(n,Math.max(n.length-i,0))};n.rest=n.tail=n.drop=function(n,i,r){return t.call(n,i==null||r?1:i)};n.compact=function(t){return n.filter(t,n.identity)};d=function(t,r,u){return r&&n.every(t,n.isArray)?o.apply(u,t):(i(t,function(t){n.isArray(t)||n.isArguments(t)?r?p.apply(u,t):d(t,r,u):u.push(t)}),u)};n.flatten=function(n,t){return d(n,t,[])};n.without=function(i){return n.difference(i,t.call(arguments,1))};n.uniq=n.unique=function(t,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(t,u,f):t,o=[],e=[];return i(s,function(i,u){(r?u&&e[e.length-1]===i:n.contains(e,i))||(e.push(i),o.push(t[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(i){var r=t.call(arguments,1);return n.filter(n.uniq(i),function(t){return n.every(r,function(i){return n.indexOf(i,t)>=0})})};n.difference=function(i){var u=o.apply(r,t.call(arguments,1));return n.filter(i,function(t){return!n.contains(u,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;t<i;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i<u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(t==null)return-1;var u=0,f=t.length;if(r)if(typeof r=="number")u=r<0?Math.max(0,f+r):r;else return u=n.sortedIndex(t,i),t[u]===i?u:-1;if(s&&t.indexOf===s)return t.indexOf(i,r);for(;u<f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(n==null)return-1;if(u=i!=null,st&&n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);u<r;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(i,r){var u,f;if(w&&i.bind===w)return w.apply(i,t.call(arguments,1));if(!n.isFunction(i))throw new TypeError;return u=t.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=i.prototype,e=new l,l.prototype=null,n=i.apply(e,u.concat(t.call(arguments))),Object(n)===n)?n:e:i.apply(r,u.concat(t.call(arguments)))}};n.partial=function(n){var i=t.call(arguments,1);return function(){return n.apply(this,i.concat(t.call(arguments)))}};n.bindAll=function(r){var u=t.call(arguments,1);if(u.length===0)throw new Error("bindAll must be passed function names");return i(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,i){var r=t.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},i)};n.defer=function(i){return n.delay.apply(n,[i,1].concat(t.call(arguments,1)))};n.throttle=function(n,t,i){var f,e,o,r=null,u=0,s;return i||(i={}),s=function(){u=i.leading===!1?0:new Date;r=null;o=n.apply(f,e)},function(){var h=new Date,c;return u||i.leading!==!1||(u=h),c=t-(h-u),f=this,e=arguments,c<=0?(clearTimeout(r),r=null,u=h,o=n.apply(f,e)):r||i.trailing===!1||(r=setTimeout(s,c)),o}};n.debounce=function(n,t,i){var r,u,f,o,e;return function(){f=this;u=arguments;o=new Date;var s=function(){var h=new Date-o;h<t?r=setTimeout(s,t-h):(r=null,i||(e=n.apply(f,u)))},h=i&&!r;return r||(r=setTimeout(s,t)),h&&(e=n.apply(f,u)),e}};n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(n,t){return function(){var i=[n];return p.apply(i,arguments),t.apply(this,i)}};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i>=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.keys=pt||function(t){var i,r;if(t!==Object(t))throw new TypeError("Invalid object");i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i<u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i<f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n};n.pick=function(n){var u={},f=o.apply(r,t.call(arguments,1));return i(f,function(t){t in n&&(u[t]=n[t])}),u};n.omit=function(i){var f={},e=o.apply(r,t.call(arguments,1));for(var u in i)n.contains(e,u)||(f[u]=i[u]);return f};n.defaults=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};a=function(t,i,r,u){var l,v,h,c,e,o,s;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!=f.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:t==0?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if(typeof t!="object"||typeof i!="object")return!1;for(v=r.length;v--;)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(c)&&c instanceof c))return!1;if(r.push(t),u.push(i),e=0,o=!0,l=="[object Array]"){if(e=t.length,o=e==i.length,o)while(e--)if(!(o=a(t[e],i[e],r,u)))break}else{for(s in t)if(n.has(t,s)&&(e++,!(o=n.has(i,s)&&a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!e--)break;o=!e}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&&n.nodeType===1)};n.isArray=yt||function(n){return f.call(n)=="[object Array]"};n.isObject=function(n){return n===Object(n)};i(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return f.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!!(t&&n.has(t,"callee"))});typeof/./!="function"&&(n.isFunction=function(n){return typeof n=="function"});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!=+t};n.isBoolean=function(n){return n===!0||n===!1||f.call(n)=="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return vt.call(n,t)};n.noConflict=function(){return y._=lt,this};n.identity=function(n){return n};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;r<n;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return t==null&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};u.unescape=n.invert(u.escape);ht={escape:new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return n==null?"":(""+n).replace(ht[t],function(n){return u[t][n]})}});n.result=function(t,i){if(t==null)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(t){i(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this._wrapped];return p.apply(t,arguments),v.call(this,r.apply(n,t))}})};ct=0;n.uniqueId=function(n){var t=++ct+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var g=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||g).source,(r.interpolate||g).source,(r.evaluate||g).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","_",u)}catch(s){s.source=u;throw s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};v=function(t){return this._chain?n(t).chain():t};n.mixin(n);i(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),(t=="shift"||t=="splice")&&n.length===0&&delete n[0],v.call(this,n)}});i(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this._wrapped,arguments))}});n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this);!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Ractive=t()}(this,function(){"use strict";function ur(n){var t;if(n&&"boolean"!=typeof n)return"undefined"!=typeof window&&document&&n?n.nodeType?n:"string"==typeof n&&(t=document.getElementById(n),!t&&document.querySelector&&(t=document.querySelector(n)),t&&t.nodeType)?t:n[0]&&n[0].nodeType?n[0]:null:null}function vf(n){return n&&"unknown"!=typeof n.parentNode&&n.parentNode&&n.parentNode.removeChild(n),n}function yf(n){return null!=n&&n.toString?n:""}function ui(n){for(var i,r,u=arguments.length,f=Array(u>1?u-1:0),t=1;u>t;t++)f[t-1]=arguments[t];for(;r=f.shift();)for(i in r)kt.call(r,i)&&(n[i]=r[i]);return n}function tn(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];return r.forEach(function(t){for(var i in t)!t.hasOwnProperty(i)||i in n||(n[i]=t[i])}),n}function u(n){return"[object Array]"===ge.call(n)}function pf(n){return ypt.test(ge.call(n))}function ct(n,t){return null===n&&null===t?!0:"object"==typeof n||"object"==typeof t?!1:n===t}function lt(n){return!isNaN(parseFloat(n))&&isFinite(n)}function d(n){return n&&"[object Object]"===ge.call(n)}function wf(n,t){return n.replace(/%s/g,function(){return t.shift()})}function ot(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];throw n=wf(n,r),new Error(n);}function hc(){wt.DEBUG&&de.apply(null,arguments)}function rn(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];n=wf(n,r);cu(n,r)}function cc(n){for(var i=arguments.length,r=Array(i>1?i-1:0),t=1;i>t;t++)r[t-1]=arguments[t];n=wf(n,r);cv[n]||(cv[n]=!0,cu(n,r))}function e(){wt.DEBUG&&rn.apply(null,arguments)}function y(){wt.DEBUG&&cc.apply(null,arguments)}function fr(n,t,i){var r=bf(n,t,i);return r?r[n][i]:null}function bf(n,t,i){for(;t;){if(i in t[n])return t;if(t.isolated)return null;t=t.parent}}function kf(n){return function(){return n}}function un(n){var i,r,e,f,t,u;for(i=n.split("."),(r=vu[i.length])||(r=fn(i.length)),t=[],e=function(n,t){return n?"*":i[t]},f=r.length;f--;)u=r[f].map(e).join("."),t.hasOwnProperty(u)||(t.push(u),t[u]=!0);return t}function fn(n){var o,t,u,s,i,r,h,f,e="";if(!vu[n]){for(u=[];e.length<n;)e+=1;for(o=parseInt(e,2),s=function(n){return"1"===n},i=0;o>=i;i+=1){for(t=i.toString(2);t.length<n;)t="0"+t;for(f=[],h=t.length,r=0;h>r;r++)f.push(s(t[r]));u[i]=f}vu[n]=u}return vu[n]}function lc(n,t,i,r){var u=n[t];if(!u||!u.equalsOrStartsWith(r)&&u.equalsOrStartsWith(i))return n[t]=u?u.replace(i,r):r,!0}function en(n){var t=n.slice(2);return"i"===n[1]&&lt(t)?+t:t}function t(n){return null==n?n:(no.hasOwnProperty(n)||(no[n]=new av(n)),no[n])}function fu(n,i){function o(t,i){var e,r,f;return i.isRoot?f=[].concat(Object.keys(n.viewmodel.data),Object.keys(n.viewmodel.mappings),Object.keys(n.viewmodel.computations)):(e=n.viewmodel.wrapped[i.str],r=e?e.get():n.viewmodel.get(i),f=r?Object.keys(r):null),f&&f.forEach(function(n){"_ractive"===n&&u(r)||t.push(i.join(n))}),t}for(var f,e=i.str.split("."),r=[dt];f=e.shift();)"*"===f?r=r.reduce(o,[]):r[0]===dt?r[0]=t(f):r=r.map(on(f));return r}function on(n){return function(t){return t.join(n)}}function g(n){return n?n.replace(dpt,".$1"):""}function sn(n,i,r){if("string"!=typeof i||!lt(r))throw new Error("Bad arguments");var u=void 0,f=void 0;if(/\*/.test(i))return f={},fu(n,t(g(i))).forEach(function(t){var i=n.viewmodel.get(t);if(!lt(i))throw new Error(yv);f[t.str]=i+r}),n.set(f);if(u=n.get(i),!lt(u))throw new Error(yv);return n.set(i,+u+r)}function hn(n,t){return vv(this,n,void 0===t?1:+t)}function ac(n){this.event=n;this.method="on"+n;this.deprecate=wv[n]}function vc(n,t){var i=n.indexOf(t);-1===i&&n.push(t)}function yc(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]==t)return!0;return!1}function df(n,t){var i;if(!u(n)||!u(t)||n.length!==t.length)return!1;for(i=n.length;i--;)if(n[i]!==t[i])return!1;return!0}function pc(n){return"string"==typeof n?[n]:void 0===n?[]:n}function at(n){return n[n.length-1]}function c(n,t){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}function gf(n){for(var i=[],t=n.length;t--;)i[t]=n[t];return i}function wc(n){setTimeout(n,0)}function cn(n,t){return function(){for(var i;i=n.shift();)i(t)}}function bc(n,t,i,r){var f,u,o,s;if(t===n)throw new TypeError("A promise's fulfillment handler cannot return the same promise");if(t instanceof w)t.then(i,r);else if(t&&("object"==typeof t||"function"==typeof t)){try{f=t.then}catch(e){return void r(e)}if("function"==typeof f){o=function(t){u||(u=!0,bc(n,t,i,r))};s=function(n){u||(u=!0,r(n))};try{f.call(t,o,s)}catch(e){if(!u)return r(e),void(u=!0)}}else i(t)}else i(t)}function ln(n,i,r){var u;return i=g(i),"~/"===i.substr(0,2)?(u=t(i.substring(2)),kc(n,u.firstKey,r)):"."===i[0]?(u=an(kv(r),i),u&&kc(n,u.firstKey,r)):u=ne(n,t(i),r),u}function an(n,i){var r;if(void 0!=n&&"string"!=typeof n&&(n=n.str),"."===i)return t(n);if(r=n?n.split("."):[],"../"===i.substr(0,3)){for(;"../"===i.substr(0,3);){if(!r.length)throw new Error('Could not resolve reference - too many "../" prefixes');r.pop();i=i.substring(3)}return r.push(i),t(r.join("."))}return t(n?n+i.replace(/^\.\//,"."):i.replace(/^\.\/?/,""))}function ne(n,i,r,u){var o,f,e,s,h;if(i.isRoot)return i;for(f=i.firstKey;r;)if(o=r.context,r=r.parent,o&&(s=!0,e=n.viewmodel.get(o),e&&("object"==typeof e||"function"==typeof e)&&f in e))return o.join(i.str);return dc(n.viewmodel,f)?i:n.parent&&!n.isolated&&(s=!0,r=n.component.parentFragment,f=t(f),h=ne(n.parent,f,r,!0))?(n.viewmodel.map(f,{origin:n.parent.viewmodel,keypath:h}),i):u||s?void 0:(n.viewmodel.set(i,void 0),i)}function kc(n,i){var r;!n.parent||n.isolated||dc(n.viewmodel,i)||(i=t(i),(r=ne(n.parent,i,n.component.parentFragment,!0))&&n.viewmodel.map(i,{origin:n.parent.viewmodel,keypath:r}))}function dc(n,t){return""===t||t in n.data||t in n.computations||t in n.mappings}function gc(n){n.teardown()}function nt(n){n.unbind()}function vn(n){n.unrender()}function nl(n){n.cancel()}function yn(n){n.detach()}function pn(n){n.detachNodes()}function eu(n){!n.ready||n.outros.length||n.outroChildren||(n.outrosComplete||(n.parent?n.parent.decrementOutros(n):n.detachNodes(),n.outrosComplete=!0),n.intros.length||n.totalChildren||("function"==typeof n.callback&&n.callback(),n.parent&&n.parent.decrementTotal()))}function tl(){for(var n,t,r;i.ractives.length;)t=i.ractives.pop(),r=t.viewmodel.applyChanges(),r&&rwt.fire(t,r);for(wn(),n=0;n<i.views.length;n+=1)i.views[n].update();for(i.views.length=0,n=0;n<i.tasks.length;n+=1)i.tasks[n]();return i.tasks.length=0,i.ractives.length?tl():void 0}function wn(){for(var n,r,i,t=ci.length;t--;)n=ci[t],n.keypath?ci.splice(t,1):(r=yu(n.root,n.ref,n.parentFragment))&&((i||(i=[])).push({item:n,keypath:r}),ci.splice(t,1));i&&i.forEach(bn)}function bn(n){n.item.resolve(n.keypath)}function kn(n,t,i){var r,a,e,w,o,v,y,u,f,b,h,p,c,l;if(r=new gt(function(n){return a=n}),"object"==typeof n){i=t||{};v=i.easing;y=i.duration;o=[];u=i.step;f=i.complete;(u||f)&&(h={},i.step=null,i.complete=null,b=function(n){return function(t,i){h[n]=i}});for(e in n)n.hasOwnProperty(e)&&((u||f)&&(p=b(e),i={easing:v,duration:y},u&&(i.step=p)),i.complete=f?p:s,o.push(te(this,e,n[e],i)));return l={easing:v,duration:y},u&&(l.step=function(n){return u(n,h)}),f&&r.then(function(n){return f(n,h)}),l.complete=a,c=te(this,null,null,l),o.push(c),r.stop=function(){for(var n;n=o.pop();)n.stop();c&&c.stop()},r}return i=i||{},i.complete&&r.then(i.complete),i.complete=a,w=te(this,n,t,i),r.stop=function(){return w.stop()},r}function te(n,i,r,u){var f,s,e,o;return i&&(i=t(g(i))),null!==i&&(o=n.viewmodel.get(i)),fo.abort(i,n),ct(o,r)?(u.complete&&u.complete(u.to),ewt):(u.easing&&(f="function"==typeof u.easing?u.easing:n.easing[u.easing],"function"!=typeof f&&(f=null)),s=void 0===u.duration?400:u.duration,e=new uwt({keypath:i,from:o,to:r,root:n,duration:s,easing:f,interpolator:u.interpolator,step:u.step,complete:u.complete}),fo.add(e),n._animations.push(e),e)}function dn(){return this.detached?this.detached:(this.el&&c(this.el.__ractive_instances__,this),this.detached=this.fragment.detach(),swt.fire(this),this.detached)}function gn(n){return this.el?this.fragment.find(n):null}function ntt(n,t){var i;return i=this._isComponentQuery?!this.selector||n.name===this.selector:n.node?rt(n.node,this.selector):null,i?(this.push(n.node||n.instance),t||this._makeDirty(),!0):void 0}function il(n){var t;return(t=n.parentFragment)?t.owner:n.component&&(t=n.component.parentFragment)?t.owner:void 0}function rl(n){for(var i=[n],t=il(n);t;)i.push(t),t=il(t);return i}function ttt(n,t,i,r){var u=[];return si(u,{selector:{value:t},live:{value:i},_isComponentQuery:{value:r},_test:{value:cwt}}),i?(si(u,{cancel:{value:lwt},_root:{value:n},_sort:{value:vwt},_makeDirty:{value:ywt},_remove:{value:pwt},_dirty:{value:!1,writable:!0}}),u):u}function itt(n,t){var r,i;return this.el?(t=t||{},r=this._liveQueries,(i=r[n])?t&&t.live?i:i.slice():(i=iy(this,n,!!t.live,!1),i.live&&(r.push(n),r["_"+n]=i),this.fragment.findAll(n,i),i)):[]}function rtt(n,t){var r,i;return t=t||{},r=this._liveComponentQueries,(i=r[n])?t&&t.live?i:i.slice():(i=iy(this,n,!!t.live,!0),i.live&&(r.push(n),r["_"+n]=i),this.fragment.findAllComponents(n,i),i)}function utt(n){return this.fragment.findComponent(n)}function ftt(n){return this.container?this.container.component&&this.container.component.name===n?this.container:this.container.findContainer(n):null}function ett(n){return this.parent?this.parent.component&&this.parent.component.name===n?this.parent:this.parent.findParent(n):null}function ott(n,i){var r=void 0===arguments[2]?{}:arguments[2],u;i&&(r.event?r.event.name=i:r.event={name:i,_noArg:!0},u=t(i).wildcardMatches(),ul(n,u,r.event,r.args,!0))}function ul(n,i,r,u){var e,f,h=void 0===arguments[4]?!1:arguments[4],o=!0,s;for(pu.enqueue(n,r),f=i.length;f>=0;f--)e=n._subs[i[f]],e&&(o=stt(n,e,r,u)&&o);(pu.dequeue(n),n.parent&&o)&&(h&&n.component&&(s=n.component.name+"."+i[i.length-1],i=t(s).wildcardMatches(),r&&(r.component=n)),ul(n.parent,i,r,u))}function stt(n,t,i,r){var u=null,e=!1,f,o;for(i&&!i._noArg&&(r=[i].concat(r)),t=t.slice(),f=0,o=t.length;o>f;f+=1)t[f].apply(n,r)===!1&&(e=!0);return i&&!i._noArg&&e&&(u=i.original)&&(u.preventDefault&&u.preventDefault(),u.stopPropagation&&u.stopPropagation()),!e}function htt(n){var t={args:Array.prototype.slice.call(arguments,1)};lr(this,n,t)}function ctt(n){var i;return n=t(g(n)),i=this.viewmodel.get(n,rbt),void 0===i&&this.parent&&!this.isolated&&yu(this,n.str,this.component.parentFragment)&&(i=this.viewmodel.get(n)),i}function ltt(n,t){if(!this.fragment.rendered)throw new Error("The API has changed - you must call `ractive.render(target[, anchor])` to render your Ractive instance. Once rendered you can use `ractive.insert()`.");if(n=ur(n),t=ur(t)||null,!n)throw new Error("You must specify a valid target to insert into");n.insertBefore(this.detach(),t);this.el=n;(n.__ractive_instances__||(n.__ractive_instances__=[])).push(this);this.detached=null;fl(this)}function fl(n){fbt.fire(n);n.findAllComponents("*").forEach(function(n){fl(n.instance)})}function att(i,r,f){var e,o;return i=t(g(i)),e=this.viewmodel.get(i),u(e)&&u(r)?(o=n.start(this,!0),this.viewmodel.merge(i,e,r,f),n.end(),o):this.set(i,r,f&&f.complete)}function vtt(n,t){var r,i;return r=fu(n,t),i={},r.forEach(function(t){i[t.str]=n.get(t.str)}),i}function ytt(n,i,r,u){var f,e,s,o;return i=t(g(i)),u=u||cbt,i.isPattern?(f=new hbt(n,i,r,u),n.viewmodel.patternObservers.push(f),e=!0):f=new obt(n,i,r,u),f.init(u.init),n.viewmodel.register(i,f,e?"patternObservers":"observers"),f.ready=!0,o={cancel:function(){var t;s||(e?(t=n.viewmodel.patternObservers.indexOf(f),n.viewmodel.patternObservers.splice(t,1),n.viewmodel.unregister(i,f,"patternObservers")):n.viewmodel.unregister(i,f,"observers"),s=!0)}},n._observers.push(o),o}function ptt(n,t,i){var r,u,f,e;if(d(n)){i=t;u=n;r=[];for(n in u)u.hasOwnProperty(n)&&(t=u[n],r.push(this.observe(n,t,i)));return{cancel:function(){for(;r.length;)r.pop().cancel()}}}if("function"==typeof n)return i=t,t=n,n="",co(this,n,t,i);if(f=n.split(" "),1===f.length)return co(this,n,t,i);for(r=[],e=f.length;e--;)n=f[e],n&&r.push(co(this,n,t,i));return{cancel:function(){for(;r.length;)r.pop().cancel()}}}function wtt(n,t,i){var r=this.observe(n,function(){t.apply(this,arguments);r.cancel()},{init:!1,defer:i&&i.defer});return r}function btt(n,t){var i,r=this;if(n)i=n.split(" ").map(oy).filter(sy),i.forEach(function(n){var i,u;(i=r._subs[n])&&(t?(u=i.indexOf(t),-1!==u&&i.splice(u,1)):r._subs[n]=[])});else for(n in this._subs)delete this._subs[n];return this}function ktt(n,t){var r,i,f,u=this;if("object"==typeof n){r=[];for(i in n)n.hasOwnProperty(i)&&r.push(this.on(i,n[i]));return{cancel:function(){for(var n;n=r.pop();)n.cancel()}}}return f=n.split(" ").map(oy).filter(sy),f.forEach(function(n){(u._subs[n]||(u._subs[n]=[])).push(t)}),{cancel:function(){return u.off(n,t)}}}function dtt(n,t){var i=this.on(n,function(){t.apply(this,arguments);i.cancel()});return i}function gtt(n,t,i){var u,e,o,h,s,r,f=[];if(u=nit(n,t,i),!u)return null;for(e=n.length,s=u.length-2-u[1],o=Math.min(e,u[0]),h=o+u[1],r=0;o>r;r+=1)f.push(r);for(;h>r;r+=1)f.push(-1);for(;e>r;r+=1)f.push(r+s);return f.touchedFrom=0!==s?u[0]:n.length,f}function nit(n,t,i){switch(t){case"splice":for(void 0!==i[0]&&i[0]<0&&(i[0]=n.length+Math.max(i[0],-n.length));i.length<2;)i.push(0);return i[1]=Math.min(i[1],n.length-i[0]),i;case"sort":case"reverse":return null;case"pop":return n.length?[n.length-1,1]:[0,0];case"push":return[n.length,0].concat(i);case"shift":return[0,n.length?1:0];case"unshift":return[0,0].concat(i)}}function tit(t,i){var u,f,e,o=this,r;if(e=this.transitionsEnabled,this.noIntro&&(this.transitionsEnabled=!1),u=n.start(this,!0),n.scheduleTask(function(){return nkt.fire(o)},!0),this.fragment.rendered)throw new Error("You cannot call ractive.render() on an already rendered instance! Call ractive.unrender() first");return(t=ur(t)||this.el,i=ur(i)||this.anchor,this.el=t,this.anchor=i,!this.append&&t)&&(r=t.__ractive_instances__,r&&r.length&&iit(r),t.innerHTML=""),this.cssId&&ly.apply(),t&&((f=t.__ractive_instances__)?f.push(this):t.__ractive_instances__=[this],i?t.insertBefore(this.fragment.render(),i):t.appendChild(this.fragment.render())),n.end(),this.transitionsEnabled=e,u.then(function(){return tkt.fire(o)})}function iit(n){n.splice(0,n.length).forEach(gc)}function rit(n,t){for(var i=n.slice(),r=t.length;r--;)~i.indexOf(t[r])||i.push(t[r]);return i}function uit(n,t){var u,i,r;return i='[data-ractive-css~="{'+t+'}"]',r=function(n){for(var u,e,o,f,s,t,h=[],r=[];u=ekt.exec(n);)r.push({str:u[0],base:u[1],modifiers:u[2]});for(o=r.map(eit),t=r.length;t--;)s=o.slice(),e=r[t],s[t]=e.base+i+e.modifiers||"",f=o.slice(),f[t]=i+" "+f[t],h.push(s.join(" "),f.join(" "));return h.join(", ")},u=vy.test(n)?n.replace(vy,i):n.replace(fkt,"").replace(ukt,function(n,t){var i,u;return okt.test(t)?n:(i=t.split(",").map(fit),u=i.map(r).join(", ")+" ",n.replace(t,u))})}function fit(n){return n.trim?n.trim():n.replace(/^\s+/,"").replace(/\s+$/,"")}function eit(n){return n.str}function oit(n){n&&n.constructor!==Object&&("function"==typeof n||("object"!=typeof n?ot("data option must be an object or a function, `"+n+"` is not valid"):e("If supplied, options.data should be a plain JavaScript object - using a non-POJO as the root object may work, but is discouraged")))}function el(n,t){oit(t);var i="function"==typeof n,r="function"==typeof t;return t||i||(t={}),i||r?function(){var u=r?ol(t,this):t,f=i?ol(n,this):n;return sl(u,f)}:sl(t,n)}function ol(n,t){var i=n.call(t);if(i)return"object"!=typeof i&&ot("Data function must return an object"),i.constructor!==Object&&y("Data function returned something other than a plain JavaScript object. This might work, but is strongly discouraged"),i}function sl(n,t){if(n&&t){for(var i in t)i in n||(n[i]=t[i]);return n}return n||t}function sit(n){var t,i,r;return n.matchString("=")?(t=n.pos,n.allowWhitespace(),(i=n.matchPattern(hp))?n.matchPattern(dkt)?(r=n.matchPattern(hp))?(n.allowWhitespace(),n.matchString("=")?[i,r]:(n.pos=t,null)):(n.pos=t,null):null:(n.pos=t,null)):null}function hit(n){var t;return(t=n.matchPattern(gkt))?{t:up,v:t}:null}function cit(n){var i,t;if(n.interpolate[n.inside]===!1)return null;for(t=0;t<n.tags.length;t+=1)if(i=lit(n,n.tags[t]))return i}function lit(n,t){var r,i,e,u,f;if(r=n.pos,n.matchString("\\"+t.open)){if(0===r||"\\"!==n.str[r-1])return t.open}else if(!n.matchString(t.open))return null;if(i=kkt(n))return n.matchString(t.close)?(t.open=i[0],t.close=i[1],n.sortMustacheTags(),ndt):null;for((n.allowWhitespace(),n.matchString("/"))&&(n.pos-=1,f=n.pos,cp(n)?n.pos=f:(n.pos=f-t.close.length,n.error("Attempted to close a section that wasn't open"))),u=0;u<t.readers.length;u+=1)if(e=t.readers[u],i=e(n,t))return t.isStatic&&(i.s=!0),n.includeLinePositions&&(i.p=n.getLinePos(r)),i;return n.pos=r,null}function ait(n){var t;return(t=n.matchPattern(tdt))?{t:po,v:t}:null}function vit(n){var t=n.remaining();return"true"===t.substr(0,4)?(n.pos+=4,{t:bo,v:"true"}):"false"===t.substr(0,5)?(n.pos+=5,{t:bo,v:"false"}):null}function yit(n){var t;return(t=is(n))?fdt.test(t.v)?t.v:'"'+t.v.replace(/"/g,'\\"')+'"':(t=ap(n))?t.v:(t=n.matchPattern(pp))?t:void 0}function pit(n){var t,i,r;return t=n.pos,n.allowWhitespace(),i=wp(n),null===i?(n.pos=t,null):(n.allowWhitespace(),n.matchString(":")?(n.allowWhitespace(),r=h(n),null===r?(n.pos=t,null):{t:ep,k:i,v:r}):(n.pos=t,null))}function hl(n){var u,t,i,r;return u=n.pos,i=edt(n),null===i?null:(t=[i],n.matchString(",")?(r=hl(n),r?t.concat(r):(n.pos=u,null)):t)}function cl(n){function u(n){t.push(n)}var f,t,i,r;return f=n.pos,n.allowWhitespace(),i=h(n),null===i?null:(t=[i],n.allowWhitespace(),n.matchString(",")&&(r=cl(n),null===r&&n.error(bi),r.forEach(u)),t)}function wit(n){return ap(n)||idt(n)||is(n)||sdt(n)||hdt(n)||cp(n)}function bit(n){var u,i,t,f,r,e;return u=n.pos,t=n.matchPattern(/^@(?:keypath|index|key)/),t||(i=n.matchPattern(ldt)||"",t=!i&&n.relaxedNames&&n.matchPattern(vdt)||n.matchPattern(adt),t||"."!==i||(i="",t=".")),t?i||n.relaxedNames||!vp.test(t)?!i&&ts.test(t)?(f=ts.exec(t)[0],n.pos=u+f.length,{t:fp,v:f}):(r=(i||"")+g(t),n.matchString("(")&&(e=r.lastIndexOf("."),-1!==e?(r=r.substr(0,e),n.pos=u+r.length):n.pos-=1),{t:ii,n:r.replace(/^this\./,"./").replace(/^this$/,".")}):(n.pos=u,null):null}function kit(n){var i,t;return i=n.pos,n.matchString("(")?(n.allowWhitespace(),t=h(n),t||n.error(bi),n.allowWhitespace(),n.matchString(")")||n.error(lp),{t:nf,x:t}):null}function dit(n){var r,i,t;if(r=n.pos,n.allowWhitespace(),n.matchString(".")){if(n.allowWhitespace(),i=n.matchPattern(pp))return{t:du,n:i};n.error("Expected a property name")}return n.matchString("[")?(n.allowWhitespace(),t=h(n),t||n.error(bi),n.allowWhitespace(),n.matchString("]")||n.error("Expected ']'"),{t:du,x:t}):null}function git(n){var u,t,i,r;return(t=kdt(n))?(u=n.pos,n.allowWhitespace(),n.matchString("?")?(n.allowWhitespace(),i=h(n),i||n.error(bi),n.allowWhitespace(),n.matchString(":")||n.error('Expected ":"'),n.allowWhitespace(),r=h(n),r||n.error(bi),{t:op,o:[t,i,r]}):(n.pos=u,t)):null}function nrt(n){return ddt(n)}function trt(n){function t(n){switch(n.t){case bo:case fp:case po:case up:return n.v;case wo:return JSON.stringify(String(n.v));case ip:return"["+(n.m?n.m.map(t).join(","):"")+"]";case rp:return"{"+(n.m?n.m.map(t).join(","):"")+"}";case ep:return n.k+":"+t(n.v);case gu:return("typeof"===n.s?"typeof ":n.s)+t(n.o);case go:return t(n.o[0])+("in"===n.s.substr(0,2)?" "+n.s+" ":n.s)+t(n.o[1]);case sp:return t(n.x)+"("+(n.o?n.o.map(t).join(","):"")+")";case nf:return"("+t(n.x)+")";case ko:return t(n.x)+t(n.r);case du:return n.n?"."+n.n:"["+t(n.x)+"]";case op:return t(n.o[0])+"?"+t(n.o[1])+":"+t(n.o[2]);case ii:return"_"+i.indexOf(n.n);default:throw new Error("Expected legal JavaScript");}}var i;return fi(n,i=[]),{r:i,s:t(n)}}function fi(n,t){var r,i;if(n.t===ii&&-1===t.indexOf(n.n)&&t.unshift(n.n),i=n.o||n.m)if(d(i))fi(i,t);else for(r=i.length;r--;)fi(i[r],t);n.x&&fi(n.x,t);n.r&&fi(n.r,t);n.v&&fi(n.v,t)}function irt(n,t){var i;if(n){for(;n.t===nf&&n.x;)n=n.x;return n.t===ii?t.r=n.n:n.t===po&&gdt.test(n.v)?t.r=n.v:(i=rrt(n))?t.rx=i:t.x=pr(n),t}}function rrt(n){for(var t,i=[];n.t===ko&&n.r.t===du;)t=n.r,i.unshift(t.x?t.x.t===ii?t.x:pr(t.x):t.n),n=n.x;return n.t!==ii?null:{r:n.n,m:i}}function urt(n,t){var i,r=h(n);return r?(n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),i={t:wu},pt(r,i),i):null}function frt(n,t){var r,i;return n.matchString("&")?(n.allowWhitespace(),(r=h(n))?(n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),i={t:wu},pt(r,i),i):null):null}function ert(n,t){var f,e,r,u,i;return f=n.pos,n.matchString(">")?(n.allowWhitespace(),e=n.pos,n.relaxedNames=!0,r=h(n),n.relaxedNames=!1,n.allowWhitespace(),u=h(n),n.allowWhitespace(),r?(i={t:bu},pt(r,i),n.allowWhitespace(),u&&(i={t:ft,n:pi,f:[i]},pt(u,i)),n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),i):null):null}function ort(n,t){var i;return n.matchString("!")?(i=n.remaining().indexOf(t.close),-1!==i?(n.pos+=i+t.close.length,{t:vi}):void 0):null}function srt(n,t){var u,r,i;if(u=n.pos,r=h(n),!r)return null;for(i=0;i<t.length;i+=1)if(n.remaining().substr(0,t[i].length)===t[i])return r;return n.pos=u,kp(n)}function hrt(n,t){var r,i,u,f;r=n.pos;try{i=rgt(n,[t.close])}catch(e){f=e}if(!i){if("!"===n.str.charAt(r))return n.pos=r,null;if(f)throw f;}if(!n.matchString(t.close)&&(n.error("Expected closing delimiter '"+t.close+"' after reference"),!i)){if("!"===n.nextChar())return null;n.error("Expected expression or legal reference")}return u={t:vr},pt(i,u),u}function crt(n,t){var u,i,r;return n.matchPattern(fgt)?(u=n.pos,i=n.matchPattern(/^[a-zA-Z_$][a-zA-Z_$0-9\-]*/),n.allowWhitespace(),n.matchString(t.close)||n.error("expected legal partial name"),r={t:ku},i&&(r.n=i),r):null}function lrt(n,t){var r,u,i,f;return r=n.pos,n.matchString(t.open)?(n.allowWhitespace(),n.matchString("/")?(n.allowWhitespace(),u=n.remaining(),i=u.indexOf(t.close),-1!==i?(f={t:vkt,r:u.substr(0,i).split(" ")[0]},n.pos+=i,n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),f):(n.pos=r,null)):(n.pos=r,null)):null}function art(n,t){var i=n.pos;return n.matchString(t.open)?n.matchPattern(ogt)?(n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),{t:wkt}):(n.pos=i,null):null}function vrt(n,t){var i,r=n.pos;return n.matchString(t.open)?n.matchPattern(hgt)?(i=h(n),n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'"),{t:bkt,x:i}):(n.pos=r,null):null}function yrt(n,t){var y,f,i,r,e,c,l,u,o,p,a,s,v;if(y=n.pos,n.matchString("^"))i={t:ft,f:[],n:yt};else{if(!n.matchString("#"))return null;i={t:ft,f:[]};n.matchString("partial")&&(n.pos=y-n.standardDelimiters[0].length,n.error("Partial definitions can only be at the top level of the template, or immediately inside components"));(l=n.matchPattern(agt))&&(s=l,i.n=lw[l])}(n.allowWhitespace(),f=h(n),f||n.error("Expected expression"),a=n.matchPattern(cgt))&&(v=void 0,i.i=(v=n.matchPattern(lgt))?a+","+v:a);n.allowWhitespace();n.matchString(t.close)||n.error("Expected closing delimiter '"+t.close+"'");n.sectionDepth+=1;e=i.f;o=[];do if(r=us(n,t))s&&r.r!==s&&n.error("Expected "+t.open+"/"+s+t.close),n.sectionDepth-=1,p=!0;else if(r=sgt(n,t))i.n===yt&&n.error("{{else}} not allowed in {{#unless}}"),c&&n.error("illegal {{elseif...}} after {{else}}"),u||(u=ll(f,i.n)),u.f.push({t:ft,n:yi,x:pr(ie(o.concat(r.x))),f:e=[]}),o.push(al(r.x));else if(r=egt(n,t))i.n===yt&&n.error("{{else}} not allowed in {{#unless}}"),c&&n.error("there can only be one {{else}} block, at the end of a section"),c=!0,u?u.f.push({t:ft,n:yi,x:pr(ie(o)),f:e=[]}):(u=ll(f,i.n),e=u.f);else{if(r=n.read(wr),!r)break;e.push(r)}while(!p);return u&&(i.n===pi&&(i.n=ns),i.l=u),pt(f,i),i.f.length||delete i.f,i}function ll(n,t){var i;return t===pi?(i={t:ft,n:yi,f:[]},pt(al(n),i)):(i={t:ft,n:yt,f:[]},pt(n,i)),i}function al(n){return n.t===gu&&"!"===n.s?n.o:{t:gu,s:"!",o:re(n)}}function ie(n){return 1===n.length?n[0]:{t:go,s:"&&",o:[re(n[0]),re(ie(n.slice(1)))]}}function re(n){return{t:nf,x:n}}function prt(n){var u,f,i,t,r;return u=n.pos,n.matchString(ygt)?(i=n.remaining(),t=i.indexOf(pgt),-1===t&&n.error("Illegal HTML - expected closing comment sequence ('-->')"),f=i.substr(0,t),n.pos+=t+3,r={t:vi,c:f},n.includeLinePositions&&(r.p=n.getLinePos(u)),r):null}function ue(n){return n.replace(fw,function(n,t){var i;return i="#"!==t[0]?rs[t]:"x"===t[1]?parseInt(t.substring(2),16):parseInt(t.substring(1),10),i?String.fromCharCode(wrt(i)):n})}function wrt(n){return n?10===n?32:128>n?n:159>=n?uw[n-128]:55296>n?n:57343>=n?65533:65535>=n?n:65533:65533}function fe(n){return n.replace(sw,"&amp;").replace(ew,"&lt;").replace(ow,"&gt;")}function ei(n){return"string"==typeof n}function brt(n){return n.t===vi||n.t===dy}function vl(n){return(n.t===ft||n.t===akt)&&n.f}function bt(n,t,i,r,f){var o,e,l,a,v,h,c,s,y;for(wgt(n),o=n.length;o--;)e=n[o],e.exclude?n.splice(o,1):t&&e.t===vi&&n.splice(o,1);for(dw(n,r?gw:null,f?nb:null),o=n.length;o--;){if((e=n[o],e.f)&&(y=e.t===yr&&kgt.test(e.e),v=i||y,!i&&y&&dw(e.f,dgt,ggt),v||(l=n[o-1],a=n[o+1],(!l||"string"==typeof l&&nb.test(l))&&(h=!0),(!a||"string"==typeof a&&gw.test(a))&&(c=!0)),bt(e.f,t,v,h,c)),e.l&&(bt(e.l.f,t,i,h,c),n.splice(o+1,0,e.l),delete e.l),e.a)for(s in e.a)e.a.hasOwnProperty(s)&&"string"!=typeof e.a[s]&&bt(e.a[s],t,i,h,c);if(e.m&&bt(e.m,t,i,h,c),e.v)for(s in e.v)e.v.hasOwnProperty(s)&&(u(e.v[s].n)&&bt(e.v[s].n,t,i,h,c),u(e.v[s].d)&&bt(e.v[s].d,t,i,h,c))}for(o=n.length;o--;)"string"==typeof n[o]&&("string"==typeof n[o+1]&&(n[o]=n[o]+n[o+1],n.splice(o+1,1)),i||(n[o]=n[o].replace(bgt," ")),""===n[o]&&n.splice(o,1))}function krt(n){var i,t;return i=n.pos,n.matchString("<\/")?(t=n.matchPattern(tnt))?n.inside&&t!==n.inside?(n.pos=i,null):{t:pkt,e:t}:(n.pos-=2,void n.error("Illegal closing tag")):null}function drt(n){var t,r,i;return n.allowWhitespace(),(r=n.matchPattern(rnt))?(t={name:r},i=grt(n),null!=i&&(t.value=i),t):null}function grt(n){var i,r,u,t;return i=n.pos,/[=\/>\s]/.test(n.nextChar())||n.error("Expected `=`, `/`, `>` or whitespace"),n.allowWhitespace(),n.matchString("=")?(n.allowWhitespace(),r=n.pos,u=n.sectionDepth,t=pl(n,"'")||pl(n,'"')||nut(n),null===t&&n.error("Expected valid attribute value"),n.sectionDepth!==u&&(n.pos=r,n.error("An attribute value must contain as many opening section tags as closing section tags")),t.length?1===t.length&&"string"==typeof t[0]?ue(t[0]):t:""):(n.pos=i,null)}function yl(n){var i,t,r,u,f;return i=n.pos,(t=n.matchPattern(unt))?(r=t,u=n.tags.map(function(n){return n.open}),-1!==(f=os(r,u))&&(t=t.substr(0,f),n.pos=i+t.length),t):null}function nut(n){var t,i;for(n.inAttribute=!0,t=[],i=wi(n)||yl(n);null!==i;)t.push(i),i=wi(n)||yl(n);return t.length?(n.inAttribute=!1,t):null}function pl(n,t){var u,r,i;if(u=n.pos,!n.matchString(t))return null;for(n.inAttribute=t,r=[],i=wi(n)||wl(n,t);null!==i;)r.push(i),i=wi(n)||wl(n,t);return n.matchString(t)?(n.inAttribute=!1,r):(n.pos=u,null)}function wl(n,t){var f,i,r,u;return f=n.pos,r=n.remaining(),u=n.tags.map(function(n){return n.open}),u.push(t),i=os(r,u),-1===i&&n.error("Quoted attribute value must have a closing quote"),i?(n.pos+=i,r.substr(0,i)):null}function tut(n){var i,r,t;return n.allowWhitespace(),(i=wp(n))?(t={key:i},n.allowWhitespace(),n.matchString(":")?(n.allowWhitespace(),(r=n.read())?(t.value=r.v,t):null):null):null}function iut(n,t){var i,h,c,l,f,e,r,u,o,s;if("string"==typeof n){if(h=fnt.exec(n))return s=n.lastIndexOf(")"),ent.test(n)||t.error("Invalid input after method call expression '"+n.slice(s+1)+"'"),i={m:h[1]},l="["+n.slice(i.m.length+1,s)+"]",c=new tb(l),i.a=pr(c.result[0]),i;if(-1===n.indexOf(":"))return n.trim();n=[n]}if(i={},r=[],u=[],n){for(;n.length;)if(f=n.shift(),"string"==typeof f){if(e=f.indexOf(":"),-1!==e){e&&r.push(f.substr(0,e));f.length>e+1&&(u[0]=f.substring(e+1));break}r.push(f)}else r.push(f);u=u.concat(n)}return r.length?u.length||"string"!=typeof r?(i={n:1===r.length&&"string"==typeof r[0]?r[0]:r},1===u.length&&"string"==typeof u[0]?(o=rf("["+u[0]+"]"),i.a=o?o.value:u[0].trim()):i.d=u):i=r:i="",i}function rut(n){var v,t,y,p,w,i,b,k,s,h,d,r,e,c,g,nt,u,l,o,a;if((v=n.pos,n.inside||n.inAttribute)||!n.matchString("<")||"/"===n.nextChar())return null;if(t={},n.includeLinePositions&&(t.p=n.getLinePos(v)),n.matchString("!"))return t.t=tp,n.matchPattern(/^doctype/i)||n.error("Expected DOCTYPE declaration"),t.a=n.matchPattern(/^(.+?)>/),t;if(t.t=yr,t.e=n.matchPattern(ont),!t.e)return null;for(snt.test(n.nextChar())||n.error("Illegal tag name"),w=function(i,r){var u=r.n||r;lnt.test(u)&&(n.pos-=u.length,n.error("Cannot use reserved event names (change, reset, teardown, update, construct, config, init, render, unrender, detach, insert)"));t.v[i]=r},n.allowWhitespace();i=wi(n)||int(n);)i.name?(y=ant[i.name])?t[y]=ib(i.value,n):(p=cnt.exec(i.name))?(t.v||(t.v={}),b=ib(i.value,n),w(p[1],b)):n.sanitizeEventAttributes&&hnt.test(i.name)||(t.a||(t.a={}),t.a[i.name]=i.value||(""===i.value?"":0)):(t.m||(t.m=[]),t.m.push(i)),n.allowWhitespace();if(n.allowWhitespace(),n.matchString("/")&&(k=!0),!n.matchString(">"))return null;if(u=t.e.toLowerCase(),l=n.preserveWhitespace,!k&&!tf.test(t.e)){n.elementStack.push(u);("script"===u||"style"===u)&&(n.inside=u);s=[];h=f(null);do(c=n.pos,g=n.remaining(),uut(u,g))?(nt=nnt(n))?(e=!0,o=nt.e.toLowerCase(),o===u||(n.pos=c,~n.elementStack.indexOf(o))||(a="Unexpected closing tag",tf.test(o)&&(a+=" (<"+o+"> is a void element - it cannot contain children)"),n.error(a))):(r=us(n,{open:n.standardDelimiters[0],close:n.standardDelimiters[1]}))?(e=!0,n.pos=c):(r=n.read(ob))?(h[r.n]&&(n.pos=c,n.error("Duplicate partial definition")),es(r.f,n.stripComments,l,!l,!l),h[r.n]=r.f,d=!0):(r=n.read(wr))?s.push(r):e=!0:e=!0;while(!e);s.length&&(t.f=s);d&&(t.p=h);n.elementStack.pop()}return n.inside=null,n.sanitizeElements&&-1!==n.sanitizeElements.indexOf(u)?vnt:t}function uut(n,t){var i,r;return i=/^<([a-zA-Z][a-zA-Z0-9]*)/.exec(t),r=rb[n],i&&r?!~r.indexOf(i[1].toLowerCase()):!0}function fut(n){var t,i,r,u;return i=n.remaining(),u=n.inside?"<\/"+n.inside:"<",n.inside&&!n.interpolate[n.inside]?t=i.indexOf(u):(r=n.tags.map(function(n){return n.open}),r=r.concat(n.tags.map(function(n){return"\\"+n.open})),n.inAttribute===!0?r.push('"',"'","=","<",">","`"):r.push(n.inAttribute?n.inAttribute:u),t=os(i,r)),t?(-1===t&&(t=i.length),n.pos+=t,n.inside?i.substr(0,t):ue(i.substr(0,t))):null}function eut(n){return n.replace(wnt,"\\$&")}function out(n){var o=n.pos,i=n.standardDelimiters[0],r=n.standardDelimiters[1],u=void 0,f=void 0,t,e;if(!n.matchPattern(knt)||!n.matchString(i)||(t=n.matchPattern(dnt),y("Inline partial comments are deprecated.\nUse this...\n  {{#partial "+t+"}} ... {{/partial}}\n\n...instead of this:\n  <!-- {{>"+t+"}} --> ... <!-- {{/"+t+"}} -->'"),!n.matchString(r)||!n.matchPattern(gnt)))return n.pos=o,null;u=[];e=new RegExp("^<!--\\s*"+ub(i)+"\\s*\\/\\s*"+t+"\\s*"+ub(r)+"\\s*-->");do n.matchPattern(e)?f=!0:(ss=n.read(wr),ss||n.error("expected closing comment ('<!-- "+i+"/"+t+r+" -->')"),u.push(ss));while(!f);return{t:np,f:u,n:t}}function sut(n){var f,r,u,i,e,t;if(f=n.pos,t=n.standardDelimiters,!n.matchString(t[0]))return null;if(!n.matchPattern(tti))return n.pos=f,null;r=n.matchPattern(/^[a-zA-Z_$][a-zA-Z_$0-9\-]*/);r||n.error("expected legal partial name");n.matchString(t[1])||n.error("Expected closing delimiter '"+t[1]+"'");u=[];do(i=us(n,{open:n.standardDelimiters[0],close:n.standardDelimiters[1]}))?(!1&&n.error("Expected "+t[0]+"/partial"+t[1]),e=!0):(i=n.read(wr),i||n.error("Expected "+t[0]+"/partial"+t[1]),u.push(i));while(!e);return{t:np,n:r,f:u}}function hut(n){for(var u,e=[],i=f(null),o=!1,r=n.preserveWhitespace;n.pos<n.str.length;){var h=n.pos,s=void 0,t=void 0;(t=n.read(ob))?(i[t.n]&&(n.pos=h,n.error("Duplicated partial definition")),es(t.f,n.stripComments,r,!r,!r),i[t.n]=t.f,o=!0):(s=n.read(wr))?e.push(s):n.error("Unexpected template content")}return u={v:sr,t:e},o&&(u.p=i),u}function cut(n,t){return new eb(n,t||{}).result}function lut(n){var t=f(cb);return t.parse=function(t,i){return bl(t,i||n)},t}function bl(n,t){if(!uf)throw new Error("Missing Ractive.parse - cannot parse template. Either preparse or use the version that includes the parser");return uf(n,t||this.options)}function aut(n,t){var i;if(!tt){if(t&&t.noThrow)return;throw new Error("Cannot retrieve template #"+n+" as Ractive is not running in a browser.");}if(kl(n)&&(n=n.substring(1)),!(i=document.getElementById(n))){if(t&&t.noThrow)return;throw new Error("Could not find template element with id #"+n);}if("SCRIPT"!==i.tagName.toUpperCase()){if(t&&t.noThrow)return;throw new Error("Template element with id #"+n+", must be a <script> element");}return"textContent"in i?i.textContent:i.innerHTML}function kl(n){return n&&"#"===n[0]}function vut(n){return!("string"==typeof n)}function yut(n){return n.defaults&&(n=n.defaults),fti.reduce(function(t,i){return t[i]=n[i],t},{})}function put(n){var t,i=n._config.template;if(i&&i.fn)return t=dl(n,i.fn),t!==i.result?(i.result=t,t=ou(t,n)):void 0}function dl(n,t){var i=wut(v.getParseOptions(n));return t.call(n,i)}function wut(n){var t=f(v);return t.parse=function(t,i){return v.parse(t,i||n)},t}function ou(n,t){if("string"==typeof n)"#"===n[0]&&(n=v.fromId(n)),n=uf(n,v.getParseOptions(t));else{if(void 0==n)throw new Error("The template cannot be "+n+".");if("number"!=typeof n.v)throw new Error("The template parser was passed a non-string template, but the template doesn't have a version.  Make sure you're passing in the template you think you are.");if(n.v!==sr)throw new Error("Mismatched template version (expected "+sr+", got "+n.v+") Please ensure you are using the latest version of Ractive.js in your build process as well as in your app");}return n}function gl(n,t,i){if(t)for(var r in t)(i||!n.hasOwnProperty(r))&&(n[r]=t[r])}function but(n,t,i){if(!/_super/.test(i))return i;var r=function(){var n,u=kut(r._parent,t),f="_super"in this,e=this._super;return this._super=u,n=i.apply(this,arguments),f?this._super=e:delete this._super,n};return r._parent=n,r._method=i,r}function kut(n,t){var i,r;return t in n?(i=n[t],r="function"==typeof i?i:function(){return i}):r=s,r}function na(n,t,i){return"options."+n+" has been deprecated in favour of options."+t+"."+(i?" You cannot specify both options, please use options."+t+".":"")}function er(n,t,i){if(t in n){if(i in n)throw new Error(na(t,i,!0));e(na(t,i));n[i]=n[t]}}function dut(n){er(n,"beforeInit","onconstruct");er(n,"init","onrender");er(n,"complete","oncomplete");er(n,"eventDefinitions","events");u(n.adaptors)&&er(n,"adaptors","adapt")}function ta(n,t,i,r){var u,f;sti(r);for(u in r)vb.hasOwnProperty(u)&&(f=r[u],"el"!==u&&"function"==typeof f?e(""+u+" is a Ractive option that does not expect a function and will be ignored","init"===n?i:null):i[u]=f);br.forEach(function(u){u[n](t,i,r)});ay[n](t,i,r);hs[n](t,i,r);yy[n](t,i,r);gut(t.prototype,i,r)}function gut(n,t,i){var r,u;for(r in i)!ab[r]&&i.hasOwnProperty(r)&&(u=i[r],"function"==typeof u&&(u=oti(n,r,u)),t[r]=u)}function ia(n){var t={};return n.forEach(function(n){return t[n]=!0}),t}function nft(){this.dirtyValue=this.dirtyArgs=!0;this.bound&&"function"==typeof this.owner.bubble&&this.owner.bubble()}function tft(){var n;return 1===this.items.length?this.items[0].detach():(n=document.createDocumentFragment(),this.items.forEach(function(t){var i=t.detach();i&&n.appendChild(i)}),n)}function ift(n){var t,r,i,u;if(this.items){for(r=this.items.length,t=0;r>t;t+=1)if(i=this.items[t],i.find&&(u=i.find(n)))return u;return null}}function rft(n,t){var i,u,r;if(this.items)for(u=this.items.length,i=0;u>i;i+=1)r=this.items[i],r.findAll&&r.findAll(n,t);return t}function uft(n,t){var i,u,r;if(this.items)for(u=this.items.length,i=0;u>i;i+=1)r=this.items[i],r.findAllComponents&&r.findAllComponents(n,t);return t}function fft(n){var r,t,i,u;if(this.items){for(r=this.items.length,t=0;r>t;t+=1)if(i=this.items[t],i.findComponent&&(u=i.findComponent(n)))return u;return null}}function eft(n){var t=n.index;return this.items[t+1]?this.items[t+1].firstNode():this.owner===this.root?this.owner.component?this.owner.component.findNextNode():null:this.owner.findNextNode(this)}function oft(){return this.items&&this.items[0]?this.items[0].firstNode():null}function ra(n,t,i,r){return r=r||0,n.map(function(n){var u,f,e;return n.text?n.text:n.fragments?n.fragments.map(function(n){return ra(n.items,t,i,r)}).join(""):(u=i+"-"+r++,e=n.keypath&&(f=n.root.viewmodel.wrapped[n.keypath.str])?f.value:n.getValue(),t[u]=e,"${"+u+"}")}).join("")}function sft(){var t,i,n,r;return this.dirtyArgs&&(i=yb(this.items,t={},this.root._guid),n=rf("["+i+"]",t),r=n?n.value:[this.toString()],this.argsList=r,this.dirtyArgs=!1),this.argsList}function hft(){var n=this;do if(n.pElement)return n.pElement.node;while(n=n.parent);return this.root.detached||this.root.el}function cft(){var t,i,n,r;return this.dirtyValue&&(i=yb(this.items,t={},this.root._guid),n=rf(i,t),r=n?n.value:this.toString(),this.value=r,this.dirtyValue=!1),this.value}function lft(){this.registered&&this.root.viewmodel.unregister(this.keypath,this);this.resolver&&this.resolver.unbind()}function aft(){return this.value}function ee(n,t){for(var r,i=0;i<t.prop.length;i++)if(void 0!==(r=n[t.prop[i]]))return r}function ua(n,t){var u,f,i,o,e,r={},s=!1;for(t||(r.refs=u={});n;){if((e=n.owner)&&(f=e.indexRefs)){if(t&&(i=e.getIndexRef(t)))return r.ref={fragment:n,ref:i},r;if(!t)for(o in f)i=f[o],u[i.n]||(s=!0,u[i.n]={fragment:n,ref:i})}!n.parent&&n.owner&&n.owner.component&&n.owner.component.parentFragment&&!n.owner.component.instance.isolated?(r.componentBoundary=!0,n=n.owner.component.parentFragment):n=n.parent}if(s)return r}function vft(n,t,i){var r;return"@"===t.charAt(0)?new db(n,t,i):(r=tr(n.parentFragment,t))?new gb(n,r,i):new bb(n,t,i)}function yft(n,t){var i,r;if(ps[n])return ps[n];for(r=[];t--;)r[t]="_"+t;return i=new Function(r.join(","),"return("+n+")"),ps[n]=i,i}function pft(n){return n.call()}function wft(n,t){return n.replace(/_([0-9]+)/g,function(n,i){var r,u;return+i>=t.length?"_"+i:(r=t[i],void 0===r?"undefined":r.isSpecial?(u=r.value,"number"==typeof u?u:'"'+u+'"'):r.str)})}function bft(n){return t("${"+n.replace(/[\.\[\]]/g,"-").replace(/\*/,"#MUL#")+"}")}function kft(n){return void 0!==n&&"@"!==n[0]}function dft(n,t){var u,i,r;if(n.__ractive_nowrap)return n;if(i="__ractive_"+t._guid,u=n[i])return u;if(/this/.test(n.toString())){ut(n,i,{value:iii.call(n,t),configurable:!0});for(r in n)n.hasOwnProperty(r)&&(n[i][r]=n[r]);return t._boundFunctions.push({fn:n,prop:i}),n[i]}return ut(n,"__ractive_nowrap",{value:n}),n.__ractive_nowrap}function gft(n){return n.value}function net(n){return void 0!=n}function tet(n){n.forceResolution()}function iet(n,t){function e(t){n.resolve(t)}function r(t){var i=n.keypath;t!=i&&(n.resolve(t),void 0!==i&&n.fragments&&n.fragments.forEach(function(n){n.rebind(i,t)}))}var u,i,f;i=t.parentFragment;f=t.template;n.root=i.root;n.parentFragment=i;n.pElement=i.pElement;n.template=t.template;n.index=t.index||0;n.isStatic=t.template.s;n.type=t.template.t;n.registered=!1;(u=f.r)&&(n.resolver=kr(n,u,e));t.template.x&&(n.resolver=new of(n,i,t.template.x,r));t.template.rx&&(n.resolver=new ik(n,t.template.rx,r));n.template.n!==yt||n.hasOwnProperty("value")||n.setValue(void 0)}function ret(n){var t,i,r;return n&&n.isSpecial?(this.keypath=n,void this.setValue(n.value)):(this.registered&&(this.root.viewmodel.unregister(this.keypath,this),this.registered=!1,t=!0),this.keypath=n,void 0!=n&&(i=this.root.viewmodel.get(n),this.root.viewmodel.register(n,this),this.registered=!0),this.setValue(i),void(t&&(r=this.twowayBinding)&&r.rebound()))}function uet(n,t){this.fragments&&this.fragments.forEach(function(i){return i.rebind(n,t)});this.resolver&&this.resolver.rebind(n,t)}function fet(){this.parentFragment.bubble()}function eet(){var n;return 1===this.fragments.length?this.fragments[0].detach():(n=document.createDocumentFragment(),this.fragments.forEach(function(t){n.appendChild(t.detach())}),n)}function oet(n){for(var r,i=this.fragments.length,t=0;i>t;t+=1)if(r=this.fragments[t].find(n))return r;return null}function set(n,t){for(var r=this.fragments.length,i=0;r>i;i+=1)this.fragments[i].findAll(n,t)}function het(n,t){for(var r=this.fragments.length,i=0;r>i;i+=1)this.fragments[i].findAllComponents(n,t)}function cet(n){for(var r,i=this.fragments.length,t=0;i>t;t+=1)if(r=this.fragments[t].findComponent(n))return r;return null}function aet(n){return this.fragments[n.index+1]?this.fragments[n.index+1].firstNode():this.parentFragment.findNextNode(this)}function vet(){var t,n,i;if(t=this.fragments.length)for(n=0;t>n;n+=1)if(i=this.fragments[n].firstNode())return i;return this.parentFragment.findNextNode(this)}function yet(t){var s,u,i,f,e,h,o,r=this;if(!this.shuffling&&!this.unbound&&this.currentSubtype===ri){if(this.shuffling=!0,n.scheduleTask(function(){return r.shuffling=!1}),s=this.parentFragment,e=[],t.forEach(function(n,t){var i,h,f,o,s;return n===t?void(e[n]=r.fragments[t]):(i=r.fragments[t],void 0===u&&(u=t),-1===n?(r.fragmentsToUnrender.push(i),void i.unbind()):(h=n-t,f=r.keypath.join(t),o=r.keypath.join(n),i.index=n,(s=i.registeredIndexRefs)&&s.forEach(pet),i.rebind(f,o),void(e[n]=i)))}),f=this.root.viewmodel.get(this.keypath).length,void 0===u){if(this.length===f)return;u=this.length}for(this.length=this.fragments.length=f,this.rendered&&n.addView(this),h={template:this.template.f,root:this.root,owner:this},i=u;f>i;i+=1)o=e[i],o||this.fragmentsToCreate.push(i),this.fragments[i]=o}}function pet(n){n.rebind("","")}function wet(){var n=this;return this.docFrag=document.createDocumentFragment(),this.fragments.forEach(function(t){return n.docFrag.appendChild(t.render())}),this.renderedFragments=this.fragments.slice(),this.fragmentsToRender=[],this.rendered=!0,this.docFrag}function bet(t){var u,i,r=this;this.updating||(this.updating=!0,this.keypath&&(u=this.root.viewmodel.wrapped[this.keypath.str])&&(t=u.get()),this.fragmentsToCreate.length?(i={template:this.template.f||[],root:this.root,pElement:this.pElement,owner:this},this.fragmentsToCreate.forEach(function(n){var t;i.context=r.keypath.join(n);i.index=n;t=new o(i);r.fragmentsToRender.push(r.fragments[n]=t)}),this.fragmentsToCreate.length=0):ket(this,t)&&(this.bubble(),this.rendered&&n.addView(this)),this.value=t,this.updating=!1)}function or(n,t,i){if(t===ri&&n.indexRefs&&n.indexRefs[0]){var r=n.indexRefs[0];(i&&"i"===r.t||!i&&"k"===r.t)&&(i||(n.length=0,n.fragmentsToUnrender=n.fragments.slice(0),n.fragmentsToUnrender.forEach(function(n){return n.unbind()})));r.t=i?"k":"i"}n.currentSubtype=t}function ket(n,t){var i={template:n.template.f||[],root:n.root,pElement:n.parentFragment.pElement,owner:n};if(n.hasContext=!0,n.subtype)switch(n.subtype){case yi:return n.hasContext=!1,se(n,t,!1,i);case yt:return n.hasContext=!1,se(n,t,!0,i);case pi:return oe(n,i);case ns:return get(n,t,i);case ri:if(d(t))return or(n,n.subtype,!0),fa(n,t,i)}return n.ordered=!!pf(t),n.ordered?(or(n,ri,!1),det(n,t,i)):d(t)||"function"==typeof t?n.template.i?(or(n,ri,!0),fa(n,t,i)):(or(n,pi,!1),oe(n,i)):(or(n,yi,!1),n.hasContext=!1,se(n,t,!1,i))}function det(n,t,i){var u,r,f;if(r=t.length,r===n.length)return!1;if(r<n.length)n.fragmentsToUnrender=n.fragments.splice(r,n.length-r),n.fragmentsToUnrender.forEach(nt);else if(r>n.length)for(u=n.length;r>u;u+=1)i.context=n.keypath.join(u),i.index=u,f=new o(i),n.fragmentsToRender.push(n.fragments[u]=f);return n.length=r,!0}function fa(n,t,i){for(var f,r,s,h,e=n.hasKey||(n.hasKey={}),u=n.fragments.length;u--;)r=n.fragments[u],r.key in t||(s=!0,r.unbind(),n.fragmentsToUnrender.push(r),n.fragments.splice(u,1),e[r.key]=!1);for(u=n.fragments.length;u--;)r=n.fragments[u],r.index!==u&&(r.index=u,(h=r.registeredIndexRefs)&&h.forEach(tot));u=n.fragments.length;for(f in t)e[f]||(s=!0,i.context=n.keypath.join(f),i.key=f,i.index=u++,r=new o(i),n.fragmentsToRender.push(r),n.fragments.push(r),e[f]=!0);return n.length=n.fragments.length,s}function get(n,t,i){return t?oe(n,i):ea(n)}function oe(n,t){var i;if(!n.length)return(t.context=n.keypath,t.index=0,i=new o(t),n.fragmentsToRender.push(n.fragments[0]=i),n.length=1,!0)}function se(n,t,i,r){var e,f,u,s,h;if(f=pf(t)&&0===t.length,u=!1,!pf(t)&&d(t)){u=!0;for(h in t){u=!1;break}}return e=i?f||u||!t:t&&!f&&!u,e?n.length?n.length>1?(n.fragmentsToUnrender=n.fragments.splice(1),n.fragmentsToUnrender.forEach(nt),!0):void 0:(r.index=0,s=new o(r),n.fragmentsToRender.push(n.fragments[0]=s),n.length=1,!0):ea(n)}function ea(n){if(n.length)return(n.fragmentsToUnrender=n.fragments.splice(0,n.fragments.length).filter(not),n.fragmentsToUnrender.forEach(nt),n.length=n.fragmentsToRender.length=0,!0)}function not(n){return n.rendered}function tot(n){n.rebind("","")}function iot(n){var i,t,r;for(i="",t=0,r=this.length,t=0;r>t;t+=1)i+=this.fragments[t].toString(n);return i}function rot(){var n=this;this.fragments.forEach(nt);this.fragmentsToRender.forEach(function(t){return c(n.fragments,t)});this.fragmentsToRender=[];nr.call(this);this.length=0;this.unbound=!0}function uot(n){this.fragments.forEach(n?fot:eot);this.renderedFragments=[];this.rendered=!1}function fot(n){n.unrender(!0)}function eot(n){n.unrender(!1)}function oot(){for(var n,r,u,f,t,e,i=this.renderedFragments;n=this.fragmentsToUnrender.pop();)n.unrender(!0),i.splice(i.indexOf(n),1);for(;n=this.fragmentsToRender.shift();)n.render();for(this.rendered&&(f=this.parentFragment.getNode()),e=this.fragments.length,t=0;e>t;t+=1)n=this.fragments[t],r=i.indexOf(n,t),r!==t?(this.docFrag.appendChild(n.detach()),-1!==r&&i.splice(r,1),i.splice(t,0,n)):this.docFrag.childNodes.length&&(u=n.firstNode(),f.insertBefore(this.docFrag,u));this.rendered&&this.docFrag.childNodes.length&&(u=this.parentFragment.findNextNode(this),f.insertBefore(this.docFrag,u));this.renderedFragments=this.fragments.slice()}function sot(){var t,n;if(this.docFrag){for(t=this.nodes.length,n=0;t>n;n+=1)this.docFrag.appendChild(this.nodes[n]);return this.docFrag}}function hot(n){for(var t,u,r=this.nodes.length,i=0;r>i;i+=1)if(t=this.nodes[i],1===t.nodeType){if(rt(t,n))return t;if(u=t.querySelector(n))return u}return null}function cot(n,t){for(var i,f,o,u,e=this.nodes.length,r=0;e>r;r+=1)if(i=this.nodes[r],1===i.nodeType&&(rt(i,n)&&t.push(i),f=i.querySelectorAll(n)))for(o=f.length,u=0;o>u;u+=1)t.push(f[u])}function lot(){return this.rendered&&this.nodes[0]?this.nodes[0]:this.parentFragment.findNextNode(this)}function he(n){return sk[n]||(sk[n]=st(n))}function aot(n){var i,r,t;n&&"select"===n.name&&n.binding&&(i=gf(n.node.options).filter(vot),n.getAttribute("multiple")?t=i.map(function(n){return n.value}):(r=i[0])&&(t=r.value),void 0!==t&&n.binding.setValue(t),n.bubble())}function vot(n){return n.selected}function yot(){if(this.rendered)throw new Error("Attempted to render an item that was already rendered");return this.docFrag=document.createDocumentFragment(),this.nodes=hk(this.value,this.parentFragment.getNode(),this.docFrag),ck(this.pElement),this.rendered=!0,this.docFrag}function pot(t){var i;(i=this.root.viewmodel.wrapped[this.keypath.str])&&(t=i.get());t!==this.value&&(this.value=t,this.parentFragment.bubble(),this.rendered&&n.addView(this))}function wot(){return void 0!=this.value?ue(""+this.value):""}function bot(n){this.rendered&&n&&(this.nodes.forEach(vf),this.rendered=!1)}function kot(){var n,t;if(this.rendered){for(;this.nodes&&this.nodes.length;)n=this.nodes.pop(),n.parentNode.removeChild(n);t=this.parentFragment.getNode();this.nodes=hk(this.value,t,this.docFrag);t.insertBefore(this.docFrag,this.parentFragment.findNextNode(this));ck(this.pElement)}}function dot(){var t,n=this.node;if(n)return((t=n.parentNode)&&t.removeChild(n),n)}function got(){return null}function nst(){return this.node}function tst(n){if(this.attributes&&this.attributes[n])return this.attributes[n].value}function ist(){var t=this.useProperty||!this.rendered?this.fragment.getValue():this.fragment.toString();ct(t,this.value)||("id"===this.name&&this.value&&delete this.root.nodes[this.value],this.value=t,"value"===this.name&&this.node&&(this.node._ractive.value=t),this.rendered&&n.addView(this))}function rst(n){var t=n.fragment.items;if(1===t.length)return t[0].type===vr?t[0]:void 0}function ust(n){return this.type=ykt,this.element=n.element,this.root=n.root,rui(this,n.name),this.isBoolean=rw.test(this.name),n.value&&"string"!=typeof n.value?(this.parentFragment=this.element.parentFragment,this.fragment=new o({template:n.value,root:this.root,owner:this}),this.value=this.fragment.getValue(),this.interpolator=uui(this),this.isBindable=!!this.interpolator&&!this.interpolator.isStatic,void(this.ready=!0)):void(this.value=this.isBoolean?!0:n.value||"")}function fst(n,t){this.fragment&&this.fragment.rebind(n,t)}function est(n){var t;this.node=n;n.namespaceURI&&n.namespaceURI!==p.html||(t=sui[this.name]||this.name,void 0!==n[t]&&(this.propertyName=t),(this.isBoolean||this.isTwoway)&&(this.useProperty=!0),"value"===t&&(n._ractive.value=this.value));this.rendered=!0;this.update()}function ost(){var t=this,n=t.name,f=t.namespacePrefix,i=t.value,u=t.interpolator,r=t.fragment;if(("value"!==n||"select"!==this.element.name&&"textarea"!==this.element.name)&&("value"!==n||void 0===this.element.getAttribute("contenteditable"))){if("name"===n&&"input"===this.element.name&&u)return"name={{"+(u.keypath.str||u.ref)+"}}";if(this.isBoolean)return i?n:"";if(r){if(1===r.items.length&&null==r.items[0].value)return"";i=r.toString()}return f&&(n=f+":"+n),i?n+'="'+sst(i)+'"':n}}function sst(n){return n.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function hst(){this.fragment&&this.fragment.unbind();"id"===this.name&&delete this.root.nodes[this.value]}function cst(){var t,n,r,i,u=this.value;if(!this.locked)for(this.node._ractive.value=u,t=this.node.options,i=t.length;i--;)if(n=t[i],r=n._ractive?n._ractive.value:n.value,r==u){n.selected=!0;break}}function lst(){var i,r,n,f,t=this.value;for(u(t)||(t=[t]),i=this.node.options,r=i.length;r--;)n=i[r],f=n._ractive?n._ractive.value:n.value,n.selected=yc(t,f)}function ast(){var n=this,t=n.node,i=n.value;t.checked=i==t._ractive.value}function vst(){var f,t,r,u,i=this.node;if(f=i.checked,i.value=this.element.getAttribute("value"),i.checked=this.element.getAttribute("value")===this.element.getAttribute("name"),f&&!i.checked&&this.element.binding&&(r=this.element.binding.siblings,u=r.length)){for(;u--;){if(t=r[u],!t.element.node)return;if(t.element.node.checked)return n.addRactive(t.root),t.handleChange()}this.root.viewmodel.set(t.keypath,void 0)}}function yst(){var t,i,r=this,o=r.element,f=r.node,n=r.value,e=o.binding;if(t=o.getAttribute("value"),u(n)){for(i=n.length;i--;)if(t==n[i])return void(e.isChecked=f.checked=!0);e.isChecked=f.checked=!1}else e.isChecked=f.checked=n==t}function pst(){this.node.className=yf(this.value)}function wst(){var n=this,t=n.node,i=n.value;this.root.nodes[i]=t;t.id=i}function bst(){var t,n;t=this.node;n=this.value;void 0===n&&(n="");t.style.setAttribute("cssText",n)}function kst(){var n=this.value;void 0===n&&(n="");this.locked||(this.node.innerHTML=n)}function dst(){var t=this,i=t.node,n=t.value;i._ractive.value=n;this.locked||(i.value=void 0==n?"":n)}function gst(){this.locked||(this.node[this.propertyName]=this.value)}function nht(){var n=this,t=n.node,u=n.namespace,i=n.name,r=n.value,f=n.fragment;u?t.setAttributeNS(u,i,(f||r).toString()):this.isBoolean?r?t.setAttribute(i,""):t.removeAttribute(i):null==r?t.removeAttribute(i):t.setAttribute(i,(f||r).toString())}function tht(){var u,n,f=this,i=f.name,t=f.element,r=f.node;"id"===i?n=bui:"value"===i?"select"===t.name&&"value"===i?n=t.getAttribute("multiple")?aui:lui:"textarea"===t.name?n=bk:null!=t.getAttribute("contenteditable")?n=dui:"input"===t.name&&(u=t.getAttribute("type"),n="file"===u?s:"radio"===u&&t.binding&&"name"===t.binding.name?yui:bk):this.isTwoway&&"name"===i?"radio"===r.type?n=vui:"checkbox"===r.type&&(n=pui):"style"===i&&r.style.setAttribute?n=kui:"class"!==i||r.namespaceURI&&r.namespaceURI!==p.html?this.useProperty&&(n=gui):n=wui;n||(n=nfi);this.update=n;this.update()}function iht(n,t){var i=t?"svg":"div";return ds.innerHTML="<"+i+" "+n+"><\/"+i+">",gf(ds.childNodes[0].attributes)}function rht(n,t){for(var i=n.length;i--;)if(n[i].name===t.name)return!1;return!0}function uht(n){for(;n=n.parent;)if("form"===n.name)return n}function fht(){this._ractive.binding.handleChange()}function oa(){var n;r.call(this);n=this._ractive.root.viewmodel.get(this._ractive.binding.keypath);this.value=void 0==n?"":n}function eht(){var n=this._ractive.binding,t=this;n._timeout&&clearTimeout(n._timeout);n._timeout=setTimeout(function(){n.rendered&&r.call(t);n._timeout=void 0},n.element.lazy)}function oht(n,t,i){var r=n+t+i;return td[r]||(td[r]=[])}function sht(n){return n.isChecked}function hht(n){return n.element.getAttribute("value")}function cht(n){var r,t,u,f,o,i=n.attributes;return n.binding&&(n.binding.teardown(),n.binding=null),(n.getAttribute("contenteditable")||i.contenteditable&&vt(i.contenteditable))&&vt(i.value)?t=ffi:"input"===n.name?(r=n.getAttribute("type"),"radio"===r||"checkbox"===r?(u=vt(i.name),f=vt(i.checked),u&&f&&e("A radio input can have two-way binding on its name attribute, or its checked attribute - not both",{ractive:n.root}),u?t="radio"===r?hfi:lfi:f&&(t="radio"===r?ofi:vfi)):"file"===r&&vt(i.value)?t=kfi:vt(i.value)&&(t="number"===r||"range"===r?dfi:sf)):"select"===n.name&&vt(i.value)?t=n.getAttribute("multiple")?wfi:th:"textarea"===n.name&&vt(i.value)&&(t=sf),t&&(o=new t(n))&&o.keypath?o:void 0}function vt(n){return n&&n.isBindable}function lht(){var n=this.getAction();n&&!this.hasListener?this.listen():!n&&this.hasListener&&this.unrender()}function aht(n){lr(this.root,this.getAction(),{event:n})}function vht(){return this.action.toString().trim()}function yht(n,t,i){var r,f,e,u=this;this.element=n;this.root=n.root;this.parentFragment=n.parentFragment;this.name=t;-1!==t.indexOf("*")&&(ot('Only component proxy-events may contain "*" wildcards, <%s on-%s="..."/> is not valid',n.name,t),this.invalid=!0);i.m?(f=i.a.r,this.method=i.m,this.keypaths=[],this.fn=nk(i.a.s,f.length),this.parentFragment=n.parentFragment,e=this.root,this.refResolvers=[],f.forEach(function(n,t){var i=void 0;(i=uei.exec(n))?u.keypaths[t]={eventObject:!0,refinements:i[1]?i[1].split("."):[]}:u.refResolvers.push(kr(u,n,function(n){return u.resolve(t,n)}))}),this.fire=pht):(r=i.n||i,"string"!=typeof r&&(r=new o({template:r,root:this.root,owner:this})),this.action=r,i.d?(this.dynamicParams=new o({template:i.d,root:this.root,owner:this.element}),this.fire=bht):i.a&&(this.params=i.a,this.fire=wht))}function pht(n){var t,i,r;if(t=this.root,"function"!=typeof t[this.method])throw new Error('Attempted to call a non-existent method ("'+this.method+'")');i=this.keypaths.map(function(i){var r,f,u;if(void 0===i)return void 0;if(i.eventObject){if(r=n,f=i.refinements.length)for(u=0;f>u;u+=1)r=r[i.refinements[u]]}else r=t.viewmodel.get(i);return r});pu.enqueue(t,n);r=this.fn.apply(null,i);t[this.method].apply(t,r);pu.dequeue(t)}function wht(n){lr(this.root,this.getAction(),{event:n,args:this.params})}function bht(n){var t=this.dynamicParams.getArgsList();"string"==typeof t&&(t=t.substr(1,t.length-2));lr(this.root,this.getAction(),{event:n,args:t})}function kht(n){var t,i,r,u={};t=this._ractive;i=t.events[n.type];(r=tr(i.element.parentFragment))&&(u=tr.resolve(r));i.fire({node:this,original:n,index:u,keypath:t.keypath.str,context:t.root.viewmodel.get(t.keypath)})}function dht(){var t,n=this.name;if(!this.invalid){if(t=fr("events",this.root,n))this.custom=t(this.node,ght(n));else{if(!("on"+n in this.node||window&&"on"+n in window||ev))return void(eei[n]||y(hi(n,"event"),{node:this.node}));this.node.addEventListener(n,id,!1)}this.hasListener=!0}}function ght(n){return ih[n]||(ih[n]=function(t){var i=t.node._ractive;t.index=i.index;t.keypath=i.keypath.str;t.context=i.root.viewmodel.get(i.keypath);i.events[n].fire(t)}),ih[n]}function nct(n,t){function i(i){i&&i.rebind(n,t)}var r;return this.method?(r=this.element.parentFragment,void this.refResolvers.forEach(i)):("string"!=typeof this.action&&i(this.action),void(this.dynamicParams&&i(this.dynamicParams)))}function tct(){this.node=this.element.node;this.node._ractive.events[this.name]=this;(this.method||this.getAction())&&this.listen()}function ict(n,t){this.keypaths[n]=t}function rct(){return this.method?void this.refResolvers.forEach(nt):("string"!=typeof this.action&&this.action.unbind(),void(this.dynamicParams&&this.dynamicParams.unbind()))}function uct(){this.custom?this.custom.teardown():this.node.removeEventListener(this.name,id,!1);this.hasListener=!1}function fct(){var t=this;this.dirty||(this.dirty=!0,n.scheduleTask(function(){ect(t);t.dirty=!1}));this.parentFragment.bubble()}function ect(n){var r,t,u,i,f;r=n.node;r&&(i=gf(r.options),t=n.getAttribute("value"),u=n.getAttribute("multiple"),void 0!==t?(i.forEach(function(n){var i,r;i=n._ractive?n._ractive.value:n.value;r=u?oct(t,i):t==i;r&&(f=!0);n.selected=r}),f||(i[0]&&(i[0].selected=!0),n.binding&&n.binding.forceUpdate())):n.binding&&n.binding.forceUpdate())}function oct(n,t){for(var i=n.length;i--;)if(n[i]==t)return!0}function sct(n,t){n.select=cct(n.parent);n.select&&(n.select.options.push(n),t.a||(t.a={}),void 0!==t.a.value||t.a.hasOwnProperty("disabled")||(t.a.value=t.f),"selected"in t.a&&void 0!==n.select.getAttribute("value")&&delete t.a.selected)}function hct(n){n.select&&c(n.select.options,n)}function cct(n){if(n)do if("select"===n.name)return n;while(n=n.parent)}function lct(n){var f,t,e,i,s,r,u;this.type=yr;f=this.parentFragment=n.parentFragment;t=this.template=n.template;this.parent=n.pElement||f.pElement;this.root=e=f.root;this.index=n.index;this.key=n.key;this.name=ks(t.e);"option"===this.name&&sct(this,t);"select"===this.name&&(this.options=[],this.bubble=fct);"form"===this.name&&(this.formBindings=[]);u=tui(this,t);this.attributes=gk(this,t.a);this.conditionalAttributes=rfi(this,t.m);t.f&&(this.fragment=new o({template:t.f,root:e,owner:this,pElement:this,cssIds:null}));r=e.twoway;u.twoway===!1?r=!1:u.twoway===!0&&(r=!0);this.twoway=r;this.lazy=u.lazy;r&&(i=gfi(this,t.a))&&(this.binding=i,s=this.root._twowayBindings[i.keypath.str]||(this.root._twowayBindings[i.keypath.str]=[]),s.push(i));t.v&&(this.eventHandlers=vei(this,t.v));t.o&&(this.decorator=new yei(this,t.o));this.intro=t.t0||t.t1;this.outro=t.t0||t.t2}function act(n,t){function i(i){i.rebind(n,t)}var r,f,u,e;if(this.attributes&&this.attributes.forEach(i),this.conditionalAttributes&&this.conditionalAttributes.forEach(i),this.eventHandlers&&this.eventHandlers.forEach(i),this.decorator&&i(this.decorator),this.fragment&&i(this.fragment),u=this.liveQueries)for(e=this.root,r=u.length;r--;)u[r]._makeDirty();this.node&&(f=this.node._ractive)&&lc(f,"keypath",n,t)}function vct(n){var t;(n.attributes.width||n.attributes.height)&&n.node.addEventListener("load",t=function(){var i=n.getAttribute("width"),r=n.getAttribute("height");void 0!==i&&n.node.setAttribute("width",i);void 0!==r&&n.node.setAttribute("height",r);n.node.removeEventListener("load",t,!1)},!1)}function yct(n){n.node.addEventListener("reset",sa,!1)}function pct(n){n.node.removeEventListener("reset",sa,!1)}function sa(){var t=this._ractive.proxy;n.start();t.formBindings.forEach(wct);n.end()}function wct(n){n.root.viewmodel.set(n.keypath,n.resetValue)}function bct(n,t,i){var f,r,u;this.element=n;this.root=f=n.root;this.isIntro=i;r=t.n||t;("string"==typeof r||(u=new o({template:r,root:f,owner:n}),r=u.toString(),u.unbind(),""!==r))&&(this.name=r,t.a?this.params=t.a:t.d&&(u=new o({template:t.d,root:f,owner:n}),this.params=u.getArgsList(),u.unbind()),this._fn=fr("transitions",f,r),this._fn||y(hi(r,"transition"),{ractive:this.root}))}function ha(n){return n}function ca(){rr.hidden=document[iu]}function ce(){rr.hidden=!0}function le(){rr.hidden=!1}function kct(){var n,i,r,t=this;return n=this.node=this.element.node,i=n.getAttribute("style"),this.complete=function(u){r||(!u&&t.isIntro&&dct(n,i),n._ractive.transition=null,t._manager.remove(t),r=!0)},this._fn?void this._fn.apply(this.root,[this].concat(this.params)):void this.complete()}function dct(n,t){t?n.setAttribute("style",t):(n.getAttribute("style"),n.removeAttribute("style"))}function gct(){var u,i,t,r=this,e=this.root;return u=nlt(this),i=this.node=st(this.name,u),this.parentFragment.cssIds&&this.node.setAttribute("data-ractive-css",this.parentFragment.cssIds.map(function(n){return"{"+n+"}"}).join(" ")),ut(this.node,"_ractive",{value:{proxy:this,keypath:kv(this.parentFragment),events:f(null),root:e}}),this.attributes.forEach(function(n){return n.render(i)}),this.conditionalAttributes.forEach(function(n){return n.render(i)}),this.fragment&&("script"===this.name?(this.bubble=bd,this.node.text=this.fragment.toString(!1),this.fragment.unrender=s):"style"===this.name?(this.bubble=wd,this.bubble(),this.fragment.unrender=s):this.binding&&this.getAttribute("contenteditable")?this.fragment.unrender=s:this.node.appendChild(this.fragment.render())),this.binding&&(this.binding.render(),this.node._ractive.binding=this.binding),this.eventHandlers&&this.eventHandlers.forEach(function(n){return n.render()}),"option"===this.name&&tlt(this),"img"===this.name?vct(this):"form"===this.name?yct(this):"input"===this.name||"textarea"===this.name?this.node.defaultValue=this.node.value:"option"===this.name&&(this.node.defaultSelected=this.node.selected),this.decorator&&this.decorator.fn&&n.scheduleTask(function(){r.decorator.torndown||r.decorator.init()},!0),e.transitionsEnabled&&this.intro&&(t=new vh(this,this.intro,!0),n.registerTransition(t),n.scheduleTask(function(){return t.start()},!0),this.transition=t),this.node.autofocus&&n.scheduleTask(function(){return r.node.focus()},!0),ilt(this),this.node}function nlt(n){var i,t;return(i=n.getAttribute("xmlns"))?i:"svg"===n.name?p.svg:(t=n.parent)?"foreignObject"===t.name?p.html:t.node.namespaceURI:n.root.el.namespaceURI}function tlt(n){var i,t,r;if(n.select&&(t=n.select.getAttribute("value"),void 0!==t))if(i=n.getAttribute("value"),n.select.node.multiple&&u(t)){for(r=t.length;r--;)if(i==t[r]){n.node.selected=!0;break}}else n.node.selected=i==t}function ilt(n){var t,i,r,f,u;t=n.root;do for(i=t._liveQueries,r=i.length;r--;)f=i[r],u=i["_"+f],u._test(n)&&(n.liveQueries||(n.liveQueries=[])).push(u);while(t=t.parent)}function rlt(n){var i,t,r;if(i=n.getAttribute("value"),void 0===i||!n.select)return!1;if(t=n.select.getAttribute("value"),t==i)return!0;if(n.select.getAttribute("multiple")&&u(t))for(r=t.length;r--;)if(t[r]==i)return!0}function ult(n){var t,i,r,u;return t=n.attributes,i=t.type,r=t.value,u=t.name,i&&"radio"===i.value&&r&&u.interpolator&&r.value===u.interpolator.value?!0:void 0}function la(n){var t=n.toString();return t?" "+t:""}function flt(){this.fragment&&this.fragment.unbind();this.binding&&this.binding.unbind();this.eventHandlers&&this.eventHandlers.forEach(nt);"option"===this.name&&hct(this);this.attributes.forEach(nt);this.conditionalAttributes.forEach(nt)}function elt(t){var r,u,i;(i=this.transition)&&i.complete();"option"===this.name?this.detach():t&&n.detachWhenReady(this);this.fragment&&this.fragment.unrender(!1);(r=this.binding)&&(this.binding.unrender(),this.node._ractive.binding=null,u=this.root._twowayBindings[r.keypath.str],u.splice(u.indexOf(r),1));this.eventHandlers&&this.eventHandlers.forEach(vn);this.decorator&&n.registerDecorator(this.decorator);this.root.transitionsEnabled&&this.outro&&(i=new vh(this,this.outro,!1),n.registerTransition(i),n.scheduleTask(function(){return i.start()}));this.liveQueries&&olt(this);"form"===this.name&&pct(this)}function olt(n){for(var t,r,i=n.liveQueries.length;i--;)t=n.liveQueries[i],r=t.selector,t._remove(n.node)}function slt(n,t){var i=coi.exec(t)[0];return null===n||i.length<n.length?i:n}function hlt(n,t,i){var r,u;return(r=clt(n,t,i||{}))?r:(r=v.fromId(t,{noThrow:!0}))?(r=loi(r),u=v.parse(r,v.getParseOptions(n)),n.partials[t]=u.t):void 0}function clt(n,t,i){var f=void 0,r=va(t,i.owner),u,o,s;return r?r:(u=bf("partials",n,t),u?(r=u.partials[t],"function"==typeof r&&(f=r.bind(u),f.isOwner=u.partials.hasOwnProperty(t),r=f.call(n,v)),!r&&""!==r)?void e(lv,t,"partial","partial",{ractive:n}):(v.isParsed(r)||(o=v.parse(r,v.getParseOptions(u)),o.p&&e("Partials ({{>%s}}) cannot contain nested inline partials",t,{ractive:n}),s=f?u:llt(u,t),s.partials[t]=r=o.t),f&&(r._fn=f),r.v?r.t:r):void 0)}function llt(n,t){return n.partials.hasOwnProperty(t)?n:aa(n.constructor,t)}function aa(n,t){if(n)return n.partials.hasOwnProperty(t)?n:aa(n._Parent,t)}function va(n,t){if(t){if(t.template&&t.template.p&&t.template.p[n])return t.template.p[n];if(t.parentFragment&&t.parentFragment.owner)return va(n,t.parentFragment.owner)}}function ya(n,t){var i,r=bf("components",n,t),u;if(r&&(i=r.components[t],!i._Parent)){if(u=i.bind(r),u.isOwner=r.components.hasOwnProperty(t),i=u(),!i)return void e(lv,t,"component","component",{ractive:n});"string"==typeof i&&(i=ya(n,i));i._fn=u;r.components[t]=i}return i}function alt(){var n=this.instance.fragment.detach();return woi.fire(this.instance),n}function vlt(n){return this.instance.fragment.find(n)}function ylt(n,t){return this.instance.fragment.findAll(n,t)}function plt(n,t){t._test(this,!0);this.instance.fragment&&this.instance.fragment.findAllComponents(n,t)}function wlt(n){return n&&n!==this.name?this.instance.fragment?this.instance.fragment.findComponent(n):null:this.instance}function blt(){return this.parentFragment.findNextNode(this)}function klt(){return this.rendered?this.instance.fragment.firstNode():null}function dlt(t,i,r){function c(t){var u,r;t.value=i;t.updating||(r=t.ractive,u=t.keypath,t.updating=!0,n.start(r),r.viewmodel.mark(u),n.end(),t.updating=!1)}var s,u,f,o,h,e;if(s=t.obj,u=t.prop,r&&!r.configurable){if("length"===u)return;throw new Error('Cannot use magic mode with property "'+u+'" - object is not configurable');}r&&(f=r.get,o=r.set);h=f||function(){return i};e=function(n){o&&o(n);i=f?f():n;e._ractiveWrappers.forEach(c)};e._ractiveWrappers=[t];Object.defineProperty(s,u,{get:h,set:e,enumerable:!0,configurable:!0})}function glt(n,t){var u,i,r,f;if(this.adaptors)for(u=this.adaptors.length,i=0;u>i;i+=1)if(r=this.adaptors[i],r.filter(t,n,this.ractive))return f=this.wrapped[n]=r.wrap(this.ractive,t,n,tat(n)),void(f.value=t)}function nat(n,t){var i,r={};if(!t)return n;t+=".";for(i in n)n.hasOwnProperty(i)&&(r[t+i]=n[i]);return r}function tat(n){var t;return rc[n]||(t=n?n+".":"",rc[n]=function(i,r){var u;return"string"==typeof i?(u={},u[t+i]=r,u):"object"==typeof i?t?nat(i,n):i:void 0}),rc[n]}function iat(n){for(var t,r=[dt],i=n.length;i--;)for(t=n[i].parent;t&&!t.isRoot;)-1===n.indexOf(t)&&vc(r,t),t=t.parent;return r}function rat(n,t,i){var r;wa(n,t);i||(r=t.wildcardMatches(),r.forEach(function(i){pa(n,i,t)}))}function pa(n,t,i){var r,u,f;t=t.str||t;r=n.depsMap.patternObservers;u=r&&r[t];u&&u.forEach(function(t){f=i.join(t.lastKey);wa(n,f);pa(n,t,f)})}function wa(n,t){n.patternObservers.forEach(function(n){n.regex.test(t.str)&&n.update(t)})}function uat(){function e(i){var r=i.key;i.viewmodel===t?(t.clearCache(r.str),i.invalidate(),n.push(r),f(r)):i.viewmodel.mark(r)}function f(n){var i,r;t.noCascade.hasOwnProperty(n.str)||((r=t.deps.computed[n.str])&&r.forEach(e),(i=t.depsMap.computed[n.str])&&i.forEach(f))}var n,i,u,r=this,t=this,o={};return n=this.changes,n.length?(n.slice().forEach(f),i=esi(n),i.forEach(function(i){var r;-1===n.indexOf(i)&&(r=t.deps.computed[i.str])&&r.forEach(e)}),this.changes=[],this.patternObservers.length&&(i.forEach(function(n){return eg(r,n,!0)}),n.forEach(function(n){return eg(r,n)})),this.deps.observers&&(i.forEach(function(n){return ba(r,null,n,"observers")}),ka(this,n,"observers")),this.deps["default"]&&(u=[],i.forEach(function(n){return ba(r,u,n,"default")}),u.length&&fat(this,u,n),ka(this,n,"default")),n.forEach(function(n){o[n.str]=r.get(n)}),this.implicitChanges={},this.noCascade={},o):void 0}function ba(n,t,i,r){var u,f;(u=da(n,i,r))&&(f=n.get(i),u.forEach(function(n){t&&n.refineValue?t.push(n):n.setValue(f)}))}function fat(n,t,i){t.forEach(function(t){for(var r,e=!1,u=0,o=i.length,f=[];o>u;){if(r=i[u],r===t.keypath){e=!0;break}r.slice(0,t.keypath.length)===t.keypath&&f.push(r);u++}e&&t.setValue(n.get(t.keypath));f.length&&t.refineValue(f)})}function ka(n,t,i){function r(n){n.forEach(f);n.forEach(e)}function f(t){var r=da(n,t,i);r&&u.push({keypath:t,deps:r})}function e(t){var u;(u=n.depsMap[i][t.str])&&r(u)}function o(t){var i=n.get(t.keypath);t.deps.forEach(function(n){return n.setValue(i)})}var u=[];r(t);u.forEach(o)}function da(n,t,i){var r=n.deps[i];return r?r[t.str]:null}function eat(){this.captureGroups.push([])}function oat(n,t){var i,r;if(t||(r=this.wrapped[n])&&r.teardown()!==!1&&(this.wrapped[n]=null),this.cache[n]=void 0,i=this.cacheMap[n])for(;i.length;)this.clearCache(i.pop())}function sat(n,t){var i=t.firstKey;return!(i in n.data||i in n.computations||i in n.mappings)}function hat(n,t){var i=new csi(n,t);return this.ready&&i.init(this),this.computations[n.str]=i}function cat(n,t){var i,f,u,e,o,s=this.cache,r=n.str;if(t=t||vsi,t.capture&&(e=at(this.captureGroups))&&(~e.indexOf(n)||e.push(n)),kt.call(this.mappings,n.firstKey))return this.mappings[n.firstKey].get(n,t);if(n.isSpecial)return n.value;if(void 0===s[r]?((f=this.computations[r])&&!f.bypass?(i=f.get(),this.adapt(r,i)):(u=this.wrapped[r])?i=u.value:n.isRoot?(this.adapt("",this.data),i=this.data):i=lat(this,n),s[r]=i):i=s[r],!t.noUnwrap&&(u=this.wrapped[r])&&(i=u.get()),n.isRoot&&t.fullRootGet)for(o in this.mappings)i[o]=this.mappings[o].getValue();if(i!==hg)return i}function lat(n,t){var i,u,r,f;return i=n.get(t.parent),(f=n.wrapped[t.parent.str])&&(i=f.get()),null!==i&&void 0!==i?((u=n.cacheMap[t.parent.str])?-1===u.indexOf(t.str)&&u.push(t.str):n.cacheMap[t.parent.str]=[t.str],"object"!=typeof i||t.lastKey in i?(r=i[t.lastKey],n.adapt(t.str,r,!1),n.cache[t.str]=r,r):n.cache[t.str]=hg):void 0}function aat(){for(var n in this.computations)this.computations[n].init(this)}function vat(n,t){var i=this.mappings[n.str]=new cg(n,t);return i.initViewmodel(this),i}function yat(n,t){var r,i=n.str,u;t&&(t.implicit&&(this.implicitChanges[i]=!0),t.noCascade&&(this.noCascade[i]=!0));(r=this.computations[i])&&r.invalidate();-1===this.changes.indexOf(n)&&this.changes.push(n);u=t?t.keepExistingWrapper:!1;this.clearCache(i,u);this.ready&&this.onchange()}function pat(n,t,i,r){var u,f,o,s;if(this.mark(n),r&&r.compare){o=bat(r.compare);try{u=t.map(o);f=i.map(o)}catch(h){e('merge(): "%s" comparison failed. Falling back to identity checking',n);u=t;f=i}}else u=t,f=i;s=bsi(u,f);this.smartUpdate(n,i,s,t.length!==i.length)}function wat(n){return JSON.stringify(n)}function bat(n){if(n===!0)return wat;if("string"==typeof n)return uc[n]||(uc[n]=function(t){return t[n]}),uc[n];if("function"==typeof n)return n;throw new Error("The `compare` option must be a function, or a string representing an identifying field (or `true` to use JSON.stringify)");}function kat(n,t){var u,r,f,i=void 0===arguments[2]?"default":arguments[2];t.isStatic||((u=this.mappings[n.firstKey])?u.register(n,t,i):(r=this.deps[i]||(this.deps[i]={}),f=r[n.str]||(r[n.str]=[]),f.push(t),this.depsMap[i]||(this.depsMap[i]={}),n.isRoot||dat(this,n,i)))}function dat(n,t,i){for(var f,r,u;!t.isRoot;)f=n.depsMap[i],r=f[t.parent.str]||(f[t.parent.str]=[]),u=t.str,void 0===r["_"+u]&&(r["_"+u]=0,r.push(t)),r["_"+u]+=1,t=t.parent}function gat(){return this.captureGroups.pop()}function nvt(n){this.data=n;this.clearCache("")}function tvt(n,t){var f,i,r,u,e=void 0===arguments[2]?{}:arguments[2];if(!e.noMapping&&(f=this.mappings[n.firstKey]))return f.set(n,t);if(i=this.computations[n.str]){if(i.setting)return;i.set(t);t=i.get()}ct(this.cache[n.str],t)||(r=this.wrapped[n.str],r&&r.reset&&(u=r.reset(t)!==!1,u&&(t=r.get())),i||u||ivt(this,n,t),e.silent?this.clearCache(n.str):this.mark(n))}function ivt(n,t,i){var r,u,f,e;f=function(){r.set?r.set(t.lastKey,i):(u=r.get(),e())};e=function(){u||(u=ug(t.lastKey),n.set(t.parent,u,{silent:!0}));u[t.lastKey]=i};r=n.wrapped[t.parent.str];r?f():(u=n.get(t.parent),(r=n.wrapped[t.parent.str])?f():e())}function rvt(n,t,i){var f,u,r,e=this;if(u=i.length,i.forEach(function(t,i){-1===t&&e.mark(n.join(i),lg)}),this.set(n,t,{silent:!0}),(f=this.deps["default"][n.str])&&f.filter(uvt).forEach(function(n){return n.shuffle(i,t)}),u!==t.length){for(this.mark(n.join("length"),rhi),r=i.touchedFrom;r<t.length;r+=1)this.mark(n.join(r));for(r=t.length;u>r;r+=1)this.mark(n.join(r),lg)}}function uvt(n){return"function"==typeof n.shuffle}function fvt(){var n,t=this;for(Object.keys(this.cache).forEach(function(n){return t.clearCache(n)});n=this.unresolvedImplicitDependencies.pop();)n.teardown()}function evt(n,t){var f,i,r,u=void 0===arguments[2]?"default":arguments[2];if(!t.isStatic){if(f=this.mappings[n.firstKey])return f.unregister(n,t,u);if(i=this.deps[u][n.str],r=i.indexOf(t),-1===r)throw new Error("Attempted to remove a dependant that was no longer registered! This should not happen. If you are seeing this bug in development please raise an issue at https://github.com/RactiveJS/Ractive/issues - thanks");i.splice(r,1);n.isRoot||ovt(this,n,u)}}function ovt(n,t,i){for(var u,r;!t.isRoot;)u=n.depsMap[i],r=u[t.parent.str],r["_"+t.str]-=1,r["_"+t.str]||(c(r,t),r["_"+t.str]=void 0),t=t.parent}function ae(n){this.hook=new l(n);this.inProcess={};this.queue={}}function ga(n,t){return n[t._guid]||(n[t._guid]=[])}function nv(n,t){var i=ga(n.queue,t);for(n.hook.fire(t);i.length;)nv(n,i.shift());delete n.queue[t._guid]}function svt(n,t){var i,r={};for(i in t)r[i]=hvt(n,i,t[i]);return r}function hvt(n,t,i){var r,u;return"function"==typeof i&&(r=ve(i,n)),"string"==typeof i&&(r=tv(n,i)),"object"==typeof i&&("string"==typeof i.get?r=tv(n,i.get):"function"==typeof i.get?r=ve(i.get,n):ot("`%s` computation must have a `get()` method",t),"function"==typeof i.set&&(u=ve(i.set,n))),{getter:r,setter:u}}function tv(n,t){var i,r,u;return i="return ("+t.replace(shi,function(n,t){return r=!0,'__ractive.get("'+t+'")'})+");",r&&(i="var __ractive = this; "+i),u=new Function(i),r?u.bind(n):u}function ve(n,t){return/this/.test(n.toString())?n.bind(t):n}function cvt(t){var h,s,i=void 0===arguments[1]?{}:arguments[1],r=void 0===arguments[2]?{}:arguments[2],u,c;(wt.DEBUG&&cr(),vvt(t,r),ut(t,"data",{get:yvt}),hhi.fire(t,i),ahi.forEach(function(n){t[n]=ui(f(t.constructor[n]||null),i[n])}),s=new vg({adapt:lvt(t,t.adapt,i),data:vo.init(t.constructor,t,i),computed:ohi(t,ui(f(t.constructor.prototype.computed),i.computed)),mappings:r.mappings,ractive:t,onchange:function(){return n.addRactive(t)}}),t.viewmodel=s,s.init(),ls.init(t.constructor,t,i),chi.fire(t),yg.begin(t),t.template)&&(u=void 0,(r.cssIds||t.cssId)&&(u=r.cssIds?r.cssIds.slice():[],t.cssId&&u.push(t.cssId)),t.fragment=new o({template:t.template,root:t,owner:t,cssIds:u}));(yg.end(t),h=ur(t.el))&&(c=t.render(h,t.append),wt.DEBUG_PROMISES&&c["catch"](function(n){throw y("Promise debugging is enabled, to help solve errors that happen asynchronously. Some browsers will log unhandled promise rejections, in which case you can safely disable promise debugging:\n  Ractive.DEBUG_PROMISES = false;"),e("An error happened during rendering",{ractive:t}),n.stack&&hc(n.stack),n;}))}function lvt(n,t,i){function f(t){return"string"==typeof t&&(t=fr("adaptors",n,t),t||ot(hi(t,"adaptor"))),t}var r,e,u;if(t=t.map(f),r=pc(i.adapt).map(f),r=avt(t,r),e="magic"in i?i.magic:n.magic,u="modifyArrays"in i?i.modifyArrays:n.modifyArrays,e){if(!su)throw new Error("Getters and setters (magic mode) are not supported in this browser");u&&r.push(usi);r.push(uu)}return u&&r.push(tc),r}function avt(n,t){for(var i=n.slice(),r=t.length;r--;)~i.indexOf(t[r])||i.push(t[r]);return i}function vvt(n,t){n._guid="r-"+lhi++;n._subs=f(null);n._config={};n._twowayBindings=f(null);n._animations=[];n.nodes={};n._liveQueries=[];n._liveComponentQueries=[];n._boundFunctions=[];n._observers=[];t.component?(n.parent=t.parent,n.container=t.container||null,n.root=n.parent.root,n.component=t.component,t.component.instance=n,n._inlinePartials=t.inlinePartials):(n.root=n,n.parent=n.container=null)}function yvt(){throw new Error("Using `ractive.data` is no longer supported - you must use the `ractive.get()` API instead");}function iv(n,t,i){this.parentFragment=n.parentFragment;this.callback=i;this.fragment=new o({template:t,root:n.root,owner:this});this.update()}function pvt(n,t,i){var r;return t.r?r=kr(n,t.r,i):t.x?r=new of(n,n.parentFragment,t.x,i):t.rx&&(r=new ik(n,t.rx,i)),r}function wvt(n){return 1===n.length&&n[0].t===vr}function bvt(n,t){for(var i in t)t.hasOwnProperty(i)&&kvt(n.instance,n.root,i,t[i])}function kvt(n,t,i,r){"string"!=typeof r&&ot("Components currently only support simple events - you cannot include arguments. Sorry!");n.on(i,function(){var n,i;return arguments.length&&arguments[0]&&arguments[0].node&&(n=Array.prototype.shift.call(arguments)),i=Array.prototype.slice.call(arguments),lr(t,r,{event:n,args:i}),!1})}function dvt(n,t){var i,r;if(!t)throw new Error('Component "'+this.name+'" not found');i=this.parentFragment=n.parentFragment;r=i.root;this.root=r;this.type=gy;this.name=n.template.e;this.index=n.index;this.indexRefBindings={};this.yielders={};this.resolvers=[];yhi(this,t,n.template.a,n.template.f,n.template.p);phi(this,n.template.v);(n.template.t0||n.template.t1||n.template.t2||n.template.o)&&e('The "intro", "outro" and "decorator" directives have no effect on components',{ractive:this.instance});whi(this)}function gvt(n,t){function r(i){i.rebind(n,t)}var u,i;this.resolvers.forEach(r);for(i in this.yielders)this.yielders[i][0]&&r(this.yielders[i][0]);(u=this.root._liveComponentQueries["_"+this.name])&&u._makeDirty()}function nyt(){var n=this.instance;return n.render(this.parentFragment.getNode()),this.rendered=!0,n.fragment.detach()}function tyt(){return this.instance.fragment.toString()}function iyt(){var n=this.instance;this.resolvers.forEach(nt);ryt(this);n._observers.forEach(nl);n.fragment.unbind();n.viewmodel.teardown();n.fragment.rendered&&n.el.__ractive_instances__&&c(n.el.__ractive_instances__,n);tci.fire(n)}function ryt(n){var t,i;t=n.root;do(i=t._liveComponentQueries["_"+n.name])&&i._remove(n);while(t=t.parent)}function uyt(n){this.shouldDestroy=n;this.instance.unrender()}function fyt(n){var t=this;this.owner=n.owner;this.parent=this.owner.parentFragment;this.root=n.root;this.pElement=n.pElement;this.context=n.context;this.index=n.index;this.key=n.key;this.registeredIndexRefs=[];this.cssIds="cssIds"in n?n.cssIds:this.parent?this.parent.cssIds:null;this.items=n.template.map(function(i,r){return eyt({parentFragment:t,pElement:n.pElement,template:i,index:r})});this.value=this.argsList=null;this.dirtyArgs=this.dirtyValue=!0;this.bound=!0}function eyt(n){if("string"==typeof n.template)return new gti(n);switch(n.template.t){case ku:return new kg(n);case vr:return new fii(n);case ft:return new tri(n);case wu:return new lri(n);case yr:var t=void 0;return(t=yoi(n.parentFragment.root,n.template.e))?new wg(n,t):new hoi(n);case bu:return new voi(n);case vi:return new bg(n);case tp:return new rci(n);default:throw new Error("Something very strange happened. Please file an issue at https://github.com/ractivejs/ractive/issues. Thanks!");}}function oyt(n,t){(!this.owner||this.owner.hasContext)&&lc(this,"context",n,t);this.items.forEach(function(i){i.rebind&&i.rebind(n,t)})}function syt(){var n;return 1===this.items.length?n=this.items[0].render():(n=document.createDocumentFragment(),this.items.forEach(function(t){n.appendChild(t.render())})),this.rendered=!0,n}function hyt(n){return this.items?this.items.map(n?lyt:cyt).join(""):""}function cyt(n){return n.toString()}function lyt(n){return n.toString(!0)}function ayt(){this.bound&&(this.items.forEach(vyt),this.bound=!1)}function vyt(n){n.unbind&&n.unbind()}function yyt(n){if(!this.rendered)throw new Error("Attempted to unrender a fragment that was not rendered");this.items.forEach(function(t){return t.unrender(n)});this.rendered=!1}function pyt(t){var r,u,f,e,s,i;if(t=t||{},"object"!=typeof t)throw new Error("The reset method takes either no arguments, or an object containing new data");for((u=this.viewmodel.wrapped[""])&&u.reset?u.reset(t)===!1&&this.viewmodel.reset(t):this.viewmodel.reset(t),f=ls.reset(this),e=f.length;e--;)if(lci.indexOf(f[e])>-1){s=!0;break}return s?(i=void 0,this.viewmodel.mark(dt),(i=this.component)&&(i.shouldDestroy=!0),this.unrender(),i&&(i.shouldDestroy=!1),this.fragment.template!==this.template&&(this.fragment.unbind(),this.fragment=new o({template:this.template,root:this,owner:this})),r=this.render(this.el,this.anchor)):(r=n.start(this,!0),this.viewmodel.mark(dt),n.end()),aci.fire(this,t),r}function wyt(n){var i,t;hs.init(null,this,{template:n});i=this.transitionsEnabled;this.transitionsEnabled=!1;(t=this.component)&&(t.shouldDestroy=!0);this.unrender();t&&(t.shouldDestroy=!1);this.fragment.unbind();this.fragment=new o({template:this.template,root:this,owner:this});this.render(this.el,this.anchor);this.transitionsEnabled=i}function byt(t,i){var r,u;if(u=n.start(this,!0),d(t)){r=t;for(t in r)r.hasOwnProperty(t)&&(i=r[t],rv(this,t,i))}else rv(this,t,i);return n.end(),u}function rv(n,i,r){i=t(g(i));i.isPattern?fu(n,i).forEach(function(t){n.viewmodel.set(t,r)}):n.viewmodel.set(i,r)}function kyt(n,t){return vv(this,n,void 0===t?-1:-t)}function dyt(){var n;return this.fragment.unbind(),this.viewmodel.teardown(),this._observers.forEach(nl),this.fragment.rendered&&this.el.__ractive_instances__&&c(this.el.__ractive_instances__,this),this.shouldDestroy=!0,n=this.fragment.rendered?this.unrender():gt.resolve(),tli.fire(this),this._boundFunctions.forEach(gyt),n}function gyt(n){delete n.fn[n.prop]}function npt(n){var r=this,i;if("string"!=typeof n)throw new TypeError(ppt);return i=void 0,/\*/.test(n)?(i={},fu(this,t(g(n))).forEach(function(n){i[n.str]=!r.viewmodel.get(n)}),this.set(i)):this.set(n,!this.get(n))}function tpt(){return this.fragment.toString(!0)}function ipt(){var t,i;if(!this.fragment.rendered)return e("ractive.unrender() was called on a Ractive instance that was not rendered"),gt.resolve();for(t=n.start(this,!0),i=!this.component||this.component.shouldDestroy||this.shouldDestroy;this._animations[0];)this._animations[0].stop();return this.fragment.unrender(i),c(this.el.__ractive_instances__,this),uli.fire(this),n.end(),t}function rpt(i){var r;return i=t(i)||dt,r=n.start(this,!0),this.viewmodel.mark(i),n.end(),oli.fire(this,i),r}function upt(n,i){var f,u,r;if("string"!=typeof n||i){r=[];for(u in this._twowayBindings)(!n||t(u).equalsOrStartsWith(n))&&r.push.apply(r,this._twowayBindings[u])}else r=this._twowayBindings[n];return f=fpt(this,r),this.set(f)}function fpt(n,t){var r={},i=[];return t.forEach(function(n){var u,t;if(!n.radioName||n.element.node.checked){if(n.checkboxName)return void(i[n.keypath.str]||n.changed()||(i.push(n.keypath),i[n.keypath.str]=n));u=n.attribute.value;t=n.getValue();df(u,t)||ct(u,t)||(r[n.keypath.str]=t)}}),i.length&&i.forEach(function(n){var t,f,u;t=i[n.str];f=t.attribute.value;u=t.getValue();df(f,u)||(r[n.str]=u)}),r}function ept(n,t){return"function"==typeof t&&/_super/.test(n)}function opt(n){for(var t={};n;)spt(n,t),cpt(n,t),n=n._Parent!==wt?n._Parent:!1;return t}function spt(n,t){br.forEach(function(i){hpt(i.useDefaults?n.prototype:n,t,i.name)})}function hpt(n,t,i){var r,u=Object.keys(n[i]);u.length&&((r=t[i])||(r=t[i]={}),u.filter(function(n){return!(n in r)}).forEach(function(t){return r[t]=n[i][t]}))}function cpt(n,t){Object.keys(n.prototype).forEach(function(i){var r,u,f;"computed"!==i&&(r=n.prototype[i],i in t?"function"==typeof t[i]&&"function"==typeof r&&t[i]._method&&(u=void 0,f=r._method,f&&(r=r._method),u=cli(t[i]._method,r),f&&(u._method=u),t[i]=u):t[i]=r._method?r._method:r)})}function uv(){for(var i=arguments.length,t=Array(i),n=0;i>n;n++)t[n]=arguments[n];return t.length?t.reduce(fv,this):fv(this)}function fv(n){var t,i,r=void 0===arguments[1]?{}:arguments[1];return r.prototype instanceof wt&&(r=lli(r)),t=function(n){return this instanceof t?void fc(this,n):new t(n)},i=f(n.prototype),i.constructor=t,si(t,{defaults:{value:i},extend:{value:uv,writable:!0,configurable:!0},_Parent:{value:n}}),ls.extend(n,i,r),vo.extend(n,i,r),r.computed&&(i.computed=ui(f(n.prototype.computed),r.computed)),t.prototype=i,t}var tt,ev,ov,su,p,ye,it,sr=3,lpt={el:void 0,append:!1,template:{v:sr,t:[]},preserveWhitespace:!1,sanitize:!1,stripComments:!0,delimiters:["{{","}}"],tripleDelimiters:["{{{","}}}"],interpolate:!1,data:{},computed:{},magic:!1,modifyArrays:!0,adapt:[],isolated:!1,twoway:!0,lazy:!1,noIntro:!1,transitionsEnabled:!0,complete:void 0,css:null,noCssTransform:!1},sv=lpt,apt={linear:function(n){return n},easeIn:function(n){return Math.pow(n,3)},easeOut:function(n){return Math.pow(n-1,3)+1},easeInOut:function(n){return(n/=.5)<1?.5*Math.pow(n,3):.5*(Math.pow(n-2,3)+2)}},st,rt,oi,pe,hr,we,hu,hv,be,f,ut,si,ke,pv,io,ro,wv,nw,tw,iw,db,vs,gb,tr,of,ws,tk,bs,ds,dk,gk,gs,nd,b,r,eh,fd,k,iu,ch,cf,lh,rr,ld,ah,ad,vd,yd,wd,bd,vh,kd,rg,bh,kh,dh,fg,ic,uu,sg,af,vg,wg,ec,bg,oc,kg,sc,ht,wt;tt="object"==typeof document;ev="undefined"!=typeof navigator&&/jsDom/.test(navigator.appName);ov="undefined"!=typeof console&&"function"==typeof console.warn&&"function"==typeof console.warn.apply;try{Object.defineProperty({},"test",{value:0});su=!0}catch(yli){su=!1}if(p={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ye="undefined"==typeof document?!1:document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),it=["o","ms","moz","webkit"],st=ye?function(n,t){return t&&t!==p.html?document.createElementNS(t,n):document.createElement(n)}:function(n,t){if(t&&t!==p.html)throw"This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likely cause of this error is that you're trying to render SVG in an older browser. See http://docs.ractivejs.org/latest/svg-and-older-browsers for more information";return document.createElement(n)},tt){for(oi=st("div"),pe=["matches","matchesSelector"],be=function(n){return function(t,i){return t[n](i)}},hu=pe.length;hu--&&!rt;)if(hr=pe[hu],oi[hr])rt=be(hr);else for(hv=it.length;hv--;)if(we=it[hu]+hr.substr(0,1).toUpperCase()+hr.substring(1),oi[we]){rt=be(we);break}rt||(rt=function(n,t){var r,i,u;for(i=n.parentNode,i||(oi.innerHTML="",i=oi,n=n.cloneNode(),oi.appendChild(n)),r=i.querySelectorAll(t),u=r.length;u--;)if(r[u]===n)return!0;return!1})}else rt=null;ke=null;try{Object.defineProperty({},"test",{value:0});tt&&Object.defineProperty(document.createElement("div"),"test",{value:0});ut=Object.defineProperty}catch(vpt){ut=function(n,t,i){n[t]=i.value}}try{try{Object.defineProperties({},{test:{value:0}})}catch(vpt){throw vpt;}tt&&Object.defineProperties(st("div"),{test:{value:0}});si=Object.defineProperties}catch(vpt){si=function(n,t){for(var i in t)t.hasOwnProperty(i)&&ut(n,i,t[i])}}try{Object.create(null);f=Object.create}catch(vpt){f=function(){var n=function(){};return function(t,i){var r;return null===t?{}:(n.prototype=t,r=new n,i&&Object.defineProperties(r,i),r)}}()}var de,cu,cr,kt=Object.prototype.hasOwnProperty,ge=Object.prototype.toString,ypt=/^\[object (?:Array|FileList)\]$/,s=function(){},cv={};ov?!function(){var n=["%cRactive.js %c0.7.3 %cin debug mode, %cmore...","color: rgb(114, 157, 52); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(85, 85, 85); font-weight: normal;","color: rgb(82, 140, 224); font-weight: normal; text-decoration: underline;"],t="You're running Ractive 0.7.3 in debug mode - messages will be printed to the console to help you fix problems and optimise your application.\n\nTo disable debug mode, add this line at the start of your app:\n  Ractive.DEBUG = false;\n\nTo disable debug mode when your app is minified, add this snippet:\n  Ractive.DEBUG = /unminified/.test(function(){/*unminified*/});\n\nGet help and support:\n  http://docs.ractivejs.org\n  http://stackoverflow.com/questions/tagged/ractivejs\n  http://groups.google.com/forum/#!forum/ractive-js\n  http://twitter.com/ractivejs\n\nFound a bug? Raise an issue:\n  https://github.com/ractivejs/ractive/issues\n\n";cr=function(){var i=!!console.groupCollapsed;console[i?"groupCollapsed":"log"].apply(console,n);console.log(t);i&&console.groupEnd(n);cr=s};cu=function(n,t){var r,i,u,f;(cr(),"object"==typeof t[t.length-1])&&(r=t.pop(),i=r?r.ractive:null,i&&(u=void 0,i.component&&(u=i.component.name)&&(n="<"+u+"> "+n),f=void 0,(f=r.node||i.fragment&&i.fragment.rendered&&i.find("*"))&&t.push(f)));console.warn.apply(console,["%cRactive.js: %c"+n,"color: rgb(114, 157, 52);","color: rgb(85, 85, 85);"].concat(t))};de=function(){console.log.apply(console,arguments)}}():cu=de=cr=s;var ppt="Bad arguments",lv='A function was specified for "%s" %s, but no %s was returned',hi=function(n,t){return'Missing "'+n+'" '+t+" plugin. You may need to download a plugin via http://docs.ractivejs.org/latest/plugins#"+t+"s"},wpt=function(n,t,i,r){if(n===t)return kf(t);if(r){var u=fr("interpolators",i,r);if(u)return u(n,t)||kf(t);ot(hi(r,"interpolator"))}return au.number(n,t)||au.array(n,t)||au.object(n,t)||kf(t)},lu=wpt,bpt={number:function(n,t){var i;return lt(n)&&lt(t)?(n=+n,t=+t,i=t-n,i?function(t){return n+t*i}:function(){return n}):null},array:function(n,t){var r,e,f,i;if(!u(n)||!u(t))return null;for(r=[],e=[],i=f=Math.min(n.length,t.length);i--;)e[i]=lu(n[i],t[i]);for(i=f;i<n.length;i+=1)r[i]=n[i];for(i=f;i<t.length;i+=1)r[i]=t[i];return function(n){for(var t=f;t--;)r[t]=e[t](n);return r}},object:function(n,t){var u,e,f,r,i;if(!d(n)||!d(t))return null;u=[];r={};f={};for(i in n)kt.call(n,i)&&(kt.call(t,i)?(u.push(i),f[i]=lu(n[i],t[i])):r[i]=n[i]);for(i in t)kt.call(t,i)&&!kt.call(n,i)&&(r[i]=t[i]);return e=u.length,function(n){for(var t,i=e;i--;)t=u[i],r[t]=f[t](n);return r}}},au=bpt,kpt=un,vu={},dpt=/\[\s*(\*|[0-9]|[1-9][0-9]+)\s*\]/g,gpt=/\*/,no={},av=function(n){var i=n.split(".");this.str=n;"@"===n[0]&&(this.isSpecial=!0,this.value=en(n));this.firstKey=i[0];this.lastKey=i.pop();this.isPattern=gpt.test(n);this.parent=""===n?null:t(i.join("."));this.isRoot=!n};av.prototype={equalsOrStartsWith:function(n){return n===this||this.startsWith(n)},join:function(n){return t(this.isRoot?String(n):this.str+"."+n)},replace:function(n,i){return this===n?i:this.startsWith(n)?null===i?i:t(this.str.replace(n.str+".",i.str+".")):void 0},startsWith:function(n){return n?n&&this.str.substr(0,n.str.length+1)===n.str+".":!1},toString:function(){throw new Error("Bad coercion");},valueOf:function(){throw new Error("Bad coercion");},wildcardMatches:function(){return this._wildcardMatches||(this._wildcardMatches=kpt(this.str))}};var to,dt=t(""),vv=sn,yv="Cannot add to a non-numeric value",nwt=hn;"undefined"==typeof window?to=null:(!function(n,t,i){var r,u;if(!i.requestAnimationFrame){for(r=0;r<n.length&&!i.requestAnimationFrame;++r)i.requestAnimationFrame=i[n[r]+"RequestAnimationFrame"];i.requestAnimationFrame||(u=i.setTimeout,i.requestAnimationFrame=function(n){var i,r,f;return i=Date.now(),r=Math.max(0,16-(i-t)),f=u(function(){n(i+r)},r),t=i+r,f})}}(it,0,window),to=window.requestAnimationFrame);io=to;pv="undefined"!=typeof window&&window.performance&&"function"==typeof window.performance.now?function(){return window.performance.now()}:function(){return Date.now()};ro=pv;wv={construct:{deprecated:"beforeInit",replacement:"onconstruct"},render:{deprecated:"init",message:'The "init" method has been deprecated and will likely be removed in a future release. You can either use the "oninit" method which will fire only once prior to, and regardless of, any eventual ractive instance being rendered, or if you need to access the rendered DOM, use "onrender" instead. See http://docs.ractivejs.org/latest/migrating for more information.'},complete:{deprecated:"complete",replacement:"oncomplete"}};ac.prototype.fire=function(n,t){function i(i){if(n[i])return(t?n[i](t):n[i](),!0)}i(this.method);!n[this.method]&&this.deprecate&&i(this.deprecate.deprecated)&&(this.deprecate.message?e(this.deprecate.message):e('The method "%s" has been deprecated in favor of "%s" and will likely be removed in a future release. See http://docs.ractivejs.org/latest/migrating for more information.',this.deprecate.deprecated,this.deprecate.replacement));t?n.fire(this.event,t):n.fire(this.event)};var w,l=ac,uo={},bv={},twt={};"function"==typeof Promise?w=Promise:(w=function(n){var e,i,r,o,u,f,s=[],h=[],t=uo;r=function(n){return function(r){t===uo&&(e=r,t=n,i=cn(t===bv?s:h,e),wc(i))}};o=r(bv);u=r(twt);try{n(o,u)}catch(c){u(c)}return f={then:function(n,r){var u=new w(function(f,e){var o=function(n,t,i){t.push("function"==typeof n?function(t){var i;try{i=n(t);bc(u,i,f,e)}catch(r){e(r)}}:i)};o(n,s,f);o(r,h,e);t!==uo&&wc(i)});return u}},f["catch"]=function(n){return this.then(null,n)},f},w.all=function(n){return new w(function(t,i){var f,u,e,r=[];if(!n.length)return void t(r);for(e=function(n,u){n&&"function"==typeof n.then?n.then(function(n){r[u]=n;--f||t(r)},i):(r[u]=n,--f||t(r))},f=u=n.length;u--;)e(n[u],u)})},w.resolve=function(n){return new w(function(t){t(n)})},w.reject=function(n){return new w(function(t,i){i(n)})});var gt=w,kv=function(n){do if(void 0!==n.context)return n.context;while(n=n.parent);return dt},yu=ln,dv=function(n,t){this.callback=n;this.parent=t;this.intros=[];this.outros=[];this.children=[];this.totalChildren=this.outroChildren=0;this.detachQueue=[];this.decoratorQueue=[];this.outrosComplete=!1;t&&t.addChild(this)};dv.prototype={addChild:function(n){this.children.push(n);this.totalChildren+=1;this.outroChildren+=1},decrementOutros:function(){this.outroChildren-=1;eu(this)},decrementTotal:function(){this.totalChildren-=1;eu(this)},add:function(n){var t=n.isIntro?this.intros:this.outros;t.push(n)},addDecorator:function(n){this.decoratorQueue.push(n)},remove:function(n){var t=n.isIntro?this.intros:this.outros;c(t,n);eu(this)},init:function(){this.ready=!0;eu(this)},detachNodes:function(){this.decoratorQueue.forEach(gc);this.detachQueue.forEach(yn);this.children.forEach(pn)}};var i,gv,iwt=dv,ci=[],rwt=new l("change");gv={start:function(n,t){var r,u;return t&&(r=new gt(function(n){return u=n})),i={previousBatch:i,transitionManager:new iwt(u,i&&i.transitionManager),views:[],tasks:[],ractives:[],instance:n},n&&i.ractives.push(n),r},end:function(){tl();i.transitionManager.init();!i.previousBatch&&i.instance&&(i.instance.viewmodel.changes=[]);i=i.previousBatch},addRactive:function(n){i&&vc(i.ractives,n)},registerTransition:function(n){n._manager=i.transitionManager;i.transitionManager.add(n)},registerDecorator:function(n){i.transitionManager.addDecorator(n)},addView:function(n){i.views.push(n)},addUnresolved:function(n){ci.push(n)},removeUnresolved:function(n){c(ci,n)},detachWhenReady:function(n){i.transitionManager.detachQueue.push(n)},scheduleTask:function(n,t){var r;if(i){for(r=i;t&&r.previousBatch;)r=r.previousBatch;r.tasks.push(n)}else n()}};var n=gv,ni=[],li={tick:function(){var t,i,r;for(r=ro(),n.start(),t=0;t<ni.length;t+=1)i=ni[t],i.tick(r)||ni.splice(t--,1);n.end();ni.length?io(li.tick):li.running=!1},add:function(n){ni.push(n);li.running||(li.running=!0,io(li.tick))},abort:function(n,t){for(var i,r=ni.length;r--;)i=ni[r],i.root===t&&i.keypath===n&&i.stop()}},fo=li,ny=function(n){var t;this.startTime=Date.now();for(t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);this.interpolator=lu(this.from,this.to,this.root,this.interpolator);this.running=!0;this.tick()};ny.prototype={tick:function(){var i,r,u,o,f,t;return t=this.keypath,this.running?(o=Date.now(),i=o-this.startTime,i>=this.duration?(null!==t&&(n.start(this.root),this.root.viewmodel.set(t,this.to),n.end()),this.step&&this.step(1,this.to),this.complete(this.to),f=this.root._animations.indexOf(this),-1===f&&e("Animation was not found"),this.root._animations.splice(f,1),this.running=!1,!1):(r=this.easing?this.easing(i/this.duration):i/this.duration,null!==t&&(u=this.interpolator(r),n.start(this.root),this.root.viewmodel.set(t,u),n.end()),this.step&&this.step(r,u),!0)):!1},stop:function(){var n;this.running=!1;n=this.root._animations.indexOf(this);-1===n&&e("Animation was not found");this.root._animations.splice(n,1)}};var uwt=ny,fwt=kn,ewt={stop:s},owt=dn,swt=new l("detach"),hwt=gn,cwt=ntt,lwt=function(){var n,t,i;n=this._root[this._isComponentQuery?"liveComponentQueries":"liveQueries"];t=this.selector;i=n.indexOf(t);-1!==i&&(n.splice(i,1),n[t]=null)},ty=function(n,t){var u,f,i,r,l,e,o,c,s,h;for(u=rl(n.component||n._ractive.proxy),f=rl(t.component||t._ractive.proxy),i=at(u),r=at(f);i&&i===r;)u.pop(),f.pop(),l=i,i=at(u),r=at(f);if(i=i.component||i,r=r.component||r,s=i.parentFragment,h=r.parentFragment,s===h)return e=s.items.indexOf(i),o=h.items.indexOf(r),e-o||u.length-f.length;if(c=l.fragments)return e=c.indexOf(s),o=c.indexOf(h),e-o||u.length-f.length;throw new Error("An unexpected condition was met while comparing the position of two components. Please file an issue at https://github.com/RactiveJS/Ractive/issues - thanks!");},awt=function(n,t){var i;return n.compareDocumentPosition?(i=n.compareDocumentPosition(t),2&i?1:-1):ty(n,t)},vwt=function(){this.sort(this._isComponentQuery?ty:awt);this._dirty=!1},ywt=function(){var t=this;this._dirty||(this._dirty=!0,n.scheduleTask(function(){t._sort()}))},pwt=function(n){var t=this.indexOf(this._isComponentQuery?n.instance:n);-1!==t&&this.splice(t,1)},iy=ttt,wwt=itt,bwt=rtt,kwt=utt,dwt=ftt,gwt=ett,nbt={enqueue:function(n,t){n.event&&(n._eventQueue=n._eventQueue||[],n._eventQueue.push(n.event));n.event=t},dequeue:function(n){n._eventQueue&&n._eventQueue.length?n.event=n._eventQueue.pop():delete n.event}},pu=nbt,lr=ott,tbt=htt,ibt=ctt,rbt={capture:!0,noUnwrap:!0,fullRootGet:!0},ubt=ltt,fbt=new l("insert"),ebt=att,ry=function(n,t,i,r){this.root=n;this.keypath=t;this.callback=i;this.defer=r.defer;this.context=r&&r.context?r.context:n};ry.prototype={init:function(n){this.value=this.root.get(this.keypath.str);n!==!1?this.update():this.oldValue=this.value},setValue:function(t){var i=this;ct(t,this.value)||(this.value=t,this.defer&&this.ready?n.scheduleTask(function(){return i.update()}):this.update())},update:function(){this.updating||(this.updating=!0,this.callback.call(this.context,this.value,this.oldValue,this.keypath.str),this.oldValue=this.value,this.updating=!1)}};var eo,obt=ry,uy=vtt,sbt=Array.prototype.slice;eo=function(n,t,i,r){this.root=n;this.callback=i;this.defer=r.defer;this.keypath=t;this.regex=new RegExp("^"+t.str.replace(/\./g,"\\.").replace(/\*/g,"([^\\.]+)")+"$");this.values={};this.defer&&(this.proxies=[]);this.context=r&&r.context?r.context:n};eo.prototype={init:function(n){var i,r;if(i=uy(this.root,this.keypath),n!==!1)for(r in i)i.hasOwnProperty(r)&&this.update(t(r));else this.values=i},update:function(i){var r,u=this;if(i.isPattern){r=uy(this.root,i);for(i in r)r.hasOwnProperty(i)&&this.update(t(i))}else if(!this.root.viewmodel.implicitChanges[i.str])return this.defer&&this.ready?void n.scheduleTask(function(){return u.getProxy(i).update()}):void this.reallyUpdate(i)},reallyUpdate:function(n){var t,i,r,u;return t=n.str,i=this.root.viewmodel.get(n),this.updating?void(this.values[t]=i):(this.updating=!0,ct(i,this.values[t])&&this.ready||(r=sbt.call(this.regex.exec(t),1),u=[i,this.values[t],t].concat(r),this.values[t]=i,this.callback.apply(this.context,u)),void(this.updating=!1))},getProxy:function(n){var t=this;return this.proxies[n.str]||(this.proxies[n.str]={update:function(){return t.reallyUpdate(n)}}),this.proxies[n.str]}};var oo,fy,ar,ey,so,ho,hbt=eo,co=ytt,cbt={},lbt=ptt,abt=wtt,oy=function(n){return n.trim()},sy=function(n){return""!==n},vbt=btt,ybt=ktt,pbt=dtt,hy=gtt,wbt=Array.prototype,ti=function(i){return function(r){for(var f,a,c,l,o,s=arguments.length,h=Array(s>1?s-1:0),e=1;s>e;e++)h[e-1]=arguments[e];if(o=[],r=t(g(r)),f=this.viewmodel.get(r),a=f.length,!u(f))throw new Error("Called ractive."+i+"('"+r.str+"'), but '"+r.str+"' does not refer to an array");return o=hy(f,i,h),l=wbt[i].apply(f,h),c=n.start(this,!0).then(function(){return l}),o?this.viewmodel.smartUpdate(r,f,o):this.viewmodel.mark(r),n.end(),c}},bbt=ti("pop"),kbt=ti("push"),dbt="/* Ractive.js component styles */\n",cy=[],lo=!1;tt?(ar=document.createElement("style"),ar.type="text/css",ey=document.getElementsByTagName("head")[0],ho=!1,so=ar.styleSheet,fy=function(){var n=dbt+cy.map(function(n){return"\n/* {"+n.id+"} */\n"+n.styles}).join("\n");so?so.cssText=n:ar.innerHTML=n;ho||(ey.appendChild(ar),ho=!0)},oo={add:function(n){cy.push(n);lo=!0},apply:function(){lo&&(fy(),lo=!1)}}):oo={add:s,apply:s};var ai,ao,ly=oo,gbt=tit,nkt=new l("render"),tkt=new l("complete"),ikt={extend:function(n,t,i){t.adapt=rit(t.adapt,pc(i.adapt))},init:function(){}},ay=ikt,rkt=uit,ukt=/(?:^|\})?\s*([^\{\}]+)\s*\{/g,fkt=/\/\*.*?\*\//g,ekt=/((?:(?:\[[^\]+]\])|(?:[^\s\+\>\~:]))+)((?::[^\s\+\>\~\(]+(?:\([^\)]+\))?)?\s*[\s\+\>\~]?)\s*/g,okt=/^@media/,vy=/\[data-ractive-css~="\{[a-z0-9-]+\}"]/g,skt=1,hkt={name:"css",extend:function(n,t,i){if(i.css){var r=skt++,u=i.noCssTransform?i.css:rkt(i.css,r);t.cssId=r;ly.add({id:r,styles:u})}},init:function(){}},yy=hkt,ckt={name:"data",extend:function(n,t,i){var f=void 0,r=void 0;if(i.data&&d(i.data))for(f in i.data)r=i.data[f],r&&"object"==typeof r&&(d(r)||u(r))&&e("Passing a `data` option with object and array properties to Ractive.extend() is discouraged, as mutating them is likely to cause bugs. Consider using a data function instead:\n\n  // this...\n  data: function () {\n    return {\n      myObject: {}\n    };\n  })\n\n  // instead of this:\n  data: {\n    myObject: {}\n  }");t.data=el(t.data,i.data)},init:function(n,t,i){var r=el(n.prototype.data,i.data);return"function"==typeof r&&(r=r.call(t)),r||{}},reset:function(n){var t=this.init(n.constructor,n,n.viewmodel);return n.viewmodel.reset(t),!0}},vo=ckt,lkt=/^\s+/;ao=function(n){this.name="ParseError";this.message=n;try{throw new Error(n);}catch(t){this.stack=t.stack}};ao.prototype=Error.prototype;ai=function(n,t){var i,r,u=0;for(this.str=n,this.options=t||{},this.pos=0,this.lines=this.str.split("\n"),this.lineEnds=this.lines.map(function(n){var t=u+n.length+1;return u=t,t},0),this.init&&this.init(n,t),i=[];this.pos<this.str.length&&(r=this.read());)i.push(r);this.leftover=this.remaining();this.result=this.postProcess?this.postProcess(i,t):i};ai.prototype={read:function(n){var i,t,r,u;for(n||(n=this.converters),i=this.pos,r=n.length,t=0;r>t;t+=1)if(this.pos=i,u=n[t](this))return u;return null},getLinePos:function(n){for(var i,t=0,r=0;n>=this.lineEnds[t];)r=this.lineEnds[t],t+=1;return i=n-r,[t+1,i+1,n]},error:function(n){var t=this.getLinePos(this.pos),u=t[0],f=t[1],e=this.lines[t[0]-1],r=0,o=e.replace(/\t/g,function(n,i){return i<t[1]&&(r+=1),"  "})+"\n"+new Array(t[1]+r).join(" ")+"^----",i=new ao(""+n+" at line "+u+" character "+f+":\n"+o);throw i.line=t[0],i.character=t[1],i.shortMessage=n,i;},matchString:function(n){if(this.str.substr(this.pos,n.length)===n)return(this.pos+=n.length,n)},matchPattern:function(n){var t;if((t=n.exec(this.remaining())))return(this.pos+=t[0].length,t[1]||t[0])},allowWhitespace:function(){this.matchPattern(lkt)},remaining:function(){return this.str.substring(this.pos)},nextChar:function(){return this.str.charAt(this.pos)}};ai.extend=function(n){var t,i,r=this;t=function(n,t){ai.call(this,n,t)};t.prototype=f(r.prototype);for(i in n)kt.call(n,i)&&(t.prototype[i]=n[i]);return t.extend=ai.extend,t};var py,wy,by,yo=ai,ky=1,vr=2,wu=3,ft=4,akt=5,vkt=6,yr=7,bu=8,vi=9,dy=10,ykt=13,pkt=14,gy=15,ku=16,np=17,tp=18,po=20,wo=21,ip=22,rp=23,bo=24,up=25,fp=26,ep=27,ii=30,du=31,ko=32,gu=33,nf=34,op=35,go=36,sp=40,yi=50,yt=51,ri=52,pi=53,ns=54,wkt=60,bkt=61,kkt=sit,hp=/^[^\s=]+/,dkt=/^\s+/,cp=hit,gkt=/^(\/(?:[^\n\r\u2028\u2029\/\\[]|\\.|\[(?:[^\n\r\u2028\u2029\]\\]|\\.)*])+\/(?:([gimuy])(?![a-z]*\2))*(?![a-zA-Z_$0-9]))/,wi=cit,ndt={t:dy,exclude:!0},bi="Expected a JavaScript expression",lp="Expected closing paren",ap=ait,tdt=/^(?:[+-]?)0*(?:(?:(?:[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/,idt=vit;py=/^(?=.)[^"'\\]+?(?:(?!.)|(?=["'\\]))/;wy=/^\\(?:['"\\bfnrt]|0(?![0-9])|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|(?=.)[^ux0-9])/;by=/^\\(?:\r\n|[\u000A\u000D\u2028\u2029])/;var ts,vp,yp=function(n){return function(t){var f,r,u,i;for(f=t.pos,r='"',u=!1;!u;)i=t.matchPattern(py)||t.matchPattern(wy)||t.matchString(n),i?r+='"'===i?'\\"':"\\'"===i?"'":i:(i=t.matchPattern(by),i?r+="\\u"+("000"+i.charCodeAt(1).toString(16)).slice(-4):u=!0);return r+='"',JSON.parse(r)}},rdt=yp('"'),udt=yp("'"),is=function(n){var i,t;return i=n.pos,n.matchString('"')?(t=udt(n),n.matchString('"')?{t:wo,v:t}:(n.pos=i,null)):n.matchString("'")?(t=rdt(n),n.matchString("'")?{t:wo,v:t}:(n.pos=i,null)):null},pp=/^[a-zA-Z_$][a-zA-Z_$0-9]*/,wp=yit,fdt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,edt=pit,odt=hl,sdt=function(n){var t,i;return t=n.pos,n.allowWhitespace(),n.matchString("{")?(i=odt(n),n.allowWhitespace(),n.matchString("}")?{t:rp,m:i}:(n.pos=t,null)):(n.pos=t,null)},bp=cl,hdt=function(n){var t,i;return t=n.pos,n.allowWhitespace(),n.matchString("[")?(i=bp(n),n.matchString("]")?{t:ip,m:i}:(n.pos=t,null)):(n.pos=t,null)},cdt=wit,kp=bit,ldt=/^(?:~\/|(?:\.\.\/)+|\.\/(?:\.\.\/)*|\.)/;ts=/^(?:Array|console|Date|RegExp|decodeURIComponent|decodeURI|encodeURIComponent|encodeURI|isFinite|isNaN|parseFloat|parseInt|JSON|Math|NaN|undefined|null)\b/;vp=/^(?:break|case|catch|continue|debugger|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|var|void|while|with)$/;var dp,gp,adt=/^[a-zA-Z$_0-9]+(?:(?:\.[a-zA-Z$_0-9]+)|(?:\[[0-9]+\]))*/,vdt=/^[a-zA-Z_$][-a-zA-Z_$0-9]*/,ydt=kit,pdt=function(n){return cdt(n)||kp(n)||ydt(n)},wdt=dit,bdt=function(n){var u,t,r,i;if(t=pdt(n),!t)return null;for(;t;)if(u=n.pos,r=wdt(n))t={t:ko,x:t,r:r};else{if(!n.matchString("("))break;n.allowWhitespace();i=bp(n);n.allowWhitespace();n.matchString(")")||n.error(lp);t={t:sp,x:t};i&&(t.o=i)}return t};gp=function(n,t){return function(i){var r;return(r=t(i))?r:i.matchString(n)?(i.allowWhitespace(),r=h(i),r||i.error(bi),{s:n,o:r,t:gu}):null}},function(){var n,r,u,i,t;for(i="! ~ + - typeof".split(" "),t=bdt,n=0,r=i.length;r>n;n+=1)u=gp(i[n],t),t=u;dp=t}();iw=dp;tw=function(n,t){return function(i){var f,r,u;if(r=t(i),!r)return null;for(;;){if((f=i.pos,i.allowWhitespace(),!i.matchString(n))||"in"===n&&/[a-zA-Z_$0-9]/.test(i.remaining().charAt(0))||(i.allowWhitespace(),u=t(i),!u))return i.pos=f,r;r={t:go,s:n,o:[r,u]}}}},function(){var n,r,u,i,t;for(i="* / % + - << >> >>> < <= > >= in instanceof == != === !== & ^ | && ||".split(" "),t=iw,n=0,r=i.length;r>n;n+=1)u=tw(i[n],t),t=u;nw=t}();var rw,tf,rs,uw,fw,ew,ow,sw,kdt=nw,ddt=git,h=nrt,pr=trt,pt=irt,gdt=/^[0-9][1-9]*$/,ngt=urt,hw=frt,tgt=ert,igt=ort,rgt=srt,cw=hrt,ugt=crt,fgt=/^yield\s*/,us=lrt,egt=art,ogt=/^\s*else\s*/,sgt=vrt,hgt=/^\s*elseif\s+/,lw={each:ri,"if":yi,"if-with":ns,"with":pi,unless:yt},aw=yrt,cgt=/^\s*:\s*([a-zA-Z_$][a-zA-Z_$0-9]*)/,lgt=/^\s*,\s*([a-zA-Z_$][a-zA-Z_$0-9]*)/,agt=new RegExp("^("+Object.keys(lw).join("|")+")\\b"),vgt=prt,ygt="<!--",pgt="-->";rw=/^(allowFullscreen|async|autofocus|autoplay|checked|compact|controls|declare|default|defaultChecked|defaultMuted|defaultSelected|defer|disabled|enabled|formNoValidate|hidden|indeterminate|inert|isMap|itemScope|loop|multiple|muted|noHref|noResize|noShade|noValidate|noWrap|open|pauseOnExit|readOnly|required|reversed|scoped|seamless|selected|sortable|translate|trueSpeed|typeMustMatch|visible)$/i;tf=/^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;rs={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};uw=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];fw=new RegExp("&(#?(?:x[\\w\\d]+|\\d+|"+Object.keys(rs).join("|")+"));?","g");ew=/</g;ow=/>/g;sw=/&/g;var vw,fs,yw,pw,ww,bw,kw,ki=/^\s*\r?\n/,di=/\r?\n\s*$/,wgt=function(n){for(var t,r,u,f,i=1;i<n.length;i+=1)t=n[i],r=n[i-1],u=n[i-2],ei(t)&&brt(r)&&ei(u)&&di.test(u)&&ki.test(t)&&(n[i-2]=u.replace(di,"\n"),n[i]=t.replace(ki,"")),vl(t)&&ei(r)&&di.test(r)&&ei(t.f[0])&&ki.test(t.f[0])&&(n[i-1]=r.replace(di,"\n"),t.f[0]=t.f[0].replace(ki,"")),ei(t)&&vl(r)&&(f=at(r.f),ei(f)&&di.test(f)&&ki.test(t)&&(r.f[r.f.length-1]=f.replace(di,"\n"),n[i]=t.replace(ki,"")));return n},dw=function(n,t,i){var r;t&&(r=n[0],"string"==typeof r&&(r=r.replace(t,""),r?n[0]=r:n.shift()));i&&(r=at(n),"string"==typeof r&&(r=r.replace(i,""),r?n[n.length-1]=r:n.pop()))},es=bt,bgt=/[ \t\f\r\n]+/g,kgt=/^(?:pre|script|style|textarea)$/i,gw=/^[ \t\f\r\n]+/,nb=/[ \t\f\r\n]+$/,dgt=/^(?:\r\n|\r|\n)/,ggt=/(?:\r\n|\r|\n)$/,nnt=krt,tnt=/^([a-zA-Z]{1,}:?[a-zA-Z0-9\-]*)\s*\>/,os=function(n,t){for(var i,r,u=t.length;u--;){if(i=n.indexOf(t[u]),!i)return 0;-1!==i&&(!r||r>i)&&(r=i)}return r||-1},int=drt,rnt=/^[^\s"'>\/=]+/,unt=/^[^\s"'=<>`]+/;fs={"true":!0,"false":!1,undefined:void 0,"null":null};yw=new RegExp("^(?:"+Object.keys(fs).join("|")+")");pw=/^(?:[+-]?)(?:(?:(?:0|[1-9]\d*)?\.\d+)|(?:(?:0|[1-9]\d*)\.)|(?:0|[1-9]\d*))(?:[eE][+-]?\d+)?/;ww=/\$\{([^\}]+)\}/g;bw=/^\$\{([^\}]+)\}/;kw=/^\s*$/;vw=yo.extend({init:function(n,t){this.values=t.values;this.allowWhitespace()},postProcess:function(n){return 1===n.length&&kw.test(this.leftover)?{value:n[0].v}:null},converters:[function(n){var t;return n.values?(t=n.matchPattern(bw),t&&n.values.hasOwnProperty(t)?{v:n.values[t]}:void 0):null},function(n){var t;if((t=n.matchPattern(yw)))return{v:fs[t]}},function(n){var t;if((t=n.matchPattern(pw)))return{v:+t}},function(n){var t,i=is(n);return i&&(t=n.values)?{v:i.v.replace(ww,function(n,i){return i in t?t[i]:i})}:i},function(n){var t,i;if(!n.matchString("{"))return null;if(t={},n.allowWhitespace(),n.matchString("}"))return{v:t};for(;i=tut(n);){if(t[i.key]=i.value,n.allowWhitespace(),n.matchString("}"))return{v:t};if(!n.matchString(","))return null}return null},function(n){var t,i;if(!n.matchString("["))return null;if(t=[],n.allowWhitespace(),n.matchString("]"))return{v:t};for(;i=n.read();){if(t.push(i.v),n.allowWhitespace(),n.matchString("]"))return{v:t};if(!n.matchString(","))return null;n.allowWhitespace()}return null}]});var tb,rf=function(n,t){var i=new vw(n,{values:t});return i.result},ib=iut,fnt=/^([a-zA-Z_$][a-zA-Z_$0-9]*)\(/,ent=/\)\s*$/;tb=yo.extend({converters:[h]});var rb,ont=/^[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/,snt=/^[\s\n\/>]/,hnt=/^on/,cnt=/^on-([a-zA-Z\\*\\.$_][a-zA-Z\\*\\.$_0-9\-]+)$/,lnt=/^(?:change|reset|teardown|update|construct|config|init|render|unrender|detach|insert)$/,ant={"intro-outro":"t0",intro:"t1",outro:"t2",decorator:"o"},vnt={exclude:!0};rb={li:["li"],dt:["dt","dd"],dd:["dt","dd"],p:"address article aside blockquote div dl fieldset footer form h1 h2 h3 h4 h5 h6 header hgroup hr main menu nav ol p pre section table ul".split(" "),rt:["rt","rp"],rp:["rt","rp"],optgroup:["optgroup"],option:["option","optgroup"],thead:["tbody","tfoot"],tbody:["tbody","tfoot"],tfoot:["tbody"],tr:["tr","tbody"],td:["td","th","tr"],th:["td","th","tr"]};var ss,ynt=rut,pnt=fut,ub=eut,wnt=/[-\/\\^$*+?.()|[\]{}]/g,bnt=out,knt=/^<!--\s*/,dnt=/s*>\s*([a-zA-Z_$][-a-zA-Z_$0-9]*)\s*/,gnt=/\s*-->/,nti=sut,tti=/^#\s*partial\s+/,iti=hut,uf=cut,rti=[tgt,hw,aw,ugt,cw,igt],fb=[ngt],uti=[hw,aw,cw],eb=void 0,wr=[wi,vgt,ynt,pnt],ob=[bnt,nti];eb=yo.extend({init:function(n,t){var i=t.tripleDelimiters||["{{{","}}}"],r=t.staticDelimiters||["[[","]]"],u=t.staticTripleDelimiters||["[[[","]]]"];this.standardDelimiters=t.delimiters||["{{","}}"];this.tags=[{isStatic:!1,isTriple:!1,open:this.standardDelimiters[0],close:this.standardDelimiters[1],readers:rti},{isStatic:!1,isTriple:!0,open:i[0],close:i[1],readers:fb},{isStatic:!0,isTriple:!1,open:r[0],close:r[1],readers:uti},{isStatic:!0,isTriple:!0,open:u[0],close:u[1],readers:fb}];this.sortMustacheTags();this.sectionDepth=0;this.elementStack=[];this.interpolate={script:!t.interpolate||t.interpolate.script!==!1,style:!t.interpolate||t.interpolate.style!==!1};t.sanitize===!0&&(t.sanitize={elements:"applet base basefont body frame frameset head html isindex link meta noframes noscript object param script style title".split(" "),eventAttributes:!0});this.stripComments=t.stripComments!==!1;this.preserveWhitespace=t.preserveWhitespace;this.sanitizeElements=t.sanitize&&t.sanitize.elements;this.sanitizeEventAttributes=t.sanitize&&t.sanitize.eventAttributes;this.includeLinePositions=t.includeLinePositions},postProcess:function(n){return n.length?(this.sectionDepth>0&&this.error("A section was left open"),es(n[0].t,this.stripComments,this.preserveWhitespace,!this.preserveWhitespace,!this.preserveWhitespace),n[0]):{t:[],v:sr}},converters:[iti],sortMustacheTags:function(){this.tags.sort(function(n,t){return t.open.length-n.open.length})}});var sb,ff,hb,fti=["preserveWhitespace","sanitize","stripComments","delimiters","tripleDelimiters","interpolate"],cb={fromId:aut,isHashedId:kl,isParsed:vut,getParseOptions:yut,createHelper:lut,parse:bl},v=cb,eti={name:"template",extend:function(n,t,i){var r;"template"in i&&(r=i.template,t.template="function"==typeof r?r:ou(r,t))},init:function(n,t,i){var r,u;r="template"in i?i.template:n.prototype.template;"function"==typeof r&&(u=r,r=dl(t,u),t._config.template={fn:u,result:r});r=ou(r,t);t.template=r.t;r.p&&gl(t.partials,r.p)},reset:function(n){var t,i=put(n);if(i)return(t=ou(i,n),n.template=t.t,gl(n.partials,t.p,!0),!0)}},hs=eti;sb=["adaptors","components","computed","decorators","easing","events","interpolators","partials","transitions"];ff=function(n,t){this.name=n;this.useDefaults=t};ff.prototype={constructor:ff,extend:function(n,t,i){this.configure(this.useDefaults?n.defaults:n,this.useDefaults?t:t.constructor,i)},init:function(){},configure:function(n,t,i){var r,u=this.name,o=i[u],e;r=f(n[u]);for(e in o)r[e]=o[e];t[u]=r},reset:function(n){var t=n[this.name],i=!1;return Object.keys(t).forEach(function(n){var r=t[n];r._fn&&(r._fn.isOwner?t[n]=r._fn:delete t[n],i=!0)}),i}};hb=sb.map(function(n){return new ff(n,"computed"===n)});var lb,cs,ef,gi,ab,vb,br=hb,oti=but,sti=dut;gi={adapt:ay,css:yy,data:vo,template:hs};ef=Object.keys(sv);vb=ia(ef.filter(function(n){return!gi[n]}));ab=ia(ef.concat(br.map(function(n){return n.name})));cs=[].concat(ef.filter(function(n){return!br[n]&&!gi[n]}),br,gi.data,gi.template,gi.css);lb={extend:function(n,t,i){return ta("extend",n,t,i)},init:function(n,t,i){return ta("init",n,t,i)},reset:function(n){return cs.filter(function(t){return t.reset&&t.reset(n)}).map(function(n){return n.name})},order:cs};var ls=lb,hti=nft,cti=tft,lti=ift,ati=rft,vti=uft,yti=fft,pti=eft,wti=oft,yb=ra,bti=sft,kti=hft,dti=cft,as=function(){return vf(this.node)},pb=function(n){this.type=ky;this.text=n.template};pb.prototype={detach:as,firstNode:function(){return this.node},render:function(){return this.node||(this.node=document.createTextNode(this.text)),this.node},toString:function(n){return n?fe(this.text):this.text},unrender:function(n){if(n)return this.detach()}};var gti=pb,nr=lft,nii=aft,wb=function(t,i,r){var u;this.ref=i;this.resolved=!1;this.root=t.root;this.parentFragment=t.parentFragment;this.callback=r;u=yu(t.root,i,t.parentFragment);void 0!=u?this.resolve(u):n.addUnresolved(this)};wb.prototype={resolve:function(t){this.keypath&&!t&&n.addUnresolved(this);this.resolved=!0;this.keypath=t;this.callback(t)},forceResolution:function(){this.resolve(t(this.ref))},rebind:function(n,t){var i;void 0!=this.keypath&&(i=this.keypath.replace(n,t),void 0!==i&&this.resolve(i))},unbind:function(){this.resolved||n.removeUnresolved(this)}};var bb=wb,kb=function(n,t,i){this.parentFragment=n.parentFragment;this.ref=t;this.callback=i;this.rebind()},tii={"@keypath":{prefix:"c",prop:["context"]},"@index":{prefix:"i",prop:["index"]},"@key":{prefix:"k",prop:["key","index"]}};kb.prototype={rebind:function(){var r,u=this.ref,n=this.parentFragment,i=tii[u];if(!i)throw new Error('Unknown special reference "'+u+'" - valid references are @index, @key and @keypath');if(this.cached)return this.callback(t("@"+i.prefix+ee(this.cached,i)));if(-1!==i.prop.indexOf("index")||-1!==i.prop.indexOf("key"))for(;n;){if(n.owner.currentSubtype===ri&&void 0!==(r=ee(n,i)))return this.cached=n,n.registerIndexRef(this),this.callback(t("@"+i.prefix+r));n=!n.parent&&n.owner&&n.owner.component&&n.owner.component.parentFragment&&!n.owner.component.instance.isolated?n.owner.component.parentFragment:n.parent}else for(;n;){if(void 0!==(r=ee(n,i)))return this.callback(t("@"+i.prefix+r.str));n=n.parent}},unbind:function(){this.cached&&this.cached.unregisterIndexRef(this)}};db=kb;vs=function(n,t,i){this.parentFragment=n.parentFragment;this.ref=t;this.callback=i;t.ref.fragment.registerIndexRef(this);this.rebind()};vs.prototype={rebind:function(){var n,i=this.ref.ref;n="k"===i.ref.t?"k"+i.fragment.key:"i"+i.fragment.index;void 0!==n&&this.callback(t("@"+n))},unbind:function(){this.ref.ref.fragment.unregisterIndexRef(this)}};gb=vs;tr=ua;ua.resolve=function(n){var i,t,r={};for(i in n.refs)t=n.refs[i],r[t.ref.n]="k"===t.ref.t?t.fragment.key:t.fragment.index;return r};var ys,kr=vft,nk=yft,ps={},iii=Function.prototype.bind;ys=function(n,t,i,r){var u,f=this;u=n.root;this.root=u;this.parentFragment=t;this.callback=r;this.owner=n;this.str=i.s;this.keypaths=[];this.pending=i.r.length;this.refResolvers=i.r.map(function(n,t){return kr(f,n,function(n){f.resolve(t,n)})});this.ready=!0;this.bubble()};ys.prototype={bubble:function(){this.ready&&(this.uniqueString=wft(this.str,this.keypaths),this.keypath=bft(this.uniqueString),this.createEvaluator(),this.callback(this.keypath))},unbind:function(){for(var n;n=this.refResolvers.pop();)n.unbind()},resolve:function(n,t){this.keypaths[n]=t;this.bubble()},createEvaluator:function(){var t,i,r,n,u,f=this;n=this.keypath;t=this.root.viewmodel.computations[n.str];t?this.root.viewmodel.mark(n):(u=nk(this.str,this.refResolvers.length),i=this.keypaths.map(function(n){var t;return"undefined"===n?function(){return void 0}:n.isSpecial?(t=n.value,function(){return t}):function(){var t=f.root.viewmodel.get(n,{noUnwrap:!0,fullRootGet:!0});return"function"==typeof t&&(t=dft(t,f.root)),t}}),r={deps:this.keypaths.filter(kft),getter:function(){var n=i.map(pft);return u.apply(null,n)}},t=this.root.viewmodel.compute(n,r))},rebind:function(n,t){this.refResolvers.forEach(function(i){return i.rebind(n,t)})}};of=ys;ws=function(n,t,i){var r=this;this.resolver=t;this.root=t.root;this.parentFragment=i;this.viewmodel=t.root.viewmodel;"string"==typeof n?this.value=n:n.t===ii?this.refResolver=kr(this,n.n,function(n){r.resolve(n)}):new of(t,i,n,function(n){r.resolve(n)})};ws.prototype={resolve:function(n){this.keypath&&this.viewmodel.unregister(this.keypath,this);this.keypath=n;this.value=this.viewmodel.get(n);this.bind();this.resolver.bubble()},bind:function(){this.viewmodel.register(this.keypath,this)},rebind:function(n,t){this.refResolver&&this.refResolver.rebind(n,t)},setValue:function(n){this.value=n;this.resolver.bubble()},unbind:function(){this.keypath&&this.viewmodel.unregister(this.keypath,this);this.refResolver&&this.refResolver.unbind()},forceResolution:function(){this.refResolver&&this.refResolver.forceResolution()}};tk=ws;bs=function(n,t,i){var e,u,o,f,r=this;this.parentFragment=f=n.parentFragment;this.root=e=n.root;this.mustache=n;this.ref=u=t.r;this.callback=i;this.unresolved=[];(o=yu(e,u,f))?this.base=o:this.baseResolver=new bb(this,u,function(n){r.base=n;r.baseResolver=null;r.bubble()});this.members=t.m.map(function(n){return new tk(n,r,f)});this.ready=!0;this.bubble()};bs.prototype={getKeypath:function(){var n=this.members.map(gft);return!n.every(net)||this.baseResolver?null:this.base.join(n.join("."))},bubble:function(){this.ready&&!this.baseResolver&&this.callback(this.getKeypath())},unbind:function(){this.members.forEach(nt)},rebind:function(n,t){var r,i;this.base&&(i=this.base.replace(n,t),i&&i!==this.base&&(this.base=i,r=!0));this.members.forEach(function(i){i.rebind(n,t)&&(r=!0)});r&&this.bubble()},forceResolution:function(){this.baseResolver&&(this.base=t(this.ref),this.baseResolver.unbind(),this.baseResolver=null);this.members.forEach(tet);this.bubble()}};var ik=bs,rii=iet,uii=ret,rk=uet,a={getValue:nii,init:rii,resolve:uii,rebind:rk},uk=function(n){this.type=vr;a.init(this,n)};uk.prototype={update:function(){this.node.data=void 0==this.value?"":this.value},resolve:a.resolve,rebind:a.rebind,detach:as,unbind:nr,render:function(){return this.node||(this.node=document.createTextNode(yf(this.value))),this.node},unrender:function(n){n&&vf(this.node)},getValue:a.getValue,setValue:function(t){var i;this.keypath&&(i=this.root.viewmodel.wrapped[this.keypath.str])&&(t=i.get());ct(t,this.value)||(this.value=t,this.parentFragment.bubble(),this.node&&n.addView(this))},firstNode:function(){return this.node},toString:function(n){var t=""+yf(this.value);return n?fe(t):t}};var fii=uk,eii=fet,oii=eet,sii=oet,hii=set,cii=het,lii=cet,aii=aet,vii=vet,yii=yet,pii=function(n,t){a.rebind.call(this,n,t)},wii=wet,bii=bet,kii=iot,dii=rot,gii=uot,nri=oot,fk=function(n){this.type=ft;this.subtype=this.currentSubtype=n.template.n;this.inverted=this.subtype===yt;this.pElement=n.pElement;this.fragments=[];this.fragmentsToCreate=[];this.fragmentsToRender=[];this.fragmentsToUnrender=[];n.template.i&&(this.indexRefs=n.template.i.split(",").map(function(n,t){return{n:n,t:0===t?"k":"i"}}));this.renderedFragments=[];this.length=0;a.init(this,n)};fk.prototype={bubble:eii,detach:oii,find:sii,findAll:hii,findAllComponents:cii,findComponent:lii,findNextNode:aii,firstNode:vii,getIndexRef:function(n){var t,i;if(this.indexRefs)for(t=this.indexRefs.length;t--;)if(i=this.indexRefs[t],i.n===n)return i},getValue:a.getValue,shuffle:yii,rebind:pii,render:wii,resolve:a.resolve,setValue:bii,toString:kii,unbind:dii,unrender:gii,update:nri};var ek,ok,tri=fk,iri=sot,rri=hot,uri=cot,fri=lot,sk={};try{st("table").innerHTML="foo"}catch(vpt){ek=!0;ok={TABLE:['<table class="x">',"<\/table>"],THEAD:['<table><thead class="x">',"<\/thead><\/table>"],TBODY:['<table><tbody class="x">',"<\/tbody><\/table>"],TR:['<table><tr class="x">',"<\/tr><\/table>"],SELECT:['<select class="x">',"<\/select>"]}}var hk=function(n,t,i){var r,e,o,s,f,u=[];if(null!=n&&""!==n){for(ek&&(e=ok[t.tagName])?(r=he("DIV"),r.innerHTML=e[0]+n+e[1],r=r.querySelector(".x"),"SELECT"===r.tagName&&(o=r.options[r.selectedIndex])):t.namespaceURI===p.svg?(r=he("DIV"),r.innerHTML='<svg class="x">'+n+"<\/svg>",r=r.querySelector(".x")):(r=he(t.tagName),r.innerHTML=n,"SELECT"===r.tagName&&(o=r.options[r.selectedIndex]));s=r.firstChild;)u.push(s),i.appendChild(s);if("SELECT"===t.tagName)for(f=u.length;f--;)u[f]!==o&&(u[f].selected=!1)}return u},ck=aot,eri=yot,ori=pot,sri=wot,hri=bot,cri=kot,lk=function(n){this.type=wu;a.init(this,n)};lk.prototype={detach:iri,find:rri,findAll:uri,firstNode:fri,getValue:a.getValue,rebind:a.rebind,render:eri,resolve:a.resolve,setValue:ori,toString:sri,unbind:nr,unrender:hri,update:cri};var ak,vk,yk,pk,lri=lk,ari=function(){this.parentFragment.bubble()},vri=dot,yri=function(n){return this.node?rt(this.node,n)?this.node:this.fragment&&this.fragment.find?this.fragment.find(n):void 0:null},pri=function(n,t){t._test(this,!0)&&t.live&&(this.liveQueries||(this.liveQueries=[])).push(t);this.fragment&&this.fragment.findAll(n,t)},wri=function(n,t){this.fragment&&this.fragment.findAllComponents(n,t)},bri=function(n){if(this.fragment)return this.fragment.findComponent(n)},kri=got,dri=nst,gri=tst,wk=/^true|on|yes|1$/i,nui=/^[0-9]+$/,tui=function(n,t){var i,r,u;return u=t.a||{},r={},i=u.twoway,void 0!==i&&(r.twoway=0===i||wk.test(i)),i=u.lazy,void 0!==i&&(r.lazy=0!==i&&nui.test(i)?parseInt(i):0===i||wk.test(i)),r},iui=ist;ak="altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath vkern".split(" ");vk="attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits contentScriptType contentStyleType diffuseConstant edgeMode externalResourcesRequired filterRes filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ");yk=function(n){for(var i={},t=n.length;t--;)i[n[t].toLowerCase()]=n[t];return i};pk=yk(ak.concat(vk));var ks=function(n){var t=n.toLowerCase();return pk[t]||t},rui=function(n,t){var r,i;if(r=t.indexOf(":"),-1===r||(i=t.substr(0,r),"xmlns"===i))n.name=n.element.namespace!==p.html?ks(t):t;else if(t=t.substring(r+1),n.name=ks(t),n.namespace=p[i.toLowerCase()],n.namespacePrefix=i,!n.namespace)throw'Unknown namespace ("'+i+'")';},uui=rst,fui=ust,eui=fst,oui=est,sui={"accept-charset":"acceptCharset",accesskey:"accessKey",bgcolor:"bgColor","class":"className",codebase:"codeBase",colspan:"colSpan",contenteditable:"contentEditable",datetime:"dateTime",dirname:"dirName","for":"htmlFor","http-equiv":"httpEquiv",ismap:"isMap",maxlength:"maxLength",novalidate:"noValidate",pubdate:"pubDate",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"},hui=ost,cui=hst,lui=cst,aui=lst,vui=ast,yui=vst,pui=yst,wui=pst,bui=wst,kui=bst,dui=kst,bk=dst,gui=gst,nfi=nht,tfi=tht,kk=function(n){this.init(n)};kk.prototype={bubble:iui,init:fui,rebind:eui,render:oui,toString:hui,unbind:cui,update:tfi};dk=kk;gk=function(n,t){var i,r,u=[];for(i in t)"twoway"!==i&&"lazy"!==i&&t.hasOwnProperty(i)&&(r=new dk({element:n,name:i,value:t[i],root:n.root}),u[i]=r,"value"!==i&&u.push(r));return(r=u.value)&&u.push(r),u};"undefined"!=typeof document&&(ds=st("div"));gs=function(n,t){this.element=n;this.root=n.root;this.parentFragment=n.parentFragment;this.attributes=[];this.fragment=new o({root:n.root,owner:this,template:[t]})};gs.prototype={bubble:function(){this.node&&this.update();this.element.bubble()},rebind:function(n,t){this.fragment.rebind(n,t)},render:function(n){this.node=n;this.isSvg=n.namespaceURI===p.svg;this.update()},unbind:function(){this.fragment.unbind()},update:function(){var t,n,i=this;t=this.fragment.toString();n=iht(t,this.isSvg);this.attributes.filter(function(t){return rht(n,t)}).forEach(function(n){i.node.removeAttribute(n.name)});n.forEach(function(n){i.node.setAttribute(n.name,n.value)});this.attributes=n},toString:function(){return this.fragment.toString()}};var ifi=gs,rfi=function(n,t){return t?t.map(function(t){return new ifi(n,t)}):[]},dr=function(n){var t,i,r,u,f;if(this.element=n,this.root=n.root,this.attribute=n.attributes[this.name||"value"],t=this.attribute.interpolator,t.twowayBinding=this,i=t.keypath){if("}"===i.str.slice(-1))return y("Two-way binding does not work with expressions (`%s` on <%s>)",t.resolver.uniqueString,n.name,{ractive:this.root}),!1;if(i.isSpecial)return y("Two-way binding does not work with %s",t.resolver.ref,{ractive:this.root}),!1}else f=t.template.r?"'"+t.template.r+"' reference":"expression",e("The %s being used for two-way binding is ambiguous, and may cause unexpected results. Consider initialising your data to eliminate the ambiguity",f,{ractive:this.root}),t.resolver.forceResolution(),i=t.keypath;this.attribute.isTwoway=!0;this.keypath=i;r=this.root.viewmodel.get(i);void 0===r&&this.getInitialValue&&(r=this.getInitialValue(),void 0!==r&&this.root.viewmodel.set(i,r));(u=uht(n))&&(this.resetValue=r,u.formBindings.push(this))};dr.prototype={handleChange:function(){var t=this;n.start(this.root);this.attribute.locked=!0;this.root.viewmodel.set(this.keypath,this.getValue());n.scheduleTask(function(){return t.attribute.locked=!1});n.end()},rebound:function(){var i,t,n;t=this.keypath;n=this.attribute.interpolator.keypath;t!==n&&(c(this.root._twowayBindings[t.str],this),this.keypath=n,i=this.root._twowayBindings[n.str]||(this.root._twowayBindings[n.str]=[]),i.push(this))},unbind:function(){}};dr.extend=function(n){var t,i=this;return t=function(n){dr.call(this,n);this.init&&this.init()},t.prototype=f(i.prototype),ui(t.prototype,n),t.extend=dr.extend,t};b=dr;r=fht;nd=b.extend({getInitialValue:function(){return""},getValue:function(){return this.element.node.value},render:function(){var n,t=this.element.node,i=!1;this.rendered=!0;n=this.root.lazy;this.element.lazy===!0?n=!0:this.element.lazy===!1?n=!1:lt(this.element.lazy)?(n=!1,i=+this.element.lazy):lt(n||"")&&(i=+n,n=!1,this.element.lazy=i);this.handler=i?eht:r;t.addEventListener("change",r,!1);n||(t.addEventListener("input",this.handler,!1),t.attachEvent&&t.addEventListener("keyup",this.handler,!1));t.addEventListener("blur",oa,!1)},unrender:function(){var n=this.element.node;this.rendered=!1;n.removeEventListener("change",r,!1);n.removeEventListener("input",this.handler,!1);n.removeEventListener("keyup",this.handler,!1);n.removeEventListener("blur",oa,!1)}});var sf=nd,ufi=sf.extend({getInitialValue:function(){return this.element.fragment?this.element.fragment.toString():""},getValue:function(){return this.element.node.innerHTML}}),ffi=ufi,nh=oht,td={},efi=b.extend({name:"checked",init:function(){this.siblings=nh(this.root._guid,"radio",this.element.getAttribute("name"));this.siblings.push(this)},render:function(){var n=this.element.node;n.addEventListener("change",r,!1);n.attachEvent&&n.addEventListener("click",r,!1)},unrender:function(){var n=this.element.node;n.removeEventListener("change",r,!1);n.removeEventListener("click",r,!1)},handleChange:function(){n.start(this.root);this.siblings.forEach(function(n){n.root.viewmodel.set(n.keypath,n.getValue())});n.end()},getValue:function(){return this.element.node.checked},unbind:function(){c(this.siblings,this)}}),ofi=efi,sfi=b.extend({name:"name",init:function(){this.siblings=nh(this.root._guid,"radioname",this.keypath.str);this.siblings.push(this);this.radioName=!0},getInitialValue:function(){if(this.element.getAttribute("checked"))return this.element.getAttribute("value")},render:function(){var n=this.element.node;n.name="{{"+this.keypath.str+"}}";n.checked=this.root.viewmodel.get(this.keypath)==this.element.getAttribute("value");n.addEventListener("change",r,!1);n.attachEvent&&n.addEventListener("click",r,!1)},unrender:function(){var n=this.element.node;n.removeEventListener("change",r,!1);n.removeEventListener("click",r,!1)},getValue:function(){var n=this.element.node;return n._ractive?n._ractive.value:n.value},handleChange:function(){this.element.node.checked&&b.prototype.handleChange.call(this)},rebound:function(n,t){var i;b.prototype.rebound.call(this,n,t);(i=this.element.node)&&(i.name="{{"+this.keypath.str+"}}")},unbind:function(){c(this.siblings,this)}}),hfi=sfi,cfi=b.extend({name:"name",getInitialValue:function(){return this.noInitialValue=!0,[]},init:function(){var n,t;this.checkboxName=!0;this.siblings=nh(this.root._guid,"checkboxes",this.keypath.str);this.siblings.push(this);this.noInitialValue&&(this.siblings.noInitialValue=!0);this.siblings.noInitialValue&&this.element.getAttribute("checked")&&(n=this.root.viewmodel.get(this.keypath),t=this.element.getAttribute("value"),n.push(t))},unbind:function(){c(this.siblings,this)},render:function(){var t,i,n=this.element.node;t=this.root.viewmodel.get(this.keypath);i=this.element.getAttribute("value");this.isChecked=u(t)?yc(t,i):t==i;n.name="{{"+this.keypath.str+"}}";n.checked=this.isChecked;n.addEventListener("change",r,!1);n.attachEvent&&n.addEventListener("click",r,!1)},unrender:function(){var n=this.element.node;n.removeEventListener("change",r,!1);n.removeEventListener("click",r,!1)},changed:function(){var n=!!this.isChecked;return this.isChecked=this.element.node.checked,this.isChecked===n},handleChange:function(){this.isChecked=this.element.node.checked;b.prototype.handleChange.call(this)},getValue:function(){return this.siblings.filter(sht).map(hht)}}),lfi=cfi,afi=b.extend({name:"checked",render:function(){var n=this.element.node;n.addEventListener("change",r,!1);n.attachEvent&&n.addEventListener("click",r,!1)},unrender:function(){var n=this.element.node;n.removeEventListener("change",r,!1);n.removeEventListener("click",r,!1)},getValue:function(){return this.element.node.checked}}),vfi=afi,yfi=b.extend({getInitialValue:function(){var r,n,t,u,i=this.element.options;if(void 0===this.element.getAttribute("value")&&(n=r=i.length,r)){for(;n--;)if(i[n].getAttribute("selected")){t=i[n].getAttribute("value");u=!0;break}if(!u)for(;++n<r;)if(!i[n].getAttribute("disabled")){t=i[n].getAttribute("value");break}return void 0!==t&&(this.element.attributes.value.value=t),t}},render:function(){this.element.node.addEventListener("change",r,!1)},unrender:function(){this.element.node.removeEventListener("change",r,!1)},setValue:function(n){this.root.viewmodel.set(this.keypath,n)},getValue:function(){var t,n,r,i;for(t=this.element.node.options,r=t.length,n=0;r>n;n+=1)if(i=t[n],t[n].selected)return i._ractive?i._ractive.value:i.value},forceUpdate:function(){var i=this,t=this.getValue();void 0!==t&&(this.attribute.locked=!0,n.scheduleTask(function(){return i.attribute.locked=!1}),this.root.viewmodel.set(this.keypath,t))}}),th=yfi,pfi=th.extend({getInitialValue:function(){return this.element.options.filter(function(n){return n.getAttribute("selected")}).map(function(n){return n.getAttribute("value")})},render:function(){var n;this.element.node.addEventListener("change",r,!1);n=this.root.viewmodel.get(this.keypath);void 0===n&&this.handleChange()},unrender:function(){this.element.node.removeEventListener("change",r,!1)},setValue:function(){throw new Error("TODO not implemented yet");},getValue:function(){var i,r,t,u,n,f;for(i=[],r=this.element.node.options,u=r.length,t=0;u>t;t+=1)n=r[t],n.selected&&(f=n._ractive?n._ractive.value:n.value,i.push(f));return i},handleChange:function(){var t,n,i;return t=this.attribute,n=t.value,i=this.getValue(),void 0!==n&&df(i,n)||th.prototype.handleChange.call(this),this},forceUpdate:function(){var i=this,t=this.getValue();void 0!==t&&(this.attribute.locked=!0,n.scheduleTask(function(){return i.attribute.locked=!1}),this.root.viewmodel.set(this.keypath,t))},updateModel:function(){void 0!==this.attribute.value&&this.attribute.value.length||this.root.viewmodel.set(this.keypath,this.initialValue)}}),wfi=pfi,bfi=b.extend({render:function(){this.element.node.addEventListener("change",r,!1)},unrender:function(){this.element.node.removeEventListener("change",r,!1)},getValue:function(){return this.element.node.files}}),kfi=bfi,dfi=sf.extend({getInitialValue:function(){return void 0},getValue:function(){var n=parseFloat(this.element.node.value);if(!isNaN(n))return n}}),gfi=cht,nei=lht,tei=aht,iei=vht,rei=yht,uei=/^event(?:\.(.+))?/,id=kht,fei=dht,ih={},eei={touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchleave:!0},oei=nct,sei=tct,hei=ict,cei=rct,lei=uct,rd=function(n,t,i){this.init(n,t,i)};rd.prototype={bubble:nei,fire:tei,getAction:iei,init:rei,listen:fei,rebind:oei,render:sei,resolve:hei,unbind:cei,unrender:lei};var aei=rd,vei=function(n,t){var r,i,u,f,e=[];for(i in t)if(t.hasOwnProperty(i))for(u=i.split("-"),r=u.length;r--;)f=new aei(n,u[r],t[i]),e.push(f);return e},ud=function(n,t){var r,i,u,f=this;this.element=n;this.root=r=n.root;i=t.n||t;("string"==typeof i||(u=new o({template:i,root:r,owner:n}),i=u.toString(),u.unbind(),""!==i))&&(t.a?this.params=t.a:t.d&&(this.fragment=new o({template:t.d,root:r,owner:n}),this.params=this.fragment.getArgsList(),this.fragment.bubble=function(){this.dirtyArgs=this.dirtyValue=!0;f.params=this.getArgsList();f.ready&&f.update()}),this.fn=fr("decorators",r,i),this.fn||ot(hi(i,"decorator")))};ud.prototype={init:function(){var t,n,i;if(t=this.element.node,this.params?(i=[t].concat(this.params),n=this.fn.apply(this.root,i)):n=this.fn.call(this.root,t),!n||!n.teardown)throw new Error("Decorator definition must return an object with a teardown method");this.actual=n;this.ready=!0},update:function(){this.actual.update?this.actual.update.apply(this.root,this.params):(this.actual.teardown(!0),this.init())},rebind:function(n,t){this.fragment&&this.fragment.rebind(n,t)},teardown:function(n){this.torndown=!0;this.ready&&this.actual.teardown();!n&&this.fragment&&this.fragment.unbind()}};var rh,gr,uh,yei=ud,pei=lct,wei=act,bei=bct,fh=function(n){return n.replace(/-([a-zA-Z])/g,function(n,t){return t.toUpperCase()})};tt?(gr={},uh=st("div").style,rh=function(n){var t,i,r;if(n=fh(n),!gr[n])if(void 0!==uh[n])gr[n]=n;else for(r=n.charAt(0).toUpperCase()+n.substring(1),t=it.length;t--;)if(i=it[t],void 0!==uh[i+r]){gr[n]=i+r;break}return gr[n]}):rh=null;k=rh;tt?(fd=window.getComputedStyle||ke.getComputedStyle,eh=function(n){var i,r,f,e,t;if(i=fd(this.node),"string"==typeof n)return t=i[k(n)],"0px"===t&&(t=0),t;if(!u(n))throw new Error("Transition$getStyle must be passed a string, or an array of strings representing CSS properties");for(r={},f=n.length;f--;)e=n[f],t=i[k(e)],"0px"===t&&(t=0),r[e]=t;return r}):eh=null;var kei=eh,dei=function(n,t){var i;if("string"==typeof n)this.node.style[k(n)]=t;else for(i in n)n.hasOwnProperty(i)&&(this.node.style[k(i)]=n[i]);return this},ed=function(n){var t;this.duration=n.duration;this.step=n.step;this.complete=n.complete;"string"==typeof n.easing?(t=n.root.easing[n.easing],t||(y(hi(n.easing,"easing")),t=ha)):t="function"==typeof n.easing?n.easing:ha;this.easing=t;this.start=ro();this.end=this.start+this.duration;this.running=!0;fo.add(this)};ed.prototype={tick:function(n){var t,i;return this.running?n>this.end?(this.step&&this.step(1),this.complete&&this.complete(1),!1):(t=n-this.start,i=this.easing(t/this.duration),this.step&&this.step(i),!0):!1},stop:function(){this.abort&&this.abort();this.running=!1}};var oh,sh,ir,nu,tu,od,sd,hd,gei=ed,noi=new RegExp("^-(?:"+it.join("|")+")-"),toi=function(n){return n.replace(noi,"")},ioi=new RegExp("^(?:"+it.join("|")+")([A-Z])"),cd=function(n){var t;return n?(ioi.test(n)&&(n="-"+n),t=n.replace(/[A-Z]/g,function(n){return"-"+n.toLowerCase()})):""},hh={},hf={};if(tt?(sh=st("div").style,function(){void 0!==sh.transition?(ir="transition",nu="transitionend",tu=!0):void 0!==sh.webkitTransition?(ir="webkitTransition",nu="webkitTransitionEnd",tu=!0):tu=!1}(),ir&&(od=ir+"Duration",sd=ir+"Property",hd=ir+"TimingFunction"),oh=function(n,t,i,r,u){setTimeout(function(){var c,s,h,f,o;f=function(){s&&h&&(n.root.fire(n.name+":end",n.node,n.isIntro),u())};c=(n.node.namespaceURI||"")+n.node.tagName;n.node.style[sd]=r.map(k).map(cd).join(",");n.node.style[hd]=cd(i.easing||"linear");n.node.style[od]=i.duration/1e3+"s";o=function(t){var i;i=r.indexOf(fh(toi(t.propertyName)));-1!==i&&r.splice(i,1);r.length||(n.node.removeEventListener(nu,o,!1),h=!0,f())};n.node.addEventListener(nu,o,!1);setTimeout(function(){for(var l,a,y,u,p,w=r.length,v=[];w--;)u=r[w],l=c+u,tu&&!hf[l]&&(n.node.style[k(u)]=t[u],hh[l]||(a=n.getStyle(u),hh[l]=n.getStyle(u)!=t[u],hf[l]=!hh[l],hf[l]&&(n.node.style[k(u)]=a))),(!tu||hf[l])&&(void 0===a&&(a=n.getStyle(u)),y=r.indexOf(u),-1===y?e("Something very strange happened with transitions. Please raise an issue at https://github.com/ractivejs/ractive/issues - thanks!",{node:n.node}):r.splice(y,1),p=/[^\d]*$/.exec(t[u])[0],v.push({name:k(u),interpolator:lu(parseFloat(a),parseFloat(t[u])),suffix:p}));v.length?new gei({root:n.root,duration:i.duration,easing:fh(i.easing||""),step:function(t){for(var i,r=v.length;r--;)i=v[r],n.node.style[i.name]=i.interpolator(t)+i.suffix},complete:function(){s=!0;f()}}):s=!0;r.length||(n.node.removeEventListener(nu,o,!1),h=!0,f())},0)},i.delay||0)}):oh=null,ld=oh,"undefined"!=typeof document){if(iu="hidden",rr={},iu in document)cf="";else for(lh=it.length;lh--;)ch=it[lh],iu=ch+"Hidden",iu in document&&(cf=ch);void 0!==cf?(document.addEventListener(cf+"visibilitychange",ca),ca()):("onfocusout"in document?(document.addEventListener("focusout",ce),document.addEventListener("focusin",le)):(window.addEventListener("pagehide",ce),window.addEventListener("blur",ce),window.addEventListener("pageshow",le),window.addEventListener("focus",le)),rr.hidden=!1)}yd=rr;tt?(ad=window.getComputedStyle||ke.getComputedStyle,ah=function(n,t,i){var r,u=this;if(4===arguments.length)throw new Error("t.animateStyle() returns a promise - use .then() instead of passing a callback");return yd.hidden?(this.setStyle(n,t),vd||(vd=gt.resolve())):("string"==typeof n?(r={},r[n]=t):(r=n,i=t),i||(y('The "%s" transition does not supply an options object to `t.animateStyle()`. This will break in a future version of Ractive. For more info see https://github.com/RactiveJS/Ractive/issues/340',this.name),i=this),new gt(function(n){var o,e,h,t,c,s,f;if(!i.duration)return u.setStyle(r),void n();for(o=Object.keys(r),e=[],h=ad(u.node),c={},s=o.length;s--;)f=o[s],t=h[k(f)],"0px"===t&&(t=0),t!=r[f]&&(e.push(f),u.node.style[k(f)]=t);return e.length?void ld(u,r,i,e,n):void n()}))}):ah=null;var roi=ah,uoi=function(n,t){return"number"==typeof n?n={duration:n}:"string"==typeof n?n="slow"===n?{duration:600}:"fast"===n?{duration:200}:{duration:400}:n||(n={}),tn({},n,t)},foi=kct,pd=function(n,t,i){this.init(n,t,i)};pd.prototype={init:bei,start:foi,getStyle:kei,setStyle:dei,animateStyle:roi,processParams:uoi};vh=pd;kd=gct;wd=function(){var n=this.node,t=this.fragment.toString(!1);if(window&&window.appearsToBeIELessEqual8&&(n.type="text/css"),n.styleSheet)n.styleSheet.cssText=t;else{for(;n.hasChildNodes();)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}};bd=function(){this.node.type&&"text/javascript"!==this.node.type||e("Script tag was updated. This does not cause the code to be re-evaluated!",{ractive:this.root});this.node.text=this.fragment.toString(!1)};var eoi=function(){var n,t;return this.template.y?"<!DOCTYPE"+this.template.dd+">":(n="<"+this.template.e,n+=this.attributes.map(la).join("")+this.conditionalAttributes.map(la).join(""),"option"===this.name&&rlt(this)&&(n+=" selected"),"input"===this.name&&ult(this)&&(n+=" checked"),n+=">","textarea"===this.name&&void 0!==this.getAttribute("value")?n+=fe(this.getAttribute("value")):void 0!==this.getAttribute("contenteditable")&&(n+=this.getAttribute("value")||""),this.fragment&&(t="script"!==this.name&&"style"!==this.name,n+=this.fragment.toString(t)),tf.test(this.template.e)||(n+="<\/"+this.template.e+">"),n)},ooi=flt,soi=elt,dd=function(n){this.init(n)};dd.prototype={bubble:ari,detach:vri,find:yri,findAll:pri,findAllComponents:wri,findComponent:bri,findNextNode:kri,firstNode:dri,getAttribute:gri,init:pei,rebind:wei,render:kd,toString:eoi,unbind:ooi,unrender:soi};var hoi=dd,gd=/^\s*$/,coi=/^\s*/,loi=function(n){var t,i,r,u;return t=n.split("\n"),i=t[0],void 0!==i&&gd.test(i)&&t.shift(),r=at(t),void 0!==r&&gd.test(r)&&t.pop(),u=t.reduce(slt,null),u&&(n=t.map(function(n){return n.replace(u,"")}).join("\n")),n},yh=hlt,aoi=function(n,t){var i;return t?i=n.split("\n").map(function(n,i){return i?t+n:n}).join("\n"):n},ng='Could not find template for partial "%s"',tg=function(n){var t,i;t=this.parentFragment=n.parentFragment;this.root=t.root;this.type=bu;this.index=n.index;this.name=n.template.r;this.rendered=!1;this.fragment=this.fragmentToRender=this.fragmentToUnrender=null;a.init(this,n);this.keypath||((i=yh(this.root,this.name,t))?(nr.call(this),this.isNamed=!0,this.setTemplate(i)):y(ng,this.name))};tg.prototype={bubble:function(){this.parentFragment.bubble()},detach:function(){return this.fragment.detach()},find:function(n){return this.fragment.find(n)},findAll:function(n,t){return this.fragment.findAll(n,t)},findComponent:function(n){return this.fragment.findComponent(n)},findAllComponents:function(n,t){return this.fragment.findAllComponents(n,t)},firstNode:function(){return this.fragment.firstNode()},findNextNode:function(){return this.parentFragment.findNextNode(this)},getPartialName:function(){return this.isNamed&&this.name?this.name:void 0===this.value?this.name:this.value},getValue:function(){return this.fragment.getValue()},rebind:function(n,t){this.isNamed||rk.call(this,n,t);this.fragment&&this.fragment.rebind(n,t)},render:function(){return this.docFrag=document.createDocumentFragment(),this.update(),this.rendered=!0,this.docFrag},resolve:a.resolve,setValue:function(t){var i;(void 0===t||t!==this.value)&&(void 0!==t&&(i=yh(this.root,""+t,this.parentFragment)),!i&&this.name&&(i=yh(this.root,this.name,this.parentFragment))&&(nr.call(this),this.isNamed=!0),i||y(ng,this.name,{ractive:this.root}),this.value=t,this.setTemplate(i||[]),this.bubble(),this.rendered&&n.addView(this))},setTemplate:function(n){this.fragment&&(this.fragment.unbind(),this.rendered&&(this.fragmentToUnrender=this.fragment));this.fragment=new o({template:n,root:this.root,owner:this,pElement:this.parentFragment.pElement});this.fragmentToRender=this.fragment},toString:function(n){var t,i,r,u;return t=this.fragment.toString(n),i=this.parentFragment.items[this.index-1],i&&i.type===ky?(r=i.text.split("\n").pop(),(u=/^\s+$/.exec(r))?aoi(t,u[0]):t):t},unbind:function(){this.isNamed||nr.call(this);this.fragment&&this.fragment.unbind()},unrender:function(n){this.rendered&&(this.fragment&&this.fragment.unrender(n),this.rendered=!1)},update:function(){var n,t;this.fragmentToUnrender&&(this.fragmentToUnrender.unrender(!0),this.fragmentToUnrender=null);this.fragmentToRender&&(this.docFrag.appendChild(this.fragmentToRender.render()),this.fragmentToRender=null);this.rendered&&(n=this.parentFragment.getNode(),t=this.parentFragment.findNextNode(this),n.insertBefore(this.docFrag,t))}};var ig,lf,ph,voi=tg,yoi=ya,poi=alt,woi=new l("detach"),boi=vlt,koi=ylt,doi=plt,goi=wlt,nsi=blt,tsi=klt,isi=function(n,t,i,r){var u=n.root,f=n.keypath;r?u.viewmodel.smartUpdate(f,t,r):u.viewmodel.mark(f)},wh=[],ru=["pop","push","reverse","shift","sort","splice","unshift"];ru.forEach(function(t){var i=function(){for(var o,s,r,u,f=arguments.length,e=Array(f),i=0;f>i;i++)e[i]=arguments[i];for(o=hy(this,t,e),s=Array.prototype[t].apply(this,arguments),n.start(),this._ractive.setting=!0,u=this._ractive.wrappers.length;u--;)r=this._ractive.wrappers[u],n.addRactive(r.root),isi(r,this,t,o);return n.end(),this._ractive.setting=!1,s};ut(wh,t,{value:i})});ig={};ig.__proto__?(lf=function(n){n.__proto__=wh},ph=function(n){n.__proto__=Array.prototype}):(lf=function(n){for(var i,t=ru.length;t--;)i=ru[t],ut(n,i,{value:wh[i],configurable:!0})},ph=function(n){for(var t=ru.length;t--;)delete n[ru[t]]});lf.unpatch=ph;dh=lf;rg={filter:function(n){return u(n)&&(!n._ractive||!n._ractive.setting)},wrap:function(n,t,i){return new bh(n,t,i)}};bh=function(n,i,r){this.root=n;this.value=i;this.keypath=t(r);i._ractive||(ut(i,"_ractive",{value:{wrappers:[],instances:[],setting:!1},configurable:!0}),dh(i));i._ractive.instances[n._guid]||(i._ractive.instances[n._guid]=0,i._ractive.instances.push(n));i._ractive.instances[n._guid]+=1;i._ractive.wrappers.push(this)};bh.prototype={get:function(){return this.value},teardown:function(){var u,i,r,t,n;if(u=this.value,i=u._ractive,r=i.wrappers,t=i.instances,i.setting)return!1;if(n=r.indexOf(this),-1===n)throw new Error(kh);if(r.splice(n,1),r.length){if(t[this.root._guid]-=1,!t[this.root._guid]){if(n=t.indexOf(this.root),-1===n)throw new Error(kh);t.splice(n,1)}}else delete u._ractive,dh.unpatch(this.value)}};kh="Something went wrong in a rather interesting way";var gh,nc,tc=rg,rsi=/^\s*[0-9]+\s*$/,ug=function(n){return rsi.test(n)?[]:{}};try{Object.defineProperty({},"test",{value:0});gh={filter:function(n,i,r){var e,f;return i?(i=t(i),(e=r.viewmodel.wrapped[i.parent.str])&&!e.magic?!1:(f=r.viewmodel.get(i.parent),u(f)&&/^[0-9]+$/.test(i.lastKey)?!1:f&&("object"==typeof f||"function"==typeof f))):!1},wrap:function(n,t,i){return new nc(n,t,i)}};nc=function(n,i,r){var f,u,e;return r=t(r),this.magic=!0,this.ractive=n,this.keypath=r,this.value=i,this.prop=r.lastKey,f=r.parent,this.obj=f.isRoot?n.viewmodel.data:n.viewmodel.get(f),u=this.originalDescriptor=Object.getOwnPropertyDescriptor(this.obj,this.prop),u&&u.set&&(e=u.set._ractiveWrappers)?void(-1===e.indexOf(this)&&e.push(this)):void dlt(this,i,u)};nc.prototype={get:function(){return this.value},reset:function(t){if(!this.updating)return(this.updating=!0,this.obj[this.prop]=t,n.addRactive(this.ractive),this.ractive.viewmodel.mark(this.keypath,{keepExistingWrapper:!0}),this.updating=!1,!0)},set:function(n,t){this.updating||(this.obj[this.prop]||(this.updating=!0,this.obj[this.prop]=ug(n),this.updating=!1),this.obj[this.prop][n]=t)},teardown:function(){var t,i,u,n,r;return this.updating?!1:(t=Object.getOwnPropertyDescriptor(this.obj,this.prop),i=t&&t.set,void(i&&(n=i._ractiveWrappers,r=n.indexOf(this),-1!==r&&n.splice(r,1),n.length||(u=this.obj[this.prop],Object.defineProperty(this.obj,this.prop,this.originalDescriptor||{writable:!0,enumerable:!0,configurable:!0}),this.obj[this.prop]=u))))}}}catch(vpt){gh=!1}uu=gh;uu&&(fg={filter:function(n,t,i){return uu.filter(n,t,i)&&tc.filter(n)},wrap:function(n,t,i){return new ic(n,t,i)}},ic=function(n,t,i){this.value=t;this.magic=!0;this.magicWrapper=uu.wrap(n,t,i);this.arrayWrapper=tc.wrap(n,t,i)},ic.prototype={get:function(){return this.value},teardown:function(){this.arrayWrapper.teardown();this.magicWrapper.teardown()},reset:function(n){return this.magicWrapper.reset(n)}});var usi=fg,fsi=glt,rc={},esi=iat,eg=rat,osi=uat,ssi=eat,hsi=oat,og=function(n,t){this.computation=n;this.viewmodel=n.viewmodel;this.ref=t;this.root=this.viewmodel.ractive;this.parentFragment=this.root.component&&this.root.component.parentFragment};og.prototype={resolve:function(n){this.computation.softDeps.push(n);this.computation.unresolvedDeps[n.str]=null;this.viewmodel.register(n,this.computation,"computed")}};sg=og;af=function(n,t){this.key=n;this.getter=t.getter;this.setter=t.setter;this.hardDeps=t.deps||[];this.softDeps=[];this.unresolvedDeps={};this.depValues={};this._dirty=this._firstRun=!0};af.prototype={constructor:af,init:function(n){var t,i=this;this.viewmodel=n;this.bypass=!0;t=n.get(this.key);n.clearCache(this.key.str);this.bypass=!1;this.setter&&void 0!==t&&this.set(t);this.hardDeps&&this.hardDeps.forEach(function(t){return n.register(t,i,"computed")})},invalidate:function(){this._dirty=!0},get:function(){var i,r,n=this,t=!1,u;if(this.getting)return u="The "+this.key.str+" computation indirectly called itself. This probably indicates a bug in the computation. It is commonly caused by `array.sort(...)` - if that's the case, clone the array first with `array.slice().sort(...)`",cc(u),this.value;if(this.getting=!0,this._dirty){if(this._firstRun||!this.hardDeps.length&&!this.softDeps.length?t=!0:[this.hardDeps,this.softDeps].forEach(function(i){var r,u,f;if(!t)for(f=i.length;f--;)if(r=i[f],u=n.viewmodel.get(r),!ct(u,n.depValues[r.str]))return n.depValues[r.str]=u,void(t=!0)}),t){this.viewmodel.capture();try{this.value=this.getter()}catch(f){e('Failed to compute "%s"',this.key.str);hc(f.stack||f);this.value=void 0}i=this.viewmodel.release();r=this.updateDependencies(i);r&&[this.hardDeps,this.softDeps].forEach(function(t){t.forEach(function(t){n.depValues[t.str]=n.viewmodel.get(t)})})}this._dirty=!1}return this.getting=this._firstRun=!1,this.value},set:function(n){if(this.setting)return void(this.value=n);if(!this.setter)throw new Error("Computed properties without setters are read-only. (This may change in a future version of Ractive!)");this.setter(n)},updateDependencies:function(t){for(var i,f,e,u=this.softDeps,r=u.length;r--;)i=u[r],-1===t.indexOf(i)&&(f=!0,this.viewmodel.unregister(i,this,"computed"));for(r=t.length;r--;)i=t[r],-1!==u.indexOf(i)||this.hardDeps&&-1!==this.hardDeps.indexOf(i)||(f=!0,sat(this.viewmodel,i)&&!this.unresolvedDeps[i.str]?(e=new sg(this,i.str),t.splice(r,1),this.unresolvedDeps[i.str]=e,n.addUnresolved(e)):this.viewmodel.register(i,this,"computed"));return f&&(this.softDeps=t.slice()),f}};var csi=af,lsi=hat,hg={FAILED_LOOKUP:!0},asi=cat,vsi={},ysi=aat,psi=vat,cg=function(n,t){this.localKey=n;this.keypath=t.keypath;this.origin=t.origin;this.deps=[];this.unresolved=[];this.resolved=!1};cg.prototype={forceResolution:function(){this.keypath=this.localKey;this.setup()},get:function(n,t){if(this.resolved)return this.origin.get(this.map(n),t)},getValue:function(){if(this.keypath)return this.origin.get(this.keypath)},initViewmodel:function(n){this.local=n;this.setup()},map:function(n){return void 0===typeof this.keypath?this.localKey:n.replace(this.localKey,this.keypath)},register:function(n,t,i){this.deps.push({keypath:n,dep:t,group:i});this.resolved&&this.origin.register(this.map(n),t,i)},resolve:function(n){void 0!==this.keypath&&this.unbind(!0);this.keypath=n;this.setup()},set:function(n,t){this.resolved||this.forceResolution();this.origin.set(this.map(n),t)},setup:function(){var n=this;void 0!==this.keypath&&(this.resolved=!0,this.deps.length&&(this.deps.forEach(function(t){var i=n.map(t.keypath);if(n.origin.register(i,t.dep,t.group),t.dep.setValue)t.dep.setValue(n.origin.get(i));else{if(!t.dep.invalidate)throw new Error("An unexpected error occurred. Please raise an issue at https://github.com/ractivejs/ractive/issues - thanks!");t.dep.invalidate()}}),this.origin.mark(this.keypath)))},setValue:function(n){if(!this.keypath)throw new Error("Mapping does not have keypath, cannot set value. Please raise an issue at https://github.com/ractivejs/ractive/issues - thanks!");this.origin.set(this.keypath,n)},unbind:function(n){var t=this;n||delete this.local.mappings[this.localKey];this.resolved&&(this.deps.forEach(function(n){t.origin.unregister(t.map(n.keypath),n.dep,n.group)}),this.tracker&&this.origin.unregister(this.keypath,this.tracker))},unregister:function(n,t,i){var r,u;if(this.resolved){for(r=this.deps,u=r.length;u--;)if(r[u].dep===t){r.splice(u,1);break}this.origin.unregister(this.map(n),t,i)}}};var wsi=yat,bsi=function(n,t){var r,i,f,u;return r={},i=0,f=n.map(function(n,f){var e,o,s;o=i;s=t.length;do{if(e=t.indexOf(n,o),-1===e)return u=!0,-1;o=e+1}while(r[e]&&s>o);return e===i&&(i+=1),e!==f&&(u=!0),r[e]=!0,e})},ksi=pat,uc={},dsi=kat,gsi=gat,nhi=nvt,thi=tvt,ihi=rvt,rhi={implicit:!0},lg={noCascade:!0},uhi=fvt,fhi=evt,ag=function(n){var i,e,s=n.adapt,r=n.data,h=n.ractive,o=n.computed,u=n.mappings;this.ractive=h;this.adaptors=s;this.onchange=n.onchange;this.cache={};this.cacheMap=f(null);this.deps={computed:f(null),"default":f(null)};this.depsMap={computed:f(null),"default":f(null)};this.patternObservers=[];this.specials=f(null);this.wrapped=f(null);this.computations=f(null);this.captureGroups=[];this.unresolvedImplicitDependencies=[];this.changes=[];this.implicitChanges={};this.noCascade={};this.data=r;this.mappings=f(null);for(i in u)this.map(t(i),u[i]);if(r)for(i in r)(e=this.mappings[i])&&void 0===e.getValue()&&e.setValue(r[i]);for(i in o)u&&i in u&&ot("Cannot map to a computed property ('%s')",i),this.compute(t(i),o[i]);this.ready=!0};ag.prototype={adapt:fsi,applyChanges:osi,capture:ssi,clearCache:hsi,compute:lsi,get:asi,init:ysi,map:psi,mark:wsi,merge:ksi,register:dsi,release:gsi,reset:nhi,set:thi,smartUpdate:ihi,teardown:uhi,unregister:fhi};vg=ag;ae.prototype={constructor:ae,begin:function(n){this.inProcess[n._guid]=!0},end:function(n){var t=n.parent;t&&this.inProcess[t._guid]?ga(this.queue,t).push(n):nv(this,n);delete this.inProcess[n._guid]}};var ehi=ae,ohi=svt,shi=/\$\{([^\}]+)\}/g,hhi=new l("construct"),chi=new l("config"),yg=new ehi("init"),lhi=0,ahi=["adaptors","components","decorators","easing","events","interpolators","partials","transitions"],fc=cvt,vhi=iv;iv.prototype={bubble:function(){this.dirty||(this.dirty=!0,n.addView(this))},update:function(){this.callback(this.fragment.getValue());this.dirty=!1},rebind:function(n,t){this.fragment.rebind(n,t)},unbind:function(){this.fragment.unbind()}};var yhi=function(n,t,i,r,o){var s,y,c,h,w,a,p={},l={},v={},b=[];for(y=n.parentFragment,c=n.root,o=o||{},ui(p,o),o.content=r||[],p[""]=o.content,t.defaults.el&&e("The <%s/> component has a default `el` property; it has been disregarded",n.name),h=y;h;){if(h.owner.type===ku){w=h.owner.container;break}h=h.parent}return i&&Object.keys(i).forEach(function(t){var f,e,r=i[t];if("string"==typeof r)f=rf(r),l[t]=f?f.value:r;else if(0===r)l[t]=!0;else{if(!u(r))throw new Error("erm wut");wvt(r)?(v[t]={origin:n.root.viewmodel,keypath:void 0},e=pvt(n,r[0],function(n){n.isSpecial?a?s.set(t,n.value):(l[t]=n.value,delete v[t]):a?s.viewmodel.mappings[t].resolve(n):v[t].keypath=n})):e=new vhi(n,r,function(n){a?s.set(t,n):l[t]=n});b.push(e)}}),s=f(t.prototype),fc(s,{el:null,append:!0,data:l,partials:o,magic:c.magic||t.defaults.magic,modifyArrays:c.modifyArrays,adapt:c.adapt},{parent:c,component:n,container:w,mappings:v,inlinePartials:p,cssIds:y.cssIds}),a=!0,n.resolvers=b,s},phi=bvt,whi=function(n){for(var i,t=n.root;t;)(i=t._liveComponentQueries["_"+n.name])&&i.push(n.instance),t=t.parent},bhi=dvt,khi=gvt,dhi=nyt,ghi=tyt,nci=iyt,tci=new l("teardown"),ici=uyt,pg=function(n,t){this.init(n,t)};pg.prototype={detach:poi,find:boi,findAll:koi,findAllComponents:doi,findComponent:goi,findNextNode:nsi,firstNode:tsi,init:bhi,rebind:khi,render:dhi,toString:ghi,unbind:nci,unrender:ici};wg=pg;ec=function(n){this.type=vi;this.value=n.template.c};ec.prototype={detach:as,firstNode:function(){return this.node},render:function(){return this.node||(this.node=document.createComment(this.value)),this.node},toString:function(){return"<!--"+this.value+"-->"},unrender:function(n){n&&this.node.parentNode.removeChild(this.node)}};bg=ec;oc=function(t){var f,r,i,s;this.type=ku;this.container=f=t.parentFragment.root;this.component=r=f.component;this.container=f;this.containerFragment=t.parentFragment;this.parentFragment=r.parentFragment;i=this.name=t.template.n||"";s=f._inlinePartials[i];s||(e('Could not find template for partial "'+i+'"',{ractive:t.root}),s=[]);this.fragment=new o({owner:this,root:f.parent,template:s,pElement:this.containerFragment.pElement});u(r.yielders[i])?r.yielders[i].push(this):r.yielders[i]=[this];n.scheduleTask(function(){if(r.yielders[i].length>1)throw new Error("A component template can only have one {{yield"+(i?" "+i:"")+"}} declaration at a time");})};oc.prototype={detach:function(){return this.fragment.detach()},find:function(n){return this.fragment.find(n)},findAll:function(n,t){return this.fragment.findAll(n,t)},findComponent:function(n){return this.fragment.findComponent(n)},findAllComponents:function(n,t){return this.fragment.findAllComponents(n,t)},findNextNode:function(){return this.containerFragment.findNextNode(this)},firstNode:function(){return this.fragment.firstNode()},getValue:function(n){return this.fragment.getValue(n)},render:function(){return this.fragment.render()},unbind:function(){this.fragment.unbind()},unrender:function(n){this.fragment.unrender(n);c(this.component.yielders[this.name],this)},rebind:function(n,t){this.fragment.rebind(n,t)},toString:function(){return this.fragment.toString()}};kg=oc;sc=function(n){this.declaration=n.template.a};sc.prototype={init:s,render:s,unrender:s,teardown:s,toString:function(){return"<!DOCTYPE"+this.declaration+">"}};var rci=sc,uci=fyt,fci=oyt,eci=syt,oci=hyt,sci=ayt,hci=yyt,dg=function(n){this.init(n)};dg.prototype={bubble:hti,detach:cti,find:lti,findAll:ati,findAllComponents:vti,findComponent:yti,findNextNode:pti,firstNode:wti,getArgsList:bti,getNode:kti,getValue:dti,init:uci,rebind:fci,registerIndexRef:function(n){var t=this.registeredIndexRefs;-1===t.indexOf(n)&&t.push(n)},render:eci,toString:oci,unbind:sci,unregisterIndexRef:function(n){var t=this.registeredIndexRefs;t.splice(t.indexOf(n),1)},unrender:hci};var et,gg,o=dg,cci=pyt,lci=["template","partials","components","decorators","events"],aci=new l("reset"),vci=function(t,i){function r(n,i,f){f&&f.partials[t]||n.forEach(function(n){n.type===bu&&n.getPartialName()===t&&i.push(n);n.fragment&&r(n.fragment.items,i,f);u(n.fragments)?r(n.fragments,i,f):u(n.items)?r(n.items,i,f):n.type===gy&&n.instance&&r(n.instance.fragment.items,i,n.instance);n.type===yr&&(u(n.attributes)&&r(n.attributes,i,f),u(n.conditionalAttributes)&&r(n.conditionalAttributes,i,f))})}var f,e=[];return r(this.fragment.items,e),this.partials[t]=i,f=n.start(this,!0),e.forEach(function(n){n.value=void 0;n.setValue(t)}),n.end(),f},yci=wyt,pci=ti("reverse"),wci=byt,bci=ti("shift"),kci=ti("sort"),dci=ti("splice"),gci=kyt,nli=dyt,tli=new l("teardown"),ili=npt,nn=tpt,rli=ipt,uli=new l("unrender"),fli=ti("unshift"),eli=rpt,oli=new l("update"),sli=upt,hli={add:nwt,animate:fwt,detach:owt,find:hwt,findAll:wwt,findAllComponents:bwt,findComponent:kwt,findContainer:dwt,findParent:gwt,fire:tbt,get:ibt,insert:ubt,merge:ebt,observe:lbt,observeOnce:abt,off:vbt,on:ybt,once:pbt,pop:bbt,push:kbt,render:gbt,reset:cci,resetPartial:vci,resetTemplate:yci,reverse:pci,set:wci,shift:bci,sort:kci,splice:dci,subtract:gci,teardown:nli,toggle:ili,toHTML:nn,toHtml:nn,unrender:rli,unshift:fli,update:eli,updateModel:sli},cli=function(n,t,i){return i||ept(n,t)?function(){var i,r="_super"in this,u=this._super;return this._super=t,i=n.apply(this,arguments),r&&(this._super=u),i}:n},lli=opt,ali=uv,vli=function(n){var i,r,t={};return n&&(i=n._ractive)?(t.ractive=i.root,t.keypath=i.keypath.str,t.index={},(r=tr(i.proxy.parentFragment))&&(t.index=tr.resolve(r)),t):t};if(et=function(n){return this instanceof et?void fc(this,n):new et(n)},gg={DEBUG:{writable:!0,value:!0},DEBUG_PROMISES:{writable:!0,value:!0},extend:{value:ali},getNodeInfo:{value:vli},parse:{value:uf},Promise:{value:gt},svg:{value:ye},magic:{value:su},VERSION:{value:"0.7.3"},adaptors:{writable:!0,value:{}},components:{writable:!0,value:{}},decorators:{writable:!0,value:{}},easing:{writable:!0,value:apt},events:{writable:!0,value:{}},interpolators:{writable:!0,value:au},partials:{writable:!0,value:{}},transitions:{writable:!0,value:{}}},si(et,gg),et.prototype=ui(hli,sv),et.prototype.constructor=et,et.defaults=et.prototype,ht="function",typeof Date.now!==ht||typeof String.prototype.trim!==ht||typeof Object.keys!==ht||typeof Array.prototype.indexOf!==ht||typeof Array.prototype.forEach!==ht||typeof Array.prototype.map!==ht||typeof Array.prototype.filter!==ht||"undefined"!=typeof window&&typeof addEventListener!==ht)throw new Error("It looks like you're attempting to use Ractive.js in an older browser. You'll need to use one of the 'legacy builds' in order to continue - see http://docs.ractivejs.org/latest/legacy-builds for more information.");return wt=et});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;!function(t){function e(n,t){return nt.call(n,t)}function c(n,t){var e,s,o,r,h,y,c,w,i,l,p,u=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&"."===n.charAt(0))if(t){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&b.test(n[h])&&(n[h]=n[h].replace(b,"")),n=u.slice(0,u.length-1).concat(n),i=0;i<n.length;i+=1)if(p=n[i],"."===p)n.splice(i,1),i-=1;else if(".."===p){if(1===i&&(".."===n[2]||".."===n[0]))break;i>0&&(n.splice(i-1,2),i-=2)}n=n.join("/")}else 0===n.indexOf("./")&&(n=n.substring(2));if((u||v)&&a){for(e=n.split("/"),i=e.length;i>0;i-=1){if(s=e.slice(0,i).join("/"),u)for(l=u.length;l>0;l-=1)if(o=a[u.slice(0,l).join("/")],o&&(o=o[s])){r=o;y=i;break}if(r)break;!c&&v&&v[s]&&(c=v[s],w=i)}!r&&c&&(r=c,y=w);r&&(e.splice(0,y,r),n=e.join("/"))}return n}function p(n,i){return function(){var r=tt.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),o.apply(t,r.concat([n,i]))}}function k(n){return function(t){return c(t,n)}}function d(n){return function(t){u[n]=t}}function l(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;a.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function w(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function g(n){return function(){return f&&f.config&&f.config[n]||{}}}var a,o,v,s,u={},h={},f={},y={},nt=Object.prototype.hasOwnProperty,tt=[].slice,b=/\.js$/;v=function(n,t){var r,u=w(n),i=u[0];return n=u[1],i&&(i=c(i,t),r=l(i)),i?n=r&&r.normalize?r.normalize(n,k(t)):c(n,t):(n=c(n,t),u=w(n),i=u[0],n=u[1],i&&(r=l(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return p(n)},exports:function(n){var t=u[n];return"undefined"!=typeof t?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:g(n)}}};a=function(n,i,r,f){var w,o,k,b,c,g,a=[],nt=typeof r;if(f=f||n,"undefined"===nt||"function"===nt){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(b=v(i[c],f),o=b.f,"require"===o)a[c]=s.require(n);else if("exports"===o)a[c]=s.exports(n),g=!0;else if("module"===o)w=a[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))a[c]=l(o);else{if(!b.p)throw new Error(n+" missing "+o);b.p.load(b.n,p(f,!0),d(o),{});a[c]=u[o]}k=r?r.apply(u[n],a):void 0;n&&(w&&w.exports!==t&&w.exports!==u[n]?u[n]=w.exports:k===t&&g||(u[n]=k))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if("string"==typeof n)return s[n]?s[n](i):l(v(n,i).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=u,u=e),u?a(t,n,i,r):setTimeout(function(){a(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){if("string"!=typeof n)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}}();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)u=i[t],"function"==typeof u&&"constructor"!==t&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty;for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{};null==t&&(t=[]);0===t.length&&t.push({});t[0]._type=n;n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;r>i;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var r,t="",i=0;n>i;i++)r=Math.floor(36*Math.random()),t+=r.toString(36);return t},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,1!==r.length){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f!==r||"hidden"!==r&&"visible"!==r?"scroll"===f||"scroll"===r?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth:!1},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof n?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if("1.7"===n.fn.jquery.substr(0,3)){var r=n();n.map(i,function(n){r=r.add(n)});i=r}t.append(i)},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" aria-live="assertive" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));i[0].className+=" select2-results__message";this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],null==n.results||0===n.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter");this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var r=n.map(i,function(n){return n.id.toString()}),u=t.$results.find(".select2-results__option[aria-selected]");u.each(function(){var i=n(this),t=n.data(this,"data"),u=""+t.id;null!=t.element&&t.element.selected||null==t.element&&n.inArray(u,r)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");null==t.id&&delete i["aria-selected"];null!=t._resultId&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.hideMessages();i.showLoading(n)});t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();0!==n.length&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;0!==n.length&&(t=n.data("data"),"true"==n.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(0!==f){n=f-1;0===r.length&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);0===n?i.$results.scrollTop(0):0>o-e&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;0===r?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});n.fn.mousewheel&&this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");return"true"===r.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close",{})):void i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(0!==n.length){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=2*n.outerHeight(!1);2>=e?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,r=(n.id+"-container",n.id+"-results");this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var t=this,i;r.__super__.bind.apply(this,arguments);i=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i);this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(n){1===n.which&&t.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||t.$selection.focus()});n.on("selection:update",function(n){t.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(0===n.length)return void this.clear();var t=n[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r);i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!t.options.get("disabled")){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var f,r,e;if(this.clear(),0!==n.length){for(f=[],r=0;r<n.length;r++){var u=n[r],t=this.selectionContainer(),o=this.display(u,t);t.append(o);t.prop("title",u.title||u.text);t.data("data",u);f.push(t)}e=this.$selection.find(".select2-selection__rendered");i.appendMany(e,f)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=1==t.length&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys"],function(n,t){function i(){}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},i.prototype._handleClear=function(n,t){var r,u,i,f;if(!this.options.get("disabled")&&(r=this.$selection.find(".select2-selection__clear"),0!==r.length)){for(t.stopPropagation(),u=r.data("data"),i=0;i<u.length;i++)if(f={data:u[i]},this.trigger("unselect",f),f.prevented)return;this.$element.val(this.placeholder.id).trigger("change");this.trigger("toggle",{})}},i.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /><\/li>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=t.call(this),this._transferTabIndex(),r},r.prototype.bind=function(n,t,r){var u=this,f,e;n.call(this,t,r);t.on("open",function(){u.$search.trigger("focus")});t.on("close",function(){u.$search.val("");u.$search.removeAttr("aria-activedescendant");u.$search.trigger("focus")});t.on("enable",function(){u.$search.prop("disabled",!1);u._transferTabIndex()});t.on("disable",function(){u.$search.prop("disabled",!0)});t.on("focus",function(){u.$search.trigger("focus")});t.on("results:focus",function(n){u.$search.attr("aria-activedescendant",n.id)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&""===u.$search.val()&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f),n.preventDefault()))});f=document.documentMode;e=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(){return e?void u.$selection.off("input.search input.searchcheck"):void u.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(e&&"input"===n.type)return void u.$selection.off("input.search input.searchcheck");var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&u.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();i&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";""!==this.$search.attr("placeholder")?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=.75*t+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(-1!==n.inArray(t,f)){i=i||{};var r=n.Event("select2:"+t,{params:i});u.$element.trigger(r);-1!==n.inArray(t,e)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(null!=i.id?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,-1===i.inArray(e,f)&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple"))return n.selected=!1,i(n.element).is("option")?(n.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var e,u=[],f=0;f<r.length;f++)e=r[f].id,e!==n.id&&-1===i.inArray(e,u)&&u.push(e);t.$element.val(u);t.$element.trigger("change")})},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),null!==f&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},e,o;if(t=i.data(n[0],"data"),null!=t)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){t={text:n.prop("label"),children:[],title:n.prop("title")};for(var u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n});n=i.extend({},{text:""},n);return null!=n.id&&(n.id=n.id.toString()),null!=n.text&&(n.text=n.text.toString()),null==n._resultId&&n.id&&null!=this.container&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});0===t.length&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function c(n){return function(){return i(this).val()==n.id}}for(var r,f,h,l=this,e=this.$element.find("option"),a=e.map(function(){return l.item(i(this)).id}).get(),o=[],u=0;u<n.length;u++)if(r=this._normalizeItem(n[u]),i.inArray(r.id,a)>=0){var s=e.filter(c(r)),v=this.item(s),y=i.extend(!0,{},r,v),p=this.option(y);s.replaceWith(p)}else f=this.option(r),r.children&&(h=this.convertToOptions(r.children),t.appendMany(f,h)),o.push(f);return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){f.status&&"0"===f.status||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,n));"function"==typeof r.data&&(r.data=r.data.call(this.$element,n));this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(void 0!==o&&(this.createTag=o),e=r.get("insertTag"),void 0!==e&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var s,c,e=n.results,o=0;o<e.length;o++){var h=e[o],l=null!=h.children&&!u({results:h.children},!0),a=h.text===t.term;if(a||l)return f?!1:(n.data=e,void i(n))}if(f)return!0;s=r.createTag(t);null!=s&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,s));n.results=e;i(n)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void n.call(this,t,i):void n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r]));o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"";f=this.tokenizer(i,this.options,e);f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),i.term=f.term);t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var o,h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}};f<e.length;)if(o=e[f],-1!==n.inArray(o,h)){var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);null!=s?(u(s),e=e.substr(f+1)||"",f=0):f++}else f++;return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=null!=u?u.length:0;return r.maximumSelectionLength>0&&f>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("focus",function(){i.isOpen()&&u.$search.focus()});i.on("results:all",function(n){if(null==n.query.term||""===n.query.term){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var u,r=t.slice(0),i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=r.get("dropdownParent")||n(document.body);t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);u||(u=!0,t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()}))});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this);this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown();u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u);n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,o;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,f={left:i.left,top:r.bottom},e=this.$dropdownParent;"static"===e.css("position")&&(e=e.offsetParent());o=e.offset();f.top-=o.top;f.left-=o.left;u||v||(t="below");a||!l||u?!l&&a&&u&&(t="below"):t="above";("above"==t||u&&"below"!==t)&&(f.top=r.top-o.top-h.height);null!=t&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(f)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto");this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var u,i=0,r=0;r<t.length;r++)u=t[r],u.children?i+=n(u.children):i++;return i}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},n.prototype._handleSelectOnClose=function(n,t){var r,u,i;t&&null!=t.originalSelect2Event&&(r=t.originalSelect2Event,"select"===r._type||"unselect"===r._type)||(u=this.getHighlightedResults(),u.length<1||(i=u.data("data"),null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})))},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return 1!=n.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var vt,yt,pt,wt,bt,kt,dt,ct,lt,st,ot,ht,gt,at;if((l=n.extend(!0,{},this.defaults,l),null==l.dataAdapter)&&((l.dataAdapter=null!=l.ajax?y:null!=l.data?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),null!=l.query)&&(vt=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,vt)),null!=l.initSelection&&(yt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,yt))),(null==l.resultsAdapter&&(l.resultsAdapter=i,null!=l.ajax&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),null!=l.placeholder&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),null==l.dropdownAdapter)&&(l.multiple?l.dropdownAdapter=g:(pt=h.Decorate(g,nt),l.dropdownAdapter=pt),(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass)&&(wt=t(l.amdBase+"compat/dropdownCss"),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,wt)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),null==l.selectionAdapter&&((l.selectionAdapter=l.multiple?u:r,null!=l.placeholder&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass)&&(bt=t(l.amdBase+"compat/containerCss"),l.selectionAdapter=h.Decorate(l.selectionAdapter,bt)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),"string"==typeof l.language&&(l.language.indexOf("-")>0?(kt=l.language.split("-"),dt=kt[0],l.language=[l.language,dt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(ni){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(ti){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else gt=c.loadPath(this.defaults.amdLanguageBase+"en"),at=new c(l.language),at.extend(gt),l.translations=at;return l};st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(""===n.trim(r.term))return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),null==s&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)};return new st}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,null!=u&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){var e=["select2"],f,u,i;null==this.options.multiple&&(this.options.multiple=n.prop("multiple"));null==this.options.disabled&&(this.options.disabled=n.prop("disabled"));null==this.options.language&&(n.prop("lang")?this.options.language=n.prop("lang").toLowerCase():n.closest("[lang]").prop("lang")&&(this.options.language=n.closest("[lang]").prop("lang")));null==this.options.dir&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr");n.prop("disabled",this.options.disabled);n.prop("multiple",this.options.multiple);n.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.data("data",n.data("select2Tags")),n.data("tags",!0));n.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",n.data("ajaxUrl")),n.data("ajax--url",n.data("ajaxUrl")));f={};f=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&n[0].dataset?t.extend(!0,{},n[0].dataset,n.data()):n.data();u=t.extend(!0,{},f);u=r._convertData(u);for(i in u)t.inArray(i,e)>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;null!=n.data("select2")&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})});n.addClass("select2-hidden-accessible");n.attr("aria-hidden","true");this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=null!=n.attr("id")?n.attr("id"):null!=n.attr("name")?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var r,u,f,s,i;if("resolve"==t)return r=this._resolveWidth(n,"style"),null!=r?r:this._resolveWidth(n,"element");if("element"==t)return u=n.outerWidth(!1),0>=u?"auto":u+"px";if("style"==t){if(f=n.attr("style"),"string"!=typeof f)return null;for(var o=f.split(";"),e=0,h=o.length;h>e;e+=1)if(s=o[e].replace(/\s/g,""),i=s.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==i&&i.length>=1)return i[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this.$element.on("focus.select2",function(n){t.trigger("focus",n)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(i){n.each(i,t._syncA);n.each(i,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){-1===n.inArray(r,i)&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{});this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&t.altKey?(n.close(),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(n,t){var i=!1,f=this,r,u;if(!n||!n.target||"OPTION"===n.target.nodeName||"OPTGROUP"===n.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(r=0;r<t.addedNodes.length;r++)u=t.addedNodes[r],u.selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(n){f.trigger("selection:update",{data:n})})}},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if((void 0===t&&(t={}),n in f)&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented))return void(t.prevented=!0);r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(null==n||0===n.length)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(n){return n}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(n,t,i,r){if(null==n.fn.select2){var u=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var r=n.extend(!0,{},t);new i(n(this),r)}),this;if("string"==typeof t){var r,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=n(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");r=i[t].apply(i,f)}),n.inArray(t,u)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return null==n.fn.select2.defaults&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i})