2c8a67efe877c483cd534c428f782735db811d05b4c44115458ac9fa73e4fc3e

Source Code:


// Start Bundle: _jquery
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;

return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={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:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){
return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,m.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.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(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});
//# sourceMappingURL=jquery.min.map
// End Bundle: _jquery

// Start Bundle: _requirejs
/** vim: et:ts=4:sw=4:sts=4
 * @license RequireJS 2.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
 */
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requirejs.exec()/transpiler plugins that may not be strict.
/*jslint regexp: true, nomen: true, sloppy: true */
/*global window, navigator, document, importScripts, setTimeout, opera */

var requirejs, require, define;
(function (global, setTimeout) {
    var req, s, head, baseElement, dataMain, src,
        interactiveScript, currentlyAddingScript, mainScript, subPath,
        version = '2.3.3',
        commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
        jsSuffixRegExp = /\.js$/,
        currDirRegExp = /^\.\//,
        op = Object.prototype,
        ostring = op.toString,
        hasOwn = op.hasOwnProperty,
        isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
        isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
        //PS3 indicates loaded and complete, but need to wait for complete
        //specifically. Sequence is 'loading', 'loaded', execution,
        // then 'complete'. The UA check is unfortunate, but not sure how
        //to feature test w/o causing perf issues.
        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
                      /^complete$/ : /^(complete|loaded)$/,
        defContextName = '_',
        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
        contexts = {},
        cfg = {},
        globalDefQueue = [],
        useInteractive = false;

    //Could match something like ')//comment', do not lose the prefix to comment.
    function commentReplace(match, singlePrefix) {
        return singlePrefix || '';
    }

    function isFunction(it) {
        return ostring.call(it) === '[object Function]';
    }

    function isArray(it) {
        return ostring.call(it) === '[object Array]';
    }

    /**
     * Helper function for iterating over an array. If the func returns
     * a true value, it will break out of the loop.
     */
    function each(ary, func) {
        if (ary) {
            var i;
            for (i = 0; i < ary.length; i += 1) {
                if (ary[i] && func(ary[i], i, ary)) {
                    break;
                }
            }
        }
    }

    /**
     * Helper function for iterating over an array backwards. If the func
     * returns a true value, it will break out of the loop.
     */
    function eachReverse(ary, func) {
        if (ary) {
            var i;
            for (i = ary.length - 1; i > -1; i -= 1) {
                if (ary[i] && func(ary[i], i, ary)) {
                    break;
                }
            }
        }
    }

    function hasProp(obj, prop) {
        return hasOwn.call(obj, prop);
    }

    function getOwn(obj, prop) {
        return hasProp(obj, prop) && obj[prop];
    }

    /**
     * Cycles over properties in an object and calls a function for each
     * property value. If the function returns a truthy value, then the
     * iteration is stopped.
     */
    function eachProp(obj, func) {
        var prop;
        for (prop in obj) {
            if (hasProp(obj, prop)) {
                if (func(obj[prop], prop)) {
                    break;
                }
            }
        }
    }

    /**
     * Simple function to mix in properties from source into target,
     * but only if target does not already have a property of the same name.
     */
    function mixin(target, source, force, deepStringMixin) {
        if (source) {
            eachProp(source, function (value, prop) {
                if (force || !hasProp(target, prop)) {
                    if (deepStringMixin && typeof value === 'object' && value &&
                        !isArray(value) && !isFunction(value) &&
                        !(value instanceof RegExp)) {

                        if (!target[prop]) {
                            target[prop] = {};
                        }
                        mixin(target[prop], value, force, deepStringMixin);
                    } else {
                        target[prop] = value;
                    }
                }
            });
        }
        return target;
    }

    //Similar to Function.prototype.bind, but the 'this' object is specified
    //first, since it is easier to read/figure out what 'this' will be.
    function bind(obj, fn) {
        return function () {
            return fn.apply(obj, arguments);
        };
    }

    function scripts() {
        return document.getElementsByTagName('script');
    }

    function defaultOnError(err) {
        throw err;
    }

    //Allow getting a global that is expressed in
    //dot notation, like 'a.b.c'.
    function getGlobal(value) {
        if (!value) {
            return value;
        }
        var g = global;
        each(value.split('.'), function (part) {
            g = g[part];
        });
        return g;
    }

    /**
     * Constructs an error with a pointer to an URL with more information.
     * @param {String} id the error ID that maps to an ID on a web page.
     * @param {String} message human readable error.
     * @param {Error} [err] the original error, if there is one.
     *
     * @returns {Error}
     */
    function makeError(id, msg, err, requireModules) {
        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
        e.requireType = id;
        e.requireModules = requireModules;
        if (err) {
            e.originalError = err;
        }
        return e;
    }

    if (typeof define !== 'undefined') {
        //If a define is already in play via another AMD loader,
        //do not overwrite.
        return;
    }

    if (typeof requirejs !== 'undefined') {
        if (isFunction(requirejs)) {
            //Do not overwrite an existing requirejs instance.
            return;
        }
        cfg = requirejs;
        requirejs = undefined;
    }

    //Allow for a require config object
    if (typeof require !== 'undefined' && !isFunction(require)) {
        //assume it is a config object.
        cfg = require;
        require = undefined;
    }

    function newContext(contextName) {
        var inCheckLoaded, Module, context, handlers,
            checkLoadedTimeoutId,
            config = {
                //Defaults. Do not set a default for map
                //config to speed up normalize(), which
                //will run faster if there is no default.
                waitSeconds: 7,
                baseUrl: './',
                paths: {},
                bundles: {},
                pkgs: {},
                shim: {},
                config: {}
            },
            registry = {},
            //registry of just enabled modules, to speed
            //cycle breaking code when lots of modules
            //are registered, but not activated.
            enabledRegistry = {},
            undefEvents = {},
            defQueue = [],
            defined = {},
            urlFetched = {},
            bundlesMap = {},
            requireCounter = 1,
            unnormalizedCounter = 1;

        /**
         * Trims the . and .. from an array of path segments.
         * It will keep a leading path segment if a .. will become
         * the first path segment, to help with module name lookups,
         * which act like paths, but can be remapped. But the end result,
         * all paths that use this function should look normalized.
         * NOTE: this method MODIFIES the input array.
         * @param {Array} ary the array of path segments.
         */
        function trimDots(ary) {
            var i, part;
            for (i = 0; i < ary.length; i++) {
                part = ary[i];
                if (part === '.') {
                    ary.splice(i, 1);
                    i -= 1;
                } else if (part === '..') {
                    // If at the start, or previous value is still ..,
                    // keep them so that when converted to a path it may
                    // still work when converted to a path, even though
                    // as an ID it is less than ideal. In larger point
                    // releases, may be better to just kick out an error.
                    if (i === 0 || (i === 1 && ary[2] === '..') || ary[i - 1] === '..') {
                        continue;
                    } else if (i > 0) {
                        ary.splice(i - 1, 2);
                        i -= 2;
                    }
                }
            }
        }

        /**
         * Given a relative module name, like ./something, normalize it to
         * a real name that can be mapped to a path.
         * @param {String} name the relative name
         * @param {String} baseName a real name that the name arg is relative
         * to.
         * @param {Boolean} applyMap apply the map config to the value. Should
         * only be done if this normalization is for a dependency ID.
         * @returns {String} normalized name
         */
        function normalize(name, baseName, applyMap) {
            var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
                foundMap, foundI, foundStarMap, starI, normalizedBaseParts,
                baseParts = (baseName && baseName.split('/')),
                map = config.map,
                starMap = map && map['*'];

            //Adjust any relative paths.
            if (name) {
                name = name.split('/');
                lastIndex = name.length - 1;

                // If wanting node ID compatibility, strip .js from end
                // of IDs. Have to do this here, and not in nameToUrl
                // because node allows either .js or non .js to map
                // to same file.
                if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
                    name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
                }

                // Starts with a '.' so need the baseName
                if (name[0].charAt(0) === '.' && baseParts) {
                    //Convert baseName to array, and lop off the last part,
                    //so that . matches that 'directory' and not name of the baseName's
                    //module. For instance, baseName of 'one/two/three', maps to
                    //'one/two/three.js', but we want the directory, 'one/two' for
                    //this normalization.
                    normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
                    name = normalizedBaseParts.concat(name);
                }

                trimDots(name);
                name = name.join('/');
            }

            //Apply map config if available.
            if (applyMap && map && (baseParts || starMap)) {
                nameParts = name.split('/');

                outerLoop: for (i = nameParts.length; i > 0; i -= 1) {
                    nameSegment = nameParts.slice(0, i).join('/');

                    if (baseParts) {
                        //Find the longest baseName segment match in the config.
                        //So, do joins on the biggest to smallest lengths of baseParts.
                        for (j = baseParts.length; j > 0; j -= 1) {
                            mapValue = getOwn(map, baseParts.slice(0, j).join('/'));

                            //baseName segment has config, find if it has one for
                            //this name.
                            if (mapValue) {
                                mapValue = getOwn(mapValue, nameSegment);
                                if (mapValue) {
                                    //Match, update name to the new value.
                                    foundMap = mapValue;
                                    foundI = i;
                                    break outerLoop;
                                }
                            }
                        }
                    }

                    //Check for a star map match, but just hold on to it,
                    //if there is a shorter segment match later in a matching
                    //config, then favor over this star map.
                    if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {
                        foundStarMap = getOwn(starMap, nameSegment);
                        starI = i;
                    }
                }

                if (!foundMap && foundStarMap) {
                    foundMap = foundStarMap;
                    foundI = starI;
                }

                if (foundMap) {
                    nameParts.splice(0, foundI, foundMap);
                    name = nameParts.join('/');
                }
            }

            // If the name points to a package's name, use
            // the package main instead.
            pkgMain = getOwn(config.pkgs, name);

            return pkgMain ? pkgMain : name;
        }

        function removeScript(name) {
            if (isBrowser) {
                each(scripts(), function (scriptNode) {
                    if (scriptNode.getAttribute('data-requiremodule') === name &&
                            scriptNode.getAttribute('data-requirecontext') === context.contextName) {
                        scriptNode.parentNode.removeChild(scriptNode);
                        return true;
                    }
                });
            }
        }

        function hasPathFallback(id) {
            var pathConfig = getOwn(config.paths, id);
            if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
                //Pop off the first array value, since it failed, and
                //retry
                pathConfig.shift();
                context.require.undef(id);

                //Custom require that does not do map translation, since
                //ID is "absolute", already mapped/resolved.
                context.makeRequire(null, {
                    skipMap: true
                })([id]);

                return true;
            }
        }

        //Turns a plugin!resource to [plugin, resource]
        //with the plugin being undefined if the name
        //did not have a plugin prefix.
        function splitPrefix(name) {
            var prefix,
                index = name ? name.indexOf('!') : -1;
            if (index > -1) {
                prefix = name.substring(0, index);
                name = name.substring(index + 1, name.length);
            }
            return [prefix, name];
        }

        /**
         * Creates a module mapping that includes plugin prefix, module
         * name, and path. If parentModuleMap is provided it will
         * also normalize the name via require.normalize()
         *
         * @param {String} name the module name
         * @param {String} [parentModuleMap] parent module map
         * for the module name, used to resolve relative names.
         * @param {Boolean} isNormalized: is the ID already normalized.
         * This is true if this call is done for a define() module ID.
         * @param {Boolean} applyMap: apply the map config to the ID.
         * Should only be true if this map is for a dependency.
         *
         * @returns {Object}
         */
        function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
            var url, pluginModule, suffix, nameParts,
                prefix = null,
                parentName = parentModuleMap ? parentModuleMap.name : null,
                originalName = name,
                isDefine = true,
                normalizedName = '';

            //If no name, then it means it is a require call, generate an
            //internal name.
            if (!name) {
                isDefine = false;
                name = '_@r' + (requireCounter += 1);
            }

            nameParts = splitPrefix(name);
            prefix = nameParts[0];
            name = nameParts[1];

            if (prefix) {
                prefix = normalize(prefix, parentName, applyMap);
                pluginModule = getOwn(defined, prefix);
            }

            //Account for relative paths if there is a base name.
            if (name) {
                if (prefix) {
                    if (isNormalized) {
                        normalizedName = name;
                    } else if (pluginModule && pluginModule.normalize) {
                        //Plugin is loaded, use its normalize method.
                        normalizedName = pluginModule.normalize(name, function (name) {
                            return normalize(name, parentName, applyMap);
                        });
                    } else {
                        // If nested plugin references, then do not try to
                        // normalize, as it will not normalize correctly. This
                        // places a restriction on resourceIds, and the longer
                        // term solution is not to normalize until plugins are
                        // loaded and all normalizations to allow for async
                        // loading of a loader plugin. But for now, fixes the
                        // common uses. Details in #1131
                        normalizedName = name.indexOf('!') === -1 ?
                                         normalize(name, parentName, applyMap) :
                                         name;
                    }
                } else {
                    //A regular module.
                    normalizedName = normalize(name, parentName, applyMap);

                    //Normalized name may be a plugin ID due to map config
                    //application in normalize. The map config values must
                    //already be normalized, so do not need to redo that part.
                    nameParts = splitPrefix(normalizedName);
                    prefix = nameParts[0];
                    normalizedName = nameParts[1];
                    isNormalized = true;

                    url = context.nameToUrl(normalizedName);
                }
            }

            //If the id is a plugin id that cannot be determined if it needs
            //normalization, stamp it with a unique ID so two matching relative
            //ids that may conflict can be separate.
            suffix = prefix && !pluginModule && !isNormalized ?
                     '_unnormalized' + (unnormalizedCounter += 1) :
                     '';

            return {
                prefix: prefix,
                name: normalizedName,
                parentMap: parentModuleMap,
                unnormalized: !!suffix,
                url: url,
                originalName: originalName,
                isDefine: isDefine,
                id: (prefix ?
                        prefix + '!' + normalizedName :
                        normalizedName) + suffix
            };
        }

        function getModule(depMap) {
            var id = depMap.id,
                mod = getOwn(registry, id);

            if (!mod) {
                mod = registry[id] = new context.Module(depMap);
            }

            return mod;
        }

        function on(depMap, name, fn) {
            var id = depMap.id,
                mod = getOwn(registry, id);

            if (hasProp(defined, id) &&
                    (!mod || mod.defineEmitComplete)) {
                if (name === 'defined') {
                    fn(defined[id]);
                }
            } else {
                mod = getModule(depMap);
                if (mod.error && name === 'error') {
                    fn(mod.error);
                } else {
                    mod.on(name, fn);
                }
            }
        }

        function onError(err, errback) {
            var ids = err.requireModules,
                notified = false;

            if (errback) {
                errback(err);
            } else {
                each(ids, function (id) {
                    var mod = getOwn(registry, id);
                    if (mod) {
                        //Set error on module, so it skips timeout checks.
                        mod.error = err;
                        if (mod.events.error) {
                            notified = true;
                            mod.emit('error', err);
                        }
                    }
                });

                if (!notified) {
                    req.onError(err);
                }
            }
        }

        /**
         * Internal method to transfer globalQueue items to this context's
         * defQueue.
         */
        function takeGlobalQueue() {
            //Push all the globalDefQueue items into the context's defQueue
            if (globalDefQueue.length) {
                each(globalDefQueue, function(queueItem) {
                    var id = queueItem[0];
                    if (typeof id === 'string') {
                        context.defQueueMap[id] = true;
                    }
                    defQueue.push(queueItem);
                });
                globalDefQueue = [];
            }
        }

        handlers = {
            'require': function (mod) {
                if (mod.require) {
                    return mod.require;
                } else {
                    return (mod.require = context.makeRequire(mod.map));
                }
            },
            'exports': function (mod) {
                mod.usingExports = true;
                if (mod.map.isDefine) {
                    if (mod.exports) {
                        return (defined[mod.map.id] = mod.exports);
                    } else {
                        return (mod.exports = defined[mod.map.id] = {});
                    }
                }
            },
            'module': function (mod) {
                if (mod.module) {
                    return mod.module;
                } else {
                    return (mod.module = {
                        id: mod.map.id,
                        uri: mod.map.url,
                        config: function () {
                            return getOwn(config.config, mod.map.id) || {};
                        },
                        exports: mod.exports || (mod.exports = {})
                    });
                }
            }
        };

        function cleanRegistry(id) {
            //Clean up machinery used for waiting modules.
            delete registry[id];
            delete enabledRegistry[id];
        }

        function breakCycle(mod, traced, processed) {
            var id = mod.map.id;

            if (mod.error) {
                mod.emit('error', mod.error);
            } else {
                traced[id] = true;
                each(mod.depMaps, function (depMap, i) {
                    var depId = depMap.id,
                        dep = getOwn(registry, depId);

                    //Only force things that have not completed
                    //being defined, so still in the registry,
                    //and only if it has not been matched up
                    //in the module already.
                    if (dep && !mod.depMatched[i] && !processed[depId]) {
                        if (getOwn(traced, depId)) {
                            mod.defineDep(i, defined[depId]);
                            mod.check(); //pass false?
                        } else {
                            breakCycle(dep, traced, processed);
                        }
                    }
                });
                processed[id] = true;
            }
        }

        function checkLoaded() {
            var err, usingPathFallback,
                waitInterval = config.waitSeconds * 1000,
                //It is possible to disable the wait interval by using waitSeconds of 0.
                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
                noLoads = [],
                reqCalls = [],
                stillLoading = false,
                needCycleCheck = true;

            //Do not bother if this call was a result of a cycle break.
            if (inCheckLoaded) {
                return;
            }

            inCheckLoaded = true;

            //Figure out the state of all the modules.
            eachProp(enabledRegistry, function (mod) {
                var map = mod.map,
                    modId = map.id;

                //Skip things that are not enabled or in error state.
                if (!mod.enabled) {
                    return;
                }

                if (!map.isDefine) {
                    reqCalls.push(mod);
                }

                if (!mod.error) {
                    //If the module should be executed, and it has not
                    //been inited and time is up, remember it.
                    if (!mod.inited && expired) {
                        if (hasPathFallback(modId)) {
                            usingPathFallback = true;
                            stillLoading = true;
                        } else {
                            noLoads.push(modId);
                            removeScript(modId);
                        }
                    } else if (!mod.inited && mod.fetched && map.isDefine) {
                        stillLoading = true;
                        if (!map.prefix) {
                            //No reason to keep looking for unfinished
                            //loading. If the only stillLoading is a
                            //plugin resource though, keep going,
                            //because it may be that a plugin resource
                            //is waiting on a non-plugin cycle.
                            return (needCycleCheck = false);
                        }
                    }
                }
            });

            if (expired && noLoads.length) {
                //If wait time expired, throw error of unloaded modules.
                err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
                err.contextName = context.contextName;
                return onError(err);
            }

            //Not expired, check for a cycle.
            if (needCycleCheck) {
                each(reqCalls, function (mod) {
                    breakCycle(mod, {}, {});
                });
            }

            //If still waiting on loads, and the waiting load is something
            //other than a plugin resource, or there are still outstanding
            //scripts, then just try back later.
            if ((!expired || usingPathFallback) && stillLoading) {
                //Something is still waiting to load. Wait for it, but only
                //if a timeout is not already in effect.
                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
                    checkLoadedTimeoutId = setTimeout(function () {
                        checkLoadedTimeoutId = 0;
                        checkLoaded();
                    }, 50);
                }
            }

            inCheckLoaded = false;
        }

        Module = function (map) {
            this.events = getOwn(undefEvents, map.id) || {};
            this.map = map;
            this.shim = getOwn(config.shim, map.id);
            this.depExports = [];
            this.depMaps = [];
            this.depMatched = [];
            this.pluginMaps = {};
            this.depCount = 0;

            /* this.exports this.factory
               this.depMaps = [],
               this.enabled, this.fetched
            */
        };

        Module.prototype = {
            init: function (depMaps, factory, errback, options) {
                options = options || {};

                //Do not do more inits if already done. Can happen if there
                //are multiple define calls for the same module. That is not
                //a normal, common case, but it is also not unexpected.
                if (this.inited) {
                    return;
                }

                this.factory = factory;

                if (errback) {
                    //Register for errors on this module.
                    this.on('error', errback);
                } else if (this.events.error) {
                    //If no errback already, but there are error listeners
                    //on this module, set up an errback to pass to the deps.
                    errback = bind(this, function (err) {
                        this.emit('error', err);
                    });
                }

                //Do a copy of the dependency array, so that
                //source inputs are not modified. For example
                //"shim" deps are passed in here directly, and
                //doing a direct modification of the depMaps array
                //would affect that config.
                this.depMaps = depMaps && depMaps.slice(0);

                this.errback = errback;

                //Indicate this module has be initialized
                this.inited = true;

                this.ignore = options.ignore;

                //Could have option to init this module in enabled mode,
                //or could have been previously marked as enabled. However,
                //the dependencies are not known until init is called. So
                //if enabled previously, now trigger dependencies as enabled.
                if (options.enabled || this.enabled) {
                    //Enable this module and dependencies.
                    //Will call this.check()
                    this.enable();
                } else {
                    this.check();
                }
            },

            defineDep: function (i, depExports) {
                //Because of cycles, defined callback for a given
                //export can be called more than once.
                if (!this.depMatched[i]) {
                    this.depMatched[i] = true;
                    this.depCount -= 1;
                    this.depExports[i] = depExports;
                }
            },

            fetch: function () {
                if (this.fetched) {
                    return;
                }
                this.fetched = true;

                context.startTime = (new Date()).getTime();

                var map = this.map;

                //If the manager is for a plugin managed resource,
                //ask the plugin to load it now.
                if (this.shim) {
                    context.makeRequire(this.map, {
                        enableBuildCallback: true
                    })(this.shim.deps || [], bind(this, function () {
                        return map.prefix ? this.callPlugin() : this.load();
                    }));
                } else {
                    //Regular dependency.
                    return map.prefix ? this.callPlugin() : this.load();
                }
            },

            load: function () {
                var url = this.map.url;

                //Regular dependency.
                if (!urlFetched[url]) {
                    urlFetched[url] = true;
                    context.load(this.map.id, url);
                }
            },

            /**
             * Checks if the module is ready to define itself, and if so,
             * define it.
             */
            check: function () {
                if (!this.enabled || this.enabling) {
                    return;
                }

                var err, cjsModule,
                    id = this.map.id,
                    depExports = this.depExports,
                    exports = this.exports,
                    factory = this.factory;

                if (!this.inited) {
                    // Only fetch if not already in the defQueue.
                    if (!hasProp(context.defQueueMap, id)) {
                        this.fetch();
                    }
                } else if (this.error) {
                    this.emit('error', this.error);
                } else if (!this.defining) {
                    //The factory could trigger another require call
                    //that would result in checking this module to
                    //define itself again. If already in the process
                    //of doing that, skip this work.
                    this.defining = true;

                    if (this.depCount < 1 && !this.defined) {
                        if (isFunction(factory)) {
                            //If there is an error listener, favor passing
                            //to that instead of throwing an error. However,
                            //only do it for define()'d  modules. require
                            //errbacks should not be called for failures in
                            //their callbacks (#699). However if a global
                            //onError is set, use that.
                            if ((this.events.error && this.map.isDefine) ||
                                req.onError !== defaultOnError) {
                                try {
                                    exports = context.execCb(id, factory, depExports, exports);
                                } catch (e) {
                                    err = e;
                                }
                            } else {
                                exports = context.execCb(id, factory, depExports, exports);
                            }

                            // Favor return value over exports. If node/cjs in play,
                            // then will not have a return value anyway. Favor
                            // module.exports assignment over exports object.
                            if (this.map.isDefine && exports === undefined) {
                                cjsModule = this.module;
                                if (cjsModule) {
                                    exports = cjsModule.exports;
                                } else if (this.usingExports) {
                                    //exports already set the defined value.
                                    exports = this.exports;
                                }
                            }

                            if (err) {
                                err.requireMap = this.map;
                                err.requireModules = this.map.isDefine ? [this.map.id] : null;
                                err.requireType = this.map.isDefine ? 'define' : 'require';
                                return onError((this.error = err));
                            }

                        } else {
                            //Just a literal value
                            exports = factory;
                        }

                        this.exports = exports;

                        if (this.map.isDefine && !this.ignore) {
                            defined[id] = exports;

                            if (req.onResourceLoad) {
                                var resLoadMaps = [];
                                each(this.depMaps, function (depMap) {
                                    resLoadMaps.push(depMap.normalizedMap || depMap);
                                });
                                req.onResourceLoad(context, this.map, resLoadMaps);
                            }
                        }

                        //Clean up
                        cleanRegistry(id);

                        this.defined = true;
                    }

                    //Finished the define stage. Allow calling check again
                    //to allow define notifications below in the case of a
                    //cycle.
                    this.defining = false;

                    if (this.defined && !this.defineEmitted) {
                        this.defineEmitted = true;
                        this.emit('defined', this.exports);
                        this.defineEmitComplete = true;
                    }

                }
            },

            callPlugin: function () {
                var map = this.map,
                    id = map.id,
                    //Map already normalized the prefix.
                    pluginMap = makeModuleMap(map.prefix);

                //Mark this as a dependency for this plugin, so it
                //can be traced for cycles.
                this.depMaps.push(pluginMap);

                on(pluginMap, 'defined', bind(this, function (plugin) {
                    var load, normalizedMap, normalizedMod,
                        bundleId = getOwn(bundlesMap, this.map.id),
                        name = this.map.name,
                        parentName = this.map.parentMap ? this.map.parentMap.name : null,
                        localRequire = context.makeRequire(map.parentMap, {
                            enableBuildCallback: true
                        });

                    //If current map is not normalized, wait for that
                    //normalized name to load instead of continuing.
                    if (this.map.unnormalized) {
                        //Normalize the ID if the plugin allows it.
                        if (plugin.normalize) {
                            name = plugin.normalize(name, function (name) {
                                return normalize(name, parentName, true);
                            }) || '';
                        }

                        //prefix and name should already be normalized, no need
                        //for applying map config again either.
                        normalizedMap = makeModuleMap(map.prefix + '!' + name,
                                                      this.map.parentMap,
                                                      true);
                        on(normalizedMap,
                            'defined', bind(this, function (value) {
                                this.map.normalizedMap = normalizedMap;
                                this.init([], function () { return value; }, null, {
                                    enabled: true,
                                    ignore: true
                                });
                            }));

                        normalizedMod = getOwn(registry, normalizedMap.id);
                        if (normalizedMod) {
                            //Mark this as a dependency for this plugin, so it
                            //can be traced for cycles.
                            this.depMaps.push(normalizedMap);

                            if (this.events.error) {
                                normalizedMod.on('error', bind(this, function (err) {
                                    this.emit('error', err);
                                }));
                            }
                            normalizedMod.enable();
                        }

                        return;
                    }

                    //If a paths config, then just load that file instead to
                    //resolve the plugin, as it is built into that paths layer.
                    if (bundleId) {
                        this.map.url = context.nameToUrl(bundleId);
                        this.load();
                        return;
                    }

                    load = bind(this, function (value) {
                        this.init([], function () { return value; }, null, {
                            enabled: true
                        });
                    });

                    load.error = bind(this, function (err) {
                        this.inited = true;
                        this.error = err;
                        err.requireModules = [id];

                        //Remove temp unnormalized modules for this module,
                        //since they will never be resolved otherwise now.
                        eachProp(registry, function (mod) {
                            if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
                                cleanRegistry(mod.map.id);
                            }
                        });

                        onError(err);
                    });

                    //Allow plugins to load other code without having to know the
                    //context or how to 'complete' the load.
                    load.fromText = bind(this, function (text, textAlt) {
                        /*jslint evil: true */
                        var moduleName = map.name,
                            moduleMap = makeModuleMap(moduleName),
                            hasInteractive = useInteractive;

                        //As of 2.1.0, support just passing the text, to reinforce
                        //fromText only being called once per resource. Still
                        //support old style of passing moduleName but discard
                        //that moduleName in favor of the internal ref.
                        if (textAlt) {
                            text = textAlt;
                        }

                        //Turn off interactive script matching for IE for any define
                        //calls in the text, then turn it back on at the end.
                        if (hasInteractive) {
                            useInteractive = false;
                        }

                        //Prime the system by creating a module instance for
                        //it.
                        getModule(moduleMap);

                        //Transfer any config to this other module.
                        if (hasProp(config.config, id)) {
                            config.config[moduleName] = config.config[id];
                        }

                        try {
                            req.exec(text);
                        } catch (e) {
                            return onError(makeError('fromtexteval',
                                             'fromText eval for ' + id +
                                            ' failed: ' + e,
                                             e,
                                             [id]));
                        }

                        if (hasInteractive) {
                            useInteractive = true;
                        }

                        //Mark this as a dependency for the plugin
                        //resource
                        this.depMaps.push(moduleMap);

                        //Support anonymous modules.
                        context.completeLoad(moduleName);

                        //Bind the value of that module to the value for this
                        //resource ID.
                        localRequire([moduleName], load);
                    });

                    //Use parentName here since the plugin's name is not reliable,
                    //could be some weird string with no path that actually wants to
                    //reference the parentName's path.
                    plugin.load(map.name, localRequire, load, config);
                }));

                context.enable(pluginMap, this);
                this.pluginMaps[pluginMap.id] = pluginMap;
            },

            enable: function () {
                enabledRegistry[this.map.id] = this;
                this.enabled = true;

                //Set flag mentioning that the module is enabling,
                //so that immediate calls to the defined callbacks
                //for dependencies do not trigger inadvertent load
                //with the depCount still being zero.
                this.enabling = true;

                //Enable each dependency
                each(this.depMaps, bind(this, function (depMap, i) {
                    var id, mod, handler;

                    if (typeof depMap === 'string') {
                        //Dependency needs to be converted to a depMap
                        //and wired up to this module.
                        depMap = makeModuleMap(depMap,
                                               (this.map.isDefine ? this.map : this.map.parentMap),
                                               false,
                                               !this.skipMap);
                        this.depMaps[i] = depMap;

                        handler = getOwn(handlers, depMap.id);

                        if (handler) {
                            this.depExports[i] = handler(this);
                            return;
                        }

                        this.depCount += 1;

                        on(depMap, 'defined', bind(this, function (depExports) {
                            if (this.undefed) {
                                return;
                            }
                            this.defineDep(i, depExports);
                            this.check();
                        }));

                        if (this.errback) {
                            on(depMap, 'error', bind(this, this.errback));
                        } else if (this.events.error) {
                            // No direct errback on this module, but something
                            // else is listening for errors, so be sure to
                            // propagate the error correctly.
                            on(depMap, 'error', bind(this, function(err) {
                                this.emit('error', err);
                            }));
                        }
                    }

                    id = depMap.id;
                    mod = registry[id];

                    //Skip special modules like 'require', 'exports', 'module'
                    //Also, don't call enable if it is already enabled,
                    //important in circular dependency cases.
                    if (!hasProp(handlers, id) && mod && !mod.enabled) {
                        context.enable(depMap, this);
                    }
                }));

                //Enable each plugin that is used in
                //a dependency
                eachProp(this.pluginMaps, bind(this, function (pluginMap) {
                    var mod = getOwn(registry, pluginMap.id);
                    if (mod && !mod.enabled) {
                        context.enable(pluginMap, this);
                    }
                }));

                this.enabling = false;

                this.check();
            },

            on: function (name, cb) {
                var cbs = this.events[name];
                if (!cbs) {
                    cbs = this.events[name] = [];
                }
                cbs.push(cb);
            },

            emit: function (name, evt) {
                each(this.events[name], function (cb) {
                    cb(evt);
                });
                if (name === 'error') {
                    //Now that the error handler was triggered, remove
                    //the listeners, since this broken Module instance
                    //can stay around for a while in the registry.
                    delete this.events[name];
                }
            }
        };

        function callGetModule(args) {
            //Skip modules already defined.
            if (!hasProp(defined, args[0])) {
                getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
            }
        }

        function removeListener(node, func, name, ieName) {
            //Favor detachEvent because of IE9
            //issue, see attachEvent/addEventListener comment elsewhere
            //in this file.
            if (node.detachEvent && !isOpera) {
                //Probably IE. If not it will throw an error, which will be
                //useful to know.
                if (ieName) {
                    node.detachEvent(ieName, func);
                }
            } else {
                node.removeEventListener(name, func, false);
            }
        }

        /**
         * Given an event from a script node, get the requirejs info from it,
         * and then removes the event listeners on the node.
         * @param {Event} evt
         * @returns {Object}
         */
        function getScriptData(evt) {
            //Using currentTarget instead of target for Firefox 2.0's sake. Not
            //all old browsers will be supported, but this one was easy enough
            //to support and still makes sense.
            var node = evt.currentTarget || evt.srcElement;

            //Remove the listeners once here.
            removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
            removeListener(node, context.onScriptError, 'error');

            return {
                node: node,
                id: node && node.getAttribute('data-requiremodule')
            };
        }

        function intakeDefines() {
            var args;

            //Any defined modules in the global queue, intake them now.
            takeGlobalQueue();

            //Make sure any remaining defQueue items get properly processed.
            while (defQueue.length) {
                args = defQueue.shift();
                if (args[0] === null) {
                    return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' +
                        args[args.length - 1]));
                } else {
                    //args are id, deps, factory. Should be normalized by the
                    //define() function.
                    callGetModule(args);
                }
            }
            context.defQueueMap = {};
        }

        context = {
            config: config,
            contextName: contextName,
            registry: registry,
            defined: defined,
            urlFetched: urlFetched,
            defQueue: defQueue,
            defQueueMap: {},
            Module: Module,
            makeModuleMap: makeModuleMap,
            nextTick: req.nextTick,
            onError: onError,

            /**
             * Set a configuration for the context.
             * @param {Object} cfg config object to integrate.
             */
            configure: function (cfg) {
                //Make sure the baseUrl ends in a slash.
                if (cfg.baseUrl) {
                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
                        cfg.baseUrl += '/';
                    }
                }

                // Convert old style urlArgs string to a function.
                if (typeof cfg.urlArgs === 'string') {
                    var urlArgs = cfg.urlArgs;
                    cfg.urlArgs = function(id, url) {
                        return (url.indexOf('?') === -1 ? '?' : '&') + urlArgs;
                    };
                }

                //Save off the paths since they require special processing,
                //they are additive.
                var shim = config.shim,
                    objs = {
                        paths: true,
                        bundles: true,
                        config: true,
                        map: true
                    };

                eachProp(cfg, function (value, prop) {
                    if (objs[prop]) {
                        if (!config[prop]) {
                            config[prop] = {};
                        }
                        mixin(config[prop], value, true, true);
                    } else {
                        config[prop] = value;
                    }
                });

                //Reverse map the bundles
                if (cfg.bundles) {
                    eachProp(cfg.bundles, function (value, prop) {
                        each(value, function (v) {
                            if (v !== prop) {
                                bundlesMap[v] = prop;
                            }
                        });
                    });
                }

                //Merge shim
                if (cfg.shim) {
                    eachProp(cfg.shim, function (value, id) {
                        //Normalize the structure
                        if (isArray(value)) {
                            value = {
                                deps: value
                            };
                        }
                        if ((value.exports || value.init) && !value.exportsFn) {
                            value.exportsFn = context.makeShimExports(value);
                        }
                        shim[id] = value;
                    });
                    config.shim = shim;
                }

                //Adjust packages if necessary.
                if (cfg.packages) {
                    each(cfg.packages, function (pkgObj) {
                        var location, name;

                        pkgObj = typeof pkgObj === 'string' ? {name: pkgObj} : pkgObj;

                        name = pkgObj.name;
                        location = pkgObj.location;
                        if (location) {
                            config.paths[name] = pkgObj.location;
                        }

                        //Save pointer to main module ID for pkg name.
                        //Remove leading dot in main, so main paths are normalized,
                        //and remove any trailing .js, since different package
                        //envs have different conventions: some use a module name,
                        //some use a file name.
                        config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main')
                                     .replace(currDirRegExp, '')
                                     .replace(jsSuffixRegExp, '');
                    });
                }

                //If there are any "waiting to execute" modules in the registry,
                //update the maps for them, since their info, like URLs to load,
                //may have changed.
                eachProp(registry, function (mod, id) {
                    //If module already has init called, since it is too
                    //late to modify them, and ignore unnormalized ones
                    //since they are transient.
                    if (!mod.inited && !mod.map.unnormalized) {
                        mod.map = makeModuleMap(id, null, true);
                    }
                });

                //If a deps array or a config callback is specified, then call
                //require with those args. This is useful when require is defined as a
                //config object before require.js is loaded.
                if (cfg.deps || cfg.callback) {
                    context.require(cfg.deps || [], cfg.callback);
                }
            },

            makeShimExports: function (value) {
                function fn() {
                    var ret;
                    if (value.init) {
                        ret = value.init.apply(global, arguments);
                    }
                    return ret || (value.exports && getGlobal(value.exports));
                }
                return fn;
            },

            makeRequire: function (relMap, options) {
                options = options || {};

                function localRequire(deps, callback, errback) {
                    var id, map, requireMod;

                    if (options.enableBuildCallback && callback && isFunction(callback)) {
                        callback.__requireJsBuild = true;
                    }

                    if (typeof deps === 'string') {
                        if (isFunction(callback)) {
                            //Invalid call
                            return onError(makeError('requireargs', 'Invalid require call'), errback);
                        }

                        //If require|exports|module are requested, get the
                        //value for them from the special handlers. Caveat:
                        //this only works while module is being defined.
                        if (relMap && hasProp(handlers, deps)) {
                            return handlers[deps](registry[relMap.id]);
                        }

                        //Synchronous access to one module. If require.get is
                        //available (as in the Node adapter), prefer that.
                        if (req.get) {
                            return req.get(context, deps, relMap, localRequire);
                        }

                        //Normalize module name, if it contains . or ..
                        map = makeModuleMap(deps, relMap, false, true);
                        id = map.id;

                        if (!hasProp(defined, id)) {
                            return onError(makeError('notloaded', 'Module name "' +
                                        id +
                                        '" has not been loaded yet for context: ' +
                                        contextName +
                                        (relMap ? '' : '. Use require([])')));
                        }
                        return defined[id];
                    }

                    //Grab defines waiting in the global queue.
                    intakeDefines();

                    //Mark all the dependencies as needing to be loaded.
                    context.nextTick(function () {
                        //Some defines could have been added since the
                        //require call, collect them.
                        intakeDefines();

                        requireMod = getModule(makeModuleMap(null, relMap));

                        //Store if map config should be applied to this require
                        //call for dependencies.
                        requireMod.skipMap = options.skipMap;

                        requireMod.init(deps, callback, errback, {
                            enabled: true
                        });

                        checkLoaded();
                    });

                    return localRequire;
                }

                mixin(localRequire, {
                    isBrowser: isBrowser,

                    /**
                     * Converts a module name + .extension into an URL path.
                     * *Requires* the use of a module name. It does not support using
                     * plain URLs like nameToUrl.
                     */
                    toUrl: function (moduleNamePlusExt) {
                        var ext,
                            index = moduleNamePlusExt.lastIndexOf('.'),
                            segment = moduleNamePlusExt.split('/')[0],
                            isRelative = segment === '.' || segment === '..';

                        //Have a file extension alias, and it is not the
                        //dots from a relative path.
                        if (index !== -1 && (!isRelative || index > 1)) {
                            ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
                            moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
                        }

                        return context.nameToUrl(normalize(moduleNamePlusExt,
                                                relMap && relMap.id, true), ext,  true);
                    },

                    defined: function (id) {
                        return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
                    },

                    specified: function (id) {
                        id = makeModuleMap(id, relMap, false, true).id;
                        return hasProp(defined, id) || hasProp(registry, id);
                    }
                });

                //Only allow undef on top level require calls
                if (!relMap) {
                    localRequire.undef = function (id) {
                        //Bind any waiting define() calls to this context,
                        //fix for #408
                        takeGlobalQueue();

                        var map = makeModuleMap(id, relMap, true),
                            mod = getOwn(registry, id);

                        mod.undefed = true;
                        removeScript(id);

                        delete defined[id];
                        delete urlFetched[map.url];
                        delete undefEvents[id];

                        //Clean queued defines too. Go backwards
                        //in array so that the splices do not
                        //mess up the iteration.
                        eachReverse(defQueue, function(args, i) {
                            if (args[0] === id) {
                                defQueue.splice(i, 1);
                            }
                        });
                        delete context.defQueueMap[id];

                        if (mod) {
                            //Hold on to listeners in case the
                            //module will be attempted to be reloaded
                            //using a different config.
                            if (mod.events.defined) {
                                undefEvents[id] = mod.events;
                            }

                            cleanRegistry(id);
                        }
                    };
                }

                return localRequire;
            },

            /**
             * Called to enable a module if it is still in the registry
             * awaiting enablement. A second arg, parent, the parent module,
             * is passed in for context, when this method is overridden by
             * the optimizer. Not shown here to keep code compact.
             */
            enable: function (depMap) {
                var mod = getOwn(registry, depMap.id);
                if (mod) {
                    getModule(depMap).enable();
                }
            },

            /**
             * Internal method used by environment adapters to complete a load event.
             * A load event could be a script load or just a load pass from a synchronous
             * load call.
             * @param {String} moduleName the name of the module to potentially complete.
             */
            completeLoad: function (moduleName) {
                var found, args, mod,
                    shim = getOwn(config.shim, moduleName) || {},
                    shExports = shim.exports;

                takeGlobalQueue();

                while (defQueue.length) {
                    args = defQueue.shift();
                    if (args[0] === null) {
                        args[0] = moduleName;
                        //If already found an anonymous module and bound it
                        //to this name, then this is some other anon module
                        //waiting for its completeLoad to fire.
                        if (found) {
                            break;
                        }
                        found = true;
                    } else if (args[0] === moduleName) {
                        //Found matching define call for this script!
                        found = true;
                    }

                    callGetModule(args);
                }
                context.defQueueMap = {};

                //Do this after the cycle of callGetModule in case the result
                //of those calls/init calls changes the registry.
                mod = getOwn(registry, moduleName);

                if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) {
                    if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
                        if (hasPathFallback(moduleName)) {
                            return;
                        } else {
                            return onError(makeError('nodefine',
                                             'No define call for ' + moduleName,
                                             null,
                                             [moduleName]));
                        }
                    } else {
                        //A script that does not call define(), so just simulate
                        //the call for it.
                        callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
                    }
                }

                checkLoaded();
            },

            /**
             * Converts a module name to a file path. Supports cases where
             * moduleName may actually be just an URL.
             * Note that it **does not** call normalize on the moduleName,
             * it is assumed to have already been normalized. This is an
             * internal API, not a public one. Use toUrl for the public API.
             */
            nameToUrl: function (moduleName, ext, skipExt) {
                var paths, syms, i, parentModule, url,
                    parentPath, bundleId,
                    pkgMain = getOwn(config.pkgs, moduleName);

                if (pkgMain) {
                    moduleName = pkgMain;
                }

                bundleId = getOwn(bundlesMap, moduleName);

                if (bundleId) {
                    return context.nameToUrl(bundleId, ext, skipExt);
                }

                //If a colon is in the URL, it indicates a protocol is used and it is just
                //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
                //or ends with .js, then assume the user meant to use an url and not a module id.
                //The slash is important for protocol-less URLs as well as full paths.
                if (req.jsExtRegExp.test(moduleName)) {
                    //Just a plain path, not module name lookup, so just return it.
                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
                    //an extension, this method probably needs to be reworked.
                    url = moduleName + (ext || '');
                } else {
                    //A module that needs to be converted to a path.
                    paths = config.paths;

                    syms = moduleName.split('/');
                    //For each module name segment, see if there is a path
                    //registered for it. Start with most specific name
                    //and work up from it.
                    for (i = syms.length; i > 0; i -= 1) {
                        parentModule = syms.slice(0, i).join('/');

                        parentPath = getOwn(paths, parentModule);
                        if (parentPath) {
                            //If an array, it means there are a few choices,
                            //Choose the one that is desired
                            if (isArray(parentPath)) {
                                parentPath = parentPath[0];
                            }
                            syms.splice(0, i, parentPath);
                            break;
                        }
                    }

                    //Join the path parts together, then figure out if baseUrl is needed.
                    url = syms.join('/');
                    url += (ext || (/^data\:|^blob\:|\?/.test(url) || skipExt ? '' : '.js'));
                    url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
                }

                return config.urlArgs && !/^blob\:/.test(url) ?
                       url + config.urlArgs(moduleName, url) : url;
            },

            //Delegates to req.load. Broken out as a separate function to
            //allow overriding in the optimizer.
            load: function (id, url) {
                req.load(context, id, url);
            },

            /**
             * Executes a module callback function. Broken out as a separate function
             * solely to allow the build system to sequence the files in the built
             * layer in the right sequence.
             *
             * @private
             */
            execCb: function (name, callback, args, exports) {
                return callback.apply(exports, args);
            },

            /**
             * callback for script loads, used to check status of loading.
             *
             * @param {Event} evt the event from the browser for the script
             * that was loaded.
             */
            onScriptLoad: function (evt) {
                //Using currentTarget instead of target for Firefox 2.0's sake. Not
                //all old browsers will be supported, but this one was easy enough
                //to support and still makes sense.
                if (evt.type === 'load' ||
                        (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
                    //Reset interactive script so a script node is not held onto for
                    //to long.
                    interactiveScript = null;

                    //Pull out the name of the module and the context.
                    var data = getScriptData(evt);
                    context.completeLoad(data.id);
                }
            },

            /**
             * Callback for script errors.
             */
            onScriptError: function (evt) {
                var data = getScriptData(evt);
                if (!hasPathFallback(data.id)) {
                    var parents = [];
                    eachProp(registry, function(value, key) {
                        if (key.indexOf('_@r') !== 0) {
                            each(value.depMaps, function(depMap) {
                                if (depMap.id === data.id) {
                                    parents.push(key);
                                    return true;
                                }
                            });
                        }
                    });
                    return onError(makeError('scripterror', 'Script error for "' + data.id +
                                             (parents.length ?
                                             '", needed by: ' + parents.join(', ') :
                                             '"'), evt, [data.id]));
                }
            }
        };

        context.require = context.makeRequire();
        return context;
    }

    /**
     * Main entry point.
     *
     * If the only argument to require is a string, then the module that
     * is represented by that string is fetched for the appropriate context.
     *
     * If the first argument is an array, then it will be treated as an array
     * of dependency string names to fetch. An optional function callback can
     * be specified to execute when all of those dependencies are available.
     *
     * Make a local req variable to help Caja compliance (it assumes things
     * on a require that are not standardized), and to give a short
     * name for minification/local scope use.
     */
    req = requirejs = function (deps, callback, errback, optional) {

        //Find the right context, use default
        var context, config,
            contextName = defContextName;

        // Determine if have config object in the call.
        if (!isArray(deps) && typeof deps !== 'string') {
            // deps is a config object
            config = deps;
            if (isArray(callback)) {
                // Adjust args if there are dependencies
                deps = callback;
                callback = errback;
                errback = optional;
            } else {
                deps = [];
            }
        }

        if (config && config.context) {
            contextName = config.context;
        }

        context = getOwn(contexts, contextName);
        if (!context) {
            context = contexts[contextName] = req.s.newContext(contextName);
        }

        if (config) {
            context.configure(config);
        }

        return context.require(deps, callback, errback);
    };

    /**
     * Support require.config() to make it easier to cooperate with other
     * AMD loaders on globally agreed names.
     */
    req.config = function (config) {
        return req(config);
    };

    /**
     * Execute something after the current tick
     * of the event loop. Override for other envs
     * that have a better solution than setTimeout.
     * @param  {Function} fn function to execute later.
     */
    req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
        setTimeout(fn, 4);
    } : function (fn) { fn(); };

    /**
     * Export require as a global, but only if it does not already exist.
     */
    if (!require) {
        require = req;
    }

    req.version = version;

    //Used to filter out dependencies that are already paths.
    req.jsExtRegExp = /^\/|:|\?|\.js$/;
    req.isBrowser = isBrowser;
    s = req.s = {
        contexts: contexts,
        newContext: newContext
    };

    //Create default context.
    req({});

    //Exports some context-sensitive methods on global require.
    each([
        'toUrl',
        'undef',
        'defined',
        'specified'
    ], function (prop) {
        //Reference from contexts instead of early binding to default context,
        //so that during builds, the latest instance of the default context
        //with its config gets used.
        req[prop] = function () {
            var ctx = contexts[defContextName];
            return ctx.require[prop].apply(ctx, arguments);
        };
    });

    if (isBrowser) {
        head = s.head = document.getElementsByTagName('head')[0];
        //If BASE tag is in play, using appendChild is a problem for IE6.
        //When that browser dies, this can be removed. Details in this jQuery bug:
        //http://dev.jquery.com/ticket/2709
        baseElement = document.getElementsByTagName('base')[0];
        if (baseElement) {
            head = s.head = baseElement.parentNode;
        }
    }

    /**
     * Any errors that require explicitly generates will be passed to this
     * function. Intercept/override it if you want custom error handling.
     * @param {Error} err the error object.
     */
    req.onError = defaultOnError;

    /**
     * Creates the node for the load command. Only used in browser envs.
     */
    req.createNode = function (config, moduleName, url) {
        var node = config.xhtml ?
                document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
                document.createElement('script');
        node.type = config.scriptType || 'text/javascript';
        node.charset = 'utf-8';
        node.async = true;
        return node;
    };

    /**
     * Does the request to load a module for the browser case.
     * Make this a separate function to allow other environments
     * to override it.
     *
     * @param {Object} context the require context to find state.
     * @param {String} moduleName the name of the module.
     * @param {Object} url the URL to the module.
     */
    req.load = function (context, moduleName, url) {
        var config = (context && context.config) || {},
            node;
        if (isBrowser) {
            //In the browser so use a script tag
            node = req.createNode(config, moduleName, url);

            node.setAttribute('data-requirecontext', context.contextName);
            node.setAttribute('data-requiremodule', moduleName);

            //Set up load listener. Test attachEvent first because IE9 has
            //a subtle issue in its addEventListener and script onload firings
            //that do not match the behavior of all other browsers with
            //addEventListener support, which fire the onload event for a
            //script right after the script execution. See:
            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
            //script execution mode.
            if (node.attachEvent &&
                    //Check if node.attachEvent is artificially added by custom script or
                    //natively supported by browser
                    //read https://github.com/requirejs/requirejs/issues/187
                    //if we can NOT find [native code] then it must NOT natively supported.
                    //in IE8, node.attachEvent does not have toString()
                    //Note the test for "[native code" with no closing brace, see:
                    //https://github.com/requirejs/requirejs/issues/273
                    !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
                    !isOpera) {
                //Probably IE. IE (at least 6-8) do not fire
                //script onload right after executing the script, so
                //we cannot tie the anonymous define call to a name.
                //However, IE reports the script as being in 'interactive'
                //readyState at the time of the define call.
                useInteractive = true;

                node.attachEvent('onreadystatechange', context.onScriptLoad);
                //It would be great to add an error handler here to catch
                //404s in IE9+. However, onreadystatechange will fire before
                //the error handler, so that does not help. If addEventListener
                //is used, then IE will fire error before load, but we cannot
                //use that pathway given the connect.microsoft.com issue
                //mentioned above about not doing the 'script execute,
                //then fire the script load event listener before execute
                //next script' that other browsers do.
                //Best hope: IE10 fixes the issues,
                //and then destroys all installs of IE 6-9.
                //node.attachEvent('onerror', context.onScriptError);
            } else {
                node.addEventListener('load', context.onScriptLoad, false);
                node.addEventListener('error', context.onScriptError, false);
            }
            node.src = url;

            //Calling onNodeCreated after all properties on the node have been
            //set, but before it is placed in the DOM.
            if (config.onNodeCreated) {
                config.onNodeCreated(node, config, moduleName, url);
            }

            //For some cache cases in IE 6-8, the script executes before the end
            //of the appendChild execution, so to tie an anonymous define
            //call to the module name (which is stored on the node), hold on
            //to a reference to this node, but clear after the DOM insertion.
            currentlyAddingScript = node;
            if (baseElement) {
                head.insertBefore(node, baseElement);
            } else {
                head.appendChild(node);
            }
            currentlyAddingScript = null;

            return node;
        } else if (isWebWorker) {
            try {
                //In a web worker, use importScripts. This is not a very
                //efficient use of importScripts, importScripts will block until
                //its script is downloaded and evaluated. However, if web workers
                //are in play, the expectation is that a build has been done so
                //that only one script needs to be loaded anyway. This may need
                //to be reevaluated if other use cases become common.

                // Post a task to the event loop to work around a bug in WebKit
                // where the worker gets garbage-collected after calling
                // importScripts(): https://webkit.org/b/153317
                setTimeout(function() {}, 0);
                importScripts(url);

                //Account for anonymous modules
                context.completeLoad(moduleName);
            } catch (e) {
                context.onError(makeError('importscripts',
                                'importScripts failed for ' +
                                    moduleName + ' at ' + url,
                                e,
                                [moduleName]));
            }
        }
    };

    function getInteractiveScript() {
        if (interactiveScript && interactiveScript.readyState === 'interactive') {
            return interactiveScript;
        }

        eachReverse(scripts(), function (script) {
            if (script.readyState === 'interactive') {
                return (interactiveScript = script);
            }
        });
        return interactiveScript;
    }

    //Look for a data-main script attribute, which could also adjust the baseUrl.
    if (isBrowser && !cfg.skipDataMain) {
        //Figure out baseUrl. Get it from the script tag with require.js in it.
        eachReverse(scripts(), function (script) {
            //Set the 'head' where we can append children by
            //using the script's parent.
            if (!head) {
                head = script.parentNode;
            }

            //Look for a data-main attribute to set main script for the page
            //to load. If it is there, the path to data main becomes the
            //baseUrl, if it is not already set.
            dataMain = script.getAttribute('data-main');
            if (dataMain) {
                //Preserve dataMain in case it is a path (i.e. contains '?')
                mainScript = dataMain;

                //Set final baseUrl if there is not already an explicit one,
                //but only do so if the data-main value is not a loader plugin
                //module ID.
                if (!cfg.baseUrl && mainScript.indexOf('!') === -1) {
                    //Pull off the directory of data-main for use as the
                    //baseUrl.
                    src = mainScript.split('/');
                    mainScript = src.pop();
                    subPath = src.length ? src.join('/')  + '/' : './';

                    cfg.baseUrl = subPath;
                }

                //Strip off any trailing .js since mainScript is now
                //like a module name.
                mainScript = mainScript.replace(jsSuffixRegExp, '');

                //If mainScript is still a path, fall back to dataMain
                if (req.jsExtRegExp.test(mainScript)) {
                    mainScript = dataMain;
                }

                //Put the data-main script in the files to load.
                cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];

                return true;
            }
        });
    }

    /**
     * The function that handles definitions of modules. Differs from
     * require() in that a string for the module should be the first argument,
     * and the function to execute after dependencies are loaded should
     * return a value to define the module corresponding to the first argument's
     * name.
     */
    define = function (name, deps, callback) {
        var node, context;

        //Allow for anonymous modules
        if (typeof name !== 'string') {
            //Adjust args appropriately
            callback = deps;
            deps = name;
            name = null;
        }

        //This module may not have dependencies
        if (!isArray(deps)) {
            callback = deps;
            deps = null;
        }

        //If no name, and callback is a function, then figure out if it a
        //CommonJS thing with dependencies.
        if (!deps && isFunction(callback)) {
            deps = [];
            //Remove comments from the callback string,
            //look for require calls, and pull them into the dependencies,
            //but only if there are function args.
            if (callback.length) {
                callback
                    .toString()
                    .replace(commentRegExp, commentReplace)
                    .replace(cjsRequireRegExp, function (match, dep) {
                        deps.push(dep);
                    });

                //May be a CommonJS thing even without require calls, but still
                //could use exports, and module. Avoid doing exports and module
                //work though if it just needs require.
                //REQUIRES the function to expect the CommonJS variables in the
                //order listed below.
                deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
            }
        }

        //If in IE 6-8 and hit an anonymous define() call, do the interactive
        //work.
        if (useInteractive) {
            node = currentlyAddingScript || getInteractiveScript();
            if (node) {
                if (!name) {
                    name = node.getAttribute('data-requiremodule');
                }
                context = contexts[node.getAttribute('data-requirecontext')];
            }
        }

        //Always save off evaluating the def call until the script onload handler.
        //This allows multiple modules to be in a file without prematurely
        //tracing dependencies, and allows for anonymous module support,
        //where the module name is not known until the script onload event
        //occurs. If no context, use the global queue, and get it processed
        //in the onscript load callback.
        if (context) {
            context.defQueue.push([name, deps, callback]);
            context.defQueueMap[name] = true;
        } else {
            globalDefQueue.push([name, deps, callback]);
        }
    };

    define.amd = {
        jQuery: true
    };

    /**
     * Executes the text. Normally just uses eval, but can be modified
     * to use a better, environment-specific call. Only used for transpiling
     * loader plugins, not for plain JS modules.
     * @param {String} text the text to execute/evaluate.
     */
    req.exec = function (text) {
        /*jslint evil: true */
        return eval(text);
    };

    //Set up with config info.
    req(cfg);
}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));

// End Bundle: _requirejs

// Start Bundle: _configjs
requirejs.config({
    baseUrl: PORTAL_URL,
    paths: {
    "mockup-patterns-pickadate": "++resource++mockup/pickadate/pattern", 
    "mockup-patterns-inlinevalidation": "++resource++mockup/inlinevalidation/pattern", 
    "castle-dashboard-welcome": "++plone++castle/components/dashboard-welcome", 
    "mockup-patterns-resourceregistry": "++resource++mockup/resourceregistry/pattern", 
    "pat-jquery-ext": "++plone++static/components/patternslib/src/core/jquery-ext", 
    "bootstrap-tooltip": "++plone++static/components/bootstrap/js/tooltip", 
    "tinymce-anchor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/anchor/plugin", 
    "castle-quality-check": "++plone++castle/components/quality-check", 
    "mockup-patterns-filemanager-url": "++resource++mockup/filemanager", 
    "mockup-patterns-modal": "++resource++mockup/modal/pattern", 
    "jquery.tmpl": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tmpl", 
    "tinymce-modern-theme": "++plone++static/components/tinymce-builded/js/tinymce/themes/modern/theme", 
    "jquery.event.drag": "++resource++mockuplib/jquery.event.drag", 
    "tinymce-pagebreak": "++plone++static/components/tinymce-builded/js/tinymce/plugins/pagebreak/plugin", 
    "tinymce-fullscreen": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullscreen/plugin", 
    "select2": "++plone++static/components/select2/select2", 
    "mockup-utils": "++resource++mockupjs/utils", 
    "mockup-patterns-base": "++resource++mockup/base/pattern", 
    "tinymce-importcss": "++plone++static/components/tinymce-builded/js/tinymce/plugins/importcss/plugin", 
    "plone": "++plone++castle/plone", 
    "mockup-patterns-textareamimetypeselector": "++resource++mockup/textareamimetypeselector/pattern", 
    "plone-logged-in": "++plone++castle/plone-logged-in", 
    "pat-base": "++plone++static/components/patternslib/src/core/base", 
    "logging": "++plone++static/components/logging/src/logging", 
    "tinymce-paste": "++plone++static/components/tinymce-builded/js/tinymce/plugins/paste/plugin", 
    "mockup-patterns-texteditor": "++resource++mockup/texteditor/pattern", 
    "bootstrap-dropdown": "++plone++static/components/bootstrap/js/dropdown", 
    "jqtree": "++plone++static/components/jqtree/tree.jquery", 
    "dropzone": "++plone++static/components/dropzone/dist/dropzone-amd-module", 
    "mockup-patterns-tooltip": "++resource++mockup/tooltip/pattern", 
    "mockup-patterns-resourceregistry-url": "++resource++mockup/resourceregistry", 
    "tinymce-print": "++plone++static/components/tinymce-builded/js/tinymce/plugins/print/plugin", 
    "less": "++plone++static/components/less/dist/less", 
    "underscore": "++plone++static/components/underscore/underscore", 
    "tinymce-visualblocks": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualblocks/plugin", 
    "mockup-patterns-formautofocus": "++resource++mockup/formautofocus/pattern", 
    "mockup-patterns-thememapper": "++resource++mockup/thememapper/pattern", 
    "mockup-patterns-filemanager": "++resource++mockup/filemanager/pattern", 
    "pat-logger": "++plone++static/components/patternslib/src/core/logger", 
    "mockup-patterns-autotoc": "++resource++mockup/autotoc/pattern", 
    "mockup-patterns-tree": "++resource++mockup/tree/pattern", 
    "jquery-highlightsearchterms": "jquery.highlightsearchterms", 
    "marked": "++plone++static/components/marked/lib/marked", 
    "jquery.form": "++plone++static/components/jquery-form/jquery.form", 
    "JSXTransformer": "++plone++static/components/react/JSXTransformer", 
    "mockup-patterns-tinymce-original": "++resource++mockup/tinymce/pattern", 
    "tinymce-legacyoutput": "++plone++static/components/tinymce-builded/js/tinymce/plugins/legacyoutput/plugin", 
    "mockup-patterns-markspeciallinks": "++resource++mockup/markspeciallinks/pattern", 
    "picker.time": "++plone++static/components/pickadate/lib/picker.time", 
    "tinymce-link": "++plone++static/components/tinymce-builded/js/tinymce/plugins/link/plugin", 
    "thememapper": "++resource++plone.app.theming/thememapper", 
    "pat-mockup-parser": "++plone++static/components/patternslib/src/core/mockup-parser", 
    "castle-dashboard-statistics": "++plone++castle/components/dashboard-statistics", 
    "bootstrap-collapse": "++plone++static/components/bootstrap/js/collapse", 
    "backbone.paginator": "++plone++static/components/backbone.paginator/lib/backbone.paginator", 
    "tinymce": "++plone++static/components/tinymce-builded/js/tinymce/tinymce", 
    "sinon": "++plone++static/components/sinonjs/sinon", 
    "plone-patterns-portletmanager": "++resource++manage-portlets", 
    "castle-url": "++plone++castle", 
    "resource-plone-app-event-event-js": "++resource++plone.app.event/event", 
    "tinymce-bbcode": "++plone++static/components/tinymce-builded/js/tinymce/plugins/bbcode/plugin", 
    "mockup-patterns-preventdoublesubmit": "++resource++mockup/preventdoublesubmit/pattern", 
    "mockup-i18n": "++resource++mockupjs/i18n", 
    "mockup-patterns-toggle": "++resource++mockup/toggle/pattern", 
    "bootstrap-alert": "++plone++static/components/bootstrap/js/alert", 
    "resource-plone-app-discussion-javascripts-comments": "++resource++plone.app.discussion.javascripts/comments", 
    "jquery.cookie": "++plone++static/components/jquery.cookie/jquery.cookie", 
    "tinymce-template": "++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin", 
    "translate": "++resource++mockupjs/i18n-wrapper", 
    "documentviewer": "++resource++dv.resources/javascripts/build.min", 
    "tinymce-textpattern": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textpattern/plugin", 
    "tinymce-noneditable": "++plone++static/components/tinymce-builded/js/tinymce/plugins/noneditable/plugin", 
    "tinymce-hr": "++plone++static/components/tinymce-builded/js/tinymce/plugins/hr/plugin", 
    "tinymce-table": "++plone++static/components/tinymce-builded/js/tinymce/plugins/table/plugin", 
    "tinymce-fullpage": "++plone++static/components/tinymce-builded/js/tinymce/plugins/fullpage/plugin", 
    "moment": "++plone++static/components/moment/min/moment-with-locales.min", 
    "tinymce-media": "++plone++static/components/tinymce-builded/js/tinymce/plugins/media/plugin", 
    "jquery": "++plone++static/components/jquery/dist/jquery.min", 
    "mockup-ui-url": "++resource++mockupjs/ui", 
    "js-shortcuts": "++plone++static/components/js-shortcuts/js-shortcuts", 
    "jqtree-contextmenu": "++plone++static/components/cs-jqtree-contextmenu/src/jqTreeContextMenu", 
    "rjs": "++plone++static/components/r.js/dist/r", 
    "tinymce-charmap": "++plone++static/components/tinymce-builded/js/tinymce/plugins/charmap/plugin", 
    "resource-plone-app-jquerytools-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.overlay", 
    "mockup-patterns-select2": "++resource++mockup/select2/pattern", 
    "mockup-patterns-upload": "++resource++mockup/upload/pattern", 
    "tinymce-tabfocus": "++plone++static/components/tinymce-builded/js/tinymce/plugins/tabfocus/plugin", 
    "text": "++plone++static/components/requirejs-text/text", 
    "tinymce-autoresize": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autoresize/plugin", 
    "tinymce-directionality": "++plone++static/components/tinymce-builded/js/tinymce/plugins/directionality/plugin", 
    "ace-mode-javascript": "++plone++static/components/ace-builds/src/mode-javascript", 
    "backbone": "++plone++static/components/backbone/backbone", 
    "tinymce-contextmenu": "++plone++static/components/tinymce-builded/js/tinymce/plugins/contextmenu/plugin", 
    "mockup-patterns-backdrop": "++resource++mockup/backdrop/pattern", 
    "tinymce-preview": "++plone++static/components/tinymce-builded/js/tinymce/plugins/preview/plugin", 
    "resourceregistry": "++plone++static/resourceregistry", 
    "mockup-router": "++resource++mockupjs/router", 
    "pat-registry": "++plone++static/components/patternslib/src/core/registry", 
    "mockup-patterns-structure": "++resource++mockup/structure/pattern", 
    "tinymce-compat3x": "++plone++static/components/tinymce-builded/js/tinymce/plugins/compat3x/plugin", 
    "jquery.event.drop": "++resource++mockuplib/jquery.event.drop", 
    "tinymce-nonbreaking": "++plone++static/components/tinymce-builded/js/tinymce/plugins/nonbreaking/plugin", 
    "async": "++plone++castle/libs/requirejs-plugins/src/async", 
    "mockup-patterns-thememapper-url": "++resource++mockup/thememapper", 
    "ace": "++plone++static/components/ace-builds/src/ace", 
    "tinymce-spellchecker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/spellchecker/plugin", 
    "mosaic": "++plone++mosaic/js/mosaic.pattern", 
    "jquery.recurrenceinput": "++plone++static/components/jquery.recurrenceinput.js/src/jquery.recurrenceinput", 
    "plone-patterns-toolbar": "++plone++static/patterns/toolbar/src/toolbar", 
    "expect": "++plone++static/components/expect/index", 
    "mockup-patterns-moment": "++resource++mockup/moment/pattern", 
    "mockup-patterns-contentloader": "++resource++mockup/contentloader/pattern", 
    "picker": "++plone++static/components/pickadate/lib/picker", 
    "tinymce-advlist": "++plone++static/components/tinymce-builded/js/tinymce/plugins/advlist/plugin", 
    "ace-theme-monokai": "++plone++static/components/ace-builds/src/theme-monokai", 
    "tinymce-visualchars": "++plone++static/components/tinymce-builded/js/tinymce/plugins/visualchars/plugin", 
    "pat-utils": "++plone++static/components/patternslib/src/core/utils", 
    "mockup-patterns-recurrence": "++resource++mockup/recurrence/pattern", 
    "tinymce-autosave": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autosave/plugin", 
    "tinymce-save": "++plone++static/components/tinymce-builded/js/tinymce/plugins/save/plugin", 
    "tinymce-code": "++plone++static/components/tinymce-builded/js/tinymce/plugins/code/plugin", 
    "resource-plone-formwidget-recaptcha-recaptcha_ajax": "++resource++plone.formwidget.recaptcha/recaptcha_ajax", 
    "pat-compat": "++plone++static/components/patternslib/src/core/compat", 
    "tinymce-searchreplace": "++plone++static/components/tinymce-builded/js/tinymce/plugins/searchreplace/plugin", 
    "mockup-patterns-querystring": "++plone++castle/patterns/querystring", 
    "tinymce-lists": "++plone++static/components/tinymce-builded/js/tinymce/plugins/lists/plugin", 
    "tinymce-textcolor": "++plone++static/components/tinymce-builded/js/tinymce/plugins/textcolor/plugin", 
    "tinymce-wordcount": "++plone++static/components/tinymce-builded/js/tinymce/plugins/wordcount/plugin", 
    "layouts-editor": "++plone++mosaic/js/layouts-editor", 
    "tinymce-colorpicker": "++plone++static/components/tinymce-builded/js/tinymce/plugins/colorpicker/plugin", 
    "mockup-patterns-tinymce-url": "++plone++castle/patterns/tinymce", 
    "ace-mode-css": "++plone++static/components/ace-builds/src/mode-css", 
    "mockup-patterns-structure-url": "++resource++mockup/structure", 
    "mockup-patterns-cookietrigger": "++resource++mockup/cookietrigger/pattern", 
    "bootstrap-transition": "++plone++static/components/bootstrap/js/transition", 
    "ace-mode-text": "++plone++static/components/ace-builds/src/mode-text", 
    "tinymce-image": "++plone++static/components/tinymce-builded/js/tinymce/plugins/image/plugin", 
    "mockup-patterns-upload-url": "++resource++mockup/upload", 
    "tinymce-emoticons": "++plone++static/components/tinymce-builded/js/tinymce/plugins/emoticons/plugin", 
    "mosaic-base-url": "++plone++mosaic/js", 
    "mockup-patterns-tinymce": "++plone++castle/patterns/tinymce/pattern", 
    "tinymce-autolink": "++plone++static/components/tinymce-builded/js/tinymce/plugins/autolink/plugin", 
    "mockup-patterns-sortable": "++resource++mockup/sortable/pattern", 
    "resource-plone-app-jquerytools-dateinput-js": "++plone++static/components/jquery.recurrenceinput.js/lib/jquery.tools.dateinput", 
    "mockup-patterns-formunloadalert": "++resource++mockup/formunloadalert/pattern", 
    "picker.date": "++plone++static/components/pickadate/lib/picker.date", 
    "tinymce-insertdatetime": "++plone++static/components/tinymce-builded/js/tinymce/plugins/insertdatetime/plugin", 
    "mockup-patterns-livesearch": "++resource++mockup/livesearch/pattern", 
    "mockup-patterns-relateditems": "++plone++castle/patterns/relateditems", 
    "mosaic-url": "++plone++mosaic/js", 
    "react": "++plone++static/components/react/react"
},
    shim: {
        "tinymce-fullpage": {
            deps: ["tinymce"]
        },
        "expect": {
            exports: "window.expect"
        },
        "bootstrap-tooltip": {
            deps: ["jquery"]
        },
        "JSXTransformer": {
            exports: "window.JSXTransformer"
        },
        "tinymce-anchor": {
            deps: ["tinymce"]
        },
        "tinymce-tabfocus": {
            deps: ["tinymce"]
        },
        "js-shortcuts": {
            deps: ["jquery"]
        },
        "jqtree-contextmenu": {
            deps: ["jqtree"]
        },
        "tinymce-legacyoutput": {
            deps: ["tinymce"]
        },
        "jquery.tmpl": {
            deps: ["jquery"]
        },
        "tinymce-charmap": {
            deps: ["tinymce"]
        },
        "picker.time": {
            deps: ["picker"]
        },
        "resource-plone-app-jquerytools-js": {
            deps: ["jquery"]
        },
        "tinymce-visualblocks": {
            deps: ["tinymce"]
        },
        "tinymce-autosave": {
            deps: ["tinymce"]
        },
        "tinymce-modern-theme": {
            deps: ["tinymce"]
        },
        "jquery.event.drag": {
            deps: ["jquery"]
        },
        "tinymce-pagebreak": {
            deps: ["tinymce"]
        },
        "tinymce-link": {
            deps: ["tinymce"]
        },
        "tinymce-code": {
            deps: ["tinymce"]
        },
        "tinymce-fullscreen": {
            deps: ["tinymce"]
        },
        "tinymce-textcolor": {
            deps: ["tinymce"]
        },
        "tinymce-autoresize": {
            deps: ["tinymce"]
        },
        "tinymce-directionality": {
            deps: ["tinymce"]
        },
        "tinymce-searchreplace": {
            deps: ["tinymce"]
        },
        "tinymce-preview": {
            deps: ["tinymce"]
        },
        "bootstrap-collapse": {
            exports: "window.jQuery.fn.collapse.Constructor",
            deps: ["jquery"]
        },
        "backbone": {
            exports: "window.Backbone",
            deps: ["underscore", "jquery"]
        },
        "backbone.paginator": {
            exports: "window.Backbone.Paginator",
            deps: ["backbone"]
        },
        "tinymce-media": {
            deps: ["tinymce"]
        },
        "tinymce-lists": {
            deps: ["tinymce"]
        },
        "tinymce-importcss": {
            deps: ["tinymce"]
        },
        "tinymce": {
            exports: "window.tinyMCE",
            init: function () { this.tinyMCE.DOM.events.domLoaded = true; return this.tinyMCE; }
        },
        "tinymce-contextmenu": {
            deps: ["tinymce"]
        },
        "tinymce-wordcount": {
            deps: ["tinymce"]
        },
        "tinymce-compat3x": {
            deps: ["tinymce"]
        },
        "sinon": {
            exports: "window.sinon"
        },
        "resource-plone-app-jquerytools-dateinput-js": {
            deps: ["jquery"]
        },
        "bootstrap-transition": {
            exports: "window.jQuery.support.transition",
            deps: ["jquery"]
        },
        "tinymce-bbcode": {
            deps: ["tinymce"]
        },
        "tinymce-visualchars": {
            deps: ["tinymce"]
        },
        "tinymce-paste": {
            deps: ["tinymce"]
        },
        "bootstrap-dropdown": {
            deps: ["jquery"]
        },
        "jqtree": {
            deps: ["jquery"]
        },
        "tinymce-image": {
            deps: ["tinymce"]
        },
        "tinymce-print": {
            deps: ["tinymce"]
        },
        "tinymce-emoticons": {
            deps: ["tinymce"]
        },
        "tinymce-table": {
            deps: ["tinymce"]
        },
        "bootstrap-alert": {
            deps: ["jquery"]
        },
        "tinymce-autolink": {
            deps: ["tinymce"]
        },
        "tinymce-colorpicker": {
            deps: ["tinymce"]
        },
        "tinymce-nonbreaking": {
            deps: ["tinymce"]
        },
        "underscore": {
            exports: "window._"
        },
        "jquery.cookie": {
            deps: ["jquery"]
        },
        "tinymce-template": {
            deps: ["tinymce"]
        },
        "tinymce-save": {
            deps: ["tinymce"]
        },
        "tinymce-advlist": {
            deps: ["tinymce"]
        },
        "picker.date": {
            deps: ["picker"]
        },
        "tinymce-textpattern": {
            deps: ["tinymce"]
        },
        "tinymce-insertdatetime": {
            deps: ["tinymce"]
        },
        "tinymce-noneditable": {
            deps: ["tinymce"]
        },
        "tinymce-spellchecker": {
            deps: ["tinymce"]
        },
        "tinymce-hr": {
            deps: ["tinymce"]
        },
        "jquery.recurrenceinput": {
            deps: ["jquery", "resource-plone-app-jquerytools-js", "resource-plone-app-jquerytools-dateinput-js", "jquery.tmpl"]
        },
        "jquery.event.drop": {
            exports: "$.drop",
            deps: ["jquery"]
        }
    },
    optimize: 'uglify',
    wrapShim: true
});
// End Bundle: _configjs

// Start Bundle: plone
(function(){function n(){}var t=this,e=t._,i=Array.prototype,r=Object.prototype,o=Function.prototype,a=i.push,l=i.slice,d=r.toString,s=r.hasOwnProperty,u=Array.isArray,c=Object.keys,h=o.bind,p=Object.create,m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):t._=m,m.VERSION="1.8.3";var f=function(o,a,t){if(void 0===a)return o;switch(null==t?3:t){case 1:return function(t){return o.call(a,t)};case 2:return function(t,e){return o.call(a,t,e)};case 3:return function(t,e,n){return o.call(a,t,e,n)};case 4:return function(t,e,n,i){return o.call(a,t,e,n,i)}}return function(){return o.apply(a,arguments)}},g=function(t,e,n){return null==t?m.identity:m.isFunction(t)?f(t,e,n):m.isObject(t)?m.matcher(t):m.property(t)};m.iteratee=function(t,e){return g(t,e,1/0)};function v(l,u){return function(t){var e=arguments.length;if(e<2||null==t)return t;for(var n=1;n<e;n++)for(var i=arguments[n],o=l(i),a=o.length,r=0;r<a;r++){var s=o[r];u&&void 0!==t[s]||(t[s]=i[s])}return t}}function _(t){if(!m.isObject(t))return{};if(p)return p(t);n.prototype=t;var e=new n;return n.prototype=null,e}function y(e){return function(t){return null==t?void 0:t[e]}}var b=Math.pow(2,53)-1,w=y("length"),M=function(t){var e=w(t);return"number"==typeof e&&0<=e&&e<=b};function T(s){return function(t,e,n,i){e=f(e,i,4);var o=!M(t)&&m.keys(t),a=(o||t).length,r=0<s?0:a-1;return arguments.length<3&&(n=t[o?o[r]:r],r+=s),function(t,e,n,i,o,a){for(;0<=o&&o<a;o+=s){var r=i?i[o]:o;n=e(n,t[r],r,t)}return n}(t,e,n,o,r,a)}}m.each=m.forEach=function(t,e,n){var i,o;if(e=f(e,n),M(t))for(i=0,o=t.length;i<o;i++)e(t[i],i,t);else{var a=m.keys(t);for(i=0,o=a.length;i<o;i++)e(t[a[i]],a[i],t)}return t},m.map=m.collect=function(t,e,n){e=g(e,n);for(var i=!M(t)&&m.keys(t),o=(i||t).length,a=Array(o),r=0;r<o;r++){var s=i?i[r]:r;a[r]=e(t[s],s,t)}return a},m.reduce=m.foldl=m.inject=T(1),m.reduceRight=m.foldr=T(-1),m.find=m.detect=function(t,e,n){var i;if(void 0!==(i=M(t)?m.findIndex(t,e,n):m.findKey(t,e,n))&&-1!==i)return t[i]},m.filter=m.select=function(t,i,e){var o=[];return i=g(i,e),m.each(t,function(t,e,n){i(t,e,n)&&o.push(t)}),o},m.reject=function(t,e,n){return m.filter(t,m.negate(g(e)),n)},m.every=m.all=function(t,e,n){e=g(e,n);for(var i=!M(t)&&m.keys(t),o=(i||t).length,a=0;a<o;a++){var r=i?i[a]:a;if(!e(t[r],r,t))return!1}return!0},m.some=m.any=function(t,e,n){e=g(e,n);for(var i=!M(t)&&m.keys(t),o=(i||t).length,a=0;a<o;a++){var r=i?i[a]:a;if(e(t[r],r,t))return!0}return!1},m.contains=m.includes=m.include=function(t,e,n,i){return M(t)||(t=m.values(t)),"number"==typeof n&&!i||(n=0),0<=m.indexOf(t,e,n)},m.invoke=function(t,n){var i=l.call(arguments,2),o=m.isFunction(n);return m.map(t,function(t){var e=o?n:t[n];return null==e?e:e.apply(t,i)})},m.pluck=function(t,e){return m.map(t,m.property(e))},m.where=function(t,e){return m.filter(t,m.matcher(e))},m.findWhere=function(t,e){return m.find(t,m.matcher(e))},m.max=function(t,i,e){var n,o,a=-1/0,r=-1/0;if(null==i&&null!=t)for(var s=0,l=(t=M(t)?t:m.values(t)).length;s<l;s++)n=t[s],a<n&&(a=n);else i=g(i,e),m.each(t,function(t,e,n){o=i(t,e,n),(r<o||o===-1/0&&a===-1/0)&&(a=t,r=o)});return a},m.min=function(t,i,e){var n,o,a=1/0,r=1/0;if(null==i&&null!=t)for(var s=0,l=(t=M(t)?t:m.values(t)).length;s<l;s++)(n=t[s])<a&&(a=n);else i=g(i,e),m.each(t,function(t,e,n){((o=i(t,e,n))<r||o===1/0&&a===1/0)&&(a=t,r=o)});return a},m.shuffle=function(t){for(var e,n=M(t)?t:m.values(t),i=n.length,o=Array(i),a=0;a<i;a++)(e=m.random(0,a))!==a&&(o[a]=o[e]),o[e]=n[a];return o},m.sample=function(t,e,n){return null==e||n?(M(t)||(t=m.values(t)),t[m.random(t.length-1)]):m.shuffle(t).slice(0,Math.max(0,e))},m.sortBy=function(t,i,e){return i=g(i,e),m.pluck(m.map(t,function(t,e,n){return{value:t,index:e,criteria:i(t,e,n)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index}),"value")};function L(r){return function(i,o,t){var a={};return o=g(o,t),m.each(i,function(t,e){var n=o(t,e,i);r(a,t,n)}),a}}m.groupBy=L(function(t,e,n){m.has(t,n)?t[n].push(e):t[n]=[e]}),m.indexBy=L(function(t,e,n){t[n]=e}),m.countBy=L(function(t,e,n){m.has(t,n)?t[n]++:t[n]=1}),m.toArray=function(t){return t?m.isArray(t)?l.call(t):M(t)?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:M(t)?t.length:m.keys(t).length},m.partition=function(t,i,e){i=g(i,e);var o=[],a=[];return m.each(t,function(t,e,n){(i(t,e,n)?o:a).push(t)}),[o,a]},m.first=m.head=m.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:m.initial(t,t.length-e)},m.initial=function(t,e,n){return l.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},m.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:m.rest(t,Math.max(0,t.length-e))},m.rest=m.tail=m.drop=function(t,e,n){return l.call(t,null==e||n?1:e)},m.compact=function(t){return m.filter(t,m.identity)};var k=function(t,e,n,i){for(var o=[],a=0,r=i||0,s=w(t);r<s;r++){var l=t[r];if(M(l)&&(m.isArray(l)||m.isArguments(l))){e||(l=k(l,e,n));var u=0,c=l.length;for(o.length+=c;u<c;)o[a++]=l[u++]}else n||(o[a++]=l)}return o};function D(a){return function(t,e,n){e=g(e,n);for(var i=w(t),o=0<a?0:i-1;0<=o&&o<i;o+=a)if(e(t[o],o,t))return o;return-1}}function S(a,r,s){return function(t,e,n){var i=0,o=w(t);if("number"==typeof n)0<a?i=0<=n?n:Math.max(n+o,i):o=0<=n?Math.min(n+1,o):n+o+1;else if(s&&n&&o)return t[n=s(t,e)]===e?n:-1;if(e!=e)return 0<=(n=r(l.call(t,i,o),m.isNaN))?n+i:-1;for(n=0<a?i:o-1;0<=n&&n<o;n+=a)if(t[n]===e)return n;return-1}}m.flatten=function(t,e){return k(t,e,!1)},m.without=function(t){return m.difference(t,l.call(arguments,1))},m.uniq=m.unique=function(t,e,n,i){m.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=g(n,i));for(var o=[],a=[],r=0,s=w(t);r<s;r++){var l=t[r],u=n?n(l,r,t):l;e?(r&&a===u||o.push(l),a=u):n?m.contains(a,u)||(a.push(u),o.push(l)):m.contains(o,l)||o.push(l)}return o},m.union=function(){return m.uniq(k(arguments,!0,!0))},m.intersection=function(t){for(var e=[],n=arguments.length,i=0,o=w(t);i<o;i++){var a=t[i];if(!m.contains(e,a)){for(var r=1;r<n&&m.contains(arguments[r],a);r++);r===n&&e.push(a)}}return e},m.difference=function(t){var e=k(arguments,!0,!0,1);return m.filter(t,function(t){return!m.contains(e,t)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(t){for(var e=t&&m.max(t,w).length||0,n=Array(e),i=0;i<e;i++)n[i]=m.pluck(t,i);return n},m.object=function(t,e){for(var n={},i=0,o=w(t);i<o;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},m.findIndex=D(1),m.findLastIndex=D(-1),m.sortedIndex=function(t,e,n,i){for(var o=(n=g(n,i,1))(e),a=0,r=w(t);a<r;){var s=Math.floor((a+r)/2);n(t[s])<o?a=s+1:r=s}return a},m.indexOf=S(1,m.findIndex,m.sortedIndex),m.lastIndexOf=S(-1,m.findLastIndex),m.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),o=Array(i),a=0;a<i;a++,t+=n)o[a]=t;return o};function x(t,e,n,i,o){if(!(i instanceof e))return t.apply(n,o);var a=_(t.prototype),r=t.apply(a,o);return m.isObject(r)?r:a}m.bind=function(t,e){if(h&&t.bind===h)return h.apply(t,l.call(arguments,1));if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");var n=l.call(arguments,2),i=function(){return x(t,i,e,this,n.concat(l.call(arguments)))};return i},m.partial=function(o){var a=l.call(arguments,1),r=function(){for(var t=0,e=a.length,n=Array(e),i=0;i<e;i++)n[i]=a[i]===m?arguments[t++]:a[i];for(;t<arguments.length;)n.push(arguments[t++]);return x(o,r,this,this,n)};return r},m.bindAll=function(t){var e,n,i=arguments.length;if(i<=1)throw new Error("bindAll must be passed function names");for(e=1;e<i;e++)t[n=arguments[e]]=m.bind(t[n],t);return t},m.memoize=function(i,o){var a=function(t){var e=a.cache,n=""+(o?o.apply(this,arguments):t);return m.has(e,n)||(e[n]=i.apply(this,arguments)),e[n]};return a.cache={},a},m.delay=function(t,e){var n=l.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,i,o){var a,r,s,l=null,u=0;o=o||{};function c(){u=!1===o.leading?0:m.now(),l=null,s=n.apply(a,r),l||(a=r=null)}return function(){var t=m.now();u||!1!==o.leading||(u=t);var e=i-(t-u);return a=this,r=arguments,e<=0||i<e?(l&&(clearTimeout(l),l=null),u=t,s=n.apply(a,r),l||(a=r=null)):l||!1===o.trailing||(l=setTimeout(c,e)),s}},m.debounce=function(e,n,i){var o,a,r,s,l,u=function(){var t=m.now()-s;t<n&&0<=t?o=setTimeout(u,n-t):(o=null,i||(l=e.apply(r,a),o||(r=a=null)))};return function(){r=this,a=arguments,s=m.now();var t=i&&!o;return o=o||setTimeout(u,n),t&&(l=e.apply(r,a),r=a=null),l}},m.wrap=function(t,e){return m.partial(e,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var n=arguments,i=n.length-1;return function(){for(var t=i,e=n[i].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},m.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},m.before=function(t,e){var n;return function(){return 0<--t&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},m.once=m.partial(m.before,2);var C=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function P(t,e){var n=E.length,i=t.constructor,o=m.isFunction(i)&&i.prototype||r,a="constructor";for(m.has(t,a)&&!m.contains(e,a)&&e.push(a);n--;)(a=E[n])in t&&t[a]!==o[a]&&!m.contains(e,a)&&e.push(a)}m.keys=function(t){if(!m.isObject(t))return[];if(c)return c(t);var e=[];for(var n in t)m.has(t,n)&&e.push(n);return C&&P(t,e),e},m.allKeys=function(t){if(!m.isObject(t))return[];var e=[];for(var n in t)e.push(n);return C&&P(t,e),e},m.values=function(t){for(var e=m.keys(t),n=e.length,i=Array(n),o=0;o<n;o++)i[o]=t[e[o]];return i},m.mapObject=function(t,e,n){e=g(e,n);for(var i,o=m.keys(t),a=o.length,r={},s=0;s<a;s++)r[i=o[s]]=e(t[i],i,t);return r},m.pairs=function(t){for(var e=m.keys(t),n=e.length,i=Array(n),o=0;o<n;o++)i[o]=[e[o],t[e[o]]];return i},m.invert=function(t){for(var e={},n=m.keys(t),i=0,o=n.length;i<o;i++)e[t[n[i]]]=n[i];return e},m.functions=m.methods=function(t){var e=[];for(var n in t)m.isFunction(t[n])&&e.push(n);return e.sort()},m.extend=v(m.allKeys),m.extendOwn=m.assign=v(m.keys),m.findKey=function(t,e,n){e=g(e,n);for(var i,o=m.keys(t),a=0,r=o.length;a<r;a++)if(e(t[i=o[a]],i,t))return i},m.pick=function(t,e,n){var i,o,a={},r=t;if(null==r)return a;m.isFunction(e)?(o=m.allKeys(r),i=f(e,n)):(o=k(arguments,!1,!1,1),i=function(t,e,n){return e in n},r=Object(r));for(var s=0,l=o.length;s<l;s++){var u=o[s],c=r[u];i(c,u,r)&&(a[u]=c)}return a},m.omit=function(t,e,n){if(m.isFunction(e))e=m.negate(e);else{var i=m.map(k(arguments,!1,!1,1),String);e=function(t,e){return!m.contains(i,e)}}return m.pick(t,e,n)},m.defaults=v(m.allKeys,!0),m.create=function(t,e){var n=_(t);return e&&m.extendOwn(n,e),n},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,e){return e(t),t},m.isMatch=function(t,e){var n=m.keys(e),i=n.length;if(null==t)return!i;for(var o=Object(t),a=0;a<i;a++){var r=n[a];if(e[r]!==o[r]||!(r in o))return!1}return!0};var Y=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof m&&(t=t._wrapped),e instanceof m&&(e=e._wrapped);var o=d.call(t);if(o!==d.call(e))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var a="[object Array]"===o;if(!a){if("object"!=typeof t||"object"!=typeof e)return!1;var r=t.constructor,s=e.constructor;if(r!==s&&!(m.isFunction(r)&&r instanceof r&&m.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}i=i||[];for(var l=(n=n||[]).length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),a){if((l=t.length)!==e.length)return!1;for(;l--;)if(!Y(t[l],e[l],n,i))return!1}else{var u,c=m.keys(t);if(l=c.length,m.keys(e).length!==l)return!1;for(;l--;)if(u=c[l],!m.has(e,u)||!Y(t[u],e[u],n,i))return!1}return n.pop(),i.pop(),!0};m.isEqual=function(t,e){return Y(t,e)},m.isEmpty=function(t){return null==t||(M(t)&&(m.isArray(t)||m.isString(t)||m.isArguments(t))?0===t.length:0===m.keys(t).length)},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=u||function(t){return"[object Array]"===d.call(t)},m.isObject=function(t){var e=typeof t;return"function"==e||"object"==e&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){m["is"+e]=function(t){return d.call(t)==="[object "+e+"]"}}),m.isArguments(arguments)||(m.isArguments=function(t){return m.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&t!==+t},m.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,e){return null!=t&&s.call(t,e)},m.noConflict=function(){return t._=e,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=y,m.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},m.matcher=m.matches=function(e){return e=m.extendOwn({},e),function(t){return m.isMatch(t,e)}},m.times=function(t,e,n){var i=Array(Math.max(0,t));e=f(e,n,1);for(var o=0;o<t;o++)i[o]=e(o);return i},m.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},m.now=Date.now||function(){return(new Date).getTime()};function j(e){function n(t){return e[t]}var t="(?:"+m.keys(e).join("|")+")",i=RegExp(t),o=RegExp(t,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(o,n):t}}var A={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},I=m.invert(A);m.escape=j(A),m.unescape=j(I),m.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),m.isFunction(i)?i.call(t):i};var O=0;m.uniqueId=function(t){var e=++O+"";return t?t+e:e},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function N(t){return"\\"+R[t]}var H=/(.)^/,R={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\u2028|\u2029/g;m.template=function(a,t,e){!t&&e&&(t=e),t=m.defaults({},t,m.templateSettings);var n=RegExp([(t.escape||H).source,(t.interpolate||H).source,(t.evaluate||H).source].join("|")+"|$","g"),r=0,s="__p+='";a.replace(n,function(t,e,n,i,o){return s+=a.slice(r,o).replace(F,N),r=o+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var i=new Function(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}function o(t){return i.call(this,t,m)}var l=t.variable||"obj";return o.source="function("+l+"){\n"+s+"}",o},m.chain=function(t){var e=m(t);return e._chain=!0,e};function z(t,e){return t._chain?m(e).chain():e}m.mixin=function(n){m.each(m.functions(n),function(t){var e=m[t]=n[t];m.prototype[t]=function(){var t=[this._wrapped];return a.apply(t,arguments),z(this,e.apply(m,t))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=i[e];m.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],z(this,t)}}),m.each(["concat","join","slice"],function(t){var e=i[t];m.prototype[t]=function(){return z(this,e.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this),function(){var t,n;Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function e(){}function n(){return o.apply(this instanceof e&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))}var i=Array.prototype.slice.call(arguments,1),o=this;return e.prototype=this.prototype,n.prototype=new e,n});var o={DEBUG:10,INFO:20,WARN:30,ERROR:40,FATAL:50};function e(){}function i(){}function a(t,e){this._loggers={},this.name=t||"",this._parent=e||null,e||(this._enabled=!0,this._level=o.WARN)}function r(t){n=t}e.prototype={output:function(t,e,n){if(void 0!==window.console&&void 0!==console.log){t&&n.unshift(t+":");var i=n.join(" ");console.info,e<=o.DEBUG?(i="[DEBUG] "+i,console.log(i)):e<=o.INFO?console.info(i):e<=o.WARN?console.warn(i):console.error(i)}}},i.prototype={output:function(t,e,n){t&&n.unshift(t+":"),e<=o.DEBUG?(n.unshift("[DEBUG]"),console.log.apply(console,n)):e<=o.INFO?console.info.apply(console,n):e<=o.WARN?console.warn.apply(console,n):console.error.apply(console,n)}},a.prototype={getLogger:function(t){for(var e=t.split("."),n=this,i=this.name?[this.name]:[];e.length;){var o=e.shift();i.push(o),o in n._loggers||(n._loggers[o]=new a(i.join("."),n)),n=n._loggers[o]}return n},_getFlag:function(t){var e=this;for(t="_"+t;null!==e;){if(void 0!==e[t])return e[t];e=e._parent}return null},setEnabled:function(t){this._enabled=!!t},isEnabled:function(){this._getFlag("enabled")},setLevel:function(t){"number"==typeof t?this._level=t:"string"==typeof t&&(t=t.toUpperCase())in o&&(this._level=o[t])},getLevel:function(){return this._getFlag("level")},log:function(t,e){!e.length||!this._getFlag("enabled")||t<this._getFlag("level")||(e=Array.prototype.slice.call(e),n.output(this.name,t,e))},debug:function(){this.log(o.DEBUG,arguments)},info:function(){this.log(o.INFO,arguments)},warn:function(){this.log(o.WARN,arguments)},error:function(){this.log(o.ERROR,arguments)},fatal:function(){this.log(o.FATAL,arguments)}},window.console&&window.console.log&&"function"==typeof window.console.log.apply?r(new i):r(new e),t=new a;for(var s,l=/loglevel(|-[^=]+)=([^&]+)/g;null!==(s=l.exec(window.location.search));){(""===s[1]?t:t.getLogger(s[1].slice(1))).setLevel(s[2].toUpperCase())}var u={Level:o,getLogger:t.getLogger.bind(t),setEnabled:t.setEnabled.bind(t),isEnabled:t.isEnabled.bind(t),setLevel:t.setLevel.bind(t),getLevel:t.getLevel.bind(t),debug:t.debug.bind(t),info:t.info.bind(t),warn:t.warn.bind(t),error:t.error.bind(t),fatal:t.fatal.bind(t),getWriter:function(){return n},setWriter:r};"function"==typeof define?define("logging",[],function(){return u}):window.logging=u}(),define("pat-logger",["logging"],function(t){return t.getLogger("patterns")}),define("pat-utils",["jquery"],function(a){a.fn.safeClone=function(){var t=this.clone();return void 0!==a.browser.msie&&t.findInclusive(":input[placeholder]").each(function(t,e){var n=a(e);n.attr("placeholder")===n.val()&&n.val("")}),t},Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,i;if(null===this)throw new TypeError(" this is null or not defined");var o=Object(this),a=o.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(1<arguments.length&&(n=e),i=0;i<a;){var r;i in o&&(r=o[i],t.call(n,r,i,o)),i++}});function r(t){var e=typeof t;return"function"==e||"object"==e&&!!t}var s={none:{hide:"hide",show:"show"},fade:{hide:"fadeOut",show:"fadeIn"},slide:{hide:"slideUp",show:"slideDown"}};return{jqueryPlugin:function(n){return function(t,e){return 0===this.length?this:("object"==typeof t&&(e=t,t=void 0),"function"==typeof n?function(n,i,o){return this.each(function(){var t,e=a(this);if(t=n.init(e,o),i){if(void 0===t[i])return a.error("Method "+i+" does not exist on jQuery."+n.name),!1;if("_"===i.charAt(0))return a.error("Method "+i+" is private on jQuery."+n.name),!1;t[i].apply(t,[o])}}),this}.call(this,n,t,e):function(t,e,n){var i=this;if(e){if(t[e])return t[e].apply(i,[i].concat([n]));a.error("Method "+e+" does not exist on jQuery."+t.name)}else t.init.apply(i,[i].concat([n]));return i}.call(this,n,t,e))}},debounce:function(n,i){var o;return function(){var t=this,e=arguments;clearTimeout(o),o=setTimeout(function(){o=null,n.apply(t,e)},i)}},escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isObject:r,extend:function(t){if(!r(t))return t;for(var e,n,i=1,o=arguments.length;i<o;i++)for(n in e=arguments[i])hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},rebaseURL:function(t,e){return-1!==e.indexOf("://")||"/"===e[0]?e:t.slice(0,t.lastIndexOf("/")+1)+e},findLabel:function(t){for(var e,n=t.parentNode;n&&11!==n.nodeType;n=n.parentNode)if("LABEL"===n.tagName)return n;return t.id&&(e=a('label[for="'+t.id+'"]')),e&&0===e.length&&t.form&&(e=a('label[for="'+t.name+'"]',t.form)),e&&e.length?e[0]:null},elementInViewport:function(t){var e=t.getBoundingClientRect(),n=document.documentElement,i=window.innerWidth||n.clientWidth,o=window.innerHeight||n.clientHeight;return!(e.right<0||e.bottom<0||e.left>i||e.top>o)},removeWildcardClass:function(t,e){if(-1===e.indexOf("*"))t.removeClass(e);else{var o=e.replace(/[\-\[\]{}()+?.,\\\^$|#\s]/g,"\\$&");o=o.replace(/[*]/g,".*"),o=new RegExp("^"+o+"$"),t.filter("[class]").each(function(){for(var t=a(this),e=t.attr("class").split(/\s+/),n=[],i=0;i<e.length;i++)o.test(e[i])||n.push(e[i]);n.length?t.attr("class",n.join(" ")):t.removeAttr("class")})}},hideOrShow:function(t,e,n,i){var o="css"===n.transition||"none"===n.transition?null:n.effect.duration;function a(){t.removeClass("in-progress").addClass(e?"visible":"hidden").trigger("pat-update",{pattern:i,transition:"complete"})}if(t.removeClass("visible hidden in-progress"),o){var r=s[n.transition];t.addClass("in-progress").trigger("pat-update",{pattern:i,transition:"start"}),t[e?r.show:r.hide]({duration:o,easing:n.effect.easing,complete:a})}else"css"!==n.transition&&t[e?"show":"hide"](),a()},addURLQueryParameter:function(t,e,n){var i=new RegExp("(\\?|\\&)"+e+"=.*?(?=(&|$))"),o=t.toString().split("#"),a=o[0],r=o[1],s=a;return s=i.test(a)?a.replace(i,"$1"+e+"="+n):/\?.+$/.test(a)?a+"&"+e+"="+n:a+"?"+e+"="+n,r&&(s+="#"+r),s}}}),define("pat-compat",[],function(){var o,a,r,s;Array.prototype.every||(Array.prototype.every=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=arguments[1],o=0;o<n;o++)if(o in e&&!t.call(i,e[o],o,e))return!1;return!0}),Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=[],o=arguments[1],a=0;a<n;a++)if(a in e){var r=e[a];t.call(o,r,a,e)&&i.push(r)}return i}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,i;if(null===this)throw new TypeError(" this is null or not defined");var o=Object(this),a=o.length>>>0;if("[object Function]"!=={}.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),i=0;i<a;){var r;i in o&&(r=o[i],t.call(n,r,i,o)),i++}}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0==n)return-1;var i=0;if(0<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(0<i||-1)*Math.floor(Math.abs(i)))),n<=i)return-1;for(var o=0<=i?i:Math.max(n-Math.abs(i),0);o<n;o++)if(o in e&&e[o]===t)return o;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0==n)return-1;var i=n;1<arguments.length&&((i=Number(arguments[1]))!=i?i=0:0!==i&&i!==1/0&&i!==-1/0&&(i=(0<i||-1)*Math.floor(Math.abs(i))));for(var o=0<=i?Math.min(i,n-1):n-Math.abs(i);0<=o;o--)if(o in e&&e[o]===t)return o;return-1}),Array.prototype.map||(Array.prototype.map=function(t,e){var n,i,o;if(null===this)throw new TypeError(" this is null or not defined");var a=Object(this),r=a.length>>>0;if("[object Function]"!=={}.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),i=new Array(r),o=0;o<r;){var s,l;o in a&&(s=a[o],l=t.call(n,s,o,a),i[o]=l),o++}return i}),Array.prototype.reduce||(Array.prototype.reduce=function(t,e){if(null==this)throw new TypeError("Object is null or undefined");var n,i=0,o=this.length>>0;if("function"!=typeof t)throw new TypeError("First argument is not callable");if(arguments.length<2){if(0==o)throw new TypeError("Array length is 0 and no second argument");n=this[0],i=1}else n=e;for(;i<o;)i in this&&(n=t.call(void 0,n,this[i],i,this)),++i;return n}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;if(0==n&&1===arguments.length)throw new TypeError;var i,o=n-1;if(2<=arguments.length)i=arguments[1];else for(;;){if(o in this){i=this[o--];break}if(--o<0)throw new TypeError}for(;0<=o;)o in e&&(i=t.call(void 0,i,e[o],o,e)),o--;return i}),Array.prototype.some||(Array.prototype.some=function(t){"use strict";if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=arguments[1],o=0;o<n;o++)if(o in e&&t.call(i,e[o],o,e))return!0;return!1}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");function e(){}function n(){return o.apply(this instanceof e&&t?this:t,i.concat(Array.prototype.slice.call(arguments)))}var i=Array.prototype.slice.call(arguments,1),o=this;return e.prototype=this.prototype,n.prototype=new e,n}),Object.keys||(Object.keys=(o=Object.prototype.hasOwnProperty,a=!{toString:null}.propertyIsEnumerable("toString"),s=(r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on non-object");var e=[];for(var n in t)o.call(t,n)&&e.push(n);if(a)for(var i=0;i<s;i++)o.call(t,r[i])&&e.push(r[i]);return e}))}),define("pat-jquery-ext",["jquery"],function(c){var i={init:function(e){var n={time:3,initialTime:8,exceptionAreas:[]};return this.each(function(){var t=c(this);t.data("timeout")||(e&&c.extend(n,e),t.data("timeout",{lastEvent:new Date,trueTime:n.time,time:n.initialTime,untouched:!0,inExceptionArea:!1}),t.bind("mouseover.timeout",i.mouseMoved),t.bind("mouseenter.timeout",i.mouseMoved),c(n.exceptionAreas).each(function(){t.find(this).live("mouseover.timeout",{parent:t},i.enteredException).live("mouseleave.timeout",{parent:t},i.leftException)}),0<n.initialTime?t.timeout("startTimer"):t.addClass("timeout"))})},enteredException:function(t){var e=t.data.parent.data("timeout");e.inExceptionArea=!0,t.data.parent.data("timeout",e),t.data.parent.trigger("mouseover")},leftException:function(t){var e=t.data.parent.data("timeout");e.inExceptionArea=!1,t.data.parent.data("timeout",e)},destroy:function(){return this.each(function(){var t=c(this),e=t.data("timeout");c(window).unbind(".timeout"),e.timeout.remove(),t.removeData("timeout")})},mouseMoved:function(){var t=c(this),e=t.data("timeout");t.hasClass("timeout")?(t.removeClass("timeout"),t.timeout("startTimer")):e.untouched&&(e.untouched=!1,e.time=e.trueTime),e.lastEvent=new Date,t.data("timeout",e)},startTimer:function(){var i=c(this),t=i.data("timeout"),o=function(){var t=i.data("timeout");if(t&&t.lastEvent)if(t.inExceptionArea)setTimeout(o,Math.floor(1e3*t.time));else{var e=new Date,n=Math.floor(1e3*t.time)-(e-t.lastEvent);0<n?setTimeout(o,100+n):i.addClass("timeout")}};setTimeout(o,Math.floor(1e3*t.time))}};c.fn.timeout=function(t){return i[t]?i[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void c.error("Method "+t+" does not exist on jQuery.timeout"):i.init.apply(this,arguments)},c.extend(c.expr[":"],{scrollable:function(t){return"scroll"===c(t).css("overflow")||"scroll"===c(t).css("overflowX")||"scroll"===c(t).css("overflowY")||(t.clientHeight<t.scrollHeight&&(-1!==c.inArray(c(t).css("overflowY"),["scroll","auto"])||-1!==c.inArray(c(t).css("overflow"),["scroll","auto"]))||t.clientWidth<t.scrollWidth&&(-1!==c.inArray(c(t).css("overflowX"),["scroll","auto"])||-1!==c.inArray(c(t).css("overflow"),["scroll","auto"])))}}),c.fn.makeVisibleInScroll=function(t){var r=null;return"string"==typeof t?r=c("#"+t):t&&(r=c(t)),this.each(function(){var t,e=c(this);t=r||(0<(t=e.parents(":scrollable")).length?c(t[0]):c(window));var n=e.position().top,i=e.height()+n,o=t.scrollTop(),a=t.height()+o;n<o?t.scrollTop(n):i>a-t.height()/2&&t.scrollTop(n-(t.height()-e.height())/2)})},c.fn.setPositionAbsolute=function(s,l,u){return this.each(function(){var t=c(this),e=c(this).width(),n=s.offset(),i=s.width(),o=s.height(),a=n.left+i-e+u,r=n.top+o+l;t.css({"z-index":1,position:"absolute",marginLeft:0,marginTop:0,left:a+"px",top:r+"px",width:e}),t.remove().appendTo("body").show()})},c.fn.positionAncestor=function(r){var s=0,l=0;return this.each(function(){var t=c(this).closest(r);if(t.length&&"static"!==t.css("position")){var e=c(this),n=e.offset().left-parseInt(e.css("marginLeft"),10),i=e.offset().top-parseInt(e.css("marginTop"),10),o=t.offset().left+parseInt(t.css("borderLeftWidth"),10),a=t.offset().top+parseInt(t.css("borderTopWidth"),10);return s=n-o,l=i-a,!1}}),{left:s,top:l}},String.prototype.startsWith=function(t){return null!==this.match("^"+t)},String.prototype.endsWith=function(t){return null!==this.match(t+"$")},c.simplePlaceholder={placeholder_class:null,hide_placeholder:function(){var t=c(this);t.val()===t.attr("placeholder")&&t.val("").removeClass(c.simplePlaceholder.placeholder_class)},show_placeholder:function(){var t=c(this);""===t.val()&&t.val(t.attr("placeholder")).addClass(c.simplePlaceholder.placeholder_class)},prevent_placeholder_submit:function(){return c(this).find(".simple-placeholder").each(function(){var t=c(this);t.val()===t.attr("placeholder")&&t.val("")}),!0}},c.fn.simplePlaceholder=function(t){if(void 0===document.createElement("input").placeholder){var e={placeholder_class:"placeholding"};t&&c.extend(e,t),c.simplePlaceholder.placeholder_class=e.placeholder_class,this.each(function(){var t=c(this);t.focus(c.simplePlaceholder.hide_placeholder),t.blur(c.simplePlaceholder.show_placeholder),""===t.val()&&(t.val(t.attr("placeholder")),t.addClass(c.simplePlaceholder.placeholder_class)),t.addClass("simple-placeholder"),c(this.form).submit(c.simplePlaceholder.prevent_placeholder_submit)})}return this},c.fn.findInclusive=function(t){return this.find("*").addBack().filter(t)},c.fn.slideIn=function(t,e,n){return this.animate({width:"show"},t,e,n)},c.fn.slideOut=function(t,e,n){return this.animate({width:"hide"},t,e,n)},c.expr[":"].Contains=function(t,e,n){return 0<=c(t).text().toUpperCase().indexOf(n[3].toUpperCase())},c.fn.scopedFind=function(t){return t.startsWith("#")?c(t):this.find(t)}}),define("pat-registry",["jquery","underscore","pat-logger","pat-utils","pat-compat","pat-jquery-ext"],function(a,r,s,i){for(var t,o=s.getLogger("registry"),e=/patterns-disable=([^&]+)/g,n=/patterns-dont-catch/g,l=!1,u={};null!==(t=e.exec(window.location.search));)u[t[1]]=!0,o.info("Pattern disabled via url config:",t[1]);for(;null!==(t=n.exec(window.location.search));)l=!0,o.info("I will not catch init exceptions");var c={patterns:{},initialized:!1,init:function(){a(document).ready(function(){o.info("loaded: "+Object.keys(c.patterns).sort().join(", ")),c.scan(document.body),c.initialized=!0,o.info("finished initial scan.")})},clear:function(){this.patterns={}},transformPattern:function(e,t){if(u[e])o.debug("Skipping disabled pattern:",e);else{var n=c.patterns[e];if(n.transform)try{n.transform(a(t))}catch(t){if(l)throw t;o.error("Transform error for pattern"+e,t)}}},initPattern:function(t,e,n){var i=a(e),o=c.patterns[t];if(o.init&&(plog=s.getLogger("pat."+t),i.is(o.trigger))){plog.debug("Initialising:",i);try{o.init(i,null,n),plog.debug("done.")}catch(t){if(l)throw t;plog.error("Caught error:",t)}}},orderPatterns:function(t){return r.contains(t,"validation")&&r.contains(t,"inject")&&(t.splice(t.indexOf("validation"),1),t.unshift("validation")),t},scan:function(t,n,i){var o=[];(n=this.orderPatterns(n||Object.keys(c.patterns))).forEach(r.partial(this.transformPattern,r,t)),n=r.each(n,function(t){var e=c.patterns[t];e.trigger&&o.unshift(e.trigger)}),a(t).findInclusive(o.join(",")).filter(function(){return 0===a(this).parents("pre").length}).filter(":not(.cant-touch-this)").toArray().reduceRight(function(t,e){n.forEach(r.partial(this.initPattern,r,e,i))}.bind(this),null),a("body").addClass("patterns-loaded")},register:function(t,e){var n;return(e=e||t.name)?c.patterns[e]?(o.error("Already have a pattern called: "+e),!1):((c.patterns[e]=t).jquery_plugin&&(n=("pat-"+e).replace(/-([a-zA-Z])/g,function(t,e){return e.toUpperCase()}),a.fn[n]=i.jqueryPlugin(t),a.fn[n.replace(/^pat/,"pattern")]=a.fn[n]),o.debug("Registered pattern:",e,t),c.initialized&&c.scan(document.body,[e]),!0):(o.error("Pattern lacks a name:",t),!1)}};return a(document).on("patterns-injected.patterns",function(t,e,n,i){3!==i.nodeType&&8!==i&&(c.scan(i,null,{type:"injection",element:n}),a(i).trigger("patterns-injected-scanned"))}),c}),define("pat-mockup-parser",["jquery"],function(r){"use strict";return{getOptions:function t(e,n,i){i=i||{},0===e.length||r.nodeName(e[0],"body")||(i=t(e.parent(),n,i));var o={};if(0!==e.length&&(o=e.data("pat-"+n))&&"string"==typeof o){var a={};r.each(o.split(";"),function(t,e){(e=e.split(":")).reverse();var n=e.pop();n=n.replace(/^\s+|\s+$/g,""),e.reverse();var i=e.join(":");i=i.replace(/^\s+|\s+$/g,""),a[n]=i}),o=a}return r.extend(!0,{},i,o)}}}),define("pat-base",["jquery","pat-registry","pat-mockup-parser","pat-logger"],function(o,r,s,l){"use strict";function a(t,e,n){var i=this.prototype.name,o=l.getLogger("pat."+i),a=t.data("pattern-"+i);if(void 0===a&&r.patterns[i]){try{e="mockup"===this.prototype.parser?s.getOptions(t,i,e):e,a=new r.patterns[i](t,e,n)}catch(t){o.error("Failed while initializing '"+i+"' pattern.",t)}t.data("pattern-"+i,a)}return a}function u(t,e,n){this.$el=t,this.options=o.extend(!0,{},this.defaults||{},e||{}),this.init(t,e,n),this.emit("init")}var c=l.getLogger("Patternslib Base");return u.prototype={constructor:u,on:function(t,e){this.$el.on(t+"."+this.name+".patterns",e)},emit:function(t,e){void 0===e&&(e=[]),this.$el.trigger(t+"."+this.name+".patterns",e)}},u.extend=function(t){var e,n=this;if(!t)throw new Error("Pattern configuration properties required when calling Base.extend");(e=t.hasOwnProperty("constructor")?t.constructor:function(){n.apply(this,arguments)}).extend=u.extend,e.init=a,e.jquery_plugin=!0,e.trigger=t.trigger;function i(){this.constructor=e}return i.prototype=n.prototype,e.prototype=new i,o.extend(!0,e.prototype,t),e.__super__=n.prototype,t.name?t.trigger?r.register(e,t.name):c.warn("The pattern '"+t.name+"' does not have a trigger attribute, it will not be registered."):c.warn("This pattern without a name attribute will not be registered!"),e},u}),define("mockup-patterns-backdrop",["jquery","pat-base"],function(t,e){"use strict";return e.extend({name:"backdrop",trigger:".pat-backdrop",parser:"mockup",defaults:{zIndex:null,opacity:.8,className:"plone-backdrop",classActiveName:"plone-backdrop-active",closeOnEsc:!0,closeOnClick:!0},init:function(){var n=this;n.$backdrop=t("> ."+n.options.className,n.$el),0===n.$backdrop.size()&&(n.$backdrop=t("<div/>").hide().appendTo(n.$el).addClass(n.options.className),null!==n.options.zIndex&&n.$backdrop.css("z-index",n.options.zIndex)),!0===n.options.closeOnEsc&&t(document).on("keydown",function(t,e){n.$el.is("."+n.options.classActiveName)&&27===t.keyCode&&n.hide()}),!0===n.options.closeOnClick&&n.$backdrop.on("click",function(){n.$el.is("."+n.options.classActiveName)&&n.hide()})},show:function(){var t=this;t.$el.hasClass(t.options.classActiveName)||(t.emit("show"),t.$backdrop.css("opacity","0").show(),t.$el.addClass(t.options.classActiveName),t.$backdrop.animate({opacity:t.options.opacity},500),t.emit("shown"))},hide:function(){var t=this;t.$el.hasClass(t.options.classActiveName)&&(t.emit("hide"),t.$backdrop.animate({opacity:"0"},500).hide(),t.$el.removeClass(t.options.classActiveName),t.emit("hidden"))}})}),function(i,o){if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(t,e,n){i.Backbone=o(i,n,t,e)});else if("undefined"!=typeof exports){var t=require("underscore");o(i,exports,t)}else i.Backbone=o(i,{},i._,i.jQuery||i.Zepto||i.ender||i.$)}(this,function(t,s,M,e){var n=t.Backbone,i=[],o=i.slice;s.VERSION="1.1.2",s.$=e,s.noConflict=function(){return t.Backbone=n,this},s.emulateHTTP=!1,s.emulateJSON=!1;var a=s.Events={on:function(t,e,n){return d(this,"on",t,[e,n])&&e&&(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this})),this},once:function(t,e,n){if(!d(this,"once",t,[e,n])||!e)return this;var i=this,o=M.once(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var i,o,a,r,s,l,u,c;if(!this._events||!d(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(s=0,l=(r=t?[t]:M.keys(this._events)).length;s<l;s++)if(t=r[s],a=this._events[t]){if(this._events[t]=i=[],e||n)for(u=0,c=a.length;u<c;u++)o=a[u],(e&&e!==o.callback&&e!==o.callback._callback||n&&n!==o.context)&&i.push(o);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=o.call(arguments,1);if(!d(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&r(n,e),i&&r(i,arguments),this},stopListening:function(t,e,n){var i=this._listeningTo;if(!i)return this;var o=!e&&!n;for(var a in n||"object"!=typeof e||(n=this),t&&((i={})[t._listenId]=t),i)(t=i[a]).off(e,n,this),(o||M.isEmpty(t._events))&&delete this._listeningTo[a];return this}},l=/\s+/,d=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var o in n)t[e].apply(t,[o,n[o]].concat(i));return!1}if(l.test(n)){for(var a=n.split(l),r=0,s=a.length;r<s;r++)t[e].apply(t,[a[r]].concat(i));return!1}return!0},r=function(t,e){var n,i=-1,o=t.length,a=e[0],r=e[1],s=e[2];switch(e.length){case 0:for(;++i<o;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<o;)(n=t[i]).callback.call(n.ctx,a);return;case 2:for(;++i<o;)(n=t[i]).callback.call(n.ctx,a,r);return;case 3:for(;++i<o;)(n=t[i]).callback.call(n.ctx,a,r,s);return;default:for(;++i<o;)(n=t[i]).callback.apply(n.ctx,e);return}};M.each({listenTo:"on",listenToOnce:"once"},function(o,t){a[t]=function(t,e,n){var i=this._listeningTo||(this._listeningTo={});return n||"object"!=typeof e||(n=this),(i[t._listenId||(t._listenId=M.uniqueId("l"))]=t)[o](e,n,this),this}}),a.bind=a.on,a.unbind=a.off,M.extend(s,a);var T=s.Model=function(t,e){var n=t||{};e=e||{},this.cid=M.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=M.defaults({},n,M.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};M.extend(T.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return M.clone(this.attributes)},sync:function(){return s.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return M.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var i,o,a,r,s,l,u,c;if(null==t)return this;if("object"==typeof t?(o=t,n=e):(o={})[t]=e,n=n||{},!this._validate(o,n))return!1;for(i in a=n.unset,s=n.silent,r=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=M.clone(this.attributes),this.changed={}),c=this.attributes,u=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]),o)e=o[i],M.isEqual(c[i],e)||r.push(i),M.isEqual(u[i],e)?delete this.changed[i]:this.changed[i]=e,a?delete c[i]:c[i]=e;if(!s){r.length&&(this._pending=n);for(var d=0,h=r.length;d<h;d++)this.trigger("change:"+r[d],this,c[r[d]],n)}if(l)return this;if(!s)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,M.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,M.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!M.isEmpty(this.changed):M.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&M.clone(this.changed);var e,n=!1,i=this._changing?this._previousAttributes:this.attributes;for(var o in t)M.isEqual(i[o],e=t[o])||((n=n||{})[o]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return M.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?M.clone(e):{}).parse&&(e.parse=!0);var n=this,i=e.success;return e.success=function(t){if(!n.set(n.parse(t,e),e))return!1;i&&i(n,t,e),n.trigger("sync",n,t,e)},Y(this,e),this.sync("read",this,e)},save:function(t,e,n){var i,o,a,r=this.attributes;if(null==t||"object"==typeof t?(i=t,n=e):(i={})[t]=e,n=M.extend({validate:!0},n),i&&!n.wait){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;i&&n.wait&&(this.attributes=M.extend({},r,i)),void 0===n.parse&&(n.parse=!0);var s=this,l=n.success;return n.success=function(t){s.attributes=r;var e=s.parse(t,n);if(n.wait&&(e=M.extend(i||{},e)),M.isObject(e)&&!s.set(e,n))return!1;l&&l(s,t,n),s.trigger("sync",s,t,n)},Y(this,n),"patch"==(o=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=i),a=this.sync(o,this,n),i&&n.wait&&(this.attributes=r),a},destroy:function(e){e=e?M.clone(e):{};function n(){i.trigger("destroy",i,i.collection,e)}var i=this,o=e.success;if(e.success=function(t){(e.wait||i.isNew())&&n(),o&&o(i,t,e),i.isNew()||i.trigger("sync",i,t,e)},this.isNew())return e.success(),!1;Y(this,e);var t=this.sync("delete",this,e);return e.wait||n(),t},url:function(){var t=M.result(this,"urlRoot")||M.result(this.collection,"url")||P();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},M.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=M.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,M.extend(e,{validationError:n})),!1)}});M.each(["keys","values","pairs","invert","pick","omit"],function(e){T.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.attributes),M[e].apply(M,t)}});var u=s.Collection=function(t,e){(e=e||{}).model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,M.extend({silent:!0},e))},L={add:!0,remove:!0,merge:!0},c={add:!0,remove:!1};M.extend(u.prototype,a,{model:T,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return s.sync.apply(this,arguments)},add:function(t,e){return this.set(t,M.extend({merge:!1},e,c))},remove:function(t,e){var n,i,o,a,r=!M.isArray(t);for(e=e||{},n=0,i=(t=r?[t]:M.clone(t)).length;n<i;n++)(a=t[n]=this.get(t[n]))&&(delete this._byId[a.id],delete this._byId[a.cid],o=this.indexOf(a),this.models.splice(o,1),this.length--,e.silent||(e.index=o,a.trigger("remove",a,this,e)),this._removeReference(a,e));return r?t[0]:t},set:function(t,e){(e=M.defaults({},e,L)).parse&&(t=this.parse(t,e));var n,i,o,a,r,s,l,u=!M.isArray(t);t=u?t?[t]:[]:M.clone(t);var c=e.at,d=this.model,h=this.comparator&&null==c&&!1!==e.sort,p=M.isString(this.comparator)?this.comparator:null,m=[],f=[],g={},v=e.add,_=e.merge,y=e.remove,b=!(h||!v||!y)&&[];for(n=0,i=t.length;n<i;n++){if(o=(r=t[n]||{})instanceof T?a=r:r[d.prototype.idAttribute||"id"],s=this.get(o))y&&(g[s.cid]=!0),_&&(r=r===a?a.attributes:r,e.parse&&(r=s.parse(r,e)),s.set(r,e),h&&!l&&s.hasChanged(p)&&(l=!0)),t[n]=s;else if(v){if(!(a=t[n]=this._prepareModel(r,e)))continue;m.push(a),this._addReference(a,e)}a=s||a,!b||!a.isNew()&&g[a.id]||b.push(a),g[a.id]=!0}if(y){for(n=0,i=this.length;n<i;++n)g[(a=this.models[n]).cid]||f.push(a);f.length&&this.remove(f,e)}if(m.length||b&&b.length)if(h&&(l=!0),this.length+=m.length,null!=c)for(n=0,i=m.length;n<i;n++)this.models.splice(c+n,0,m[n]);else{b&&(this.models.length=0);var w=b||m;for(n=0,i=w.length;n<i;n++)this.models.push(w[n])}if(l&&this.sort({silent:!0}),!e.silent){for(n=0,i=m.length;n<i;n++)(a=m[n]).trigger("add",a,this,e);(l||b&&b.length)&&this.trigger("sort",this,e)}return u?t[0]:t},reset:function(t,e){e=e||{};for(var n=0,i=this.models.length;n<i;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,M.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,M.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,M.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(n,t){return M.isEmpty(n)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var e in n)if(n[e]!==t.get(e))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t=t||{},M.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(M.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return M.invoke(this.models,"get",t)},fetch:function(n){void 0===(n=n?M.clone(n):{}).parse&&(n.parse=!0);var i=n.success,o=this;return n.success=function(t){var e=n.reset?"reset":"set";o[e](t,n),i&&i(o,t,n),o.trigger("sync",o,t,n)},Y(this,n),this.sync("read",this,n)},create:function(t,n){if(n=n?M.clone(n):{},!(t=this._prepareModel(t,n)))return!1;n.wait||this.add(t,n);var i=this,o=n.success;return n.success=function(t,e){n.wait&&i.add(t,n),o&&o(t,e,n)},t.save(null,n),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof T)return t;var n=new(((e=e?M.clone(e):{}).collection=this).model)(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){null!=(this._byId[t.cid]=t).id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});M.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],function(e){u.prototype[e]=function(){var t=o.call(arguments);return t.unshift(this.models),M[e].apply(M,t)}});M.each(["groupBy","countBy","sortBy","indexBy"],function(i){u.prototype[i]=function(e,t){var n=M.isFunction(e)?e:function(t){return t.get(e)};return M[i](this.models,n,t)}});var h=s.View=function(t){this.cid=M.uniqueId("view"),t=t||{},M.extend(this,M.pick(t,m)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},p=/^(\S+)\s*(.*)$/,m=["model","collection","el","id","attributes","className","tagName","events"];M.extend(h.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,e){return this.$el&&this.undelegateEvents(),this.$el=t instanceof s.$?t:s.$(t),this.el=this.$el[0],!1!==e&&this.delegateEvents(),this},delegateEvents:function(t){if(!(t=t||M.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(M.isFunction(n)||(n=this[t[e]]),n){var i=e.match(p),o=i[1],a=i[2];n=M.bind(n,this),o+=".delegateEvents"+this.cid,""===a?this.$el.on(o,n):this.$el.on(o,a,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(M.result(this,"el"),!1);else{var t=M.extend({},M.result(this,"attributes"));this.id&&(t.id=M.result(this,"id")),this.className&&(t.class=M.result(this,"className"));var e=s.$("<"+M.result(this,"tagName")+">").attr(t);this.setElement(e,!1)}}}),s.sync=function(t,e,n){var i=g[t];M.defaults(n=n||{},{emulateHTTP:s.emulateHTTP,emulateJSON:s.emulateJSON});var o={type:i,dataType:"json"};if(n.url||(o.url=M.result(e,"url")||P()),null!=n.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(n.attrs||e.toJSON(n))),n.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),n.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){o.type="POST",n.emulateJSON&&(o.data._method=i);var a=n.beforeSend;n.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",i),a)return a.apply(this,arguments)}}"GET"===o.type||n.emulateJSON||(o.processData=!1),"PATCH"===o.type&&f&&(o.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var r=n.xhr=s.ajax(M.extend(o,n));return e.trigger("request",e,r,n),r};var f=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),g={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};s.ajax=function(){return s.$.ajax.apply(s.$,arguments)};var v=s.Router=function(t){(t=t||{}).routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},_=/\((.*?)\)/g,y=/(\(\?)?:\w+/g,b=/\*\w+/g,w=/[\-{}\[\]+?.,\\\^$|#\s]/g;M.extend(v.prototype,a,{initialize:function(){},route:function(n,i,o){M.isRegExp(n)||(n=this._routeToRegExp(n)),M.isFunction(i)&&(o=i,i=""),o=o||this[i];var a=this;return s.history.route(n,function(t){var e=a._extractParameters(n,t);a.execute(o,e),a.trigger.apply(a,["route:"+i].concat(e)),a.trigger("route",i,e),s.history.trigger("route",a,i,e)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,e){return s.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=M.result(this,"routes");for(var t,e=M.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(w,"\\$&").replace(_,"(?:$1)?").replace(y,function(t,e){return e?t:"([^/?]+)"}).replace(b,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return M.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var k=s.History=function(){this.handlers=[],M.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},D=/^[#\/]|\s+$/g,S=/^\/+|\/+$/g,x=/msie [\w.]+/,C=/\/$/,E=/#.*$/;k.started=!1,M.extend(k.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(C,"");t.indexOf(n)||(t=t.slice(n.length))}else t=this.getHash();return t.replace(D,"")},start:function(t){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=M.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var e=this.getFragment(),n=document.documentMode,i=x.exec(navigator.userAgent.toLowerCase())&&(!n||n<=7);if(this.root=("/"+this.root+"/").replace(S,"/"),i&&this._wantsHashChange){var o=s.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=o.hide().appendTo("body")[0].contentWindow,this.navigate(e)}this._hasPushState?s.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?s.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=e;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(D,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){s.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),k.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),M.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(t,e){if(!k.started)return!1;e&&!0!==e||(e={trigger:!!e});var n=this.root+(t=this.getFragment(t||""));if(t=t.replace(E,""),this.fragment!==t){if(""===(this.fragment=t)&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var i=t.href.replace(/(javascript:|#).*$/,"");t.replace(i+"#"+e)}else t.hash="#"+e}}),s.history=new k;T.extend=u.extend=v.extend=h.extend=k.extend=function(t,e){var n,i=this;n=t&&M.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},M.extend(n,i,e);function o(){this.constructor=n}return o.prototype=i.prototype,n.prototype=new o,t&&M.extend(n.prototype,t),n.__super__=i.prototype,n};var P=function(){throw new Error('A "url" property or function must be specified')},Y=function(e,n){var i=n.error;n.error=function(t){i&&i(e,t,n),e.trigger("error",e,t,n)}};return s}),define("mockup-router",["underscore","backbone"],function(s,t){"use strict";function l(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}return new(t.Router.extend({actions:[],redirects:{},addRoute:function(t,e,n,i,o,a){void 0===s.findWhere(this.patterns,{patternName:t,id:e})&&this.actions.push({patternName:t,id:e,callback:n,context:i,pathExp:o,expReplace:a});var r=new RegExp("("+l(t)+":"+l(e)+")");this.route(r,"handleRoute")},addRedirect:function(t,e){this.redirects[t]=e},handleRoute:function(t){var e=t.split(":"),n=e[0],i=e[1],o=s.findWhere(this.actions,{patternName:n,id:i});o&&o.callback.call(o.context)},redirect:function(){var n,i,o,a=window.parent.location.pathname;if(s.some(this.actions,function(t){if(t.pathExp&&(i=new RegExp(t.pathExp),a.match(i))){o="!/"+t.patternName+":"+t.id;var e="";return t.expReplace&&(e=t.expReplace),n=a.replace(i,e),!0}},this),void 0===o)for(var t in this.redirects)if(i=new RegExp(t),a.match(i)){o="!/"+this.redirects[t],n=a.replace(i,"");break}void 0!==o&&this._changeLocation.apply(this,[n,o])},_changeLocation:function(t,e){window.parent.location.hash=e,window.parent.location.pathname=t},start:function(){t.history.start()},reset:function(){this.actions=[]}}))}),define("mockup-utils",["jquery"],function(u){"use strict";function t(t){var n=this;return n.className="plone-loader",t=t||{},n.options=u.extend({},{backdrop:null,zIndex:10005},t),n.init=function(){n.$el=u("."+n.className),0===n.$el.length&&(n.$el=u("<div><div></div></div>"),n.$el.addClass(n.className).hide().appendTo("body"))},n.show=function(t){n.init(),n.$el.show();var e=n.options.zIndex;"function"==typeof e?e=Math.max(e(),10005):(e=10005,u(".plone-modal-wrapper,.plone-modal-backdrop").each(function(){e=Math.max(e,u(this).css("zIndex")||10005)}),e+=1),n.$el.css("zIndex",e),void 0===t&&(t=!0),n.options.backdrop&&(n.options.backdrop.closeOnClick=t,n.options.backdrop.closeOnEsc=t,n.options.backdrop.init(),n.options.backdrop.show())},n.hide=function(){n.init(),n.$el.hide()},n}function i(t){return void 0===t&&(t="id"),t+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return{bool:function(t){return"string"==typeof t&&(t=u.trim(t).toLowerCase()),-1===["false",!1,"0",0,"",void 0,null].indexOf(t)},escapeHTML:function(t){return u("<div/>").text(t).html()},removeHTML:function(t){return t.replace(/<[^>]+>/gi,"")},featureSupport:{dragAndDrop:function(){return"draggable"in document.createElement("span")},fileApi:function(){return"undefined"!=typeof FileReader},history:function(){return!(!window.history||!window.history.pushState)}},generateId:i,getAuthenticator:function(){var t=u('input[name="_authenticator"]');return 0===t.length?0<(t=u('a[href*="_authenticator"]')).length?t.attr("href").split("_authenticator=")[1]:"":t.val()},getWindow:function(){var t=window;return t.parent!==window&&(t=t.parent),t},Loading:t,loading:new t,parseBodyTag:function(t){return u(/<body[^>]*>((.|[\n\r])*)<\/body>/im.exec(t)[0].replace("<body","<div").replace("</body>","</div>")).eq(0).html()},QueryHelper:function(t){var l=this;return l.options=u.extend({},{pattern:null,vocabularyUrl:null,searchParam:"SearchableText",pathOperator:"plone.app.querystring.operation.string.path",attributes:["UID","Title","Description","getURL","portal_type"],batchSize:10,baseCriteria:[],sort_on:"is_folderish",sort_order:"reverse",pathDepth:1},t),l.pattern=l.options.pattern,void 0!==l.pattern&&null!==l.pattern||(l.pattern={browsing:!1,basePath:"/"}),l.options.url&&!l.options.vocabularyUrl?l.options.vocabularyUrl=l.options.url:l.pattern.vocabularyUrl&&(l.options.vocabularyUrl=l.pattern.vocabularyUrl),l.valid=Boolean(l.options.vocabularyUrl),l.getBatch=function(t){return{page:t||1,size:l.options.batchSize}},l.getCurrentPath=function(){var t,e=l.pattern;"function"==typeof(t=l.currentPath?l.currentPath:e.currentPath)&&(t=t());var n=t;return n=n||(e.basePath?e.basePath:e.options.basePath?e.options.basePath:"/")},l.getCriterias=function(t,e){void 0===e&&(e={});var n=[];return(e=u.extend({},{useBaseCriteria:!0,additionalCriterias:[]},e)).useBaseCriteria&&(n=l.options.baseCriteria.slice(0)),t&&(t+="*",n.push({i:l.options.searchParam,o:"plone.app.querystring.operation.string.contains",v:t})),e.searchPath?n.push({i:"path",o:l.options.pathOperator,v:e.searchPath+"::"+l.options.pathDepth}):l.pattern.browsing&&n.push({i:"path",o:l.options.pathOperator,v:l.getCurrentPath()+"::"+l.options.pathDepth}),n=n.concat(e.additionalCriterias)},l.getQueryData=function(t,e){var n={query:JSON.stringify({criteria:l.getCriterias(t),sort_on:l.options.sort_on,sort_order:l.options.sort_order}),attributes:JSON.stringify(l.options.attributes)};return e&&(n.batch=JSON.stringify(l.getBatch(e))),n},l.getUrl=function(){var t=l.options.vocabularyUrl;return-1===t.indexOf("?")?t+="?":t+="&",t+u.param(l.getQueryData())},l.selectAjax=function(){return{url:l.options.vocabularyUrl,dataType:"JSON",quietMillis:100,data:function(t,e){return l.getQueryData(t,e)},results:function(t,e){var n=10*e<t.total;return{results:t.results,more:n}}}},l.search=function(t,e,n,i,o,a){void 0===o&&(o=!0),void 0===a&&(a="GET");var r=[];o&&(r=l.options.baseCriteria.slice(0)),r.push({i:t,o:e,v:n});var s={query:JSON.stringify({criteria:r}),attributes:JSON.stringify(l.options.attributes)};u.ajax({url:l.options.vocabularyUrl,dataType:"JSON",data:s,type:a,success:i})},l},setId:function(t,e){void 0===e&&(e="id");var n=t.attr("id");return n=void 0===n?i(e):n.replace(/\./g,"-"),t.attr("id",n),n}}}),define("mockup-i18n",["jquery"],function(o){"use strict";return function(){var s=this;s.baseUrl=o("body").attr("data-i18ncatalogurl"),s.baseUrl||(s.baseUrl="/plonejsi18n"),s.currentLanguage=o("html").attr("lang")||"en-us",s.storage=null,s.catalogs={},s.ttl=864e5,Date.now||(Date.now=function(){return(new Date).valueOf()});try{"localStorage"in window&&null!==window.localStorage&&"JSON"in window&&null!==window.JSON&&(s.storage=window.localStorage)}catch(t){}s.configure=function(t){for(var e in t)s[e]=t[e]},s._setCatalog=function(t,e,n){t in s.catalogs||(s.catalogs[t]={}),s.catalogs[t][e]=n},s._storeCatalog=function(t,e,n){var i=t+"-"+e;null!==s.storage&&null!==n&&(s.storage.setItem(i,JSON.stringify(n)),s.storage.setItem(i+"-updated",Date.now()))},s.getUrl=function(t,e){return s.baseUrl+"?domain="+t+"&language="+e},s.loadCatalog=function(e,n){if(void 0===n&&(n=s.currentLanguage),null!==s.storage){var t=e+"-"+n;if(t in s.storage&&Date.now()-parseInt(s.storage.getItem(t+"-updated"),10)<s.ttl){var i=JSON.parse(s.storage.getItem(t));return void s._setCatalog(e,n,i)}}o.getJSON(s.getUrl(e,n),function(t){null!==t&&(s._setCatalog(e,n,t),s._storeCatalog(e,n,t))})},s.MessageFactory=function(a,r){return r=r||s.currentLanguage,function(t,e){var n,i,o;if(n=a in s.catalogs&&r in s.catalogs[a]&&t in s.catalogs[a][r]?s.catalogs[a][r][t]:t,e)for(o in e)e.hasOwnProperty(o)&&(i=new RegExp("\\$\\{"+o+"\\}","g"),n=n.replace(i,e[o]));return n}}}}),define("translate",["mockup-i18n"],function(i){"use strict";var o=null;return function(t,e){if(null===o){var n=new i;n.loadCatalog("widgets"),o=n.MessageFactory("widgets")}return o(t,e)}}),function(t){"function"==typeof define&&define.amd?define("jquery.form",["jquery"],t):t("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(j){"use strict";var y={};y.fileapi=void 0!==j("<input type='file'/>").get(0).files,y.formdata=void 0!==window.FormData;var A=!!j.fn.prop;function n(t){var e=t.data;t.isDefaultPrevented()||(t.preventDefault(),j(t.target).ajaxSubmit(e))}function i(t){var e=t.target,n=j(e);if(!n.is("[type=submit],[type=image]")){var i=n.closest("[type=submit]");if(0===i.length)return;e=i[0]}var o=this;if("image"==(o.clk=e).type)if(void 0!==t.offsetX)o.clk_x=t.offsetX,o.clk_y=t.offsetY;else if("function"==typeof j.fn.offset){var a=n.offset();o.clk_x=t.pageX-a.left,o.clk_y=t.pageY-a.top}else o.clk_x=t.pageX-e.offsetLeft,o.clk_y=t.pageY-e.offsetTop;setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function I(){if(j.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}j.fn.attr2=function(){if(!A)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},j.fn.ajaxSubmit=function(C){if(!this.length)return I("ajaxSubmit: skipping submit process - no element selected"),this;var E,t,e,P=this;"function"==typeof C?C={success:C}:void 0===C&&(C={}),E=C.type||this.attr2("method"),e=(e=(e="string"==typeof(t=C.url||this.attr2("action"))?j.trim(t):"")||window.location.href||"")&&(e.match(/^([^#]+)/)||[])[1],C=j.extend(!0,{url:e,success:j.ajaxSettings.success,type:E||j.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},C);var n={};if(this.trigger("form-pre-serialize",[this,C,n]),n.veto)return I("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(C.beforeSerialize&&!1===C.beforeSerialize(this,C))return I("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var i=C.traditional;void 0===i&&(i=j.ajaxSettings.traditional);var o,Y=[],a=this.formToArray(C.semantic,Y);if(C.data&&(C.extraData=C.data,o=j.param(C.data,i)),C.beforeSubmit&&!1===C.beforeSubmit(a,this,C))return I("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[a,this,C,n]),n.veto)return I("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var r=j.param(a,i);o&&(r=r?r+"&"+o:o),"GET"==C.type.toUpperCase()?(C.url+=(0<=C.url.indexOf("?")?"&":"?")+r,C.data=null):C.data=r;var s=[];if(C.resetForm&&s.push(function(){P.resetForm()}),C.clearForm&&s.push(function(){P.clearForm(C.includeHidden)}),!C.dataType&&C.target){var l=C.success||function(){};s.push(function(t){var e=C.replaceTarget?"replaceWith":"html";j(C.target)[e](t).each(l,arguments)})}else C.success&&s.push(C.success);if(C.success=function(t,e,n){for(var i=C.context||this,o=0,a=s.length;o<a;o++)s[o].apply(i,[t,e,n||P,P])},C.error){var u=C.error;C.error=function(t,e,n){var i=C.context||this;u.apply(i,[t,e,n,P])}}if(C.complete){var c=C.complete;C.complete=function(t,e){var n=C.context||this;c.apply(n,[t,e,P])}}var d=0<j("input[type=file]:enabled",this).filter(function(){return""!==j(this).val()}).length,h="multipart/form-data",p=P.attr("enctype")==h||P.attr("encoding")==h,m=y.fileapi&&y.formdata;I("fileAPI :"+m);var f,g=(d||p)&&!m;!1!==C.iframe&&(C.iframe||g)?C.closeKeepAlive?j.get(C.closeKeepAlive,function(){f=_(a)}):f=_(a):f=(d||p)&&m?function(t){for(var n=new FormData,e=0;e<t.length;e++)n.append(t[e].name,t[e].value);if(C.extraData){var i=function(t){var e,n,i=j.param(t,C.traditional).split("&"),o=i.length,a=[];for(e=0;e<o;e++)i[e]=i[e].replace(/\+/g," "),n=i[e].split("="),a.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return a}(C.extraData);for(e=0;e<i.length;e++)i[e]&&n.append(i[e][0],i[e][1])}C.data=null;var o=j.extend(!0,{},j.ajaxSettings,C,{contentType:!1,processData:!1,cache:!1,type:E||"POST"});C.uploadProgress&&(o.xhr=function(){var t=j.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(t){var e=0,n=t.loaded||t.position,i=t.total;t.lengthComputable&&(e=Math.ceil(n/i*100)),C.uploadProgress(t,n,i,e)},!1),t});o.data=null;var a=o.beforeSend;return o.beforeSend=function(t,e){C.formData?e.data=C.formData:e.data=n,a&&a.call(this,t,e)},j.ajax(o)}(a):j.ajax(C),P.removeData("jqxhr").data("jqxhr",f);for(var v=0;v<Y.length;v++)Y[v]=null;return this.trigger("form-submit-notify",[this,C]),this;function _(t){var e,n,c,d,o,h,p,m,i,a,f,g,r=P[0],v=j.Deferred();if(v.abort=function(t){m.abort(t)},t)for(n=0;n<Y.length;n++)e=j(Y[n]),A?e.prop("disabled",!1):e.removeAttr("disabled");if((c=j.extend(!0,{},j.ajaxSettings,C)).context=c.context||c,o="jqFormIO"+(new Date).getTime(),c.iframeTarget?(a=(h=j(c.iframeTarget)).attr2("name"))?o=a:h.attr2("name",o):(h=j('<iframe name="'+o+'" src="'+c.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),p=h[0],m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var e="timeout"===t?"timeout":"aborted";I("aborting upload... "+e),this.aborted=1;try{p.contentWindow.document.execCommand&&p.contentWindow.document.execCommand("Stop")}catch(t){}h.attr("src",c.iframeSrc),m.error=e,c.error&&c.error.call(c.context,m,e,t),d&&j.event.trigger("ajaxError",[m,c,e]),c.complete&&c.complete.call(c.context,m,e)}},(d=c.global)&&0==j.active++&&j.event.trigger("ajaxStart"),d&&j.event.trigger("ajaxSend",[m,c]),c.beforeSend&&!1===c.beforeSend.call(c.context,m,c))return c.global&&j.active--,v.reject(),v;if(m.aborted)return v.reject(),v;(i=r.clk)&&(a=i.name)&&!i.disabled&&(c.extraData=c.extraData||{},c.extraData[a]=i.value,"image"==i.type&&(c.extraData[a+".x"]=r.clk_x,c.extraData[a+".y"]=r.clk_y));var _=1,y=2;function b(e){var n=null;try{e.contentWindow&&(n=e.contentWindow.document)}catch(t){I("cannot get iframe.contentWindow document: "+t)}if(n)return n;try{n=e.contentDocument?e.contentDocument:e.document}catch(t){I("cannot get iframe.contentDocument: "+t),n=e.document}return n}var s=j("meta[name=csrf-token]").attr("content"),l=j("meta[name=csrf-param]").attr("content");function u(){var t=P.attr2("target"),e=P.attr2("action");r.setAttribute("target",o),E&&!/post/i.test(E)||r.setAttribute("method","POST"),e!=c.url&&r.setAttribute("action",c.url),c.skipEncodingOverride||E&&!/post/i.test(E)||P.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),c.timeout&&(g=setTimeout(function(){f=!0,k(_)},c.timeout));var n=[];try{if(c.extraData)for(var i in c.extraData)c.extraData.hasOwnProperty(i)&&(j.isPlainObject(c.extraData[i])&&c.extraData[i].hasOwnProperty("name")&&c.extraData[i].hasOwnProperty("value")?n.push(j('<input type="hidden" name="'+c.extraData[i].name+'">').val(c.extraData[i].value).appendTo(r)[0]):n.push(j('<input type="hidden" name="'+i+'">').val(c.extraData[i]).appendTo(r)[0]));c.iframeTarget||h.appendTo("body"),p.attachEvent?p.attachEvent("onload",k):p.addEventListener("load",k,!1),setTimeout(function t(){try{var e=b(p).readyState;I("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(t){I("Server abort: ",t," (",t.name,")"),k(y),g&&clearTimeout(g),g=void 0}},15);try{r.submit()}catch(t){document.createElement("form").submit.apply(r)}}finally{r.setAttribute("action",e),t?r.setAttribute("target",t):P.removeAttr("target"),j(n).remove()}}l&&s&&(c.extraData=c.extraData||{},c.extraData[l]=s),c.forceSync?u():setTimeout(u,10);var w,M,T,L=50;function k(t){if(!m.aborted&&!T){if((M=b(p))||(I("cannot access response document"),t=y),t===_&&m)return m.abort("timeout"),void v.reject(m,"timeout");if(t==y&&m)return m.abort("server abort"),void v.reject(m,"error","server abort");if(M&&M.location.href!=c.iframeSrc||f){p.detachEvent?p.detachEvent("onload",k):p.removeEventListener("load",k,!1);var e,n="success";try{if(f)throw"timeout";var i="xml"==c.dataType||M.XMLDocument||j.isXMLDoc(M);if(I("isXml="+i),!i&&window.opera&&(null===M.body||!M.body.innerHTML)&&--L)return I("requeing onLoad callback, DOM not available"),void setTimeout(k,250);var o=M.body?M.body:M.documentElement;m.responseText=o?o.innerHTML:null,m.responseXML=M.XMLDocument?M.XMLDocument:M,i&&(c.dataType="xml"),m.getResponseHeader=function(t){return{"content-type":c.dataType}[t.toLowerCase()]},o&&(m.status=Number(o.getAttribute("status"))||m.status,m.statusText=o.getAttribute("statusText")||m.statusText);var a=(c.dataType||"").toLowerCase(),r=/(json|script|text)/.test(a);if(r||c.textarea){var s=M.getElementsByTagName("textarea")[0];if(s)m.responseText=s.value,m.status=Number(s.getAttribute("status"))||m.status,m.statusText=s.getAttribute("statusText")||m.statusText;else if(r){var l=M.getElementsByTagName("pre")[0],u=M.getElementsByTagName("body")[0];l?m.responseText=l.textContent?l.textContent:l.innerText:u&&(m.responseText=u.textContent?u.textContent:u.innerText)}}else"xml"==a&&!m.responseXML&&m.responseText&&(m.responseXML=D(m.responseText));try{w=x(m,a,c)}catch(t){n="parsererror",m.error=e=t||n}}catch(t){I("error caught: ",t),n="error",m.error=e=t||n}m.aborted&&(I("upload aborted"),n=null),m.status&&(n=200<=m.status&&m.status<300||304===m.status?"success":"error"),"success"===n?(c.success&&c.success.call(c.context,w,"success",m),v.resolve(m.responseText,"success",m),d&&j.event.trigger("ajaxSuccess",[m,c])):n&&(void 0===e&&(e=m.statusText),c.error&&c.error.call(c.context,m,n,e),v.reject(m,"error",e),d&&j.event.trigger("ajaxError",[m,c,e])),d&&j.event.trigger("ajaxComplete",[m,c]),d&&!--j.active&&j.event.trigger("ajaxStop"),c.complete&&c.complete.call(c.context,m,n),T=!0,c.timeout&&clearTimeout(g),setTimeout(function(){c.iframeTarget?h.attr("src",c.iframeSrc):h.remove(),m.responseXML=null},100)}}}var D=j.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},S=j.parseJSON||function(t){return window.eval("("+t+")")},x=function(t,e,n){var i=t.getResponseHeader("content-type")||"",o="xml"===e||!e&&0<=i.indexOf("xml"),a=o?t.responseXML:t.responseText;return o&&"parsererror"===a.documentElement.nodeName&&j.error&&j.error("parsererror"),n&&n.dataFilter&&(a=n.dataFilter(a,e)),"string"==typeof a&&("json"===e||!e&&0<=i.indexOf("json")?a=S(a):("script"===e||!e&&0<=i.indexOf("javascript"))&&j.globalEval(a)),a};return v}},j.fn.ajaxForm=function(t){if((t=t||{}).delegation=t.delegation&&j.isFunction(j.fn.on),t.delegation||0!==this.length)return t.delegation?(j(document).off("submit.form-plugin",this.selector,n).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,t,n).on("click.form-plugin",this.selector,t,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",t,n).bind("click.form-plugin",t,i);var e={s:this.selector,c:this.context};return!j.isReady&&e.s?(I("DOM not ready, queuing ajaxForm"),j(function(){j(e.s,e.c).ajaxForm(t)})):I("terminating; zero elements found by selector"+(j.isReady?"":" (DOM not ready)")),this},j.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},j.fn.formToArray=function(t,e){var n=[];if(0===this.length)return n;var i,o,a,r,s,l,u,c=this[0],d=t?c.getElementsByTagName("*"):c.elements;if(!d)return n;for(i=0,l=d.length;i<l;i++)if((a=(s=d[i]).name)&&!s.disabled)if(t&&c.clk&&"image"==s.type)c.clk==s&&(n.push({name:a,value:j(s).val(),type:s.type}),n.push({name:a+".x",value:c.clk_x},{name:a+".y",value:c.clk_y}));else if((r=j.fieldValue(s,!0))&&r.constructor==Array)for(e&&e.push(s),o=0,u=r.length;o<u;o++)n.push({name:a,value:r[o]});else if(y.fileapi&&"file"==s.type){e&&e.push(s);var h=s.files;if(h.length)for(o=0;o<h.length;o++)n.push({name:a,value:h[o],type:s.type});else n.push({name:a,value:"",type:s.type})}else null!=r&&(e&&e.push(s),n.push({name:a,value:r,type:s.type,required:s.required}));if(!t&&c.clk){var p=j(c.clk),m=p[0];(a=m.name)&&!m.disabled&&"image"==m.type&&(n.push({name:a,value:p.val()}),n.push({name:a+".x",value:c.clk_x},{name:a+".y",value:c.clk_y}))}return n},j.fn.formSerialize=function(t){return j.param(this.formToArray(t))},j.fn.fieldSerialize=function(o){var a=[];return this.each(function(){var t=this.name;if(t){var e=j.fieldValue(this,o);if(e&&e.constructor==Array)for(var n=0,i=e.length;n<i;n++)a.push({name:t,value:e[n]});else null!=e&&a.push({name:this.name,value:e})}}),j.param(a)},j.fn.fieldValue=function(t){for(var e=[],n=0,i=this.length;n<i;n++){var o=this[n],a=j.fieldValue(o,t);null==a||a.constructor==Array&&!a.length||(a.constructor==Array?j.merge(e,a):e.push(a))}return e},j.fieldValue=function(t,e){var n=t.name,i=t.type,o=t.tagName.toLowerCase();if(void 0===e&&(e=!0),e&&(!n||t.disabled||"reset"==i||"button"==i||("checkbox"==i||"radio"==i)&&!t.checked||("submit"==i||"image"==i)&&t.form&&t.form.clk!=t||"select"==o&&-1==t.selectedIndex))return null;if("select"!=o)return j(t).val();var a=t.selectedIndex;if(a<0)return null;for(var r=[],s=t.options,l="select-one"==i,u=l?a+1:s.length,c=l?a:0;c<u;c++){var d=s[c];if(d.selected){var h=d.value;if(h=h||(d.attributes&&d.attributes.value&&!d.attributes.value.specified?d.text:d.value),l)return h;r.push(h)}}return r},j.fn.clearForm=function(t){return this.each(function(){j("input,select,textarea",this).clearFields(t)})},j.fn.clearFields=j.fn.clearInputs=function(n){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,e=this.tagName.toLowerCase();i.test(t)||"textarea"==e?this.value="":"checkbox"==t||"radio"==t?this.checked=!1:"select"==e?this.selectedIndex=-1:"file"==t?/MSIE/.test(navigator.userAgent)?j(this).replaceWith(j(this).clone(!0)):j(this).val(""):n&&(!0===n&&/hidden/.test(t)||"string"==typeof n&&j(this).is(n))&&(this.value="")})},j.fn.resetForm=function(){return this.each(function(){"function"!=typeof this.reset&&("object"!=typeof this.reset||this.reset.nodeType)||this.reset()})},j.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},j.fn.selected=function(n){return void 0===n&&(n=!0),this.each(function(){var t=this.type;if("checkbox"==t||"radio"==t)this.checked=n;else if("option"==this.tagName.toLowerCase()){var e=j(this).parent("select");n&&e[0]&&"select-one"==e[0].type&&e.find("option").selected(!1),this.selected=n}})},j.fn.ajaxSubmit.debug=!1}),define("mockup-patterns-modal",["jquery","underscore","pat-base","mockup-patterns-backdrop","pat-registry","mockup-router","mockup-utils","translate","jquery.form"],function(d,l,t,i,o,e,a,u){"use strict";return t.extend({name:"plone-modal",trigger:".pat-plone-modal",parser:"mockup",createModal:null,$model:null,defaults:{width:"",height:"",margin:20,position:"center middle",triggers:[],zIndexSelector:".plone-modal-wrapper,.plone-modal-backdrop",backdrop:"body",backdropOptions:{zIndex:"1040",opacity:"0.85",className:"plone-modal-backdrop",classActiveName:"plone-backdrop-active",closeOnEsc:!0,closeOnClick:!0},title:null,titleSelector:"h1:first",buttons:'.formControls > input[type="submit"]',content:"#content",automaticallyAddButtonActions:!0,loadLinksWithinModal:!0,prependContent:".portalMessage",templateOptions:{className:"plone-modal fade",classDialog:"plone-modal-dialog",classModal:"plone-modal-content",classHeaderName:"plone-modal-header",classBodyName:"plone-modal-body",classFooterName:"plone-modal-footer",classWrapperName:"plone-modal-wrapper",classWrapperInnerName:"modal-wrapper-inner",classActiveName:"in",classPrependName:"",classContentName:"",template:'<div class="<%= options.className %>">  <div class="<%= options.classDialog %>">    <div class="<%= options.classModal %>">      <div class="<%= options.classHeaderName %>">        <a class="plone-modal-close">×</a>        <% if (title) { %><h2 class="plone-modal-title"><%= title %></h2><% } %>      </div>      <div class="<%= options.classBodyName %>">        <div class="<%= options.classPrependName %>"><%= prepend %></div>         <div class="<%= options.classContentName %>"><%= content %></div>      </div>      <div class="<%= options.classFooterName %>">         <% if (buttons) { %><%= buttons %><% } %>      </div>    </div>  </div></div>'},actions:{},actionOptions:{eventType:"click",disableAjaxFormSubmit:!1,target:null,ajaxUrl:null,modalFunction:null,isForm:!1,timeout:5e3,displayInModal:!0,reloadWindowOnClose:!0,error:".portalMessage.error",formFieldError:".field.error",onSuccess:null,onError:null,onFormError:null,onTimeout:null,redirectOnResponse:!1,redirectToUrl:function(t,e,n){var i;return(i=/<body.*data-view-url=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length||(i=/<body.*data-base-url=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length?i[1].split('"')[0]:(i=/<base.*href=[\"'](.*)[\"'].*/im.exec(e))&&1<i.length?i[1]:""}},routerOptions:{id:null,pathExp:null},form:function(t){var r=this,s=r.$modal;r.options.automaticallyAddButtonActions&&(t[r.options.buttons]={}),t.a={},d.each(t,function(t,n){var e=l.union(l.keys(r.options.actionOptions),["templateOptions"]),i=d.extend(!0,{},r.options.actionOptions,l.pick(n,e));n.templateOptions=d.extend(!0,n.templateOptions,r.options.templateOptions);var o=l.union(l.keys(r.options.actionOptions),["actions","actionOptions"]),a=d.extend(!0,l.omit(n,o),r.options);d(t,d("."+n.templateOptions.classBodyName,s)).each(function(t){var e=d(this);e.on(i.eventType,function(t){t.stopPropagation(),t.preventDefault(),r.loading.show(!1),null!==i.modalFunction?r[i.modalFunction]():d.nodeName(e[0],"input")||d.nodeName(e[0],"button")||!0===n.isForm?r.options.handleFormAction.apply(r,[e,i,a]):null===n.ajaxUrl&&!d.nodeName(e[0],"a")||r.options.handleLinkAction.apply(r,[e,i,a])})})})},handleFormAction:function(o,a,r){var t,e,s=this,n={};if(n[o.attr("name")]=o.attr("value"),t=d.nodeName(o[0],"form")?o:o.parents("form:not(.disableAutoSubmit)"),e=null!==a.ajaxUrl?"function"==typeof a.ajaxUrl?a.ajaxUrl.apply(s,[o,a]):a.ajaxUrl:o.parents("form").attr("action"),a.disableAjaxFormSubmit)return o.attr("name")&&o.attr("value")&&t.append(d('<input type="hidden" name="'+o.attr("name")+'" value="'+o.attr("value")+'" />')),void t.trigger("submit");t.on("submit",function(t){t.preventDefault()}),t.trigger("submit"),s.loading.show(!1),t.ajaxSubmit({timeout:a.timeout,data:n,url:e,error:function(t,e,n){s.loading.hide(),"timeout"===e&&a.onTimeout?a.onTimeout.apply(s,t,n):a.onError?a.onError(t,e,n):(window.alert(u("There was an error submitting the form.")),console.log("error happened do something")),s.emit("formActionError",[t,e,n])},success:function(t,e,n,i){s.loading.hide(),0===d(a.error,t).size()&&0===d(a.formFieldError,t).size()?!0!==a.redirectOnResponse?(a.onSuccess&&a.onSuccess(s,t,e,n,i),!0===a.displayInModal?s.redraw(t,r):(o.trigger("destroy.plone-modal.patterns"),a.reloadWindowOnClose&&s.reloadWindow()),s.emit("formActionSuccess",[t,e,n,i])):"function"==typeof a.redirectToUrl?window.parent.location.href=a.redirectToUrl.apply(s,[o,t,a]):window.parent.location.href=a.redirectToUrl:a.onFormError?a.onFormError(s,t,e,n,i):s.redraw(t,r)}})},handleLinkAction:function(t,i,o){var e,a=this;e=i.ajaxUrl?"function"==typeof i.ajaxUrl?i.ajaxUrl.apply(a,[t,i]):i.ajaxUrl:t.attr("href"),!1!==i.displayInModal?d.ajax({url:e}).fail(function(t,e,n){"timeout"===e&&i.onTimeout?i.onTimeout(a.$modal,t,n):i.onError?i.onError(t,e,n):window.alert(u("There was an error loading modal.")),a.emit("linkActionError",[t,e,n])}).done(function(t,e,n){a.redraw(t,o),i.onSuccess&&i.onSuccess(a,t,e,n),a.emit("linkActionSuccess",[t,e,n])}).always(function(){a.loading.hide()}):"_blank"===t.attr("target")?(window.open(e,"_blank"),a.loading.hide()):window.location=e},render:function(t){var n=this;if(n.emit("before-render"),n.$raw){var e=n.$raw.clone();d("input:checked",e).each(function(){this.setAttribute&&this.setAttribute("checked","checked")});var i={title:"",prepend:"<div />",content:"",buttons:'<div class="pattern-modal-buttons"></div>',options:t.templateOptions};if(null===t.title){var o=d(t.titleSelector,e);i.title=o.html(),d(t.titleSelector,e).remove()}else i.title=t.title;t.prependContent&&(i.prepend=d("<div />").append(d(t.prependContent,e).clone()).html(),d(t.prependContent,e).remove()),t.content?i.content=d(t.content,e).html():i.content=e.html(),n.$modal=d(l.template(n.options.templateOptions.template)(i)),n.$modalDialog=d("> ."+n.options.templateOptions.classDialog,n.$modal),n.$modalContent=d("> ."+n.options.templateOptions.classModal,n.$modalDialog),d("form",n.$modal).on("keydown",function(t){13===t.keyCode&&"TEXTAREA"!==t.target.nodeName&&(t.preventDefault(),d("input[type=submit], button[type=submit], button:not(type)",this).eq(0).trigger("click"))}),d(t.buttons,n.$modal).each(function(){var e=d(this);e.on("click",function(t){t.stopPropagation(),t.preventDefault()}).clone().appendTo(d(".pattern-modal-buttons",n.$modal)).off("click").on("click",function(t){t.stopPropagation(),t.preventDefault(),e.trigger("click")}),e.hide()}),n.emit("before-events-setup"),d(".plone-modal-header > a.plone-modal-close, .plone-modal-footer > a.plone-modal-close",n.$modal).off("click").on("click",function(t){t.stopPropagation(),t.preventDefault(),d(t.target).trigger("destroy.plone-modal.patterns")}),t.form&&t.form.apply(n,[t.actions]),n.$modal.addClass(n.options.templateOptions.className).on("destroy.plone-modal.patterns",function(t){t.stopPropagation(),n.hide()}).on("resize.plone-modal.patterns",function(t){t.stopPropagation(),t.preventDefault(),n.positionModal()}).appendTo(n.$wrapperInner),n.options.loadLinksWithinModal&&n.$modal.on("click",function(t){t.stopPropagation(),d.nodeName(t.target,"a")&&t.preventDefault(),n.$modal.trigger("modal-click")}),n.$modal.data("pattern-"+n.name,n),n.emit("after-render")}}},reloadWindow:function(){window.parent.location.reload()},init:function(){var o=this;o.options.loadLinksWithinModal=d.parseJSON(o.options.loadLinksWithinModal),null!==o.options.routerOptions.id&&e.addRoute("modal",o.options.routerOptions.id,function(){this.show()},o,o.options.routerOptions.pathExp,o.options.routerOptions.expReplace),!0===o.options.backdropOptions.closeOnEsc&&d(document).on("keydown",function(t,e){o.$el.is("."+o.options.templateOptions.classActiveName)&&27===t.keyCode&&o.hide()}),d(window.parent).resize(function(){o.positionModal()}),o.options.triggers&&d.each(o.options.triggers,function(t,e){var n=e.substring(0,e.indexOf(" ")),i=e.substring(e.indexOf(" "),e.length);d(i||o.$el).on(n,function(t){t.stopPropagation(),t.preventDefault(),o.show()})}),o.$el.is("a")&&(o.$el.attr("href")&&!o.options.image&&(o.options.target||"#"!==o.$el.attr("href").substr(0,1)||(o.options.target=o.$el.attr("href"),o.options.content=""),o.options.ajaxUrl||"#"===o.$el.attr("href").substr(0,1)||(o.options.ajaxUrl=o.$el.attr("href"))),o.$el.on("click",function(t){t.stopPropagation(),t.preventDefault(),o.show()})),o.initModal()},createAjaxModal:function(){var o=this;o.emit("before-ajax"),o.loading.show(),o.ajaxXHR=d.ajax({url:o.options.ajaxUrl,type:o.options.ajaxType}).done(function(t,e,n){o.ajaxXHR=void 0,o.$raw=d("<div />").append(d(a.parseBodyTag(t))),o.emit("after-ajax",o,e,n),o._show()}).fail(function(t,e,n){var i=o.options.actionOptions;"timeout"===e&&i.onTimeout?i.onTimeout(o.$modal,t,n):i.onError?i.onError(t,e,n):(window.alert(u("There was an error loading modal.")),o.hide()),o.emit("linkActionError",[t,e,n])}).always(function(){o.loading.hide()})},createTargetModal:function(){this.$raw=d(this.options.target).clone(),this._show()},createBasicModal:function(){this.$raw=d("<div/>").html(this.$el.clone()),this._show()},createHtmlModal:function(){var t=d(this.options.html);this.$raw=t,this._show()},createImageModal:function(){var t=this;t.$wrapper.addClass("image-modal");var e=t.$el.attr("href"),n=t.$el.attr("data-modal-srcset")||"";t.$raw=d('<div><h1>Image</h1><div id="content"><div class="modal-image"><img src="'+e+'" srcset="'+n+'" /></div></div></div>'),t._show()},initModal:function(){var t=this;t.options.ajaxUrl?t.createModal=t.createAjaxModal:t.options.target?t.createModal=t.createTargetModal:t.options.html?t.createModal=t.createHtmlModal:t.options.image?t.createModal=t.createImageModal:t.createModal=t.createBasicModal},findPosition:function(t,e,n,i,o,a,r){var s,l,u,c,d={};return c=u=s="auto","left"===t?(u=n+"px",a<i&&(u="0px"),d.left=u):"right"===t?(c=n+"px",a<i&&(c="0px"),d.right=c,d.left="auto"):(u=a/2-i/2-n+"px",a<i&&(u="0px"),d.left=u),"top"===e?(s=n+"px",r<o&&(s="0px"),d.top=s):"bottom"===e?(l=n+"px",r<o&&(l="0px"),d.bottom=l,d.top="auto"):(s=r/2-o/2-n+"px",r<o&&(s="0px"),d.top=s),d},modalInitialized:function(){return null!==this.$modal&&void 0!==this.$modal},positionModal:function(){var t=this;if(t.modalInitialized()){t.$modal.removeAttr("style"),t.$wrapper.parent().is("body")&&t.$wrapper.height(d(window.parent).height());var e="function"==typeof t.options.margin?t.options.margin():t.options.margin;t.$modal.css({position:"absolute",padding:e}),t.$modalDialog.css({margin:"0",padding:"0",width:t.options.width,height:t.options.height}),t.$modalContent.css({width:t.options.width});var n=t.options.position.split(" "),i=n[0],o=n[1],a=t.$modalDialog.outerWidth(!0),r=t.$modalDialog.outerHeight(!0),s=t.$wrapperInner.width(),l=t.$wrapperInner.height(),u=t.findPosition(i,o,e,a,r,s,l);for(var c in u)t.$modalDialog.css(c,u[c])}},render:function(t){this.emit("render"),this.options.render.apply(this,[t]),this.emit("rendered")},show:function(){this.backdrop=this.createBackdrop(),this.createModal()},createBackdrop:function(){var e=this,n=new i(e.$el.parents(e.options.backdrop),e.options.backdropOptions),t=1041;return d(e.options.zIndexSelector).each(function(){t=Math.max(t,parseInt(d(this).css("zIndex"))+1||1041)}),e.$wrapper=d("<div/>").hide().css({"z-index":t,"overflow-y":"auto",position:"fixed",height:"100%",width:"100%",bottom:"0",left:"0",right:"0",top:"0"}).addClass(e.options.templateOptions.classWrapperName).insertBefore(n.$backdrop).on("click",function(t){e.options.backdropOptions.closeOnClick&&(t.stopPropagation(),t.preventDefault(),n.hide())}),n.on("hidden",function(t){void 0!==e.$modal&&e.$modal.hasClass(e.options.templateOptions.classActiveName)&&e.hide()}),e.loading=new a.Loading({backdrop:n}),e.$wrapperInner=d("<div/>").addClass(e.options.classWrapperInnerName).css({position:"absolute",bottom:"0",left:"0",right:"0",top:"0"}).appendTo(e.$wrapper),n},_show:function(){var t=this;t.render.apply(t,[t.options]),t.emit("show"),t.backdrop.show(),t.$wrapper.show(),t.loading.hide(),t.$el.addClass(t.options.templateOptions.classActiveName),t.$modal.addClass(t.options.templateOptions.classActiveName),o.scan(t.$modal),t.positionModal(),d("img",t.$modal).load(function(){t.positionModal()}),d(window.parent).on("resize.plone-modal.patterns",function(){t.positionModal()}),d("body").addClass("plone-modal-open"),t.emit("shown")},hide:function(){var t=this;t.ajaxXHR&&t.ajaxXHR.abort(),t.emit("hide"),t._suppressHide&&!window.confirm(t._suppressHide)||(t.loading.hide(),t.$el.removeClass(t.options.templateOptions.classActiveName),void 0!==t.$modal&&(t.$modal.remove(),t.initModal()),t.$wrapper.remove(),d(".plone-modal",d("body")).size()<1&&(t.backdrop.hide(),d("body").removeClass("plone-modal-open"),d(window.parent).off("resize.plone-modal.patterns")),t.emit("hidden"))},redraw:function(t,e){var n=this;n.emit("beforeDraw"),n.$modal.remove(),n.$raw=d("<div />").append(d(a.parseBodyTag(t))),n.render.apply(n,[e||n.options]),n.$modal.addClass(n.options.templateOptions.classActiveName),n.positionModal(),o.scan(n.$modal),n.emit("afterDraw")}})}),function(t){define("select2",[],function(){return function(){var o;void 0===(o=jQuery).fn.each2&&o.extend(o.fn,{each2:function(t){for(var e=o([0]),n=-1,i=this.length;++n<i&&(e.context=e[0]=this[n])&&!1!==t.call(e[0],n,e););return this}}),function(w,b){"use strict";if(window.Select2===b){var t,e,n,M,a,o,T,i,u={x:0,y:0},s={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case s.LEFT:case s.RIGHT:case s.UP:case s.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case s.SHIFT:case s.CTRL:case s.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return 112<=(t=t.which?t.which:t)&&t<=123}},r={"Ⓐ":"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","Ɓ":"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","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"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","Ꝼ":"F","Ⓖ":"G","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","Ⓘ":"I","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","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","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","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","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","Ꝣ":"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","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","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","ꝺ":"d","dz":"dz","dž":"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","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","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","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","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","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"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","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","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","ẛ":"s","ⓣ":"t","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","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","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","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};o=w(document),i=1,M=function(){return i++},t=P(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(t){var a,e,n,i,o,r=".select2-results";this.opts=t=this.prepareOpts(t),this.id=t.id,t.element.data("select2")!==b&&null!==t.element.data("select2")&&t.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=w("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(t.element.attr("id")||"autogen"+M()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",t.element.attr("title")),this.body=w("body"),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",t.element.attr("style")),this.container.css(C(t.containerCss,this.opts.element)),this.container.addClass(C(t.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",v),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(C(t.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",v),this.results=a=this.container.find(r),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",v),this.results.on("mousemove",function(t){u!==b&&u.x===t.pageX&&u.y===t.pageY||w(t.target).trigger("mousemove-filtered",t)}),this.dropdown.on("mousemove-filtered",r,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",r,this.bind(function(t){this._touchEvent=!0,this.highlightUnderEvent(t)})),this.dropdown.on("touchmove",r,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",r,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(t){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),n=80,i=this.results,o=g(n,function(t){i.trigger("scroll-debounced",t)}),i.on("scroll",function(t){0<=d(t.target,i.get())&&o(t)}),this.dropdown.on("scroll-debounced",r,this.bind(this.loadMoreIfNeeded)),w(this.container).on("change",".select2-input",function(t){t.stopPropagation()}),w(this.dropdown).on("change",".select2-input",function(t){t.stopPropagation()}),w.fn.mousewheel&&a.mousewheel(function(t,e,n,i){var o=a.scrollTop();0<i&&o-i<=0?(a.scrollTop(0),v(t)):i<0&&a.get(0).scrollHeight-a.scrollTop()+i<=a.height()&&(a.scrollTop(a.get(0).scrollHeight-a.height()),v(t))}),f(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,this.bind(function(t){0<w(t.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(t){t.stopPropagation()}),this.nextSearchTerm=b,w.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==t.maximumInputLength&&this.search.attr("maxlength",t.maximumInputLength);var s=t.element.prop("disabled");s===b&&(s=!1),this.enable(!s);var l=t.element.prop("readonly");l===b&&(l=!1),this.readonly(l),T=T||function(){var t=w("<div class='select2-measure-scrollbar'></div>");t.appendTo("body");var e={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),e}(),this.autofocus=t.element.prop("autofocus"),t.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",t.searchInputPlaceholder)},destroy:function(){var t=this.opts.element,e=t.data("select2"),n=this;this.close(),t.length&&t[0].detachEvent&&t.each(function(){this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,e!==b&&(e.container.remove(),e.liveRegion.remove(),e.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show()),E.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:p(t.attr("locked"),"locked")||p(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(_){var r,t,e,n,y=this;if("select"===(r=_.element).get(0).tagName.toLowerCase()&&(this.select=t=_.element),t&&w.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in _)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(_=w.extend({},{populateResults:function(t,e,m){var f,g=this.opts.id,v=this.liveRegion;(f=function(t,e,n){var i,o,a,r,s,l,u,c,d,h,p=[];for(i=0,o=(t=_.sortResults(t,e,m)).length;i<o;i+=1)r=!(s=!0===(a=t[i]).disabled)&&g(a)!==b,l=a.children&&0<a.children.length,(u=w("<li></li>")).addClass("select2-results-dept-"+n),u.addClass("select2-result"),u.addClass(r?"select2-result-selectable":"select2-result-unselectable"),s&&u.addClass("select2-disabled"),l&&u.addClass("select2-result-with-children"),u.addClass(y.opts.formatResultCssClass(a)),u.attr("role","presentation"),(c=w(document.createElement("div"))).addClass("select2-result-label"),c.attr("id","select2-result-label-"+M()),c.attr("role","option"),(h=_.formatResult(a,c,m,y.opts.escapeMarkup))!==b&&(c.html(h),u.append(c)),l&&((d=w("<ul></ul>")).addClass("select2-result-sub"),f(a.children,d,n+1),u.append(d)),u.data("select2-data",a),p.push(u[0]);e.append(p),v.text(_.formatMatches(t.length))})(e,t,0)}},w.fn.select2.defaults,_)).id&&(e=_.id,_.id=function(t){return t[e]}),w.isArray(_.element.data("select2Tags"))){if("tags"in _)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+_.element.attr("id");_.tags=_.element.data("select2Tags")}if(t?(_.query=this.bind(function(i){var t,e,o,n={results:[],more:!1},a=i.term;o=function(t,e){var n;t.is("option")?i.matcher(a,t.text(),t)&&e.push(y.optionToData(t)):t.is("optgroup")&&(n=y.optionToData(t),t.children().each2(function(t,e){o(e,n.children)}),0<n.children.length&&e.push(n))},t=r.children(),this.getPlaceholder()!==b&&0<t.length&&(e=this.getPlaceholderOption())&&(t=t.not(e)),t.each2(function(t,e){o(e,n.results)}),i.callback(n)}),_.id=function(t){return t.id}):"query"in _||("ajax"in _?((n=_.element.data("ajax-url"))&&0<n.length&&(_.ajax.url=n),_.query=k.call(_.element,_.ajax)):"data"in _?_.query=D(_.data):"tags"in _&&(_.query=S(_.tags),_.createSearchChoice===b&&(_.createSearchChoice=function(t){return{id:w.trim(t),text:w.trim(t)}}),_.initSelection===b&&(_.initSelection=function(t,e){var n=[];w(h(t.val(),_.separator)).each(function(){var t={id:this,text:this},e=_.tags;w.isFunction(e)&&(e=e()),w(e).each(function(){if(p(this.id,t.id))return t=this,!1}),n.push(t)}),e(n)}))),"function"!=typeof _.query)throw"query function not defined for Select2 "+_.element.attr("id");if("top"===_.createSearchChoicePosition)_.createSearchChoicePosition=function(t,e){t.unshift(e)};else if("bottom"===_.createSearchChoicePosition)_.createSearchChoicePosition=function(t,e){t.push(e)};else if("function"!=typeof _.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return _},monitorSource:function(){var t,n=this.opts.element,e=this;n.on("change.select2",this.bind(function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var t=n.prop("disabled");t===b&&(t=!1),this.enable(!t);var e=n.prop("readonly");e===b&&(e=!1),this.readonly(e),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(C(this.opts.containerCssClass,this.opts.element)),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(C(this.opts.dropdownCssClass,this.opts.element))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",e._sync)}),(t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new t(function(t){w.each(t,e._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var e=w.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=w.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===b&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){t===b&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,e,n,i,o,a=this.dropdown,r=this.container.offset(),s=this.container.outerHeight(!1),l=this.container.outerWidth(!1),u=a.outerHeight(!1),c=w(window),d=c.width(),h=c.height(),p=c.scrollLeft()+d,m=c.scrollTop()+h,f=r.top+s,g=r.left,v=f+u<=m,_=r.top-u>=c.scrollTop(),y=a.outerWidth(!1),b=g+y<=p;a.hasClass("select2-drop-above")?(e=!0,!_&&v&&(e=!(n=!0))):(e=!1,!v&&_&&(e=n=!0)),n&&(a.hide(),r=this.container.offset(),s=this.container.outerHeight(!1),l=this.container.outerWidth(!1),u=a.outerHeight(!1),p=c.scrollLeft()+d,m=c.scrollTop()+h,f=r.top+s,b=(g=r.left)+(y=a.outerWidth(!1))<=p,a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=w(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),l<(y=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:T.width))?l=y:y=l,u=a.outerHeight(!1),b=g+y<=p):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(f-=(t=this.body.offset()).top,g-=t.left),b||(g=r.left+this.container.outerWidth(!1)-y),i={left:g,width:l},e?(i.top=r.top-u,i.bottom="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(i.top=f,i.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),i=w.extend(i,C(this.opts.dropdownCss,this.opts.element)),a.css(i)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=w.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",function(t){u.x=t.pageX,u.y=t.pageY}),!0)},opening:function(){var i,t=this.containerEventName,e="scroll."+t,n="resize."+t,o="orientationchange."+t;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(i=w("#select2-drop-mask")).length&&((i=w(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),i.hide(),i.appendTo(this.body),i.on("mousedown touchstart click",function(t){l(i);var e,n=w("#select2-drop");0<n.length&&((e=n.data("select2")).opts.selectOnBlur&&e.selectHighlighted({noFocus:!0}),e.close(),t.preventDefault(),t.stopPropagation())})),this.dropdown.prev()[0]!==i[0]&&this.dropdown.before(i),w("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),i.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){w(this).on(n+" "+e+" "+o,function(t){a.opened()&&a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,e="scroll."+t,n="resize."+t,i="orientationchange."+t;this.container.parents().add(window).each(function(){w(this).off(e).off(n).off(i)}),this.clearDropdownAlignmentPreference(),w("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(w.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return C(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,e,n,i,o,a,r,s,l=this.results;(e=this.highlight())<0||(0!=e?(t=this.findHighlightableChoices().find(".select2-result-label"),i=(s=((n=w(t[e])).offset()||{}).top||0)+n.outerHeight(!0),e===t.length-1&&0<(r=l.find("li.select2-more-results")).length&&(i=r.offset().top+r.outerHeight(!0)),(o=l.offset().top+l.outerHeight(!0))<i&&l.scrollTop(l.scrollTop()+(i-o)),(a=s-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var e=this.findHighlightableChoices(),n=this.highlight();-1<n&&n<e.length;){var i=w(e[n+=t]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var e,n,i=this.findHighlightableChoices();if(0===arguments.length)return d(i.filter(".select2-highlighted")[0],i.get());t>=i.length&&(t=i.length-1),t<0&&(t=0),this.removeHighlight(),(e=w(i[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",e.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(e.text()),(n=e.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var e=w(t.target).closest(".select2-result-selectable");if(0<e.length&&!e.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(e))}else 0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,n=e.find("li.select2-more-results"),i=this.resultsPage+1,o=this,a=this.search.val(),r=this.context;0!==n.length&&n.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(n.addClass("select2-active"),this.opts.query({element:this.opts.element,term:a,page:i,context:r,matcher:this.opts.matcher,callback:this.bind(function(t){o.opened()&&(o.opts.populateResults.call(this,e,t.results,{term:a,page:i,context:r}),o.postprocessResults(t,!1,!1),!0===t.more?(n.detach().appendTo(e).text(C(o.opts.formatLoadMore,o.opts.element,i+1)),window.setTimeout(function(){o.loadMoreIfNeeded()},10)):n.remove(),o.positionDropdown(),o.resultsPage=i,o.context=t.context,this.opts.element.trigger({type:"select2-loaded",items:t}))})}))},tokenize:function(){},updateResults:function(n){var t,e,i,o=this.search,a=this.results,r=this.opts,s=this,l=o.val(),u=w.data(this.container,"select2-last-term");if((!0===n||!u||!p(l,u))&&(w.data(this.container,"select2-last-term",l),!0===n||!1!==this.showSearchInput&&this.opened())){i=++this.queryCount;var c=this.getMaximumSelectionSize();if(!(1<=c&&(t=this.data(),w.isArray(t)&&t.length>=c&&x(r.formatSelectionTooBig,"formatSelectionTooBig"))))return o.val().length<r.minimumInputLength?(x(r.formatInputTooShort,"formatInputTooShort")?h("<li class='select2-no-results'>"+C(r.formatInputTooShort,r.element,o.val(),r.minimumInputLength)+"</li>"):h(""),void(n&&this.showSearch&&this.showSearch(!0))):void(r.maximumInputLength&&o.val().length>r.maximumInputLength?x(r.formatInputTooLong,"formatInputTooLong")?h("<li class='select2-no-results'>"+C(r.formatInputTooLong,r.element,o.val(),r.maximumInputLength)+"</li>"):h(""):(r.formatSearching&&0===this.findHighlightableChoices().length&&h("<li class='select2-searching'>"+C(r.formatSearching,r.element)+"</li>"),o.addClass("select2-active"),this.removeHighlight(),(e=this.tokenize())!=b&&null!=e&&o.val(e),this.resultsPage=1,r.query({element:r.element,term:o.val(),page:this.resultsPage,context:null,matcher:r.matcher,callback:this.bind(function(t){var e;i==this.queryCount&&(this.opened()?t.hasError!==b&&x(r.formatAjaxError,"formatAjaxError")?h("<li class='select2-ajax-error'>"+C(r.formatAjaxError,r.element,t.jqXHR,t.textStatus,t.errorThrown)+"</li>"):(this.context=t.context===b?null:t.context,this.opts.createSearchChoice&&""!==o.val()&&(e=this.opts.createSearchChoice.call(s,o.val(),t.results))!==b&&null!==e&&s.id(e)!==b&&null!==s.id(e)&&0===w(t.results).filter(function(){return p(s.id(this),s.id(e))}).length&&this.opts.createSearchChoicePosition(t.results,e),0===t.results.length&&x(r.formatNoMatches,"formatNoMatches")?h("<li class='select2-no-results'>"+C(r.formatNoMatches,r.element,o.val())+"</li>"):(a.empty(),s.opts.populateResults.call(this,a,t.results,{term:o.val(),page:this.resultsPage,context:null}),!0===t.more&&x(r.formatLoadMore,"formatLoadMore")&&(a.append("<li class='select2-more-results'>"+r.escapeMarkup(C(r.formatLoadMore,r.element,this.resultsPage))+"</li>"),window.setTimeout(function(){s.loadMoreIfNeeded()},10)),this.postprocessResults(t,n),d(),this.opts.element.trigger({type:"select2-loaded",items:t}))):this.search.removeClass("select2-active"))})})));h("<li class='select2-selection-limit'>"+C(r.formatSelectionTooBig,r.element,c)+"</li>")}function d(){o.removeClass("select2-active"),s.positionDropdown(),a.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?s.liveRegion.text(a.text()):s.liveRegion.text(s.opts.formatMatches(a.find(".select2-result-selectable").length))}function h(t){a.html(t),d()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var i;(i=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,e=i[0],n=i.val().length;i.focus(),(0<e.offsetWidth||0<e.offsetHeight)&&e===document.activeElement&&(e.setSelectionRange?e.setSelectionRange(n,n):e.createTextRange&&((t=e.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(t){if(this._touchMoved)this.clearTouchMoved();else{var e=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(e),this.onSelect(n,t)):t&&t.noFocus&&this.close()}},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==b?t.text():b)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==b)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===w.trim(t.text())&&""===t.val())return t}},initContainerWidth:function(){var t=function(){var t,e,n,i,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"!==this.opts.width&&"resolve"!==this.opts.width)return w.isFunction(this.opts.width)?this.opts.width():this.opts.width;if((t=this.opts.element.attr("style"))!==b)for(i=0,o=(e=t.split(";")).length;i<o;i+=1)if(null!==(n=e[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&1<=n.length)return n[1];return"resolve"===this.opts.width?0<(t=this.opts.element.css("width")).indexOf("%")?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}.call(this);null!==t&&this.container.css("width",t)}}),e=P(t,{createContainer:function(){return w(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,e,n;0<=this.opts.minimumResultsForSearch&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((e=t.createTextRange()).collapse(!1),e.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(w.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){w("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),E.call(this,"selection","focusser")},initContainer:function(){var e,t,n=this.container,i=this.dropdown,o=M();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),e.find(".select2-chosen").attr("id","select2-chosen-"+o),this.focusser.attr("aria-labelledby","select2-chosen-"+o),this.results.attr("id","select2-results-"+o),this.search.attr("aria-owns","select2-results-"+o),this.focusser.attr("id","s2id_autogen"+o),t=w("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(t.text()).attr("for",this.focusser.attr("id"));var a=this.opts.element.attr("title");this.opts.element.attr("title",a||t.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(w("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&229!=t.keyCode)if(t.which!==s.PAGE_UP&&t.which!==s.PAGE_DOWN)switch(t.which){case s.UP:case s.DOWN:return this.moveHighlight(t.which===s.UP?-1:1),void v(t);case s.ENTER:return this.selectHighlighted(),void v(t);case s.TAB:return void this.selectHighlighted({noFocus:!0});case s.ESC:return this.cancel(t),void v(t)}else v(t)})),this.search.on("blur",this.bind(function(t){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&t.which!==s.TAB&&!s.isControl(t)&&!s.isFunctionKey(t)&&t.which!==s.ESC){if(!1!==this.opts.openOnEnter||t.which!==s.ENTER){if(t.which==s.DOWN||t.which==s.UP||t.which==s.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void v(t)}return t.which==s.DELETE||t.which==s.BACKSPACE?(this.opts.allowClear&&this.clear(),void v(t)):void 0}v(t)}})),f(this.focusser),this.focusser.on("keyup-change input",this.bind(function(t){if(0<=this.opts.minimumResultsForSearch){if(t.stopPropagation(),this.opened())return;this.open()}})),e.on("mousedown touchstart","abbr",this.bind(function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())})),e.on("mousedown touchstart",this.bind(function(t){l(e),this.container.hasClass("select2-container-active")||this.opts.element.trigger(w.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),v(t)})),i.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),e.on("focus",this.bind(function(t){v(t)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(w.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(w.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(w.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var e=this.selection.data("select2-data");if(e){var n=w.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var i=this.getPlaceholderOption();this.opts.element.val(i?i.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(e),choice:e}),this.triggerChange({removed:e}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(t){t!==b&&null!==t&&(e.updateSelection(t),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(t,e.search.val()))})}},isPlaceholderOptionSelected:function(){var t;return this.getPlaceholder()!==b&&((t=this.getPlaceholderOption())!==b&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val())},prepareOpts:function(){var r=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===r.element.get(0).tagName.toLowerCase()?r.initSelection=function(t,e){var n=t.find("option").filter(function(){return this.selected&&!this.disabled});e(i.optionToData(n))}:"data"in r&&(r.initSelection=r.initSelection||function(t,e){var o=t.val(),a=null;r.query({matcher:function(t,e,n){var i=p(o,r.id(n));return i&&(a=n),i},callback:w.isFunction(e)?function(){e(a)}:w.noop})}),r},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,n){var i=0,o=this;if(this.findHighlightableChoices().each2(function(t,e){if(p(o.id(e.data("select2-data")),o.opts.element.val()))return i=t,!1}),!1!==n&&(!0===e&&0<=i?this.highlight(i):this.highlight(0)),!0===e){var a=this.opts.minimumResultsForSearch;0<=a&&this.showSearch(function n(t){var i=0;return w.each(t,function(t,e){e.children?i+=n(e.children):i++}),i}(t.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),w(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(t,e){if(this.triggerSelect(t)){var n=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),p(n,this.id(t))||this.triggerChange({added:t,removed:i})}},updateSelection:function(t){var e,n,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),i.empty(),null!==t&&(e=this.opts.formatSelection(t,i,this.opts.escapeMarkup)),e!==b&&i.append(e),(n=this.opts.formatSelectionCssClass(t,i))!==b&&i.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var t,e=!1,n=null,i=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],1<arguments.length&&(e=arguments[1]),this.select)this.select.val(t).find("option").filter(function(){return this.selected}).each2(function(t,e){return n=i.optionToData(e),!1}),this.updateSelection(n),this.setPlaceholder(),e&&this.triggerChange({added:n,removed:o});else{if(!t&&0!==t)return void this.clear(e);if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,function(t){i.opts.element.val(t?i.id(t):""),i.updateSelection(t),i.setPlaceholder(),e&&i.triggerChange({added:t,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var e,n=!1;if(0===arguments.length)return(e=this.selection.data("select2-data"))==b&&(e=null),e;1<arguments.length&&(n=arguments[1]),t?(e=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:e})):this.clear(n)}}),n=P(t,{createContainer:function(){return w(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var l=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===l.element.get(0).tagName.toLowerCase()?l.initSelection=function(t,e){var n=[];t.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(t,e){n.push(i.optionToData(e))}),e(n)}:"data"in l&&(l.initSelection=l.initSelection||function(t,a){var r=h(t.val(),l.separator),s=[];l.query({matcher:function(t,e,n){var i=w.grep(r,function(t){return p(t,l.id(n))}).length;return i&&s.push(n),i},callback:w.isFunction(a)?function(){for(var t=[],e=0;e<r.length;e++)for(var n=r[e],i=0;i<s.length;i++){var o=s[i];if(p(n,l.id(o))){t.push(o),s.splice(i,1);break}}a(t)}:w.noop})}),l},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){w("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),E.call(this,"searchContainer","selection")},initContainer:function(){var r,t=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=r=this.container.find(t);var e=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(t){e.search[0].focus(),e.selectChoice(w(this))}),this.search.attr("id","s2id_autogen"+M()),this.search.prev().text(w("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()){++this.keydowns;var e=r.find(".select2-search-choice-focus"),n=e.prev(".select2-search-choice:not(.select2-locked)"),i=e.next(".select2-search-choice:not(.select2-locked)"),o=function(t){var e=0,n=0;if("selectionStart"in(t=w(t)[0]))e=t.selectionStart,n=t.selectionEnd-e;else if("selection"in document){t.focus();var i=document.selection.createRange();n=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),e=i.text.length-n}return{offset:e,length:n}}(this.search);if(e.length&&(t.which==s.LEFT||t.which==s.RIGHT||t.which==s.BACKSPACE||t.which==s.DELETE||t.which==s.ENTER)){var a=e;return t.which==s.LEFT&&n.length?a=n:t.which==s.RIGHT?a=i.length?i:null:t.which===s.BACKSPACE?this.unselect(e.first())&&(this.search.width(10),a=n.length?n:i):t.which==s.DELETE?this.unselect(e.first())&&(this.search.width(10),a=i.length?i:null):t.which==s.ENTER&&(a=null),this.selectChoice(a),v(t),void(a&&a.length||this.open())}if((t.which===s.BACKSPACE&&1==this.keydowns||t.which==s.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(r.find(".select2-search-choice:not(.select2-locked)").last()),void v(t);if(this.selectChoice(null),this.opened())switch(t.which){case s.UP:case s.DOWN:return this.moveHighlight(t.which===s.UP?-1:1),void v(t);case s.ENTER:return this.selectHighlighted(),void v(t);case s.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case s.ESC:return this.cancel(t),void v(t)}if(t.which!==s.TAB&&!s.isControl(t)&&!s.isFunctionKey(t)&&t.which!==s.BACKSPACE&&t.which!==s.ESC){if(t.which===s.ENTER){if(!1===this.opts.openOnEnter)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return}this.open(),t.which!==s.PAGE_UP&&t.which!==s.PAGE_DOWN||v(t),t.which===s.ENTER&&v(t)}}})),this.search.on("keyup",this.bind(function(t){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(w.Event("select2-blur"))})),this.container.on("click",t,this.bind(function(t){this.isInterfaceEnabled()&&(0<w(t.target).closest(".select2-search-choice").length||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(w.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",t,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(w.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(t){t!==b&&null!==t&&(e.updateSelection(t),e.close(),e.clearSearch())})}},clearSearch:function(){var t=this.getPlaceholder(),e=this.getMaxSearchWidth();t!==b&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(0<e?e:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(w.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var e=[],n=[],i=this;w(t).each(function(){d(i.id(this),e)<0&&(e.push(i.id(this)),n.push(this))}),t=n,this.selection.find(".select2-search-choice").remove(),w(t).each(function(){i.addSelectedChoice(this)}),i.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=b&&(this.search.val(t),0<t.length&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&""!==t.text&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),!this.opts.closeOnSelect&&0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),0<this.getMaximumSelectionSize()&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var e,n,i=!t.locked,o=w("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),a=w("<li class='select2-search-choice select2-locked'><div></div></li>"),r=i?o:a,s=this.id(t),l=this.getVal();(e=this.opts.formatSelection(t,r.find("div"),this.opts.escapeMarkup))!=b&&r.find("div").replaceWith("<div>"+e+"</div>"),(n=this.opts.formatSelectionCssClass(t,r.find("div")))!=b&&r.addClass(n),i&&r.find(".select2-search-choice-close").on("mousedown",v).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(w(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),v(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),r.data("select2-data",t),r.insertBefore(this.searchContainer),l.push(s),this.setVal(l)},unselect:function(t){var e,n,i=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(e=t.data("select2-data")){var o=w.Event("select2-removing");if(o.val=this.id(e),o.choice=e,this.opts.element.trigger(o),o.isDefaultPrevented())return!1;for(;0<=(n=d(this.id(e),i));)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(e),choice:e}),this.triggerChange({removed:e}),!0}},postprocessResults:function(t,e,n){var i=this.getVal(),o=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;o.each2(function(t,e){0<=d(r.id(e.data("select2-data")),i)&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")}),-1==this.highlight()&&!1!==n&&r.highlight(0),!this.opts.createSearchChoice&&0<!o.filter(".select2-result:not(.select2-selected)").length&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&x(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+C(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-m(this.search)},resizeSearch:function(){var t,e,n,i,o=m(this.search);t=function(t){if(!a){var e=t[0].currentStyle||window.getComputedStyle(t[0],null);(a=w(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:e.fontSize,fontFamily:e.fontFamily,fontStyle:e.fontStyle,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,textTransform:e.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),w("body").append(a)}return a.text(t.val()),a.width()}(this.search)+10,e=this.search.offset().left,(i=(n=this.selection.width())-(e-this.selection.offset().left)-o)<t&&(i=n-o),i<40&&(i=n-o),i<=0&&(i=t),this.search.width(Math.floor(i))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:h(t=this.opts.element.val(),this.opts.separator)},setVal:function(t){var e;this.select?this.select.val(t):(e=[],w(t).each(function(){d(this,e)<0&&e.push(this)}),this.opts.element.val(0===e.length?"":e.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var n=0;n<e.length;n++)for(var i=0;i<t.length;i++)p(this.opts.id(e[n]),this.opts.id(t[i]))&&(e.splice(n,1),0<n&&n--,t.splice(i,1),i--);return{added:e,removed:t}},val:function(t,n){var i,o=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),!t&&0!==t)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:i}));if(this.setVal(t),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var e=w.map(t,o.id);o.setVal(e),o.updateSelection(t),o.clearSearch(),n&&o.triggerChange(o.buildChangeDetails(i,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],e=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(e.opts.id(w(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,e){var n,i,o=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return w(this).data("select2-data")}).get();i=this.data(),t=t||[],n=w.map(t,function(t){return o.opts.id(t)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),e&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),w.fn.select2=function(){var t,e,n,i,o,a=Array.prototype.slice.call(arguments,0),r=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],s=["opened","isFocused","container","dropdown"],l=["val","data"],u={search:"externalSearch"};return this.each(function(){if(0===a.length||"object"==typeof a[0])(t=0===a.length?{}:w.extend({},a[0])).element=w(this),"select"===t.element.get(0).tagName.toLowerCase()?o=t.element.prop("multiple"):(o=t.multiple||!1,"tags"in t&&(t.multiple=o=!0)),(e=o?new window.Select2.class.multi:new window.Select2.class.single).init(t);else{if("string"!=typeof a[0])throw"Invalid arguments to select2 plugin: "+a;if(d(a[0],r)<0)throw"Unknown method: "+a[0];if(i=b,(e=w(this).data("select2"))===b)return;if(n=a[0],i="container"===n?e.container:"dropdown"===n?e.dropdown:(u[n]&&(n=u[n]),e[n].apply(e,a.slice(1))),0<=d(a[0],s)||0<=d(a[0],l)&&1==a.length)return!1}}),i===b?this:i},w.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,n,i){var o=[];return y(t.text,n.term,o,i),o.join("")},formatSelection:function(t,e,n){return t?n(t.text):b},sortResults:function(t,e,n){return t},formatResultCssClass:function(t){return t.css},formatSelectionCssClass:function(t,e){return b},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t==b?null:t.id},matcher:function(t,e){return 0<=c(""+e).toUpperCase().indexOf(c(""+t).toUpperCase())},separator:",",tokenSeparators:[],tokenizer:function(t,e,n,i){var o,a,r,s,l,u=t,c=!1;if(!i.createSearchChoice||!i.tokenSeparators||i.tokenSeparators.length<1)return b;for(;;){for(a=-1,r=0,s=i.tokenSeparators.length;r<s&&(l=i.tokenSeparators[r],!(0<=(a=t.indexOf(l))));r++);if(a<0)break;if(o=t.substring(0,a),t=t.substring(a+l.length),0<o.length&&(o=i.createSearchChoice.call(this,o,e))!==b&&null!==o&&i.id(o)!==b&&null!==i.id(o)){for(c=!1,r=0,s=e.length;r<s;r++)if(p(i.id(o),i.id(e[r]))){c=!0;break}c||n(o)}}return u!==t?t:void 0},escapeMarkup:L,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,e){return b},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(t){return!("ontouchstart"in window||0<navigator.msMaxTouchPoints)||!(t.opts.minimumResultsForSearch<0)}},w.fn.select2.locales=[],w.fn.select2.locales.en={formatMatches:function(t){return 1===t?"One result is available, press enter to select it.":t+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(t,e,n){return"Loading failed"},formatInputTooShort:function(t,e){var n=e-t.length;return"Please enter "+n+" or more character"+(1==n?"":"s")},formatInputTooLong:function(t,e){var n=t.length-e;return"Please delete "+n+" character"+(1==n?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results…"},formatSearching:function(){return"Searching…"}},w.extend(w.fn.select2.defaults,w.fn.select2.locales.en),w.fn.select2.ajaxDefaults={transport:w.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:D,tags:S},util:{debounce:g,markMatch:y,escapeMarkup:L,stripDiacritics:c},class:{abstract:t,single:e,multi:n}}}function l(t){var e=w(document.createTextNode(""));t.before(e),e.before(t),e.remove()}function c(t){return t.replace(/[^\u0000-\u007E]/g,function(t){return r[t]||t})}function d(t,e){for(var n=0,i=e.length;n<i;n+=1)if(p(t,e[n]))return n;return-1}function p(t,e){return t===e||t!==b&&e!==b&&(null!==t&&null!==e&&(t.constructor===String?t+""==e+"":e.constructor===String&&e+""==t+""))}function h(t,e){var n,i,o;if(null===t||t.length<1)return[];for(i=0,o=(n=t.split(e)).length;i<o;i+=1)n[i]=w.trim(n[i]);return n}function m(t){return t.outerWidth(!1)-t.width()}function f(e){var n="keyup-change-value";e.on("keydown",function(){w.data(e,n)===b&&w.data(e,n,e.val())}),e.on("keyup",function(){var t=w.data(e,n);t!==b&&e.val()!==t&&(w.removeData(e,n),e.trigger("keyup-change"))})}function g(e,n,i){var o;return i=i||b,function(){var t=arguments;window.clearTimeout(o),o=window.setTimeout(function(){n.apply(i,t)},e)}}function v(t){t.preventDefault(),t.stopPropagation()}function _(t,e,n){var i,o,a=[];(i=w.trim(t.attr("class")))&&w((i=""+i).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)}),(i=w.trim(e.attr("class")))&&w((i=""+i).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(o=n(this))&&a.push(o)}),t.attr("class",a.join(" "))}function y(t,e,n,i){var o=c(t.toUpperCase()).indexOf(c(e.toUpperCase())),a=e.length;o<0?n.push(i(t)):(n.push(i(t.substring(0,o))),n.push("<span class='select2-match'>"),n.push(i(t.substring(o,o+a))),n.push("</span>"),n.push(i(t.substring(o+a,t.length))))}function L(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})}function k(r){var t,s=null,e=r.quietMillis||100,l=r.url,u=this;return function(a){window.clearTimeout(t),t=window.setTimeout(function(){var t=r.data,e=l,n=r.transport||w.fn.select2.ajaxDefaults.transport,i={type:r.type||"GET",cache:r.cache||!1,jsonpCallback:r.jsonpCallback||b,dataType:r.dataType||"json"},o=w.extend({},w.fn.select2.ajaxDefaults.params,i);t=t?t.call(u,a.term,a.page,a.context):null,e="function"==typeof e?e.call(u,a.term,a.page,a.context):e,s&&"function"==typeof s.abort&&s.abort(),r.params&&(w.isFunction(r.params)?w.extend(o,r.params.call(u)):w.extend(o,r.params)),w.extend(o,{url:e,dataType:r.dataType,data:t,success:function(t){var e=r.results(t,a.page,a);a.callback(e)},error:function(t,e,n){var i={hasError:!0,jqXHR:t,textStatus:e,errorThrown:n};a.callback(i)}}),s=n.call(u,o)},e)}}function D(t){var e,n,i=t,s=function(t){return""+t.text};w.isArray(i)&&(i={results:n=i}),!1===w.isFunction(i)&&(n=i,i=function(){return n});var o=i();return o.text&&(s=o.text,w.isFunction(s)||(e=o.text,s=function(t){return t[e]})),function(o){var a,r=o.term,n={results:[]};""!==r?(a=function(t,e){var n,i;if((t=t[0]).children){for(i in n={},t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.children=[],w(t.children).each2(function(t,e){a(e,n.children)}),(n.children.length||o.matcher(r,s(n),t))&&e.push(n)}else o.matcher(r,s(t),t)&&e.push(t)},w(i().results).each2(function(t,e){a(e,n.results)}),o.callback(n)):o.callback(i())}}function S(e){var a=w.isFunction(e);return function(n){var i=n.term,o={results:[]},t=a?e(n):e;w.isArray(t)&&(w(t).each(function(){var t=this.text!==b,e=t?this.text:this;""!==i&&!n.matcher(i,e)||o.results.push(t?this:{id:this,text:this})}),n.callback(o))}}function x(t,e){if(w.isFunction(t))return 1;if(t){if("string"==typeof t)return 1;throw new Error(e+" must be a string, function, or falsy value")}}function C(t,e){if(w.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(e,n)}return t}function E(){var n=this;w.each(arguments,function(t,e){n[e].remove(),n[e]=null})}function P(t,e){function n(){}return((n.prototype=new t).constructor=n).prototype.parent=t.prototype,n.prototype=w.extend(n.prototype,e),n}}(jQuery)}.apply(t,arguments)})}(this),function(t){define("jquery.event.drag",["jquery"],function(){return function(){!function(h){h.fn.drag=function(t,e,n){var i="string"==typeof t?t:"",o=h.isFunction(t)?t:h.isFunction(e)?e:null;return 0!==i.indexOf("drag")&&(i="drag"+i),n=(t==o?e:n)||{},o?this.bind(i,n,o):this.trigger(i)};var p=h.event,i=p.special,m=i.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(t){var n=h.data(this,m.datakey),i=t.data||{};n.related+=1,h.each(m.defaults,function(t,e){void 0!==i[t]&&(n[t]=i[t])})},remove:function(){--h.data(this,m.datakey).related},setup:function(){if(!h.data(this,m.datakey)){var t=h.extend({related:0},m.defaults);h.data(this,m.datakey,t),p.add(this,"touchstart mousedown",m.init,t),this.attachEvent&&this.attachEvent("ondragstart",m.dontstart)}},teardown:function(){(h.data(this,m.datakey)||{}).related||(h.removeData(this,m.datakey),p.remove(this,"touchstart mousedown",m.init),m.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",m.dontstart))},init:function(t){if(!m.touched){var e,n=t.data;if(!(0!=t.which&&0<n.which&&t.which!=n.which)&&!h(t.target).is(n.not)&&(!n.handle||h(t.target).closest(n.handle,t.currentTarget).length)&&(m.touched="touchstart"==t.type?this:null,n.propagates=1,n.mousedown=this,n.interactions=[m.interaction(this,n)],n.target=t.target,n.pageX=t.pageX,n.pageY=t.pageY,n.dragging=null,e=m.hijack(t,"draginit",n),n.propagates))return(e=m.flatten(e))&&e.length&&(n.interactions=[],h.each(e,function(){n.interactions.push(m.interaction(this,n))})),n.propagates=n.interactions.length,!1!==n.drop&&i.drop&&i.drop.handler(t,n),m.textselect(!1),m.touched?p.add(m.touched,"touchmove touchend",m.handler,n):p.add(document,"mousemove mouseup",m.handler,n),!(!m.touched||n.live)&&void 0}},interaction:function(t,e){var n=h(t)[e.relative?"position":"offset"]()||{top:0,left:0};return{drag:t,callback:new m.callback,droppable:[],offset:n}},handler:function(t){var e=t.data;switch(t.type){case!e.dragging&&"touchmove":t.preventDefault();case!e.dragging&&"mousemove":if(Math.pow(t.pageX-e.pageX,2)+Math.pow(t.pageY-e.pageY,2)<Math.pow(e.distance,2))break;t.target=e.target,m.hijack(t,"dragstart",e),e.propagates&&(e.dragging=!0);case"touchmove":t.preventDefault();case"mousemove":if(e.dragging){if(m.hijack(t,"drag",e),e.propagates){!1!==e.drop&&i.drop&&i.drop.handler(t,e);break}t.type="mouseup"}case"touchend":case"mouseup":default:m.touched?p.remove(m.touched,"touchmove touchend",m.handler):p.remove(document,"mousemove mouseup",m.handler),e.dragging&&(!1!==e.drop&&i.drop&&i.drop.handler(t,e),m.hijack(t,"dragend",e)),m.textselect(!0),!1===e.click&&e.dragging&&h.data(e.mousedown,"suppress.click",(new Date).getTime()+5),e.dragging=m.touched=!1}},hijack:function(n,i,o,t,e){if(o){var a,r,s,l={event:n.originalEvent,type:n.type},u=i.indexOf("drop")?"drag":"drop",c=t||0,d=isNaN(t)?o.interactions.length:t;n.type=i,n.originalEvent=null,o.results=[];do{if(r=o.interactions[c]){if("dragend"!==i&&r.cancelled)continue;s=m.properties(n,o,r),r.results=[],h(e||r[u]||o.droppable).each(function(t,e){if(s.target=e,!(n.isPropagationStopped=function(){return!1})===(a=e?p.dispatch.call(e,n,s):null)?("drag"==u&&(r.cancelled=!0,--o.propagates),"drop"==i&&(r[u][t]=null)):"dropinit"==i&&r.droppable.push(m.element(a)||e),"dragstart"==i&&(r.proxy=h(m.element(a)||r.drag)[0]),r.results.push(a),delete n.result,"dropinit"!==i)return a}),o.results[c]=m.flatten(r.results),"dropinit"==i&&(r.droppable=m.flatten(r.droppable)),"dragstart"!=i||r.cancelled||s.update()}}while(++c<d);return n.type=l.type,n.originalEvent=l.event,m.flatten(o.results)}},properties:function(t,e,n){var i=n.callback;return i.drag=n.drag,i.proxy=n.proxy||n.drag,i.startX=e.pageX,i.startY=e.pageY,i.deltaX=t.pageX-e.pageX,i.deltaY=t.pageY-e.pageY,i.originalX=n.offset.left,i.originalY=n.offset.top,i.offsetX=i.originalX+i.deltaX,i.offsetY=i.originalY+i.deltaY,i.drop=m.flatten((n.drop||[]).slice()),i.available=m.flatten((n.droppable||[]).slice()),i},element:function(t){if(t&&(t.jquery||1==t.nodeType))return t},flatten:function(t){return h.map(t,function(t){return t&&t.jquery?h.makeArray(t):t&&t.length?m.flatten(t):t})},textselect:function(t){h(document)[t?"unbind":"bind"]("selectstart",m.dontstart).css("MozUserSelect",t?"":"none"),document.unselectable=t?"off":"on"},dontstart:function(){return!1},callback:function(){}};m.callback.prototype={update:function(){i.drop&&this.available.length&&h.each(this.available,function(t){i.drop.locate(this,t)})}};var e=p.dispatch;p.dispatch=function(t){if(!(0<h.data(this,"suppress."+t.type)-(new Date).getTime()))return e.apply(this,arguments);h.removeData(this,"suppress."+t.type)};var o=p.fixHooks.touchstart=p.fixHooks.touchmove=p.fixHooks.touchend=p.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(n,t){if(t){var i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||null;i&&h.each(o.props,function(t,e){n[e]=i[e]})}return n}}}(jQuery)}.apply(t,arguments)})}(this),function(t){define("jquery.event.drop",["jquery"],function(){return function(){return function(p){p.fn.drop=function(t,e,n){var i="string"==typeof t?t:"",o=p.isFunction(t)?t:p.isFunction(e)?e:null;return 0!==i.indexOf("drop")&&(i="drop"+i),n=(t==o?e:n)||{},o?this.bind(i,n,o):this.trigger(i)},p.drop=function(t){t=t||{},f.multi=!0===t.multi?1/0:!1===t.multi?1:isNaN(t.multi)?f.multi:t.multi,f.delay=t.delay||f.delay,f.tolerance=p.isFunction(t.tolerance)?t.tolerance:null===t.tolerance?null:f.tolerance,f.mode=t.mode||f.mode||"intersect"};var m=p.event.special,f=p.event.special.drop={multi:1,delay:20,mode:"overlap",targets:[],datakey:"dropdata",noBubble:!0,add:function(t){p.data(this,f.datakey).related+=1},remove:function(){--p.data(this,f.datakey).related},setup:function(){if(!p.data(this,f.datakey)){p.data(this,f.datakey,{related:0,active:[],anyactive:0,winner:0,location:{}}),f.targets.push(this)}},teardown:function(){if(!(p.data(this,f.datakey)||{}).related){p.removeData(this,f.datakey);var e=this;f.targets=p.grep(f.targets,function(t){return t!==e})}},handler:function(t,e){var n;if(e)switch(t.type){case"mousedown":case"touchstart":n=p(f.targets),"string"==typeof e.drop&&(n=n.filter(e.drop)),n.each(function(){var t=p.data(this,f.datakey);t.active=[],t.anyactive=0,t.winner=0}),e.droppable=n,m.drag.hijack(t,"dropinit",e);break;case"mousemove":case"touchmove":f.event=t,f.timer||f.tolerate(e);break;case"mouseup":case"touchend":f.timer=clearTimeout(f.timer),e.propagates&&(m.drag.hijack(t,"drop",e),m.drag.hijack(t,"dropend",e))}},locate:function(t,e){var n=p.data(t,f.datakey),i=p(t),o=i.offset()||{},a=i.outerHeight(),r=i.outerWidth(),s={elem:t,width:r,height:a,top:o.top,left:o.left,right:o.left+r,bottom:o.top+a};return n&&(n.location=s,n.index=e,n.elem=t),s},contains:function(t,e){return(e[0]||e.left)>=t.left&&(e[0]||e.right)<=t.right&&(e[1]||e.top)>=t.top&&(e[1]||e.bottom)<=t.bottom},modes:{intersect:function(t,e,n){return this.contains(n,[t.pageX,t.pageY])?1e9:this.modes.overlap.apply(this,arguments)},overlap:function(t,e,n){return Math.max(0,Math.min(n.bottom,e.bottom)-Math.max(n.top,e.top))*Math.max(0,Math.min(n.right,e.right)-Math.max(n.left,e.left))},fit:function(t,e,n){return this.contains(n,e)?1:0},middle:function(t,e,n){return this.contains(n,[e.left+.5*e.width,e.top+.5*e.height])?1:0}},sort:function(t,e){return e.winner-t.winner||t.index-e.index},tolerate:function(t){var e,n,i,o,a,r,s,l,u=0,c=t.interactions.length,d=[f.event.pageX,f.event.pageY],h=f.tolerance||f.modes[f.mode];do{if(l=t.interactions[u]){if(!l)return;l.drop=[],a=[],r=l.droppable.length,h&&(i=f.locate(l.proxy)),e=0;do{if(s=l.droppable[e]){if(!(n=(o=p.data(s,f.datakey)).location))continue;o.winner=h?h.call(f,f.event,i,n):f.contains(n,d)?1:0,a.push(o)}}while(++e<r);for(a.sort(f.sort),e=0;(o=a[e])&&(o.winner&&l.drop.length<f.multi?(o.active[u]||o.anyactive||(!1!==m.drag.hijack(f.event,"dropstart",t,u,o.elem)[0]?(o.active[u]=1,o.anyactive+=1):o.winner=0),o.winner&&l.drop.push(o.elem)):o.active[u]&&1==o.anyactive&&(m.drag.hijack(f.event,"dropend",t,u,o.elem),o.active[u]=0,--o.anyactive)),++e<r;);}}while(++u<c);f.last&&d[0]==f.last.pageX&&d[1]==f.last.pageY?delete f.timer:f.timer=setTimeout(function(){f.tolerate(t)},f.delay),f.last=f.event}};m.dropinit=m.dropstart=m.dropend=f}(jQuery),$.drop}.apply(t,arguments)})}(this),define("mockup-patterns-select2",["jquery","pat-base","mockup-utils","select2","jquery.event.drag","jquery.event.drop"],function(s,t,l){"use strict";return t.extend({name:"select2",trigger:".pat-select2",parser:"mockup",defaults:{separator:","},initializeValues:function(){var a=this;a.options.initialValues&&(a.options.id=function(t){return t.id},a.options.initSelection=function(t,e){var n=[],i=t.val(),o=a.options.initialValues;"string"==typeof a.options.initialValues&&""!==a.options.initialValues&&("{"===a.options.initialValues[0]?o=JSON.parse(a.options.initialValues):(o={},s(a.options.initialValues.split(a.options.separator)).each(function(){var t=this.split(":"),e=s.trim(t[0]),n=s.trim(t[1]);o[e]=n}))),s(i.split(a.options.separator)).each(function(){var t=this;o[this]&&(t=o[this]),n.push({id:l.removeHTML(this),text:l.removeHTML(t)})}),e(n)})},initializeTags:function(){var t=this;t.options.tags&&"string"==typeof t.options.tags&&("["===t.options.tags.substr(0,1)?t.options.tags=JSON.parse(t.options.tags):t.options.tags=t.options.tags.split(t.options.separator)),t.options.tags&&!t.options.allowNewItems&&(t.options.data=s.map(t.options.tags,function(t,e){return{id:t,text:t}}),t.options.multiple=!0,delete t.options.tags)},initializeOrdering:function(){var n=this;if(n.options.orderable){var i=function(t,e){return t?t.text:void 0};n.options.formatSelection&&(i=n.options.formatSelection),n.options.formatSelection=function(t,e){return e.parents("li").drag("start",function(t,e){return s(this).addClass("select2-choice-dragging"),n.$el.select2("onSortStart"),s.drop({tolerance:function(t,e,n){var i=t.pageY>n.top+n.height/2;return s.data(n.elem,"drop+reorder",i?"insertAfter":"insertBefore"),this.contains(n,[t.pageX,t.pageY])}}),s(this).clone().addClass("dragging").css({opacity:.75,position:"absolute"}).appendTo(document.body)}).drag(function(t,e){s(e.proxy).css({top:e.offsetY,left:e.offsetX});var n=e.drop[0],i=s.data(n||{},"drop+reorder");!n||n==e.current&&i==e.method||(s(this)[i](n),e.current=n,e.method=i,e.update())}).drag("end",function(t,e){s(this).removeClass("select2-choice-dragging"),n.$el.select2("onSortEnd"),s(e.proxy).remove()}).drop("init",function(t,e){return this!=e.drag}),i(t,e)}}},initializeSelect2:function(){var t=this;t.options.formatResultCssClass=function(t){if(t.id)return"select2-option-"+t.id.toLowerCase().replace(/[ \:\)\(\[\]\{\}\_\+\=\&\*\%\#]/g,"-")},t.$el.select2(t.options),t.$select2=t.$el.parent().find(".select2-container"),t.$el.parent().off("close.plone-modal.patterns"),t.options.orderable&&t.$select2.addClass("select2-orderable")},init:function(){var a=this;if(a.options.allowNewItems=!a.options.hasOwnProperty("allowNewItems")||JSON.parse(a.options.allowNewItems),a.options.ajax||a.options.vocabularyUrl){a.options.vocabularyUrl&&(a.options.multiple=void 0===a.options.multiple||a.options.multiple,a.options.ajax=a.options.ajax||{},a.options.ajax.url=a.options.vocabularyUrl,a.options.initSelection=function(t,e){var n=[],i=t.val();s(i.split(a.options.separator)).each(function(){var t=l.removeHTML(this);n.push({id:t,text:t})}),e(n)});var r="";a.options.ajax=s.extend({quietMillis:300,data:function(t,e){return{query:r=t,page_limit:10,page:e}},results:function(t,e){var n=t.results;if(a.options.vocabularyUrl){var i=[];s.each(t.results,function(t,e){i.push(e.id)}),n=[];var o=""===r||0<=s.inArray(r,i);a.options.allowNewItems&&!o&&(r=l.removeHTML(r),n.push({id:r,text:r})),s.each(t.results,function(t,e){n.push(e)})}return{results:n}}},a.options.ajax)}else if(a.options.multiple&&a.$el.is("select")){var t=a.$el.val()||[],e=s.map(a.$el.find("option"),function(t){return{text:s(t).html(),id:t.value}}),n=s('<input type="hidden" />');n.val(t.join(a.options.separator)),n.attr("class",a.$el.attr("class")),n.attr("name",a.$el.attr("name")),n.attr("id",a.$el.attr("id")),a.$orig=a.$el,a.$el.replaceWith(n),a.$el=n,a.options.data=e}a.initializeValues(),a.initializeTags(),a.initializeOrdering(),a.initializeSelect2()}})}),function(t){"function"==typeof define&&define.amd?define("picker",["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):this.Picker=t(jQuery)}(function(f){var i=f(window),g=f(document),v=f(document.documentElement),_=null!=document.documentElement.style.transition;function y(i,t,e,n){if(!i)return y;function o(){return this.start()}var a=!1,s={id:i.id||"P"+Math.abs(~~(Math.random()*new Date))},l=e?f.extend(!0,{},e.defaults,n):n||{},r=f.extend({},y.klasses(),l.klass),u=f(i),c=o.prototype={constructor:o,$node:u,start:function(){return s&&s.start?c:(s.methods={},s.start=!0,s.open=!1,s.type=i.type,i.autofocus=i==M(),i.readOnly=!l.editable,i.id=i.id||s.id,"text"!=i.type&&(i.type="text"),c.component=new e(c,l),c.$root=f('<div class="'+r.picker+'" id="'+i.id+'_root" />'),w(c.$root[0],"hidden",!0),c.$holder=f(d()).appendTo(c.$root),h(),l.formatSubmit&&function(){var t;!0===l.hiddenName?(t=i.name,i.name=""):t=(t=["string"==typeof l.hiddenPrefix?l.hiddenPrefix:"","string"==typeof l.hiddenSuffix?l.hiddenSuffix:"_submit"])[0]+i.name+t[1];c._hidden=f('<input type=hidden name="'+t+'"'+(u.data("value")||i.value?' value="'+c.get("select",l.formatSubmit)+'"':"")+">")[0],u.on("change."+s.id,function(){c._hidden.value=i.value?c.get("select",l.formatSubmit):""})}(),function(){u.data(t,c).addClass(r.input).val(u.data("value")?c.get("select",l.format):i.value),l.editable||u.on("focus."+s.id+" click."+s.id,function(t){t.preventDefault(),c.open()}).on("keydown."+s.id,m);w(i,{haspopup:!0,expanded:!1,readonly:!1,owns:i.id+"_root"})}(),l.containerHidden?f(l.containerHidden).append(c._hidden):u.after(c._hidden),l.container?f(l.container).append(c.$root):u.after(c.$root),c.on({start:c.component.onStart,render:c.component.onRender,stop:c.component.onStop,open:c.component.onOpen,close:c.component.onClose,set:c.component.onSet}).on({start:l.onStart,render:l.onRender,stop:l.onStop,open:l.onOpen,close:l.onClose,set:l.onSet}),a=function(t){var e,n="position";t.currentStyle?e=t.currentStyle[n]:window.getComputedStyle&&(e=getComputedStyle(t)[n]);return"fixed"==e}(c.$holder[0]),i.autofocus&&c.open(),c.trigger("start").trigger("render"))},render:function(t){return t?(c.$holder=f(d()),h(),c.$root.html(c.$holder)):c.$root.find("."+r.box).html(c.component.nodes(s.open)),c.trigger("render")},stop:function(){return s.start&&(c.close(),c._hidden&&c._hidden.parentNode.removeChild(c._hidden),c.$root.remove(),u.removeClass(r.input).removeData(t),setTimeout(function(){u.off("."+s.id)},0),i.type=s.type,i.readOnly=!1,c.trigger("stop"),s.methods={},s.start=!1),c},open:function(t){return s.open?c:(u.addClass(r.active),w(i,"expanded",!0),setTimeout(function(){c.$root.addClass(r.opened),w(c.$root[0],"hidden",!1)},0),!1!==t&&(s.open=!0,a&&v.css("overflow","hidden").css("padding-right","+="+b()),a&&_?c.$holder.find("."+r.frame).one("transitionend",function(){c.$holder[0].focus()}):c.$holder[0].focus(),g.on("click."+s.id+" focusin."+s.id,function(t){var e=t.target;e!=i&&e!=document&&3!=t.which&&c.close(e===c.$holder[0])}).on("keydown."+s.id,function(t){var e=t.keyCode,n=c.component.key[e],i=t.target;27==e?c.close(!0):i!=c.$holder[0]||!n&&13!=e?f.contains(c.$root[0],i)&&13==e&&(t.preventDefault(),i.click()):(t.preventDefault(),n?y._.trigger(c.component.key.go,c,[y._.trigger(n)]):c.$root.find("."+r.highlighted).hasClass(r.disabled)||(c.set("select",c.component.item.highlight),l.closeOnSelect&&c.close(!0)))})),c.trigger("open"))},close:function(t){return t&&(l.editable?i.focus():(c.$holder.off("focus.toOpen").focus(),setTimeout(function(){c.$holder.on("focus.toOpen",p)},0))),u.removeClass(r.active),w(i,"expanded",!1),setTimeout(function(){c.$root.removeClass(r.opened+" "+r.focused),w(c.$root[0],"hidden",!0)},0),s.open?(s.open=!1,a&&v.css("overflow","").css("padding-right","-="+b()),g.off("."+s.id),c.trigger("close")):c},clear:function(t){return c.set("clear",null,t)},set:function(t,e,n){var i,o,a=f.isPlainObject(t),r=a?t:{};if(n=a&&f.isPlainObject(e)?e:n||{},t){for(i in a||(r[t]=e),r)o=r[i],i in c.component.item&&(void 0===o&&(o=null),c.component.set(i,o,n)),"select"!=i&&"clear"!=i||u.val("clear"==i?"":c.get(i,l.format)).trigger("change");c.render()}return n.muted?c:c.trigger("set",r)},get:function(t,e){if(null!=s[t=t||"value"])return s[t];if("valueSubmit"==t){if(c._hidden)return c._hidden.value;t="value"}if("value"==t)return i.value;if(t in c.component.item){if("string"!=typeof e)return c.component.get(t);var n=c.component.get(t);return n?y._.trigger(c.component.formats.toString,c.component,[e,n]):""}},on:function(t,e,n){var i,o,a=f.isPlainObject(t),r=a?t:{};if(t)for(i in a||(r[t]=e),r)o=r[i],n&&(i="_"+i),s.methods[i]=s.methods[i]||[],s.methods[i].push(o);return c},off:function(){var t,e,n=arguments;for(t=0,namesCount=n.length;t<namesCount;t+=1)(e=n[t])in s.methods&&delete s.methods[e];return c},trigger:function(t,n){function e(t){var e=s.methods[t];e&&e.map(function(t){y._.trigger(t,c,[n])})}return e("_"+t),e(t),c}};function d(){return y._.node("div",y._.node("div",y._.node("div",y._.node("div",c.component.nodes(s.open),r.box),r.wrap),r.frame),r.holder,'tabindex="-1"')}function h(){c.$holder.on({keydown:m,"focus.toOpen":p,blur:function(){u.removeClass(r.target)},focusin:function(t){c.$root.removeClass(r.focused),t.stopPropagation()},"mousedown click":function(t){var e=t.target;e!=c.$holder[0]&&(t.stopPropagation(),"mousedown"!=t.type||f(e).is("input, select, textarea, button, option")||(t.preventDefault(),c.$holder[0].focus()))}}).on("click","[data-pick], [data-nav], [data-clear], [data-close]",function(){var t=f(this),e=t.data(),n=t.hasClass(r.navDisabled)||t.hasClass(r.disabled),i=M();i=i&&(i.type||i.href),(n||i&&!f.contains(c.$root[0],i))&&c.$holder[0].focus(),!n&&e.nav?c.set("highlight",c.component.item.highlight,{nav:e.nav}):!n&&"pick"in e?(c.set("select",e.pick),l.closeOnSelect&&c.close(!0)):e.clear?(c.clear(),l.closeOnClear&&c.close(!0)):e.close&&c.close(!0)})}function p(t){t.stopPropagation(),u.addClass(r.target),c.$root.addClass(r.focused),c.open()}function m(t){var e=t.keyCode,n=/^(8|46)$/.test(e);if(27==e)return c.close(!0),!1;(32==e||n||!s.open&&c.component.key[e])&&(t.preventDefault(),t.stopPropagation(),n?c.clear().close():c.open())}return new o}function b(){if(v.height()<=i.height())return 0;var t=f('<div style="visibility:hidden;width:100px" />').appendTo("body"),e=t[0].offsetWidth;t.css("overflow","scroll");var n=f('<div style="width:100%" />').appendTo(t)[0].offsetWidth;return t.remove(),e-n}function w(t,e,n){if(f.isPlainObject(e))for(var i in e)o(t,i,e[i]);else o(t,e,n)}function o(t,e,n){t.setAttribute(("role"==e?"":"aria-")+e,n)}function M(){try{return document.activeElement}catch(t){}}return y.klasses=function(t){return{picker:t=t||"picker",opened:t+"--opened",focused:t+"--focused",input:t+"__input",active:t+"__input--active",target:t+"__input--target",holder:t+"__holder",frame:t+"__frame",wrap:t+"__wrap",box:t+"__box"}},y._={group:function(t){for(var e,n="",i=y._.trigger(t.min,t);i<=y._.trigger(t.max,t,[i]);i+=t.i)e=y._.trigger(t.item,t,[i]),n+=y._.node(t.node,e[0],e[1],e[2]);return n},node:function(t,e,n,i){return e?"<"+t+(n=n?' class="'+n+'"':"")+(i=i?" "+i:"")+">"+(e=f.isArray(e)?e.join(""):e)+"</"+t+">":""},lead:function(t){return(t<10?"0":"")+t},trigger:function(t,e,n){return"function"==typeof t?t.apply(e,n||[]):t},digits:function(t){return/\d/.test(t[1])?2:1},isDate:function(t){return-1<{}.toString.call(t).indexOf("Date")&&this.isInteger(t.getDate())},isInteger:function(t){return-1<{}.toString.call(t).indexOf("Number")&&t%1==0},ariaAttr:function(t,e){f.isPlainObject(t)||(t={attribute:e});for(var n in e="",t){var i=("role"==n?"":"aria-")+n,o=t[n];e+=null==o?"":i+'="'+t[n]+'"'}return e}},y.extend=function(i,o){f.fn[i]=function(t,e){var n=this.data(i);return"picker"==t?n:n&&"string"==typeof t?y._.trigger(n[t],n,[e]):this.each(function(){f(this).data(i)||new y(this,i,o,t)})},f.fn[i].defaults=o.defaults},y}),function(t){"function"==typeof define&&define.amd?define("picker.date",["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,m){var e,v=t._;function n(e,n){function t(){return a.currentStyle?"rtl"==a.currentStyle.direction:"rtl"==getComputedStyle(e.$root[0]).direction}var i,o=this,a=e.$node[0],r=a.value,s=e.$node.data("value"),l=s||r,u=s?n.formatSubmit:n.format;o.settings=n,o.$node=e.$node,o.queue={min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse navigate create validate",view:"parse create validate viewset",disable:"deactivate",enable:"activate"},o.item={},o.item.clear=null,o.item.disable=(n.disable||[]).slice(0),o.item.enable=-(!0===(i=o.item.disable)[0]?i.shift():-1),o.set("min",n.min).set("max",n.max).set("now"),l?o.set("select",l,{format:u,defaultValue:!0}):o.set("select",null).set("highlight",o.item.now),o.key={40:7,38:-7,39:function(){return t()?-1:1},37:function(){return t()?1:-1},go:function(t){var e=o.item.highlight,n=new Date(e.year,e.month,e.date+t);o.set("highlight",n,{interval:t}),this.render()}},e.on("render",function(){e.$root.find("."+n.klass.selectMonth).on("change",function(){var t=this.value;t&&(e.set("highlight",[e.get("view").year,t,e.get("highlight").date]),e.$root.find("."+n.klass.selectMonth).trigger("focus"))}),e.$root.find("."+n.klass.selectYear).on("change",function(){var t=this.value;t&&(e.set("highlight",[t,e.get("view").month,e.get("highlight").date]),e.$root.find("."+n.klass.selectYear).trigger("focus"))})},1).on("open",function(){var t="";o.disabled(o.get("now"))&&(t=":not(."+n.klass.buttonToday+")"),e.$root.find("button"+t+", select").attr("disabled",!1)},1).on("close",function(){e.$root.find("button, select").attr("disabled",!0)},1)}function i(t,e,n){var i=t.match(/[^\x00-\x7F]+|\w+/)[0];return n.mm||n.m||(n.m=e.indexOf(i)+1),i.length}function o(t){return t.match(/\w+/)[0].length}n.prototype.set=function(e,n,i){var o=this,t=o.item;return null===n?("clear"==e&&(e="select"),t[e]=n):(t["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(t){return n=o[t](e,n,i)}).pop(),"select"==e?o.set("highlight",t.select,i):"highlight"==e?o.set("view",t.highlight,i):e.match(/^(flip|min|max|disable|enable)$/)&&(t.select&&o.disabled(t.select)&&o.set("select",t.select,i),t.highlight&&o.disabled(t.highlight)&&o.set("highlight",t.highlight,i))),o},n.prototype.get=function(t){return this.item[t]},n.prototype.create=function(t,e,n){var i;return(e=void 0===e?t:e)==-1/0||e==1/0?i=e:e=m.isPlainObject(e)&&v.isInteger(e.pick)?e.obj:m.isArray(e)?(e=new Date(e[0],e[1],e[2]),v.isDate(e)?e:this.create().obj):v.isInteger(e)||v.isDate(e)?this.normalize(new Date(e),n):this.now(t,e,n),{year:i||e.getFullYear(),month:i||e.getMonth(),date:i||e.getDate(),day:i||e.getDay(),obj:i||e,pick:i||e.getTime()}},n.prototype.createRange=function(t,e){function n(t){return!0===t||m.isArray(t)||v.isDate(t)?i.create(t):t}var i=this;return v.isInteger(t)||(t=n(t)),v.isInteger(e)||(e=n(e)),v.isInteger(t)&&m.isPlainObject(e)?t=[e.year,e.month,e.date+t]:v.isInteger(e)&&m.isPlainObject(t)&&(e=[t.year,t.month,t.date+e]),{from:n(t),to:n(e)}},n.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},n.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},n.prototype.now=function(t,e,n){return e=new Date,n&&n.rel&&e.setDate(e.getDate()+n.rel),this.normalize(e,n)},n.prototype.navigate=function(t,e,n){var i,o,a,r,s=m.isArray(e),l=m.isPlainObject(e),u=this.item.view;if(s||l){for(r=l?(o=e.year,a=e.month,e.date):(o=+e[0],a=+e[1],+e[2]),n&&n.nav&&u&&u.month!==a&&(o=u.year,a=u.month),o=(i=new Date(o,a+(n&&n.nav?n.nav:0),1)).getFullYear(),a=i.getMonth();new Date(o,a,r).getMonth()!==a;)--r;e=[o,a,r]}return e},n.prototype.normalize=function(t){return t.setHours(0,0,0,0),t},n.prototype.measure=function(t,e){return e?"string"==typeof e?e=this.parse(t,e):v.isInteger(e)&&(e=this.now(t,e,{rel:e})):e="min"==t?-1/0:1/0,e},n.prototype.viewset=function(t,e){return this.create([e.year,e.month,1])},n.prototype.validate=function(t,n,e){var i,o,a,r,s=this,l=n,u=e&&e.interval?e.interval:1,c=-1===s.item.enable,d=s.item.min,h=s.item.max,p=c&&s.item.disable.filter(function(t){if(m.isArray(t)){var e=s.create(t).pick;e<n.pick?i=!0:e>n.pick&&(o=!0)}return v.isInteger(t)}).length;if((!e||!e.nav&&!e.defaultValue)&&(!c&&s.disabled(n)||c&&s.disabled(n)&&(p||i||o)||!c&&(n.pick<=d.pick||n.pick>=h.pick)))for(c&&!p&&(!o&&0<u||!i&&u<0)&&(u*=-1);s.disabled(n)&&(1<Math.abs(u)&&(n.month<l.month||n.month>l.month)&&(n=l,u=0<u?1:-1),n.pick<=d.pick?(a=!0,u=1,n=s.create([d.year,d.month,d.date+(n.pick===d.pick?0:-1)])):n.pick>=h.pick&&(r=!0,u=-1,n=s.create([h.year,h.month,h.date+(n.pick===h.pick?0:1)])),!a||!r);)n=s.create([n.year,n.month,n.date+u]);return n},n.prototype.disabled=function(e){var n=this,t=n.item.disable.filter(function(t){return v.isInteger(t)?e.day===(n.settings.firstDay?t:t-1)%7:m.isArray(t)||v.isDate(t)?e.pick===n.create(t).pick:m.isPlainObject(t)?n.withinRange(t,e):void 0});return t=t.length&&!t.filter(function(t){return m.isArray(t)&&"inverted"==t[3]||m.isPlainObject(t)&&t.inverted}).length,-1===n.item.enable?!t:t||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.parse=function(t,i,e){var o=this,a={};return i&&"string"==typeof i?(e&&e.format||((e=e||{}).format=o.settings.format),o.formats.toArray(e.format).map(function(t){var e=o.formats[t],n=e?v.trigger(e,o,[i,a]):t.replace(/^!/,"").length;e&&(a[t]=i.substr(0,n)),i=i.substr(n)}),[a.yyyy||a.yy,(a.mm||a.m)-1,a.dd||a.d]):i},n.prototype.formats={d:function(t,e){return t?v.digits(t):e.date},dd:function(t,e){return t?2:v.lead(e.date)},ddd:function(t,e){return t?o(t):this.settings.weekdaysShort[e.day]},dddd:function(t,e){return t?o(t):this.settings.weekdaysFull[e.day]},m:function(t,e){return t?v.digits(t):e.month+1},mm:function(t,e){return t?2:v.lead(e.month+1)},mmm:function(t,e){var n=this.settings.monthsShort;return t?i(t,n,e):n[e.month]},mmmm:function(t,e){var n=this.settings.monthsFull;return t?i(t,n,e):n[e.month]},yy:function(t,e){return t?2:(""+e.year).slice(2)},yyyy:function(t,e){return t?4:e.year},toArray:function(t){return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g)},toString:function(t,e){var n=this;return n.formats.toArray(t).map(function(t){return v.trigger(n.formats[t],n,[0,e])||t.replace(/^!/,"")}).join("")}},n.prototype.isDateExact=function(t,e){return v.isInteger(t)&&v.isInteger(e)||"boolean"==typeof t&&"boolean"==typeof e?t===e:(v.isDate(t)||m.isArray(t))&&(v.isDate(e)||m.isArray(e))?this.create(t).pick===this.create(e).pick:!(!m.isPlainObject(t)||!m.isPlainObject(e))&&(this.isDateExact(t.from,e.from)&&this.isDateExact(t.to,e.to))},n.prototype.isDateOverlap=function(t,e){var n=this.settings.firstDay?1:0;return v.isInteger(t)&&(v.isDate(e)||m.isArray(e))?(t=t%7+n)===this.create(e).day+1:v.isInteger(e)&&(v.isDate(t)||m.isArray(t))?(e=e%7+n)===this.create(t).day+1:!(!m.isPlainObject(t)||!m.isPlainObject(e))&&this.overlapRanges(t,e)},n.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},n.prototype.deactivate=function(t,e){var i=this,o=i.item.disable.slice(0);return"flip"==e?i.flipEnable():!1===e?(i.flipEnable(1),o=[]):!0===e?(i.flipEnable(-1),o=[]):e.map(function(t){for(var e,n=0;n<o.length;n+=1)if(i.isDateExact(t,o[n])){e=!0;break}e||(v.isInteger(t)||v.isDate(t)||m.isArray(t)||m.isPlainObject(t)&&t.from&&t.to)&&o.push(t)}),o},n.prototype.activate=function(t,e){var a=this,r=a.item.disable,s=r.length;return"flip"==e?a.flipEnable():!0===e?(a.flipEnable(1),r=[]):!1===e?(a.flipEnable(-1),r=[]):e.map(function(t){var e,n,i,o;for(i=0;i<s;i+=1){if(n=r[i],a.isDateExact(n,t)){e=r[i]=null,o=!0;break}if(a.isDateOverlap(n,t)){m.isPlainObject(t)?(t.inverted=!0,e=t):m.isArray(t)?(e=t)[3]||e.push("inverted"):v.isDate(t)&&(e=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(e)for(i=0;i<s;i+=1)if(a.isDateExact(r[i],t)){r[i]=null;break}if(o)for(i=0;i<s;i+=1)if(a.isDateOverlap(r[i],t)){r[i]=null;break}e&&r.push(e)}),r.filter(function(t){return null!=t})},n.prototype.nodes=function(l){function t(t){return v.node("div"," ",c.klass["nav"+(t?"Next":"Prev")]+(t&&h.year>=f.year&&h.month>=f.month||!t&&h.year<=m.year&&h.month<=m.month?" "+c.klass.navDisabled:""),"data-nav="+(t||-1)+" "+v.ariaAttr({role:"button",controls:u.$node[0].id+"_table"})+' title="'+(t?c.labelMonthNext:c.labelMonthPrev)+'"')}function e(){var e=c.showMonthsShort?c.monthsShort:c.monthsFull;return c.selectMonths?v.node("select",v.group({min:0,max:11,i:1,node:"option",item:function(t){return[e[t],0,"value="+t+(h.month==t?" selected":"")+(h.year==m.year&&t<m.month||h.year==f.year&&t>f.month?" disabled":"")]}}),c.klass.selectMonth,(l?"":"disabled")+" "+v.ariaAttr({controls:u.$node[0].id+"_table"})+' title="'+c.labelMonthSelect+'"'):v.node("div",e[h.month],c.klass.month)}function n(){var e=h.year,t=!0===c.selectYears?5:~~(c.selectYears/2);if(t){var n=m.year,i=f.year,o=e-t,a=e+t;if(o<n&&(a+=n-o,o=n),i<a){var r=o-n,s=a-i;o-=s<r?s:r,a=i}return v.node("select",v.group({min:o,max:a,i:1,node:"option",item:function(t){return[t,0,"value="+t+(e==t?" selected":"")]}}),c.klass.selectYear,(l?"":"disabled")+" "+v.ariaAttr({controls:u.$node[0].id+"_table"})+' title="'+c.labelYearSelect+'"')}return v.node("div",e,c.klass.year)}var i,o,u=this,c=u.settings,a=u.item,r=a.now,s=a.select,d=a.highlight,h=a.view,p=a.disable,m=a.min,f=a.max,g=(i=(c.showWeekdaysFull?c.weekdaysFull:c.weekdaysShort).slice(0),o=c.weekdaysFull.slice(0),c.firstDay&&(i.push(i.shift()),o.push(o.shift())),v.node("thead",v.node("tr",v.group({min:0,max:6,i:1,node:"th",item:function(t){return[i[t],c.klass.weekdays,'scope=col title="'+o[t]+'"']}}))));return v.node("div",(c.selectYears?n()+e():e()+n())+t()+t(1),c.klass.header)+v.node("table",g+v.node("tbody",v.group({min:0,max:5,i:1,node:"tr",item:function(t){var e=c.firstDay&&0===u.create([h.year,h.month,1]).day?-7:0;return[v.group({min:7*t-h.day+e+1,max:function(){return this.min+7-1},i:1,node:"td",item:function(t){t=u.create([h.year,h.month,t+(c.firstDay?1:0)]);var e,n=s&&s.pick==t.pick,i=d&&d.pick==t.pick,o=p&&u.disabled(t)||t.pick<m.pick||t.pick>f.pick,a=v.trigger(u.formats.toString,u,[c.format,t]);return[v.node("div",t.date,((e=[c.klass.day]).push(h.month==t.month?c.klass.infocus:c.klass.outfocus),r.pick==t.pick&&e.push(c.klass.now),n&&e.push(c.klass.selected),i&&e.push(c.klass.highlighted),o&&e.push(c.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+v.ariaAttr({role:"gridcell",label:a,selected:!(!n||u.$node.val()!==a)||null,activedescendant:!!i||null,disabled:!!o||null})),"",v.ariaAttr({role:"presentation"})]}})]}})),c.klass.table,'id="'+u.$node[0].id+'_table" '+v.ariaAttr({role:"grid",controls:u.$node[0].id,readonly:!0}))+v.node("div",v.node("button",c.today,c.klass.buttonToday,"type=button data-pick="+r.pick+(l&&!u.disabled(r)?"":" disabled")+" "+v.ariaAttr({controls:u.$node[0].id}))+v.node("button",c.clear,c.klass.buttonClear,"type=button data-clear=1"+(l?"":" disabled")+" "+v.ariaAttr({controls:u.$node[0].id}))+v.node("button",c.close,c.klass.buttonClose,"type=button data-close=true "+(l?"":" disabled")+" "+v.ariaAttr({controls:u.$node[0].id})),c.klass.footer)},n.defaults={labelMonthNext:"Next month",labelMonthPrev:"Previous month",labelMonthSelect:"Select a month",labelYearSelect:"Select a year",monthsFull:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdaysFull:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],today:"Today",clear:"Clear",close:"Close",closeOnSelect:!0,closeOnClear:!0,format:"d mmmm, yyyy",klass:{table:(e=t.klasses().picker+"__")+"table",header:e+"header",navPrev:e+"nav--prev",navNext:e+"nav--next",navDisabled:e+"nav--disabled",month:e+"month",year:e+"year",selectMonth:e+"select--month",selectYear:e+"select--year",weekdays:e+"weekday",day:e+"day",disabled:e+"day--disabled",selected:e+"day--selected",highlighted:e+"day--highlighted",now:e+"day--today",infocus:e+"day--infocus",outfocus:e+"day--outfocus",footer:e+"footer",buttonClear:e+"button--clear",buttonToday:e+"button--today",buttonClose:e+"button--close"}},t.extend("pickadate",n)}),function(t){"function"==typeof define&&define.amd?define("picker.time",["picker","jquery"],t):"object"==typeof exports?module.exports=t(require("./picker.js"),require("jquery")):t(Picker,jQuery)}(function(t,l){var e,o=1440,p=t._;function n(o,a){var t,e=this,n=o.$node[0].value,i=o.$node.data("value"),r=i||n,s=i?a.formatSubmit:a.format;e.settings=a,e.$node=o.$node,e.queue={interval:"i",min:"measure create",max:"measure create",now:"now create",select:"parse create validate",highlight:"parse create validate",view:"parse create validate",disable:"deactivate",enable:"activate"},e.item={},e.item.clear=null,e.item.interval=a.interval||30,e.item.disable=(a.disable||[]).slice(0),e.item.enable=-(!0===(t=e.item.disable)[0]?t.shift():-1),e.set("min",a.min).set("max",a.max).set("now"),r?e.set("select",r,{format:s}):e.set("select",null).set("highlight",e.item.now),e.key={40:1,38:-1,39:1,37:-1,go:function(t){e.set("highlight",e.item.highlight.pick+t*e.item.interval,{interval:t*e.item.interval}),this.render()}},o.on("render",function(){function t(e){return["webkit","moz","ms","o",""].map(function(t){return(t?"-"+t+"-":"")+e})}function e(e,n){t("transform").map(function(t){e.css(t,n)}),t("transition").map(function(t){e.css(t,n)})}var n=o.$root.children(),i=n.find("."+a.klass.viewset);i.length&&(e(n,"none"),n[0].scrollTop=~~i.position().top-2*i[0].clientHeight,e(n,""))},1).on("open",function(){o.$root.find("button").attr("disabled",!1)},1).on("close",function(){o.$root.find("button").attr("disabled",!0)},1)}n.prototype.set=function(e,n,i){var o=this,t=o.item;return null===n?("clear"==e&&(e="select"),t[e]=n):(t["enable"==e?"disable":"flip"==e?"enable":e]=o.queue[e].split(" ").map(function(t){return n=o[t](e,n,i)}).pop(),"select"==e?o.set("highlight",t.select,i):"highlight"==e?o.set("view",t.highlight,i):"interval"==e?o.set("min",t.min,i).set("max",t.max,i):e.match(/^(flip|min|max|disable|enable)$/)&&(t.select&&o.disabled(t.select)&&o.set("select",n,i),t.highlight&&o.disabled(t.highlight)&&o.set("highlight",n,i),"min"==e&&o.set("max",t.max,i))),o},n.prototype.get=function(t){return this.item[t]},n.prototype.create=function(t,e,n){var i=this;return e=void 0===e?t:e,p.isDate(e)&&(e=[e.getHours(),e.getMinutes()]),l.isPlainObject(e)&&p.isInteger(e.pick)?e=e.pick:l.isArray(e)?e=60*e[0]+ +e[1]:p.isInteger(e)||(e=i.now(t,e,n)),"max"==t&&e<i.item.min.pick&&(e+=o),"min"!=t&&"max"!=t&&(e-i.item.min.pick)%i.item.interval!=0&&(e+=i.item.interval),{hour:~~(24+(e=i.normalize(t,e,n))/60)%24,mins:(60+e%60)%60,time:(o+e)%o,pick:e%o}},n.prototype.createRange=function(t,e){function n(t){return!0===t||l.isArray(t)||p.isDate(t)?i.create(t):t}var i=this;return p.isInteger(t)||(t=n(t)),p.isInteger(e)||(e=n(e)),p.isInteger(t)&&l.isPlainObject(e)?t=[e.hour,e.mins+t*i.settings.interval]:p.isInteger(e)&&l.isPlainObject(t)&&(e=[t.hour,t.mins+e*i.settings.interval]),{from:n(t),to:n(e)}},n.prototype.withinRange=function(t,e){return t=this.createRange(t.from,t.to),e.pick>=t.from.pick&&e.pick<=t.to.pick},n.prototype.overlapRanges=function(t,e){var n=this;return t=n.createRange(t.from,t.to),e=n.createRange(e.from,e.to),n.withinRange(t,e.from)||n.withinRange(t,e.to)||n.withinRange(e,t.from)||n.withinRange(e,t.to)},n.prototype.now=function(t,e){var n,i=this.item.interval,o=new Date,a=60*o.getHours()+o.getMinutes();return a-=a%i,n=e<0&&i*e+a<=-i,a+="min"==t&&n?0:i,p.isInteger(e)&&(a+=i*(n&&"max"!=t?e+1:e)),a},n.prototype.normalize=function(t,e){var n=this.item.interval,i=this.item.min&&this.item.min.pick||0;return e-="min"==t?0:(e-i)%n},n.prototype.measure=function(t,e,n){return"string"==typeof(e=e||("min"==t?[0,0]:[23,59]))?e=this.parse(t,e):!0===e||p.isInteger(e)?e=this.now(t,e,n):l.isPlainObject(e)&&p.isInteger(e.pick)&&(e=this.normalize(t,e.pick,n)),e},n.prototype.validate=function(t,e,n){var i=this,o=n&&n.interval?n.interval:i.item.interval;return i.disabled(e)&&(e=i.shift(e,o)),e=i.scope(e),i.disabled(e)&&(e=i.shift(e,-1*o)),e},n.prototype.disabled=function(e){var n=this,t=n.item.disable.filter(function(t){return p.isInteger(t)?e.hour==t:l.isArray(t)||p.isDate(t)?e.pick==n.create(t).pick:l.isPlainObject(t)?n.withinRange(t,e):void 0});return t=t.length&&!t.filter(function(t){return l.isArray(t)&&"inverted"==t[2]||l.isPlainObject(t)&&t.inverted}).length,-1===n.item.enable?!t:t||e.pick<n.item.min.pick||e.pick>n.item.max.pick},n.prototype.shift=function(t,e){var n=this,i=n.item.min.pick,o=n.item.max.pick;for(e=e||n.item.interval;n.disabled(t)&&!((t=n.create(t.pick+=e)).pick<=i||t.pick>=o););return t},n.prototype.scope=function(t){var e=this.item.min.pick,n=this.item.max.pick;return this.create(t.pick>n?n:t.pick<e?e:t)},n.prototype.parse=function(t,o,e){var n,i,a,r,s,l=this,u={};if(!o||"string"!=typeof o)return o;for(r in e&&e.format||((e=e||{}).format=l.settings.format),l.formats.toArray(e.format).map(function(t){var e,n=l.formats[t],i=n?p.trigger(n,l,[o,u]):t.replace(/^!/,"").length;n&&(e=o.substr(0,i),u[t]=e.match(/^\d+$/)?+e:e),o=o.substr(i)}),u)s=u[r],p.isInteger(s)?r.match(/^(h|hh)$/i)?(n=s,"h"!=r&&"hh"!=r||(n%=12)):"i"==r&&(i=s):r.match(/^a$/i)&&s.match(/^p/i)&&("h"in u||"hh"in u)&&(a=!0);return 60*(a?n+12:n)+i},n.prototype.formats={h:function(t,e){return t?p.digits(t):e.hour%12||12},hh:function(t,e){return t?2:p.lead(e.hour%12||12)},H:function(t,e){return t?p.digits(t):""+e.hour%24},HH:function(t,e){return t?p.digits(t):p.lead(e.hour%24)},i:function(t,e){return t?2:p.lead(e.mins)},a:function(t,e){return t?4:e.time%o<720?"a.m.":"p.m."},A:function(t,e){return t?2:e.time%o<720?"AM":"PM"},toArray:function(t){return t.split(/(h{1,2}|H{1,2}|i|a|A|!.)/g)},toString:function(t,e){var n=this;return n.formats.toArray(t).map(function(t){return p.trigger(n.formats[t],n,[0,e])||t.replace(/^!/,"")}).join("")}},n.prototype.isTimeExact=function(t,e){return p.isInteger(t)&&p.isInteger(e)||"boolean"==typeof t&&"boolean"==typeof e?t===e:(p.isDate(t)||l.isArray(t))&&(p.isDate(e)||l.isArray(e))?this.create(t).pick===this.create(e).pick:!(!l.isPlainObject(t)||!l.isPlainObject(e))&&(this.isTimeExact(t.from,e.from)&&this.isTimeExact(t.to,e.to))},n.prototype.isTimeOverlap=function(t,e){return p.isInteger(t)&&(p.isDate(e)||l.isArray(e))?t===this.create(e).hour:p.isInteger(e)&&(p.isDate(t)||l.isArray(t))?e===this.create(t).hour:!(!l.isPlainObject(t)||!l.isPlainObject(e))&&this.overlapRanges(t,e)},n.prototype.flipEnable=function(t){var e=this.item;e.enable=t||(-1==e.enable?1:-1)},n.prototype.deactivate=function(t,e){var i=this,o=i.item.disable.slice(0);return"flip"==e?i.flipEnable():!1===e?(i.flipEnable(1),o=[]):!0===e?(i.flipEnable(-1),o=[]):e.map(function(t){for(var e,n=0;n<o.length;n+=1)if(i.isTimeExact(t,o[n])){e=!0;break}e||(p.isInteger(t)||p.isDate(t)||l.isArray(t)||l.isPlainObject(t)&&t.from&&t.to)&&o.push(t)}),o},n.prototype.activate=function(t,e){var a=this,r=a.item.disable,s=r.length;return"flip"==e?a.flipEnable():!0===e?(a.flipEnable(1),r=[]):!1===e?(a.flipEnable(-1),r=[]):e.map(function(t){var e,n,i,o;for(i=0;i<s;i+=1){if(n=r[i],a.isTimeExact(n,t)){e=r[i]=null,o=!0;break}if(a.isTimeOverlap(n,t)){l.isPlainObject(t)?(t.inverted=!0,e=t):l.isArray(t)?(e=t)[2]||e.push("inverted"):p.isDate(t)&&(e=[t.getFullYear(),t.getMonth(),t.getDate(),"inverted"]);break}}if(e)for(i=0;i<s;i+=1)if(a.isTimeExact(r[i],t)){r[i]=null;break}if(o)for(i=0;i<s;i+=1)if(a.isTimeOverlap(r[i],t)){r[i]=null;break}e&&r.push(e)}),r.filter(function(t){return null!=t})},n.prototype.i=function(t,e){return p.isInteger(e)&&0<e?e:this.item.interval},n.prototype.nodes=function(t){var s=this,l=s.settings,u=s.item.select,c=s.item.highlight,d=s.item.view,h=s.item.disable;return p.node("ul",p.group({min:s.item.min.pick,max:s.item.max.pick,i:s.item.interval,node:"li",item:function(t){var e,n=(t=s.create(t)).pick,i=u&&u.pick==n,o=c&&c.pick==n,a=h&&s.disabled(t),r=p.trigger(s.formats.toString,s,[l.format,t]);return[p.trigger(s.formats.toString,s,[p.trigger(l.formatLabel,s,[t])||l.format,t]),(e=[l.klass.listItem],i&&e.push(l.klass.selected),o&&e.push(l.klass.highlighted),d&&d.pick==n&&e.push(l.klass.viewset),a&&e.push(l.klass.disabled),e.join(" ")),"data-pick="+t.pick+" "+p.ariaAttr({role:"option",label:r,selected:!(!i||s.$node.val()!==r)||null,activedescendant:!!o||null,disabled:!!a||null})]}})+p.node("li",p.node("button",l.clear,l.klass.buttonClear,"type=button data-clear=1"+(t?"":" disabled")+" "+p.ariaAttr({controls:s.$node[0].id})),"",p.ariaAttr({role:"presentation"})),l.klass.list,p.ariaAttr({role:"listbox",controls:s.$node[0].id}))},n.defaults={clear:"Clear",format:"h:i A",interval:30,closeOnSelect:!0,closeOnClear:!0,klass:{picker:(e=t.klasses().picker)+" "+e+"--time",holder:e+"__holder",list:e+"__list",listItem:e+"__list-item",disabled:e+"__list-item--disabled",selected:e+"__list-item--selected",highlighted:e+"__list-item--highlighted",viewset:e+"__list-item--viewset",now:e+"__list-item--now",buttonClear:e+"__button--clear"}},t.extend("pickatime",n)}),define("mockup-patterns-pickadate",["jquery","pat-base","mockup-utils","translate","picker","picker.date","picker.time","mockup-patterns-select2"],function(r,t,s,e){"use strict";return t.extend({name:"pickadate",trigger:".pat-pickadate",parser:"mockup",defaults:{separator:" ",date:{selectYears:!0,selectMonths:!0,formatSubmit:"yyyy-mm-dd",format:"yyyy-mm-dd",labelMonthNext:e("Next month"),labelMonthPrev:e("Previous month"),labelMonthSelect:e("Select a month"),labelYearSelect:e("Select a year"),clear:!1,close:!1,today:!1},time:{clear:!1},today:e("Today"),clear:e("Clear"),timezone:null,autoSetTimeOnDateChange:"+[0,0]",classWrapperName:"pattern-pickadate-wrapper",classSeparatorName:"pattern-pickadate-separator",classDateName:"pattern-pickadate-date",classDateWrapperName:"pattern-pickadate-date-wrapper",classTimeName:"pattern-pickadate-time",classTimeWrapperName:"pattern-pickadate-time-wrapper",classTimezoneName:"pattern-pickadate-timezone",classTimezoneWrapperName:"pattern-pickadate-timezone-wrapper",classClearName:"pattern-pickadate-clear",classNowName:"pattern-pickadate-now",placeholderDate:e("Enter date..."),placeholderTime:e("Enter time..."),placeholderTimezone:e("Enter timezone...")},parseTimeOffset:function(e){var t=void 0;0===e.indexOf("+")?(t="+",e=e.split("+")[1]):0===e.indexOf("-")&&(t="-",e=e.split("-")[1]);try{e=JSON.parse(e)}catch(t){e=void 0}if(!1===e)return!1;if(!0===e||!0!==Array.isArray(e))return[0,0];var n=parseInt(e[0],10)||0,i=parseInt(e[1],10)||0;if("+"===t||"-"===t){var o=new Date,a=o.getHours(),r=o.getMinutes();"+"===t?(23<(n=a+n)&&(n=23),59<(i=r+i)&&(i=59)):"-"===t&&((n=a-n)<0&&(n=0),(i=r-i)<0&&(i=0))}return[n,i]},init:function(){var n=this,t=n.$el.val().split(" "),e=t[0]||"",i=t[1]||"";if(!1===s.bool(n.options.date)&&(n.options.date=!1),!1===s.bool(n.options.time)&&(n.options.time=!1),n.options.autoSetTimeOnDateChange=n.parseTimeOffset(n.options.autoSetTimeOnDateChange),!1===n.options.date&&(i=t[0]),n.$el.hide(),n.$wrapper=r("<div/>").addClass(n.options.classWrapperName).insertAfter(n.$el),!1!==n.options.date&&(n.$date=r('<input type="text"/>').attr("placeholder",n.options.placeholderDate).attr("data-value",e).addClass(n.options.classDateName).appendTo(r("<div/>").addClass(n.options.classDateWrapperName).appendTo(n.$wrapper)).pickadate(r.extend(!0,{},n.options.date,{onSet:function(t){void 0!==t.select&&(n.$date.attr("data-value",t.select),!1!==n.options.autoSetTimeOnDateChange&&n.$time&&(n.$time.pickatime("picker").get("select")||n.$time.pickatime("picker").set("select",n.options.autoSetTimeOnDateChange)),!1!==n.options.time&&""===n.$time.attr("data-value")||n.updateValue.call(n)),t.hasOwnProperty("clear")&&(n.$el.val(""),n.$date.attr("data-value",""))}}))),!1!==n.options.time&&(n.options.time.formatSubmit="HH:i",n.$time=r('<input type="text"/>').attr("placeholder",n.options.placeholderTime).attr("data-value",i).addClass(n.options.classTimeName).appendTo(r("<div/>").addClass(n.options.classTimeWrapperName).appendTo(n.$wrapper)).pickatime(r.extend(!0,{},n.options.time,{onSet:function(t){void 0!==t.select&&(n.$time.attr("data-value",t.select),!1!==n.options.date&&""===n.$date.attr("data-value")||n.updateValue.call(n)),t.hasOwnProperty("clear")&&(n.$el.val(""),n.$time.attr("data-value",""))}})),"string"==typeof i&&"00"===i.substring(0,2)&&(n.$time.pickatime("picker").set("select",i.split(":")),n.$time.attr("data-value",i))),!1!==n.options.date&&!1!==n.options.time&&n.options.timezone&&(n.$separator=r("<span/>").addClass(n.options.classSeparatorName).html(" "===n.options.separator?" ":n.options.separator).appendTo(n.$wrapper)),null!==n.options.timezone){n.$timezone=r('<input type="text"/>').addClass(n.options.classTimezoneName).appendTo(r("<div/>").addClass(n.options.classTimezoneWrapperName).appendTo(n.$wrapper)).patternSelect2(r.extend(!0,{placeholder:n.options.placeholderTimezone,width:"10em"},n.options.timezone,{multiple:!1})).on("change",function(t){void 0!==t.val&&(n.$timezone.attr("data-value",t.val),!1!==n.options.date&&""===n.$date.attr("data-value")||!1!==n.options.time&&""===n.$time.attr("data-value")||n.updateValue.call(n))});var o,a=n.options.timezone.default;if(a)n.options.timezone.data.some(function(t){return o=t.text===n.options.timezone.default}),o&&(n.$timezone.attr("data-value",a),n.$timezone.parent().find(".select2-chosen").text(a));1===n.options.timezone.data.length&&(n.$timezone.attr("data-value",n.options.timezone.data[0].text),n.$timezone.parent().find(".select2-chosen").text(n.options.timezone.data[0].text),n.$timezone.select2("enable",!1))}s.bool(n.options.today)&&(n.$now=r('<button class="btn btn-xs btn-info" title="'+n.options.today+'"><span class="glyphicon glyphicon-time"></span></button>').addClass(n.options.classNowName).on("click",function(t){t.preventDefault();var e=new Date;n.$date&&n.$date.data("pickadate").set("select",e),n.$time&&n.$time.data("pickatime").set("select",e)}).appendTo(n.$wrapper)),s.bool(n.options.clear)&&(n.$clear=r('<button class="btn btn-xs btn-danger" title="'+n.options.clear+'"><span class="glyphicon glyphicon-trash"></span></button>').addClass(n.options.classClearName).on("click",function(t){t.preventDefault(),n.$date&&n.$date.data("pickadate").clear(),n.$time&&n.$time.data("pickatime").clear()}).appendTo(n.$wrapper))},updateValue:function(){var t=this,e="";if(!1!==t.options.date){var n=t.$date.data("pickadate").component,i=t.$date.data("pickadate").get("select"),o=n.formats.toString;i&&(e+=o.apply(n,[t.options.date.formatSubmit,i]))}if(!1!==t.options.date&&!1!==t.options.time&&(e+=" "),!1!==t.options.time){var a=t.$time.data("pickatime").component,r=t.$time.data("pickatime").get("select"),s=a.formats.toString;r&&(e+=s.apply(a,["HH:i",r]))}if(null!==t.options.timezone){var l=" "+t.$timezone.attr("data-value");l&&(e+=l)}t.$el.val(e),t.emit("updated")}})}),define("mockup-patterns-autotoc",["jquery","pat-base"],function(r,t){"use strict";return t.extend({name:"autotoc",trigger:".pat-autotoc",parser:"mockup",defaults:{section:"section",levels:"h1,h2,h3",IDPrefix:"autotoc-item-",classTOCName:"autotoc-nav",classSectionName:"autotoc-section",classLevelPrefixName:"autotoc-level-",classActiveName:"active",scrollDuration:"slow",scrollEasing:"swing"},init:function(){var o=this;o.$toc=r("<nav/>").addClass(o.options.classTOCName),o.options.prependTo?o.$toc.prependTo(o.options.prependTo):o.options.appendTo?o.$toc.appendTo(o.options.appendTo):o.$toc.prependTo(o.$el),o.options.className&&o.$el.addClass(o.options.className),r(o.options.section,o.$el).addClass(o.options.classSectionName);var a=o.$el.hasClass("autotabs"),n=null;r(o.options.levels,o.$el).each(function(t){var i=r(this),e=i.prop("id")?i.prop("id"):i.parents(o.options.section).prop("id");(!e||0<r("#"+e).length)&&(e=o.options.IDPrefix+o.name+"-"+t),window.location.hash==="#"+e&&(n=e),i.data("navref",e),r("<a/>").appendTo(o.$toc).text(i.text()).attr("id",e).attr("href","#"+e).addClass(o.options.classLevelPrefixName+o.getLevel(i)).on("click",function(t,e){t.stopPropagation(),t.preventDefault(),e=e||{doScroll:!0,skipHash:!1};var n=r(this);o.$toc.children("."+o.options.classActiveName).removeClass(o.options.classActiveName),o.$el.children("."+o.options.classActiveName).removeClass(o.options.classActiveName),r(t.target).addClass(o.options.classActiveName),i.parents(o.options.section).addClass(o.options.classActiveName),!1!==e.doScroll&&o.options.scrollDuration&&i&&!a&&r("body,html").animate({scrollTop:i.offset().top},o.options.scrollDuration,o.options.scrollEasing),0!==o.$el.parents(".plone-modal").size()&&o.$el.trigger("resize.plone-modal.patterns"),r(this).trigger("clicked"),e.skipHash||window.history&&window.history.pushState&&window.history.pushState({},"","#"+n.attr("id"))})}),n?r("a#"+n).trigger("click",{doScroll:!0,skipHash:!0}):o.$toc.find("a").first().trigger("click",{doScroll:!1,skipHash:!0})},getLevel:function(n){var i=0;return r.each(this.options.levels.split(","),function(t,e){if(1===n.filter(e).size())return i=t+1,!1}),i}})}),define("mockup-patterns-cookietrigger",["pat-base"],function(t){"use strict";return t.extend({name:"cookietrigger",trigger:".pat-cookietrigger",parser:"mockup",isCookiesEnabled:function(){var t="areYourCookiesEnabled=0";document.cookie=t;var e=document.cookie;return-1===e.indexOf(t)?0:(t="areYourCookiesEnabled=1",document.cookie=t,-1===(e=document.cookie).indexOf(t)?0:(document.cookie="areYourCookiesEnabled=; expires=Thu, 01-Jan-70 00:00:01 GMT",1))},showIfCookiesDisabled:function(){this.isCookiesEnabled()?this.$el.hide():this.$el.show()},init:function(){this.showIfCookiesDisabled()}})}),define("mockup-patterns-formunloadalert",["jquery","pat-base","translate"],function(o,t,e){"use strict";return t.extend({name:"formunloadalert",trigger:".pat-formunloadalert",parser:"mockup",_changed:!1,_suppressed:!1,defaults:{message:e("Discard changes? If you click OK, any changes you have made will be lost."),changingEvents:"change keyup paste",changingFields:"input,select,textarea,fileupload"},init:function(){var n=this;if(n.$el.is("form")){o(n.options.changingFields,n.$el).on(n.options.changingEvents,function(t){n._changed=!0});var i=n.$el.parents(".plone-modal");0!==i.size()?i.data("pattern-modal").on("hide",function(t){var e=i.data("pattern-modal");e&&(e._suppressHide=n._handleUnload.apply(n,t))}):o(window).on("beforeunload",function(t){return n._handleUnload(t)}),n.$el.on("submit",function(t){n._suppressed=!0})}},_handleUnload:function(t){var e=this;if(e._suppressed)e._suppressed=!1;else if(e._changed){var n=e.options.message;return e._handleMsg(t,n),o(window).trigger("messageset"),n}},_handleMsg:function(t,e){(t||window.event).returnValue=e}})}),define("mockup-patterns-preventdoublesubmit",["jquery","pat-base","translate"],function(n,t,e){"use strict";return t.extend({name:"preventdoublesubmit",trigger:".pat-preventdoublesubmit",parser:"mockup",defaults:{message:e("You already clicked the submit button. Do you really want to submit this form again?"),guardClassName:"submitting",optOutClassName:"allowMultiSubmit"},init:function(){var e=this;e.$el.is("form")&&n(":submit",e.$el).click(function(t){if(n(":submit").removeAttr("clicked"),n(this).attr("clicked","clicked"),n(this).hasClass(e.options.guardClassName)&&!n(this).hasClass(e.options.optOutClassName))return e._confirm.call(e);n(this).addClass(e.options.guardClassName)})},_confirm:function(t){return window.confirm(this.options.message)}})}),define("mockup-patterns-formautofocus",["jquery","pat-base"],function(e,t,n){"use strict";return t.extend({name:"formautofocus",trigger:".pat-formautofocus",parser:"mockup",defaults:{condition:"div.error",target:"div.error :input:not(.formTabs):visible:first",always:":input:not(.formTabs):visible:first"},init:function(){var t=this;0!==e(t.options.condition,t.$el).size()?e(t.options.target,t.$el).focus():e(t.options.always,t.$el).focus()}})}),define("mockup-patterns-markspeciallinks",["pat-base","jquery"],function(t,l){"use strict";return t.extend({name:"markspeciallinks",trigger:".pat-markspeciallinks",parser:"mockup",defaults:{external_links_open_new_window:!1,mark_special_links:!0},init:function(){var t,e,n,i,o,a,r=this,s=r.$el;"string"==typeof r.options.external_links_open_new_window?t="true"===r.options.external_links_open_new_window.toLowerCase():"boolean"==typeof r.options.external_links_open_new_window&&(t=r.options.external_links_open_new_window),"string"==typeof r.options.mark_special_links?e="true"===r.options.mark_special_links.toLowerCase():"boolean"==typeof r.options.mark_special_links&&(e=r.options.mark_special_links),n=window.location.protocol+"//"+window.location.host,i=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/,o=s,t&&o.find('a[href^="http"]:not(.link-plain):not([href^="'+n+'"])').attr("target","_blank"),e&&(o.find('a[href^="http:"]:not(.link-plain):not([href^="'+n+'"]):not(:has(img))').before('<i class="glyphicon link-external"></i>'),o.find('a[href]:not([href^="http:"]):not(.link-plain):not([href^="'+n+'"]):not(:has(img))').each(function(){if(a=i.exec(this.href)){var t="glyphicon link-"+a[0];l(this).before('<i class="'+t+'"></i>')}}))}})}),function(t){define("bootstrap-dropdown",["jquery"],function(){return function(){!function(s){"use strict";function i(t){s(t).on("click.bs.dropdown",this.toggle)}var l='[data-toggle="dropdown"]';function a(i){i&&3===i.which||(s(".dropdown-backdrop").remove(),s(l).each(function(){var t=s(this),e=u(t),n={relatedTarget:this};e.hasClass("open")&&(e.trigger(i=s.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",n)))}))}function u(t){var e=t.attr("data-target"),n=(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&s(e);return n&&n.length?n:t.parent()}i.VERSION="3.3.4",i.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=u(e),i=n.hasClass("open");if(a(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s('<div class="dropdown-backdrop"/>').insertAfter(s(this)).on("click",a);var o={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger("shown.bs.dropdown",o)}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=u(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var o=" li:not(.disabled):visible a",a=n.find('[role="menu"]'+o+', [role="listbox"]'+o);if(a.length){var r=a.index(t.target);38==t.which&&0<r&&r--,40==t.which&&r<a.length-1&&r++,~r||(r=0),a.eq(r).trigger("focus")}}}};var t=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var t=s(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=t,this},s(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,i.prototype.toggle).on("keydown.bs.dropdown.data-api",l,i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',i.prototype.keydown)}(jQuery)}.apply(t,arguments)})}(this),function(t){define("bootstrap-collapse",["jquery"],function(){return function(){return function(r){"use strict";var s=function(t,e){this.$element=r(t),this.options=r.extend({},s.DEFAULTS,e),this.$trigger=r('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function o(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return r(n)}function l(i){return this.each(function(){var t=r(this),e=t.data("bs.collapse"),n=r.extend({},s.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new s(this,n)),"string"==typeof i&&e[i]()})}s.VERSION="3.3.4",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(t=e.data("bs.collapse"))&&t.transitioning)){var n=r.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(l.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!r.support.transition)return o.call(this);var a=r.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",r.proxy(o,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][a])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=r.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!r.support.transition)return n.call(this);this.$element[e](0).one("bsTransitionEnd",r.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return r(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(r.proxy(function(t,e){var n=r(e);this.addAriaAndCollapsedClass(o(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=r.fn.collapse;r.fn.collapse=l,r.fn.collapse.Constructor=s,r.fn.collapse.noConflict=function(){return r.fn.collapse=t,this},r(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=r(this);e.attr("data-target")||t.preventDefault();var n=o(e),i=n.data("bs.collapse")?"toggle":e.data();l.call(n,i)})}(jQuery),window.jQuery.fn.collapse.Constructor}.apply(t,arguments)})}(this),function(t){define("bootstrap-tooltip",["jquery"],function(){return function(){!function(g){"use strict";function v(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)}v.VERSION="3.3.4",v.TRANSITION_DURATION=150,v.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},v.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&g(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var a=i[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",s="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},v.prototype.getDefaults=function(){return v.DEFAULTS},v.prototype.getOptions=function(t){return(t=g.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},v.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&g.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},v.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e&&e.$tip&&e.$tip.is(":visible"))e.hoverState="in";else{if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},v.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)},v.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,s=r.test(a);s&&(a=a.replace(r,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var l=this.getPosition(),u=i[0].offsetWidth,c=i[0].offsetHeight;if(s){var d=a,h=this.options.container?g(this.options.container):this.$element.parent(),p=this.getPosition(h);a="bottom"==a&&l.bottom+c>p.bottom?"top":"top"==a&&l.top-c<p.top?"bottom":"right"==a&&l.right+u>p.width?"left":"left"==a&&l.left-u<p.left?"right":a,i.removeClass(d).addClass(a)}var m=this.getCalculatedOffset(a,l,u,c);this.applyPlacement(m,a);var f=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};g.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(v.TRANSITION_DURATION):f()}},v.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),t.top=t.top+a,t.left=t.left+r,g.offset.setOffset(n[0],g.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=o&&(t.top=t.top+o-l);var u=this.getViewportAdjustedDelta(e,t,s,l);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(e),d=c?2*u.left-i+s:2*u.top-o+l,h=c?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][h],c)},v.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},v.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},v.prototype.hide=function(t){var e=this,n=g(this.$tip),i=g.Event("hide.bs."+this.type);function o(){"in"!=e.hoverState&&n.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),g.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(v.TRANSITION_DURATION):o(),this.hoverState=null,this},v.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},v.prototype.hasContent=function(){return this.getTitle()},v.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=g.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=n?{top:0,left:0}:t.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},r=n?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},i,a,r,o)},v.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},v.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-a-r.scroll,l=e.top+a-r.scroll+i;s<r.top?o.top=r.top-s:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var u=e.left-a,c=e.left+a+n;u<r.left?o.left=r.left-u:c>r.width&&(o.left=r.left+r.width-c)}return o},v.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},v.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},v.prototype.tip=function(){return this.$tip=this.$tip||g(this.options.template)},v.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},v.prototype.enable=function(){this.enabled=!0},v.prototype.disable=function(){this.enabled=!1},v.prototype.toggleEnabled=function(){this.enabled=!this.enabled},v.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),e.tip().hasClass("in")?e.leave(e):e.enter(e)},v.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var t=g.fn.tooltip;g.fn.tooltip=function(i){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new v(this,n)),"string"==typeof i&&e[i]())})},g.fn.tooltip.Constructor=v,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=t,this}}(jQuery)}.apply(t,arguments)})}(this),function(w){var n=!0;w.flexslider=function(p,t){var m=w(p);m.vars=w.extend({},w.flexslider.defaults,t);var e,c=m.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,d=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&m.vars.touch,r="click touchend MSPointerUp keyup",s="",g="vertical"===m.vars.direction,v=m.vars.reverse,_=0<m.vars.itemWidth,y="fade"===m.vars.animation,h=""!==m.vars.asNavFor,b={};w.data(p,"flexslider",m),b={init:function(){m.animating=!1,m.currentSlide=parseInt(m.vars.startAt?m.vars.startAt:0,10),isNaN(m.currentSlide)&&(m.currentSlide=0),m.animatingTo=m.currentSlide,m.atEnd=0===m.currentSlide||m.currentSlide===m.last,m.containerSelector=m.vars.selector.substr(0,m.vars.selector.search(" ")),m.slides=w(m.vars.selector,m),m.container=w(m.containerSelector,m),m.count=m.slides.length,m.syncExists=0<w(m.vars.sync).length,"slide"===m.vars.animation&&(m.vars.animation="swing"),m.prop=g?"top":"marginLeft",m.args={},m.manualPause=!1,m.stopped=!1,m.started=!1,m.startTimeout=null,m.transitions=!m.vars.video&&!y&&m.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return m.pfx=e[n].replace("Perspective","").toLowerCase(),m.prop="-"+m.pfx+"-transform",!0;return!1}(),(m.ensureAnimationEnd="")!==m.vars.controlsContainer&&(m.controlsContainer=0<w(m.vars.controlsContainer).length&&w(m.vars.controlsContainer)),""!==m.vars.manualControls&&(m.manualControls=0<w(m.vars.manualControls).length&&w(m.vars.manualControls)),""!==m.vars.customDirectionNav&&(m.customDirectionNav=2===w(m.vars.customDirectionNav).length&&w(m.vars.customDirectionNav)),m.vars.randomize&&(m.slides.sort(function(){return Math.round(Math.random())-.5}),m.container.empty().append(m.slides)),m.doMath(),m.setup("init"),m.vars.controlNav&&b.controlNav.setup(),m.vars.directionNav&&b.directionNav.setup(),m.vars.keyboard&&(1===w(m.containerSelector).length||m.vars.multipleKeyboard)&&w(document).bind("keyup",function(t){var e=t.keyCode;if(!m.animating&&(39===e||37===e)){var n=39===e?m.getTarget("next"):37===e&&m.getTarget("prev");m.flexAnimate(n,m.vars.pauseOnAction)}}),m.vars.mousewheel&&m.bind("mousewheel",function(t,e,n,i){t.preventDefault();var o=e<0?m.getTarget("next"):m.getTarget("prev");m.flexAnimate(o,m.vars.pauseOnAction)}),m.vars.pausePlay&&b.pausePlay.setup(),m.vars.slideshow&&m.vars.pauseInvisible&&b.pauseInvisible.init(),m.vars.slideshow&&(m.vars.pauseOnHover&&m.hover(function(){m.manualPlay||m.manualPause||m.pause()},function(){m.manualPause||m.manualPlay||m.stopped||m.play()}),m.vars.pauseInvisible&&b.pauseInvisible.isHidden()||(0<m.vars.initDelay?m.startTimeout=setTimeout(m.play,m.vars.initDelay):m.play())),h&&b.asNav.setup(),d&&m.vars.touch&&b.touch(),(!y||y&&m.vars.smoothHeight)&&w(window).bind("resize orientationchange focus",b.resize),m.find("img").attr("draggable","false"),setTimeout(function(){m.vars.start(m)},200)},asNav:{setup:function(){m.asNav=!0,m.animatingTo=Math.floor(m.currentSlide/m.move),m.currentItem=m.currentSlide,m.slides.removeClass(c+"active-slide").eq(m.currentItem).addClass(c+"active-slide"),f?(p._slider=m).slides.each(function(){var t=this;t._gesture=new MSGesture,(t._gesture.target=t).addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),t.addEventListener("MSGestureTap",function(t){t.preventDefault();var e=w(this),n=e.index();w(m.vars.asNavFor).data("flexslider").animating||e.hasClass("active")||(m.direction=m.currentItem<n?"next":"prev",m.flexAnimate(n,m.vars.pauseOnAction,!1,!0,!0))})}):m.slides.on(r,function(t){t.preventDefault();var e=w(this),n=e.index();e.offset().left-w(m).scrollLeft()<=0&&e.hasClass(c+"active-slide")?m.flexAnimate(m.getTarget("prev"),!0):w(m.vars.asNavFor).data("flexslider").animating||e.hasClass(c+"active-slide")||(m.direction=m.currentItem<n?"next":"prev",m.flexAnimate(n,m.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){m.manualControls?b.controlNav.setupManual():b.controlNav.setupPaging()},setupPaging:function(){var t,e,n="thumbnails"===m.vars.controlNav?"control-thumbs":"control-paging",i=1;if(m.controlNavScaffold=w('<ol class="'+c+"control-nav "+c+n+'"></ol>'),1<m.pagingCount)for(var o=0;o<m.pagingCount;o++){if(void 0===(e=m.slides.eq(o)).attr("data-thumb-alt")&&e.attr("data-thumb-alt",""),altText=""!==e.attr("data-thumb-alt")?altText=' alt="'+e.attr("data-thumb-alt")+'"':"",t="thumbnails"===m.vars.controlNav?'<img src="'+e.attr("data-thumb")+'"'+altText+"/>":'<a href="#">'+i+"</a>","thumbnails"===m.vars.controlNav&&!0===m.vars.thumbCaptions){var a=e.attr("data-thumbcaption");""!==a&&void 0!==a&&(t+='<span class="'+c+'caption">'+a+"</span>")}m.controlNavScaffold.append("<li>"+t+"</li>"),i++}m.controlsContainer?w(m.controlsContainer).append(m.controlNavScaffold):m.append(m.controlNavScaffold),b.controlNav.set(),b.controlNav.active(),m.controlNavScaffold.delegate("a, img",r,function(t){if(t.preventDefault(),""===s||s===t.type){var e=w(this),n=m.controlNav.index(e);e.hasClass(c+"active")||(m.direction=n>m.currentSlide?"next":"prev",m.flexAnimate(n,m.vars.pauseOnAction))}""===s&&(s=t.type),b.setToClearWatchedEvent()})},setupManual:function(){m.controlNav=m.manualControls,b.controlNav.active(),m.controlNav.bind(r,function(t){if(t.preventDefault(),""===s||s===t.type){var e=w(this),n=m.controlNav.index(e);e.hasClass(c+"active")||(n>m.currentSlide?m.direction="next":m.direction="prev",m.flexAnimate(n,m.vars.pauseOnAction))}""===s&&(s=t.type),b.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===m.vars.controlNav?"img":"a";m.controlNav=w("."+c+"control-nav li "+t,m.controlsContainer?m.controlsContainer:m)},active:function(){m.controlNav.removeClass(c+"active").eq(m.animatingTo).addClass(c+"active")},update:function(t,e){1<m.pagingCount&&"add"===t?m.controlNavScaffold.append(w('<li><a href="#">'+m.count+"</a></li>")):1===m.pagingCount?m.controlNavScaffold.find("li").remove():m.controlNav.eq(e).closest("li").remove(),b.controlNav.set(),1<m.pagingCount&&m.pagingCount!==m.controlNav.length?m.update(e,t):b.controlNav.active()}},directionNav:{setup:function(){var t=w('<ul class="'+c+'direction-nav"><li class="'+c+'nav-prev"><a class="'+c+'prev" href="#">'+m.vars.prevText+'</a></li><li class="'+c+'nav-next"><a class="'+c+'next" href="#">'+m.vars.nextText+"</a></li></ul>");m.customDirectionNav?m.directionNav=m.customDirectionNav:m.controlsContainer?(w(m.controlsContainer).append(t),m.directionNav=w("."+c+"direction-nav li a",m.controlsContainer)):(m.append(t),m.directionNav=w("."+c+"direction-nav li a",m)),b.directionNav.update(),m.directionNav.bind(r,function(t){var e;t.preventDefault(),""!==s&&s!==t.type||(e=w(this).hasClass(c+"next")?m.getTarget("next"):m.getTarget("prev"),m.flexAnimate(e,m.vars.pauseOnAction)),""===s&&(s=t.type),b.setToClearWatchedEvent()})},update:function(){var t=c+"disabled";1===m.pagingCount?m.directionNav.addClass(t).attr("tabindex","-1"):m.vars.animationLoop?m.directionNav.removeClass(t).removeAttr("tabindex"):0===m.animatingTo?m.directionNav.removeClass(t).filter("."+c+"prev").addClass(t).attr("tabindex","-1"):m.animatingTo===m.last?m.directionNav.removeClass(t).filter("."+c+"next").addClass(t).attr("tabindex","-1"):m.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=w('<div class="'+c+'pauseplay"><a href="#"></a></div>');m.controlsContainer?(m.controlsContainer.append(t),m.pausePlay=w("."+c+"pauseplay a",m.controlsContainer)):(m.append(t),m.pausePlay=w("."+c+"pauseplay a",m)),b.pausePlay.update(m.vars.slideshow?c+"pause":c+"play"),m.pausePlay.bind(r,function(t){t.preventDefault(),""!==s&&s!==t.type||(w(this).hasClass(c+"pause")?(m.manualPause=!0,m.manualPlay=!1,m.pause()):(m.manualPause=!1,m.manualPlay=!0,m.play())),""===s&&(s=t.type),b.setToClearWatchedEvent()})},update:function(t){"play"===t?m.pausePlay.removeClass(c+"pause").addClass(c+"play").html(m.vars.playText):m.pausePlay.removeClass(c+"play").addClass(c+"pause").html(m.vars.pauseText)}},touch:function(){var o,a,r,s,l,u,t,i,c,d=!1,e=0,n=0,h=0;if(f){p.style.msTouchAction="none",p._gesture=new MSGesture,(p._gesture.target=p).addEventListener("MSPointerDown",function(t){t.stopPropagation(),m.animating?t.preventDefault():(m.pause(),p._gesture.addPointer(t.pointerId),h=0,s=g?m.h:m.w,u=Number(new Date),r=_&&v&&m.animatingTo===m.last?0:_&&v?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:_&&m.currentSlide===m.last?m.limit:_?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:v?(m.last-m.currentSlide+m.cloneOffset)*s:(m.currentSlide+m.cloneOffset)*s)},!1),p._slider=m,p.addEventListener("MSGestureChange",function(t){t.stopPropagation();var e=t.target._slider;if(!e)return;var n=-t.translationX,i=-t.translationY;if(l=h+=g?i:n,d=g?Math.abs(h)<Math.abs(-n):Math.abs(h)<Math.abs(-i),t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){p._gesture.stop()});(!d||500<Number(new Date)-u)&&(t.preventDefault(),!y&&e.transitions&&(e.vars.animationLoop||(l=h/(0===e.currentSlide&&h<0||e.currentSlide===e.last&&0<h?Math.abs(h)/s+2:1)),e.setProps(r+l,"setTouch")))},!1),p.addEventListener("MSGestureEnd",function(t){t.stopPropagation();var e=t.target._slider;if(!e)return;if(e.animatingTo===e.currentSlide&&!d&&null!==l){var n=v?-l:l,i=0<n?e.getTarget("next"):e.getTarget("prev");e.canAdvance(i)&&(Number(new Date)-u<550&&50<Math.abs(n)||Math.abs(n)>s/2)?e.flexAnimate(i,e.vars.pauseOnAction):y||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}r=l=a=o=null,h=0},!1)}else t=function(t){m.animating?t.preventDefault():!window.navigator.msPointerEnabled&&1!==t.touches.length||(m.pause(),s=g?m.h:m.w,u=Number(new Date),e=t.touches[0].pageX,n=t.touches[0].pageY,r=_&&v&&m.animatingTo===m.last?0:_&&v?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:_&&m.currentSlide===m.last?m.limit:_?(m.itemW+m.vars.itemMargin)*m.move*m.currentSlide:v?(m.last-m.currentSlide+m.cloneOffset)*s:(m.currentSlide+m.cloneOffset)*s,o=g?n:e,a=g?e:n,p.addEventListener("touchmove",i,!1),p.addEventListener("touchend",c,!1))},i=function(t){e=t.touches[0].pageX,n=t.touches[0].pageY,l=g?o-n:o-e;(!(d=g?Math.abs(l)<Math.abs(e-a):Math.abs(l)<Math.abs(n-a))||500<Number(new Date)-u)&&(t.preventDefault(),!y&&m.transitions&&(m.vars.animationLoop||(l/=0===m.currentSlide&&l<0||m.currentSlide===m.last&&0<l?Math.abs(l)/s+2:1),m.setProps(r+l,"setTouch")))},c=function(t){if(p.removeEventListener("touchmove",i,!1),m.animatingTo===m.currentSlide&&!d&&null!==l){var e=v?-l:l,n=0<e?m.getTarget("next"):m.getTarget("prev");m.canAdvance(n)&&(Number(new Date)-u<550&&50<Math.abs(e)||Math.abs(e)>s/2)?m.flexAnimate(n,m.vars.pauseOnAction):y||m.flexAnimate(m.currentSlide,m.vars.pauseOnAction,!0)}p.removeEventListener("touchend",c,!1),r=l=a=o=null},p.addEventListener("touchstart",t,!1)},resize:function(){!m.animating&&m.is(":visible")&&(_||m.doMath(),y?b.smoothHeight():_?(m.slides.width(m.computedW),m.update(m.pagingCount),m.setProps()):g?(m.viewport.height(m.h),m.setProps(m.h,"setTotal")):(m.vars.smoothHeight&&b.smoothHeight(),m.newSlides.width(m.computedW),m.setProps(m.computedW,"setTotal")))},smoothHeight:function(t){if(!g||y){var e=y?m:m.viewport;t?e.animate({height:m.slides.eq(m.animatingTo).height()},t):e.height(m.slides.eq(m.animatingTo).height())}},sync:function(t){var e=w(m.vars.sync).data("flexslider"),n=m.animatingTo;switch(t){case"animate":e.flexAnimate(n,m.vars.pauseOnAction,!1,!0);break;case"play":e.playing||e.asNav||e.play();break;case"pause":e.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=w(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var t=b.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){b.pauseInvisible.isHidden()?m.startTimeout?clearTimeout(m.startTimeout):m.pause():!m.started&&0<m.vars.initDelay?setTimeout(m.play,m.vars.initDelay):m.play()})}},isHidden:function(){var t=b.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden"in document)return t[e]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(e),e=setTimeout(function(){s=""},3e3)}},m.flexAnimate=function(t,e,n,i,o){if(m.vars.animationLoop||t===m.currentSlide||(m.direction=t>m.currentSlide?"next":"prev"),h&&1===m.pagingCount&&(m.direction=m.currentItem<t?"next":"prev"),!m.animating&&(m.canAdvance(t,o)||n)&&m.is(":visible")){if(h&&i){var a=w(m.vars.asNavFor).data("flexslider");if(m.atEnd=0===t||t===m.count-1,a.flexAnimate(t,!0,!1,!0,o),m.direction=m.currentItem<t?"next":"prev",a.direction=m.direction,Math.ceil((t+1)/m.visible)-1===m.currentSlide||0===t)return m.currentItem=t,m.slides.removeClass(c+"active-slide").eq(t).addClass(c+"active-slide"),!1;m.currentItem=t,m.slides.removeClass(c+"active-slide").eq(t).addClass(c+"active-slide"),t=Math.floor(t/m.visible)}if(m.animating=!0,m.animatingTo=t,e&&m.pause(),m.vars.before(m),m.syncExists&&!o&&b.sync("animate"),m.vars.controlNav&&b.controlNav.active(),_||m.slides.removeClass(c+"active-slide").eq(t).addClass(c+"active-slide"),m.atEnd=0===t||t===m.last,m.vars.directionNav&&b.directionNav.update(),t===m.last&&(m.vars.end(m),m.vars.animationLoop||m.pause()),y)d?(m.slides.eq(m.currentSlide).css({opacity:0,zIndex:1}),m.slides.eq(t).css({opacity:1,zIndex:2}),m.wrapup(u)):(m.slides.eq(m.currentSlide).css({zIndex:1}).animate({opacity:0},m.vars.animationSpeed,m.vars.easing),m.slides.eq(t).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing,m.wrapup));else{var r,s,l,u=g?m.slides.filter(":first").height():m.computedW;s=_?(r=m.vars.itemMargin,(l=(m.itemW+r)*m.move*m.animatingTo)>m.limit&&1!==m.visible?m.limit:l):0===m.currentSlide&&t===m.count-1&&m.vars.animationLoop&&"next"!==m.direction?v?(m.count+m.cloneOffset)*u:0:m.currentSlide===m.last&&0===t&&m.vars.animationLoop&&"prev"!==m.direction?v?0:(m.count+1)*u:v?(m.count-1-t+m.cloneOffset)*u:(t+m.cloneOffset)*u,m.setProps(s,"",m.vars.animationSpeed),m.transitions?(m.vars.animationLoop&&m.atEnd||(m.animating=!1,m.currentSlide=m.animatingTo),m.container.unbind("webkitTransitionEnd transitionend"),m.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(m.ensureAnimationEnd),m.wrapup(u)}),clearTimeout(m.ensureAnimationEnd),m.ensureAnimationEnd=setTimeout(function(){m.wrapup(u)},m.vars.animationSpeed+100)):m.container.animate(m.args,m.vars.animationSpeed,m.vars.easing,function(){m.wrapup(u)})}m.vars.smoothHeight&&b.smoothHeight(m.vars.animationSpeed)}},m.wrapup=function(t){y||_||(0===m.currentSlide&&m.animatingTo===m.last&&m.vars.animationLoop?m.setProps(t,"jumpEnd"):m.currentSlide===m.last&&0===m.animatingTo&&m.vars.animationLoop&&m.setProps(t,"jumpStart")),m.animating=!1,m.currentSlide=m.animatingTo,m.vars.after(m)},m.animateSlides=function(){!m.animating&&n&&m.flexAnimate(m.getTarget("next"))},m.pause=function(){clearInterval(m.animatedSlides),m.animatedSlides=null,m.playing=!1,m.vars.pausePlay&&b.pausePlay.update("play"),m.syncExists&&b.sync("pause")},m.play=function(){m.playing&&clearInterval(m.animatedSlides),m.animatedSlides=m.animatedSlides||setInterval(m.animateSlides,m.vars.slideshowSpeed),m.started=m.playing=!0,m.vars.pausePlay&&b.pausePlay.update("pause"),m.syncExists&&b.sync("play")},m.stop=function(){m.pause(),m.stopped=!0},m.canAdvance=function(t,e){var n=h?m.pagingCount-1:m.last;return!!e||(h&&m.currentItem===m.count-1&&0===t&&"prev"===m.direction||(!h||0!==m.currentItem||t!==m.pagingCount-1||"next"===m.direction)&&((t!==m.currentSlide||h)&&(!!m.vars.animationLoop||(!m.atEnd||0!==m.currentSlide||t!==n||"next"===m.direction)&&(!m.atEnd||m.currentSlide!==n||0!==t||"next"!==m.direction))))},m.getTarget=function(t){return"next"===(m.direction=t)?m.currentSlide===m.last?0:m.currentSlide+1:0===m.currentSlide?m.last:m.currentSlide-1},m.setProps=function(t,e,n){var i,o=(i=t||(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo,-1*function(){if(_)return"setTouch"===e?t:v&&m.animatingTo===m.last?0:v?m.limit-(m.itemW+m.vars.itemMargin)*m.move*m.animatingTo:m.animatingTo===m.last?m.limit:i;switch(e){case"setTotal":return v?(m.count-1-m.currentSlide+m.cloneOffset)*t:(m.currentSlide+m.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return v?t:m.count*t;case"jumpStart":return v?m.count*t:t;default:return t}}()+"px");m.transitions&&(o=g?"translate3d(0,"+o+",0)":"translate3d("+o+",0,0)",n=void 0!==n?n/1e3+"s":"0s",m.container.css("-"+m.pfx+"-transition-duration",n),m.container.css("transition-duration",n)),m.args[m.prop]=o,!m.transitions&&void 0!==n||m.container.css(m.args),m.container.css("transform",o)},m.setup=function(t){var e,n;y?(m.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(d?m.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+m.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(m.currentSlide).css({opacity:1,zIndex:2}):0==m.vars.fadeFirstSlide?m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).css({opacity:1}):m.slides.css({opacity:0,display:"block",zIndex:1}).eq(m.currentSlide).css({zIndex:2}).animate({opacity:1},m.vars.animationSpeed,m.vars.easing)),m.vars.smoothHeight&&b.smoothHeight()):("init"===t&&(m.viewport=w('<div class="'+c+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(m).append(m.container),m.cloneCount=0,m.cloneOffset=0,v&&(n=w.makeArray(m.slides).reverse(),m.slides=w(n),m.container.empty().append(m.slides))),m.vars.animationLoop&&!_&&(m.cloneCount=2,m.cloneOffset=1,"init"!==t&&m.container.find(".clone").remove(),m.container.append(b.uniqueID(m.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(b.uniqueID(m.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),m.newSlides=w(m.vars.selector,m),e=v?m.count-1-m.currentSlide+m.cloneOffset:m.currentSlide+m.cloneOffset,g&&!_?(m.container.height(200*(m.count+m.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){m.newSlides.css({display:"block"}),m.doMath(),m.viewport.height(m.h),m.setProps(e*m.h,"init")},"init"===t?100:0)):(m.container.width(200*(m.count+m.cloneCount)+"%"),m.setProps(e*m.computedW,"init"),setTimeout(function(){m.doMath(),m.newSlides.css({width:m.computedW,marginRight:m.computedM,float:"left",display:"block"}),m.vars.smoothHeight&&b.smoothHeight()},"init"===t?100:0)));_||m.slides.removeClass(c+"active-slide").eq(m.currentSlide).addClass(c+"active-slide"),m.vars.init(m)},m.doMath=function(){var t=m.slides.first(),e=m.vars.itemMargin,n=m.vars.minItems,i=m.vars.maxItems;m.w=void 0===m.viewport?m.width():m.viewport.width(),m.h=t.height(),m.boxPadding=t.outerWidth()-t.width(),_?(m.itemT=m.vars.itemWidth+e,m.itemM=e,m.minW=n?n*m.itemT:m.w,m.maxW=i?i*m.itemT-e:m.w,m.itemW=m.minW>m.w?(m.w-e*(n-1))/n:m.maxW<m.w?(m.w-e*(i-1))/i:m.vars.itemWidth>m.w?m.w:m.vars.itemWidth,m.visible=Math.floor(m.w/m.itemW),m.move=0<m.vars.move&&m.vars.move<m.visible?m.vars.move:m.visible,m.pagingCount=Math.ceil((m.count-m.visible)/m.move+1),m.last=m.pagingCount-1,m.limit=1===m.pagingCount?0:m.vars.itemWidth>m.w?m.itemW*(m.count-1)+e*(m.count-1):(m.itemW+e)*m.count-m.w-e):(m.itemW=m.w,m.itemM=e,m.pagingCount=m.count,m.last=m.count-1),m.computedW=m.itemW-m.boxPadding,m.computedM=m.itemM},m.update=function(t,e){m.doMath(),_||(t<m.currentSlide?m.currentSlide+=1:t<=m.currentSlide&&0!==t&&--m.currentSlide,m.animatingTo=m.currentSlide),m.vars.controlNav&&!m.manualControls&&("add"===e&&!_||m.pagingCount>m.controlNav.length?b.controlNav.update("add"):("remove"===e&&!_||m.pagingCount<m.controlNav.length)&&(_&&m.currentSlide>m.last&&(--m.currentSlide,--m.animatingTo),b.controlNav.update("remove",m.last))),m.vars.directionNav&&b.directionNav.update()},m.addSlide=function(t,e){var n=w(t);m.count+=1,m.last=m.count-1,g&&v?void 0!==e?m.slides.eq(m.count-e).after(n):m.container.prepend(n):void 0!==e?m.slides.eq(e).before(n):m.container.append(n),m.update(e,"add"),m.slides=w(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.added(m)},m.removeSlide=function(t){var e=isNaN(t)?m.slides.index(w(t)):t;--m.count,m.last=m.count-1,isNaN(t)?w(t,m.slides).remove():g&&v?m.slides.eq(m.last).remove():m.slides.eq(t).remove(),m.doMath(),m.update(e,"remove"),m.slides=w(m.vars.selector+":not(.clone)",m),m.setup(),m.vars.removed(m)},b.init()},w(window).blur(function(t){n=!1}).focus(function(t){n=!0}),w.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},w.fn.flexslider=function(i){if(void 0===i&&(i={}),"object"==typeof i)return this.each(function(){var t=w(this),e=i.selector?i.selector:".slides > li",n=t.find(e);1===n.length&&!0===i.allowOneSlide||0===n.length?(n.fadeIn(400),i.start&&i.start(t)):void 0===t.data("flexslider")&&new w.flexslider(this,i)});var t=w(this).data("flexslider");switch(i){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof i&&t.flexAnimate(i,!0)}}}(jQuery),define("castle-url/libs/FlexSlider/jquery.flexslider",function(){}),define("castle-url/patterns/slider",["jquery","pat-base","castle-url/libs/FlexSlider/jquery.flexslider"],function(t,e){"use strict";return e.extend({name:"slider",trigger:".pat-slider",parser:"mockup",defaults:{animation:"fade",controlNav:!0,directionNav:!0,slideshowSpeed:7e3,animationSpeed:600},init:function(){this.$el.flexslider()}})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,i,o){return jQuery.easing[jQuery.easing.def](t,e,n,i,o)},easeInQuad:function(t,e,n,i,o){return i*(e/=o)*e+n},easeOutQuad:function(t,e,n,i,o){return-i*(e/=o)*(e-2)+n},easeInOutQuad:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,o){return i*(e/=o)*e*e+n},easeOutCubic:function(t,e,n,i,o){return i*((e=e/o-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,o){return i*(e/=o)*e*e*e+n},easeOutQuart:function(t,e,n,i,o){return-i*((e=e/o-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,o){return i*(e/=o)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,o){return i*((e=e/o-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,o){return i*Math.sin(e/o*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,o){return-i/2*(Math.cos(Math.PI*e/o)-1)+n},easeInExpo:function(t,e,n,i,o){return 0==e?n:i*Math.pow(2,10*(e/o-1))+n},easeOutExpo:function(t,e,n,i,o){return e==o?n+i:i*(1-Math.pow(2,-10*e/o))+n},easeInOutExpo:function(t,e,n,i,o){return 0==e?n:e==o?n+i:(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(2-Math.pow(2,-10*--e))+n},easeInCirc:function(t,e,n,i,o){return-i*(Math.sqrt(1-(e/=o)*e)-1)+n},easeOutCirc:function(t,e,n,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+n},easeInOutCirc:function(t,e,n,i,o){return(e/=o/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,o){var a=1.70158,r=0,s=i;if(0==e)return n;if(1==(e/=o))return n+i;if(r=r||.3*o,s<Math.abs(i)){s=i;a=r/4}else a=r/(2*Math.PI)*Math.asin(i/s);return-(s*Math.pow(2,10*--e)*Math.sin((e*o-a)*(2*Math.PI)/r))+n},easeOutElastic:function(t,e,n,i,o){var a=1.70158,r=0,s=i;if(0==e)return n;if(1==(e/=o))return n+i;if(r=r||.3*o,s<Math.abs(i)){s=i;a=r/4}else a=r/(2*Math.PI)*Math.asin(i/s);return s*Math.pow(2,-10*e)*Math.sin((e*o-a)*(2*Math.PI)/r)+i+n},easeInOutElastic:function(t,e,n,i,o){var a=1.70158,r=0,s=i;if(0==e)return n;if(2==(e/=o/2))return n+i;if(r=r||o*(.3*1.5),s<Math.abs(i)){s=i;a=r/4}else a=r/(2*Math.PI)*Math.asin(i/s);return e<1?s*Math.pow(2,10*--e)*Math.sin((e*o-a)*(2*Math.PI)/r)*-.5+n:s*Math.pow(2,-10*--e)*Math.sin((e*o-a)*(2*Math.PI)/r)*.5+i+n},easeInBack:function(t,e,n,i,o,a){return null==a&&(a=1.70158),i*(e/=o)*e*((a+1)*e-a)+n},easeOutBack:function(t,e,n,i,o,a){return null==a&&(a=1.70158),i*((e=e/o-1)*e*((a+1)*e+a)+1)+n},easeInOutBack:function(t,e,n,i,o,a){return null==a&&(a=1.70158),(e/=o/2)<1?i/2*(e*e*((1+(a*=1.525))*e-a))+n:i/2*((e-=2)*e*((1+(a*=1.525))*e+a)+2)+n},easeInBounce:function(t,e,n,i,o){return i-jQuery.easing.easeOutBounce(t,o-e,0,i,o)+n},easeOutBounce:function(t,e,n,i,o){return(e/=o)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,i,o)+n:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,i,o)+.5*i+n}}),define("castle-url/libs/camera/scripts/jquery.easing.1.3",function(){}),function(bt){bt.fn.camera=function(B,t){function U(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))}bt.support.borderRadius=!1,bt.each(["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],function(){void 0!==document.body.style[this]&&(bt.support.borderRadius=!0)});B=bt.extend({},{alignment:"center",autoAdvance:!0,mobileAutoAdvance:!0,barDirection:"leftToRight",barPosition:"bottom",cols:6,easing:"easeInOutExpo",mobileEasing:"",fx:"random",mobileFx:"",gridDifference:250,height:"50%",imagePath:"images/",hover:!0,loader:"pie",loaderColor:"#eeeeee",loaderBgColor:"#222222",loaderOpacity:.8,loaderPadding:2,loaderStroke:7,minHeight:"200px",navigation:!0,navigationHover:!0,mobileNavHover:!0,opacityOnGrid:!1,overlayer:!0,pagination:!0,playPause:!0,pauseOnClick:!0,pieDiameter:38,piePosition:"rightTop",portrait:!1,rows:4,slicedCols:12,slicedRows:8,slideOn:"random",thumbnails:!1,time:7e3,transPeriod:1500,onEndTransition:function(){},onLoaded:function(){},onStartLoading:function(){},onStartTransition:function(){}},B);var W=bt(this).addClass("camera_wrap");W.wrapInner('<div class="camera_src" />').wrapInner('<div class="camera_fakehover" />');var $,V=bt(".camera_fakehover",W),e=W;V.append('<div class="camera_target"></div>'),1==B.overlayer&&V.append('<div class="camera_overlayer"></div>'),V.append('<div class="camera_target_content"></div>'),"pie"==($="pie"!=B.loader||bt.support.borderRadius?B.loader:"bar")?V.append('<div class="camera_pie"></div>'):"bar"==$?V.append('<div class="camera_bar"></div>'):V.append('<div class="camera_bar" style="display:none"></div>'),1==B.playPause&&V.append('<div class="camera_commands"></div>'),1==B.navigation&&V.append('<div class="camera_prev"><span></span></div>').append('<div class="camera_next"><span></span></div>'),1==B.thumbnails&&W.append('<div class="camera_thumbs_cont" />'),1==B.thumbnails&&1!=B.pagination&&bt(".camera_thumbs_cont",W).wrap("<div />").wrap('<div class="camera_thumbs" />').wrap("<div />").wrap('<div class="camera_command_wrap" />'),1==B.pagination&&W.append('<div class="camera_pag"></div>'),W.append('<div class="camera_loader"></div>'),bt(".camera_caption",W).each(function(){bt(this).wrapInner("<div />")});var q="pie_"+W.index(),G=bt(".camera_src",W),Z=bt(".camera_target",W),n=bt(".camera_target_content",W),i=bt(".camera_pie",W),o=bt(".camera_bar",W),a=bt(".camera_prev",W),r=bt(".camera_next",W),s=bt(".camera_commands",W),J=bt(".camera_pag",W),K=bt(".camera_thumbs_cont",W),X=new Array;bt("> div",G).each(function(){X.push(bt(this).attr("data-src"))});var l=new Array;bt("> div",G).each(function(){bt(this).attr("data-link")?l.push(bt(this).attr("data-link")):l.push("")});var u=new Array;bt("> div",G).each(function(){bt(this).attr("data-target")?u.push(bt(this).attr("data-target")):u.push("")});var Q=new Array;bt("> div",G).each(function(){bt(this).attr("data-portrait")?Q.push(bt(this).attr("data-portrait")):Q.push("")});var tt=new Array;bt("> div",G).each(function(){bt(this).attr("data-alignment")?tt.push(bt(this).attr("data-alignment")):tt.push("")});var c=new Array;bt("> div",G).each(function(){bt(this).attr("data-thumb")?c.push(bt(this).attr("data-thumb")):c.push("")});var d,et=X.length;for(bt(n).append('<div class="cameraContents" />'),d=0;d<et;d++)if(bt(".cameraContents",n).append('<div class="cameraContent" />'),""!=l[d]){var h=bt("> div ",G).eq(d).attr("data-box"),p=d+1;h=void 0!==h&&!1!==h&&""!=h?'data-box="'+bt("> div ",G).eq(d).attr("data-box")+'"':"",bt(".camera_target_content .cameraContent:eq("+d+")",W).append('<a class="camera_link" href="'+l[d]+'" '+h+' target="'+u[d]+'"><span class="sr-only">Image '+p+".</span></a>")}bt(".camera_caption",W).each(function(){var t=bt(this).parent().index(),e=W.find(".cameraContent").eq(t);bt(this).appendTo(e)}),Z.append('<div class="cameraCont" />');var m,f,nt=bt(".cameraCont",W);for(m=0;m<et;m++){nt.append('<div class="cameraSlide cameraSlide_'+m+'" />');var g=bt("> div:eq("+m+")",G);Z.find(".cameraSlide_"+m).clone(g)}function v(){var a=bt(K).width();bt("li",K).removeClass("camera_visThumb"),bt("li",K).each(function(){var t=bt(this).position(),e=bt("ul",K).outerWidth(),n=bt("ul",K).offset().left,i=bt("> div",K).offset().left-n;0<i?bt(".camera_prevThumbs",dt).removeClass("hideNav"):bt(".camera_prevThumbs",dt).addClass("hideNav"),a<e-i?bt(".camera_nextThumbs",dt).removeClass("hideNav"):bt(".camera_nextThumbs",dt).addClass("hideNav");var o=t.left;t.left+bt(this).width()-i<=a&&0<=o-i&&bt(this).addClass("camera_visThumb")})}bt(window).bind("load resize pageshow",function(){vt(),v()}),nt.append('<div class="cameraSlide cameraSlide_'+m+'" />'),W.show();var _,it,ot,y,b,w,at,rt=Z.width(),st=Z.height();function lt(){var t;function e(){if(rt=W.width(),-1!=B.height.indexOf("%")){var t=Math.round(rt/(100/parseFloat(B.height)));st=""!=B.minHeight&&t<parseFloat(B.minHeight)?parseFloat(B.minHeight):t,W.css({height:st})}else"auto"==B.height?st=W.height():(st=parseFloat(B.height),W.css({height:st}));bt(".camerarelative",Z).css({width:rt,height:st}),bt(".imgLoaded",Z).each(function(){var t,e,n=bt(this),i=n.attr("width"),o=n.attr("height"),a=(n.index(),n.attr("data-alignment")),r=n.attr("data-portrait");if(void 0!==a&&!1!==a&&""!==a||(a=B.alignment),void 0!==r&&!1!==r&&""!==r||(r=B.portrait),0==r||"false"==r)if(i/o<rt/st){var s=rt/i,l=.5*Math.abs(st-o*s);switch(a){case"topLeft":case"topCenter":case"topRight":t=0;break;case"centerLeft":case"center":case"centerRight":t="-"+l+"px";break;case"bottomLeft":case"bottomCenter":case"bottomRight":t="-"+2*l+"px"}n.css({height:o*s,"margin-left":0,"margin-right":0,"margin-top":t,position:"absolute",visibility:"visible",width:rt})}else{s=st/o,l=.5*Math.abs(rt-i*s);switch(a){case"topLeft":e=0;break;case"topCenter":e="-"+l+"px";break;case"topRight":e="-"+2*l+"px";break;case"centerLeft":e=0;break;case"center":e="-"+l+"px";break;case"centerRight":e="-"+2*l+"px";break;case"bottomLeft":e=0;break;case"bottomCenter":e="-"+l+"px";break;case"bottomRight":e="-"+2*l+"px"}n.css({height:st,"margin-left":e,"margin-right":e,"margin-top":0,position:"absolute",visibility:"visible",width:i*s})}else if(i/o<rt/st){s=st/o,l=.5*Math.abs(rt-i*s);switch(a){case"topLeft":e=0;break;case"topCenter":e=l+"px";break;case"topRight":e=2*l+"px";break;case"centerLeft":e=0;break;case"center":e=l+"px";break;case"centerRight":e=2*l+"px";break;case"bottomLeft":e=0;break;case"bottomCenter":e=l+"px";break;case"bottomRight":e=2*l+"px"}n.css({height:st,"margin-left":e,"margin-right":e,"margin-top":0,position:"absolute",visibility:"visible",width:i*s})}else{s=rt/i,l=.5*Math.abs(st-o*s);switch(a){case"topLeft":case"topCenter":case"topRight":t=0;break;case"centerLeft":case"center":case"centerRight":t=l+"px";break;case"bottomLeft":case"bottomCenter":case"bottomRight":t=2*l+"px"}n.css({height:o*s,"margin-left":0,"margin-right":0,"margin-top":t,position:"absolute",visibility:"visible",width:rt})}})}1==f?(clearTimeout(t),t=setTimeout(e,200)):e(),f=!0}if(bt(window).bind("resize pageshow",function(){1==f&&lt(),bt("ul",K).animate({"margin-top":0},0,vt),G.hasClass("paused")||(G.addClass("paused"),bt(".camera_stop",dt).length&&(bt(".camera_stop",dt).hide(),bt(".camera_play",dt).show()),"none"!=$&&bt("#"+q).hide(),clearTimeout(_),_=setTimeout(function(){G.removeClass("paused"),bt(".camera_play",dt).length&&(bt(".camera_play",dt).hide(),bt(".camera_stop",dt).show()),"none"!=$&&bt("#"+q).fadeIn()},1500))}),0==(y=U()&&""!=B.mobileAutoAdvance?B.mobileAutoAdvance:B.autoAdvance)&&G.addClass("paused"),b=U()&&""!=B.mobileNavHover?B.mobileNavHover:B.navigationHover,0!=G.length){var ut=bt(".cameraSlide",Z);ut.wrapInner('<div class="camerarelative" />');var ct=B.barDirection,dt=W;function ht(){bt("iframe",V).each(function(){bt(".camera_caption",V).show();var t=bt(this),e=t.attr("data-src");t.attr("src",e);var n=B.imagePath+"blank.gif",i=new Image;if(i.src=n,-1!=B.height.indexOf("%")){var o=Math.round(rt/(100/parseFloat(B.height)));st=""!=B.minHeight&&o<parseFloat(B.minHeight)?parseFloat(B.minHeight):o}else st="auto"==B.height?W.height():parseFloat(B.height);t.after(bt(i).attr({class:"imgFake",width:rt,height:st}));var a=t.clone();t.remove(),bt(i).bind("click",function(){"absolute"==bt(this).css("position")?(bt(this).remove(),-1!=e.indexOf("vimeo")||-1!=e.indexOf("youtube")?autoplay=-1!=e.indexOf("?")?"&autoplay=1":"?autoplay=1":-1!=e.indexOf("dailymotion")&&(autoplay=-1!=e.indexOf("?")?"&autoPlay=1":"?autoPlay=1"),a.attr("src",e+autoplay),at=!0):(bt(this).css({position:"absolute",top:0,left:0,zIndex:10}).after(a),a.css({position:"absolute",top:0,left:0,zIndex:9}))})})}bt("iframe",V).each(function(){var t=bt(this),e=t.attr("src");t.attr("data-src",e);var n=t.parent().index(".camera_src > div");bt(".camera_target_content .cameraContent:eq("+n+")",W).append(t)}),ht(),1==B.hover&&(U()||V.hover(function(){G.addClass("hovered")},function(){G.removeClass("hovered")})),1==b&&(bt(a,W).animate({opacity:0},0),bt(r,W).animate({opacity:0},0),bt(s,W).animate({opacity:0},0),U()?(bt(document).on("vmouseover",e,function(){bt(a,W).animate({opacity:1},200),bt(r,W).animate({opacity:1},200),bt(s,W).animate({opacity:1},200)}),bt(document).on("vmouseout",e,function(){bt(a,W).delay(500).animate({opacity:0},200),bt(r,W).delay(500).animate({opacity:0},200),bt(s,W).delay(500).animate({opacity:0},200)})):V.hover(function(){bt(a,W).animate({opacity:1},200),bt(r,W).animate({opacity:1},200),bt(s,W).animate({opacity:1},200)},function(){bt(a,W).animate({opacity:0},200),bt(r,W).animate({opacity:0},200),bt(s,W).animate({opacity:0},200)})),dt.on("click",".camera_stop",function(){y=!1,G.addClass("paused"),bt(".camera_stop",dt).length&&(bt(".camera_stop",dt).hide(),bt(".camera_play",dt).show()),"none"!=$&&bt("#"+q).hide()}),dt.on("click",".camera_play",function(){y=!0,G.removeClass("paused"),bt(".camera_play",dt).length&&(bt(".camera_play",dt).hide(),bt(".camera_stop",dt).show()),"none"!=$&&bt("#"+q).show()}),1==B.pauseOnClick&&bt(".camera_target_content",V).mouseup(function(){y=!1,G.addClass("paused"),bt(".camera_stop",dt).hide(),bt(".camera_play",dt).show(),bt("#"+q).hide()}),bt(".cameraContent, .imgFake",V).hover(function(){w=!0},function(){w=!1}),bt(".cameraContent, .imgFake",V).bind("click",function(){1==at&&1==w&&(y=!1,bt(".camera_caption",V).hide(),G.addClass("paused"),bt(".camera_stop",dt).hide(),bt(".camera_play",dt).show(),bt("#"+q).hide())})}function pt(t){for(var e,n,i=t.length;i;e=parseInt(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n);return t}if("pie"!=$){switch(o.append('<span class="camera_bar_cont" />'),bt(".camera_bar_cont",o).animate({opacity:B.loaderOpacity},0).css({position:"absolute",left:0,right:0,top:0,bottom:0,"background-color":B.loaderBgColor}).append('<span id="'+q+'" />'),bt("#"+q).animate({opacity:0},0),(M=bt("#"+q)).css({position:"absolute","background-color":B.loaderColor}),B.barPosition){case"left":o.css({right:"auto",width:B.loaderStroke});break;case"right":o.css({left:"auto",width:B.loaderStroke});break;case"top":o.css({bottom:"auto",height:B.loaderStroke});break;case"bottom":o.css({top:"auto",height:B.loaderStroke})}switch(ct){case"leftToRight":case"rightToLeft":M.css({left:0,right:0,top:B.loaderPadding,bottom:B.loaderPadding});break;case"topToBottom":case"bottomToTop":M.css({left:B.loaderPadding,right:B.loaderPadding,top:0,bottom:0})}}else{var M,T,mt,ft;switch(i.append('<canvas id="'+q+'"></canvas>'),(M=document.getElementById(q)).setAttribute("width",B.pieDiameter),M.setAttribute("height",B.pieDiameter),B.piePosition){case"leftTop":T="left:0; top:0;";break;case"rightTop":T="right:0; top:0;";break;case"leftBottom":T="left:0; bottom:0;";break;case"rightBottom":T="right:0; bottom:0;"}if(M.setAttribute("style","position:absolute; z-index:1002; "+T),M&&M.getContext){var gt=M.getContext("2d");gt.rotate(1.5*Math.PI),gt.translate(-B.pieDiameter,0)}}if("none"!=$&&0!=y||(bt("#"+q).hide(),bt(".camera_canvas_wrap",dt).hide()),bt(J).length){var L;for(bt(J).append('<ul class="camera_pag_ul" />'),L=0;L<et;L++)bt(".camera_pag_ul",W).append('<li class="pag_nav_'+L+'" style="position:relative; z-index:1002"><span><span>'+L+"</span></span></li>");bt(".camera_pag_ul li",W).hover(function(){if(bt(this).addClass("camera_hover"),bt(".camera_thumb",this).length){var t=bt(".camera_thumb",this).outerWidth(),e=bt(".camera_thumb",this).outerHeight(),n=bt(this).outerWidth();bt(".camera_thumb",this).show().css({top:"-"+e+"px",left:"-"+(t-n)/2+"px"}).animate({opacity:1,"margin-top":"-3px"},200),bt(".thumb_arrow",this).show().animate({opacity:1,"margin-top":"-3px"},200)}},function(){bt(this).removeClass("camera_hover"),bt(".camera_thumb",this).animate({"margin-top":"-20px",opacity:0},200,function(){bt(this).css({marginTop:"5px"}).hide()}),bt(".thumb_arrow",this).animate({"margin-top":"-20px",opacity:0},200,function(){bt(this).css({marginTop:"5px"}).hide()})})}bt(K).length?bt(J).length?(bt.each(c,function(t,e){if(""!=bt("> div",G).eq(t).attr("data-thumb")){var n=bt("> div",G).eq(t).attr("data-thumb"),i=new Image;i.src=n,bt("li.pag_nav_"+t,J).append(bt(i).attr("class","camera_thumb").css({position:"absolute"}).animate({opacity:0},0)),bt("li.pag_nav_"+t+" > img",J).after('<div class="thumb_arrow" />'),bt("li.pag_nav_"+t+" > .thumb_arrow",J).animate({opacity:0},0)}}),W.css({marginBottom:bt(J).outerHeight()})):(bt(K).append("<div />"),bt(K).before('<div class="camera_prevThumbs hideNav"><div></div></div>').before('<div class="camera_nextThumbs hideNav"><div></div></div>'),bt("> div",K).append("<ul />"),bt.each(c,function(t,e){if(""!=bt("> div",G).eq(t).attr("data-thumb")){var n=bt("> div",G).eq(t).attr("data-thumb"),i=new Image;i.src=n,bt("ul",K).append('<li class="pix_thumb pix_thumb_'+t+'" />'),bt("li.pix_thumb_"+t,K).append(bt(i).attr("class","camera_thumb"))}})):!bt(K).length&&bt(J).length&&W.css({marginBottom:bt(J).outerHeight()});var k=!0;function vt(){if(bt(K).length&&!bt(J).length){var t,e=bt(K).outerWidth(),n=(bt("ul > li",K).outerWidth(),bt("li.cameracurrent",K).length?bt("li.cameracurrent",K).position():""),i=bt("ul > li",K).length*bt("ul > li",K).outerWidth(),o=bt("ul",K).offset().left,a=bt("> div",K).offset().left;t=o<0?"-"+(a-o):a-o,1==k&&(bt("ul",K).width(bt("ul > li",K).length*bt("ul > li",K).outerWidth()),bt(K).length&&!bt(J).lenght&&W.css({marginBottom:bt(K).outerHeight()}),v(),bt("ul",K).width(bt("ul > li",K).length*bt("ul > li",K).outerWidth()),bt(K).length&&!bt(J).lenght&&W.css({marginBottom:bt(K).outerHeight()})),k=!1;var r=bt("li.cameracurrent",K).length?n.left:"",s=bt("li.cameracurrent",K).length?n.left+bt("li.cameracurrent",K).outerWidth():"";r<bt("li.cameracurrent",K).outerWidth()&&(r=0),e<s-t?r+e<i?bt("ul",K).animate({"margin-left":"-"+r+"px"},500,v):bt("ul",K).animate({"margin-left":"-"+(bt("ul",K).outerWidth()-e)+"px"},500,v):r-t<0?bt("ul",K).animate({"margin-left":"-"+r+"px"},500,v):(bt("ul",K).css({"margin-left":"auto","margin-right":"auto"}),setTimeout(v,100))}}function _t(){mt=0;var t=bt(".camera_bar_cont",dt).width(),e=bt(".camera_bar_cont",dt).height();if("pie"!=$)switch(ct){case"leftToRight":bt("#"+q).css({right:t});break;case"rightToLeft":bt("#"+q).css({left:t});break;case"topToBottom":bt("#"+q).css({bottom:e});break;case"bottomToTop":bt("#"+q).css({top:e})}else gt.clearRect(0,0,B.pieDiameter,B.pieDiameter)}function yt(t){G.addClass("camerasliding"),at=!1;var a=parseFloat(bt("div.cameraSlide.cameracurrent",Z).index());if(0<t)var l=t-1;else if(a==et-1)l=0;else l=a+1;var e=bt(".cameraSlide:eq("+l+")",Z),n=bt(".cameraSlide:eq("+(l+1)+")",Z).addClass("cameranext");if(a!=l+1&&n.hide(),bt(".cameraContent",V).fadeOut(600),bt(".camera_caption",V).show(),bt(".camerarelative",e).append(bt("> div ",G).eq(l).find("> div.camera_effected")),bt(".camera_target_content .cameraContent:eq("+l+")",W).append(bt("> div ",G).eq(l).find("> div")),bt(".imgLoaded",e).length){if(X.length>l+1&&!bt(".imgLoaded",n).length){var i=X[l+1],o=new Image;o.src=i+"?"+(new Date).getTime(),n.prepend(bt(o).attr("class","imgLoaded").css("visibility","hidden")),o.onload=function(){H=o.naturalWidth,R=o.naturalHeight,bt(o).attr("data-alignment",tt[l+1]).attr("data-portrait",Q[l+1]),bt(o).attr("width",H),bt(o).attr("height",R),lt()}}B.onLoaded.call(this),bt(".camera_loader",W).is(":visible")?bt(".camera_loader",W).fadeOut(400):(bt(".camera_loader",W).css({visibility:"hidden"}),bt(".camera_loader",W).fadeOut(400,function(){bt(".camera_loader",W).css({visibility:"visible"})}));var r,u,s,c,d,h=B.rows,p=B.cols,m=1,f=0,g=new Array("simpleFade","curtainTopLeft","curtainTopRight","curtainBottomLeft","curtainBottomRight","curtainSliceLeft","curtainSliceRight","blindCurtainTopLeft","blindCurtainTopRight","blindCurtainBottomLeft","blindCurtainBottomRight","blindCurtainSliceBottom","blindCurtainSliceTop","stampede","mosaic","mosaicReverse","mosaicRandom","mosaicSpiral","mosaicSpiralReverse","topLeftBottomRight","bottomRightTopLeft","bottomLeftTopRight","topRightBottomLeft","scrollLeft","scrollRight","scrollTop","scrollBottom","scrollHorz");marginLeft=0,marginTop=0,opacityOnGrid=0,opacityOnGrid=1==B.opacityOnGrid?0:1;var v=bt(" > div",G).eq(l).attr("data-fx");if("random"==(c=U()&&""!=B.mobileFx&&"default"!=B.mobileFx?B.mobileFx:void 0!==v&&!1!==v&&"default"!==v?v:B.fx)?c=(c=pt(g))[0]:0<(c=c).indexOf(",")&&(c=(c=pt(c=(c=c.replace(/ /g,"")).split(",")))[0]),dataEasing=bt(" > div",G).eq(l).attr("data-easing"),mobileEasing=bt(" > div",G).eq(l).attr("data-mobileEasing"),d=U()&&""!=B.mobileEasing&&"default"!=B.mobileEasing?"undefined"!=typeof mobileEasing&&!1!==mobileEasing&&"default"!==mobileEasing?mobileEasing:B.mobileEasing:"undefined"!=typeof dataEasing&&!1!==dataEasing&&"default"!==dataEasing?dataEasing:B.easing,void 0!==(r=bt(" > div",G).eq(l).attr("data-slideOn"))&&!1!==r)_=r;else if("random"==B.slideOn){var _=new Array("next","prev");_=(_=pt(_))[0]}else _=B.slideOn;var y=bt(" > div",G).eq(l).attr("data-time");u=void 0!==y&&!1!==y&&""!==y?parseFloat(y):B.time;var b=bt(" > div",G).eq(l).attr("data-transPeriod");switch(s=void 0!==b&&!1!==b&&""!==b?parseFloat(b):B.transPeriod,bt(G).hasClass("camerastarted")||(c="simpleFade",_="next",d="",s=400,bt(G).addClass("camerastarted")),c){case"simpleFade":h=p=1;break;case"curtainTopLeft":case"curtainTopRight":case"curtainBottomLeft":case"curtainBottomRight":case"curtainSliceLeft":case"curtainSliceRight":p=0==B.slicedCols?B.cols:B.slicedCols,h=1;break;case"blindCurtainTopLeft":case"blindCurtainTopRight":case"blindCurtainBottomLeft":case"blindCurtainBottomRight":case"blindCurtainSliceTop":case"blindCurtainSliceBottom":h=0==B.slicedRows?B.rows:B.slicedRows,p=1;break;case"stampede":f="-"+s;break;case"mosaic":case"mosaicReverse":f=B.gridDifference;break;case"mosaicRandom":break;case"mosaicSpiral":case"mosaicSpiralReverse":f=B.gridDifference,m=1.7;break;case"topLeftBottomRight":case"bottomRightTopLeft":case"bottomLeftTopRight":case"topRightBottomLeft":f=B.gridDifference,m=6;break;case"scrollLeft":case"scrollRight":case"scrollTop":case"scrollBottom":case"scrollHorz":h=p=1}for(var w,M,T=0,L=h*p,k=rt-Math.floor(rt/p)*p,D=st-Math.floor(st/h)*h,S=0,x=0,C=new Array,E=new Array,P=new Array;T<L;){C.push(T),E.push(T),nt.append('<div class="cameraappended" style="display:none; overflow:hidden; position:absolute; z-index:1000" />');var Y=bt(".cameraappended:eq("+T+")",Z);"scrollLeft"==c||"scrollRight"==c||"scrollTop"==c||"scrollBottom"==c||"scrollHorz"==c||"next"==_?ut.eq(l).clone().show().appendTo(Y):ut.eq(a).clone().show().appendTo(Y),w=T%p<k?1:0,T%p==0&&(S=0),M=Math.floor(T/p)<D?1:0,Y.css({height:Math.floor(st/h+M+1),left:S,top:x,width:Math.floor(rt/p+w+1)}),bt("> .cameraSlide",Y).css({height:st,"margin-left":"-"+S+"px","margin-top":"-"+x+"px",width:rt}),S=S+Y.width()-1,T%p==p-1&&(x=x+Y.height()-1),T++}switch(c){case"curtainTopLeft":case"curtainBottomLeft":case"curtainSliceLeft":break;case"curtainTopRight":case"curtainBottomRight":case"curtainSliceRight":C=C.reverse();break;case"blindCurtainTopLeft":break;case"blindCurtainBottomLeft":C=C.reverse();break;case"blindCurtainSliceTop":case"blindCurtainTopRight":break;case"blindCurtainBottomRight":case"blindCurtainSliceBottom":C=C.reverse();break;case"stampede":C=pt(C);break;case"mosaic":break;case"mosaicReverse":C=C.reverse();break;case"mosaicRandom":C=pt(C);break;case"mosaicSpiral":var j=h/2,A=0;for(I=0;I<j;I++){for(N=O=I;N<p-I-1;N++)P[A++]=O*p+N;for(N=p-I-1,O=I;O<h-I-1;O++)P[A++]=O*p+N;for(O=h-I-1,N=p-I-1;I<N;N--)P[A++]=O*p+N;for(O=h-(N=I)-1;I<O;O--)P[A++]=O*p+N}C=P;break;case"mosaicSpiralReverse":var I;j=h/2,A=L-1;for(I=0;I<j;I++){for(N=O=I;N<p-I-1;N++)P[A--]=O*p+N;for(N=p-I-1,O=I;O<h-I-1;O++)P[A--]=O*p+N;for(O=h-I-1,N=p-I-1;I<N;N--)P[A--]=O*p+N;for(O=h-(N=I)-1;I<O;O--)P[A--]=O*p+N}C=P;break;case"topLeftBottomRight":for(var O=0;O<h;O++)for(var N=0;N<p;N++)P.push(N+O);E=P;break;case"bottomRightTopLeft":for(O=0;O<h;O++)for(N=0;N<p;N++)P.push(N+O);E=P.reverse();break;case"bottomLeftTopRight":for(O=h;0<O;O--)for(N=0;N<p;N++)P.push(N+O);E=P;break;case"topRightBottomLeft":for(O=0;O<h;O++)for(N=p;0<N;N--)P.push(N+O);E=P}bt.each(C,function(t,e){switch(w=e%p<k?1:0,e%p==0&&(S=0),M=Math.floor(e/p)<D?1:0,c){case"simpleFade":height=st,width=rt,opacityOnGrid=0;break;case"curtainTopLeft":case"curtainTopRight":height=0,width=Math.floor(rt/p+w+1),marginTop="-"+Math.floor(st/h+M+1)+"px";break;case"curtainBottomLeft":case"curtainBottomRight":height=0,width=Math.floor(rt/p+w+1),marginTop=Math.floor(st/h+M+1)+"px";break;case"curtainSliceLeft":case"curtainSliceRight":height=0,width=Math.floor(rt/p+w+1),marginTop=e%2==0?Math.floor(st/h+M+1)+"px":"-"+Math.floor(st/h+M+1)+"px";break;case"blindCurtainTopLeft":height=Math.floor(st/h+M+1),width=0,marginLeft="-"+Math.floor(rt/p+w+1)+"px";break;case"blindCurtainTopRight":height=Math.floor(st/h+M+1),width=0,marginLeft=Math.floor(rt/p+w+1)+"px";break;case"blindCurtainBottomLeft":height=Math.floor(st/h+M+1),width=0,marginLeft="-"+Math.floor(rt/p+w+1)+"px";break;case"blindCurtainBottomRight":height=Math.floor(st/h+M+1),width=0,marginLeft=Math.floor(rt/p+w+1)+"px";break;case"blindCurtainSliceBottom":case"blindCurtainSliceTop":height=Math.floor(st/h+M+1),width=0,marginLeft=e%2==0?"-"+Math.floor(rt/p+w+1)+"px":Math.floor(rt/p+w+1)+"px";break;case"stampede":height=0,width=0,marginLeft=.2*rt*(t%p-(p-Math.floor(p/2)))+"px",marginTop=.2*st*(Math.floor(t/p)+1-(h-Math.floor(h/2)))+"px";break;case"mosaic":height=0,width=0;break;case"mosaicReverse":height=0,width=0,marginLeft=Math.floor(rt/p+w+1)+"px",marginTop=Math.floor(st/h+M+1)+"px";break;case"mosaicRandom":case"mosaicSpiral":case"mosaicSpiralReverse":height=0,width=0,marginLeft=.5*Math.floor(rt/p+w+1)+"px",marginTop=.5*Math.floor(st/h+M+1)+"px";break;case"topLeftBottomRight":height=0,width=0;break;case"bottomRightTopLeft":height=0,width=0,marginLeft=Math.floor(rt/p+w+1)+"px",marginTop=Math.floor(st/h+M+1)+"px";break;case"bottomLeftTopRight":height=0,width=0,marginLeft=0,marginTop=Math.floor(st/h+M+1)+"px";break;case"topRightBottomLeft":height=0,width=0,marginLeft=Math.floor(rt/p+w+1)+"px",marginTop=0;break;case"scrollRight":height=st,width=rt,marginLeft=-rt;break;case"scrollLeft":height=st,width=rt,marginLeft=rt;break;case"scrollTop":height=st,width=rt,marginTop=st;break;case"scrollBottom":height=st,width=rt,marginTop=-st;break;case"scrollHorz":height=st,width=rt,marginLeft=(0!=a||l!=et-1)&&(a<l||a==et-1&&0==l)?rt:-rt}var n=bt(".cameraappended:eq("+e+")",Z);void 0!==it&&(clearInterval(it),clearTimeout(ot),ot=setTimeout(_t,s+f)),bt(J).length&&(bt(".camera_pag li",W).removeClass("cameracurrent"),bt(".camera_pag li",W).eq(l).addClass("cameracurrent")),bt(K).length&&(bt("li",K).removeClass("cameracurrent"),bt("li",K).eq(l).addClass("cameracurrent"),bt("li",K).not(".cameracurrent").find("img").animate({opacity:.5},0),bt("li.cameracurrent img",K).animate({opacity:1},0),bt("li",K).hover(function(){bt("img",this).stop(!0,!1).animate({opacity:1},150)},function(){bt(this).hasClass("cameracurrent")||bt("img",this).stop(!0,!1).animate({opacity:.5},150)}));var i=parseFloat(s)+parseFloat(f);function o(){if(bt(this).addClass("cameraeased"),0<=bt(".cameraeased",Z).length&&bt(K).css({visibility:"visible"}),bt(".cameraeased",Z).length==L){vt(),bt(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom",V).each(function(){bt(this).css("visibility","hidden")}),ut.eq(l).show().css("z-index","999").removeClass("cameranext").addClass("cameracurrent"),ut.eq(a).css("z-index","1").removeClass("cameracurrent"),bt(".cameraContent",V).eq(l).addClass("cameracurrent"),0<=a&&bt(".cameraContent",V).eq(a).removeClass("cameracurrent"),B.onEndTransition.call(this),"hide"!=bt("> div",G).eq(l).attr("data-video")&&bt(".cameraContent.cameracurrent .imgFake",V).length&&bt(".cameraContent.cameracurrent .imgFake",V).click();var s=ut.eq(l).find(".fadeIn").length,r=bt(".cameraContent",V).eq(l).find(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom").length;0!=s&&bt(".cameraSlide.cameracurrent .fadeIn",V).each(function(){if(""!=bt(this).attr("data-easing"))var t=bt(this).attr("data-easing");else t=d;var e=bt(this);if(void 0===e.attr("data-outerWidth")||!1===e.attr("data-outerWidth")||""===e.attr("data-outerWidth")){var n=e.outerWidth();e.attr("data-outerWidth",n)}else n=e.attr("data-outerWidth");if(void 0===e.attr("data-outerHeight")||!1===e.attr("data-outerHeight")||""===e.attr("data-outerHeight")){var i=e.outerHeight();e.attr("data-outerHeight",i)}else i=e.attr("data-outerHeight");var o=e.position(),a=(o.left,o.top,e.attr("class")),r=e.index();e.parents(".camerarelative").outerHeight(),e.parents(".camerarelative").outerWidth();-1!=a.indexOf("fadeIn")?e.animate({opacity:0},0).css("visibility","visible").delay(u/s*(.1*(r-1))).animate({opacity:1},u/s*.15,t):e.css("visibility","visible")}),bt(".cameraContent.cameracurrent",V).show(),0!=r&&bt(".cameraContent.cameracurrent .moveFromLeft, .cameraContent.cameracurrent .moveFromRight, .cameraContent.cameracurrent .moveFromTop, .cameraContent.cameracurrent .moveFromBottom, .cameraContent.cameracurrent .fadeIn, .cameraContent.cameracurrent .fadeFromLeft, .cameraContent.cameracurrent .fadeFromRight, .cameraContent.cameracurrent .fadeFromTop, .cameraContent.cameracurrent .fadeFromBottom",V).each(function(){if(""!=bt(this).attr("data-easing"))var t=bt(this).attr("data-easing");else t=d;var e=bt(this),n=e.position(),i=(n.left,n.top,e.attr("class")),o=e.index(),a=e.outerHeight();-1!=i.indexOf("moveFromLeft")?(e.css({left:"-"+rt+"px",right:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({left:n.left},u/r*.15,t)):-1!=i.indexOf("moveFromRight")?(e.css({left:rt+"px",right:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({left:n.left},u/r*.15,t)):-1!=i.indexOf("moveFromTop")?(e.css({top:"-"+st+"px",bottom:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({top:n.top},u/r*.15,t,function(){e.css({top:"auto",bottom:0})})):-1!=i.indexOf("moveFromBottom")?(e.css({top:st+"px",bottom:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({top:n.top},u/r*.15,t)):-1!=i.indexOf("fadeFromLeft")?(e.animate({opacity:0},0).css({left:"-"+rt+"px",right:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({left:n.left,opacity:1},u/r*.15,t)):-1!=i.indexOf("fadeFromRight")?(e.animate({opacity:0},0).css({left:rt+"px",right:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({left:n.left,opacity:1},u/r*.15,t)):-1!=i.indexOf("fadeFromTop")?(e.animate({opacity:0},0).css({top:"-"+st+"px",bottom:"auto"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({top:n.top,opacity:1},u/r*.15,t,function(){e.css({top:"auto",bottom:0})})):-1!=i.indexOf("fadeFromBottom")?(e.animate({opacity:0},0).css({bottom:"-"+a+"px"}),e.css("visibility","visible").delay(u/r*(.1*(o-1))).animate({bottom:"0",opacity:1},u/r*.15,t)):-1!=i.indexOf("fadeIn")?e.animate({opacity:0},0).css("visibility","visible").delay(u/r*(.1*(o-1))).animate({opacity:1},u/r*.15,t):e.css("visibility","visible")}),bt(".cameraappended",Z).remove(),G.removeClass("camerasliding"),ut.eq(a).hide();var t,e=bt(".camera_bar_cont",dt).width(),n=bt(".camera_bar_cont",dt).height();t="pie"!=$?.05:.005,bt("#"+q).animate({opacity:B.loaderOpacity},200),it=setInterval(function(){if(G.hasClass("stopped")&&clearInterval(it),"pie"!=$)switch(mt<=1.002&&!G.hasClass("stopped")&&!G.hasClass("paused")&&!G.hasClass("hovered")?mt+=t:mt<=1&&(G.hasClass("stopped")||G.hasClass("paused")||G.hasClass("stopped")||G.hasClass("hovered"))?mt=mt:G.hasClass("stopped")||G.hasClass("paused")||G.hasClass("hovered")||(clearInterval(it),ht(),bt("#"+q).animate({opacity:0},200,function(){clearTimeout(ot),ot=setTimeout(_t,i),yt(),B.onStartLoading.call(this)})),ct){case"leftToRight":bt("#"+q).animate({right:e-e*mt},u*t,"linear");break;case"rightToLeft":bt("#"+q).animate({left:e-e*mt},u*t,"linear");break;case"topToBottom":case"bottomToTop":bt("#"+q).animate({bottom:n-n*mt},u*t,"linear")}else ft=mt,gt.clearRect(0,0,B.pieDiameter,B.pieDiameter),gt.globalCompositeOperation="destination-over",gt.beginPath(),gt.arc(B.pieDiameter/2,B.pieDiameter/2,B.pieDiameter/2-B.loaderStroke,0,2*Math.PI,!1),gt.lineWidth=B.loaderStroke,gt.strokeStyle=B.loaderBgColor,gt.stroke(),gt.closePath(),gt.globalCompositeOperation="source-over",gt.beginPath(),gt.arc(B.pieDiameter/2,B.pieDiameter/2,B.pieDiameter/2-B.loaderStroke,0,2*Math.PI*ft,!1),gt.lineWidth=B.loaderStroke-2*B.loaderPadding,gt.strokeStyle=B.loaderColor,gt.stroke(),gt.closePath(),mt<=1.002&&!G.hasClass("stopped")&&!G.hasClass("paused")&&!G.hasClass("hovered")?mt+=t:mt<=1&&(G.hasClass("stopped")||G.hasClass("paused")||G.hasClass("hovered"))?mt=mt:G.hasClass("stopped")||G.hasClass("paused")||G.hasClass("hovered")||(clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},200,function(){clearTimeout(ot),ot=setTimeout(_t,i),yt(),B.onStartLoading.call(this)}))},u*t)}}"scrollLeft"==c||"scrollRight"==c||"scrollTop"==c||"scrollBottom"==c||"scrollHorz"==c?(B.onStartTransition.call(this),i=0,n.delay((s+f)/L*E[t]*m*.5).css({display:"block",height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width}).animate({height:Math.floor(st/h+M+1),"margin-top":0,"margin-left":0,width:Math.floor(rt/p+w+1)},s-f,d,o),ut.eq(a).delay((s+f)/L*E[t]*m*.5).animate({"margin-left":-1*marginLeft,"margin-top":-1*marginTop},s-f,d,function(){bt(this).css({"margin-top":0,"margin-left":0})})):(B.onStartTransition.call(this),i=parseFloat(s)+parseFloat(f),"next"==_?n.delay((s+f)/L*E[t]*m*.5).css({display:"block",height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width,opacity:opacityOnGrid}).animate({height:Math.floor(st/h+M+1),"margin-top":0,"margin-left":0,opacity:1,width:Math.floor(rt/p+w+1)},s-f,d,o):(ut.eq(l).show().css("z-index","999").addClass("cameracurrent"),ut.eq(a).css("z-index","1").removeClass("cameracurrent"),bt(".cameraContent",V).eq(l).addClass("cameracurrent"),bt(".cameraContent",V).eq(a).removeClass("cameracurrent"),n.delay((s+f)/L*E[t]*m*.5).css({display:"block",height:Math.floor(st/h+M+1),"margin-top":0,"margin-left":0,opacity:1,width:Math.floor(rt/p+w+1)}).animate({height:height,"margin-left":marginLeft,"margin-top":marginTop,width:width,opacity:opacityOnGrid},s-f,d,o)))})}else{var H,R,F=X[l],z=new Image;z.src=F+"?"+(new Date).getTime(),e.css("visibility","hidden"),e.prepend(bt(z).attr("class","imgLoaded").css("visibility","hidden")),bt(z).get(0).complete&&"0"!=H&&"0"!=R&&void 0!==H&&!1!==H&&void 0!==R&&!1!==R||(bt(".camera_loader",W).delay(500).fadeIn(400),z.onload=function(){H=z.naturalWidth,R=z.naturalHeight,bt(z).attr("data-alignment",tt[l]).attr("data-portrait",Q[l]),bt(z).attr("width",H),bt(z).attr("height",R),Z.find(".cameraSlide_"+l).hide().css("visibility","visible"),lt(),yt(l+1)})}}bt(s).length&&(bt(s).append('<div class="camera_play"></div>').append('<div class="camera_stop"></div>'),1==y?(bt(".camera_play",dt).hide(),bt(".camera_stop",dt).show()):(bt(".camera_stop",dt).hide(),bt(".camera_play",dt).show())),_t(),bt(".moveFromLeft, .moveFromRight, .moveFromTop, .moveFromBottom, .fadeIn, .fadeFromLeft, .fadeFromRight, .fadeFromTop, .fadeFromBottom",V).each(function(){bt(this).css("visibility","hidden")}),B.onStartLoading.call(this),yt(),bt(a).length&&bt(a).click(function(){if(!G.hasClass("camerasliding")){var t=parseFloat(bt(".cameraSlide.cameracurrent",Z).index());clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",W).animate({opacity:0},0),_t(),yt(0!=t?t:et),B.onStartLoading.call(this)}}),bt(r).length&&bt(r).click(function(){if(!G.hasClass("camerasliding")){var t=parseFloat(bt(".cameraSlide.cameracurrent",Z).index());clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},0),_t(),yt(t==et-1?1:t+2),B.onStartLoading.call(this)}}),U()&&(V.bind("swipeleft",function(t){if(!G.hasClass("camerasliding")){var e=parseFloat(bt(".cameraSlide.cameracurrent",Z).index());clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},0),_t(),yt(e==et-1?1:e+2),B.onStartLoading.call(this)}}),V.bind("swiperight",function(t){if(!G.hasClass("camerasliding")){var e=parseFloat(bt(".cameraSlide.cameracurrent",Z).index());clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},0),_t(),yt(0!=e?e:et),B.onStartLoading.call(this)}})),bt(J).length&&bt(".camera_pag li",W).click(function(){if(!G.hasClass("camerasliding")){var t=parseFloat(bt(this).index());t!=parseFloat(bt(".cameraSlide.cameracurrent",Z).index())&&(clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},0),_t(),yt(t+1),B.onStartLoading.call(this))}}),bt(K).length&&(bt(".pix_thumb img",K).click(function(){if(!G.hasClass("camerasliding")){var t=parseFloat(bt(this).parents("li").index());t!=parseFloat(bt(".cameracurrent",Z).index())&&(clearInterval(it),ht(),bt("#"+q+", .camera_canvas_wrap",dt).animate({opacity:0},0),bt(".pix_thumb",K).removeClass("cameracurrent"),bt(this).parents("li").addClass("cameracurrent"),_t(),yt(t+1),vt(),B.onStartLoading.call(this))}}),bt(".camera_thumbs_cont .camera_prevThumbs",dt).hover(function(){bt(this).stop(!0,!1).animate({opacity:1},250)},function(){bt(this).stop(!0,!1).animate({opacity:.7},250)}),bt(".camera_prevThumbs",dt).click(function(){var e=0,t=(bt(K).outerWidth(),bt("ul",K).offset().left),n=bt("> div",K).offset().left-t;bt(".camera_visThumb",K).each(function(){var t=bt(this).outerWidth();e+=t}),0<n-e?bt("ul",K).animate({"margin-left":"-"+(n-e)+"px"},500,v):bt("ul",K).animate({"margin-left":0},500,v)}),bt(".camera_thumbs_cont .camera_nextThumbs",dt).hover(function(){bt(this).stop(!0,!1).animate({opacity:1},250)},function(){bt(this).stop(!0,!1).animate({opacity:.7},250)}),bt(".camera_nextThumbs",dt).click(function(){var e=0,t=bt(K).outerWidth(),n=bt("ul",K).outerWidth(),i=bt("ul",K).offset().left,o=bt("> div",K).offset().left-i;bt(".camera_visThumb",K).each(function(){var t=bt(this).outerWidth();e+=t}),o+e+e<n?bt("ul",K).animate({"margin-left":"-"+(o+e)+"px"},500,v):bt("ul",K).animate({"margin-left":"-"+(n-t)+"px"},500,v)}))}}(jQuery),function(n){n.fn.cameraStop=function(){var t=n(this),e=n(".camera_src",t);t.index();if(e.addClass("stopped"),n(".camera_showcommands").length)n(".camera_thumbs_wrap",t);else;}}(jQuery),function(e){e.fn.cameraPause=function(){var t=e(this);e(".camera_src",t).addClass("paused")}}(jQuery),function(n){n.fn.cameraResume=function(){var t=n(this),e=n(".camera_src",t);"undefined"!=typeof autoAdv&&!0===autoAdv||e.removeClass("paused")}}(jQuery),define("castle-url/libs/camera/scripts/camera",function(){}),define("castle-url/patterns/gallery",["jquery","pat-base","castle-url/libs/camera/scripts/jquery.easing.1.3","castle-url/libs/camera/scripts/camera"],function(t,e){"use strict";return e.extend({name:"gallery",trigger:".pat-gallery",parser:"mockup",defaults:{pagination:!1,thumbnails:!0},init:function(){this.$el.camera(this.options)}})}),function(a,h,r){var i,o,e,n,s,t=a.L,m={};function l(t){var e,n,i=["webkit","moz","o","ms"];for(e=0;e<i.length&&!n;e++)n=a[i[e]+t];return n}function u(t){var e=+new Date,n=Math.max(0,16-(e-i));return i=e+n,a.setTimeout(t,n)}m.version="0.7","object"==typeof module&&"object"==typeof module.exports?module.exports=m:"function"==typeof define&&define.amd&&define("castle-url/libs/leaflet-dist/leaflet",m),m.noConflict=function(){return a.L=t,this},(a.L=m).Util={extend:function(t){var e,n,i,o,a=Array.prototype.slice.call(arguments,1);for(n=0,i=a.length;n<i;n++)for(e in o=a[n]||{})o.hasOwnProperty(e)&&(t[e]=o[e]);return t},bind:function(t,e){var n=2<arguments.length?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,n||arguments)}},stamp:(n=0,s="_leaflet_id",function(t){return t[s]=t[s]||++n,t[s]}),invokeEach:function(t,e,n){var i,o;if("object"!=typeof t)return!1;for(i in o=Array.prototype.slice.call(arguments,3),t)e.apply(n,[i,t[i]].concat(o));return!0},limitExecByInterval:function(n,i,o){var a,r;return function t(){var e=arguments;return a?void(r=!0):(a=!0,setTimeout(function(){a=!1,r&&(t.apply(o,e),r=!1)},i),void n.apply(o,e))}},falseFn:function(){return!1},formatNum:function(t,e){var n=Math.pow(10,e||5);return Math.round(t*n)/n},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return m.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=m.extend({},t.options,e),t.options},getParamString:function(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")},compileTemplate:function(t,n){return t=(t=t.replace(/"/g,'\\"')).replace(/\{ *([\w_]+) *\}/g,function(t,e){return'" + o["'+e+'"]'+("function"==typeof n[e]?"(o)":"")+' + "'}),new Function("o",'return "'+t+'";')},template:function(t,e){var n=m.Util._templateCache=m.Util._templateCache||{};return n[t]=n[t]||m.Util.compileTemplate(t,e),n[t](e)},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},i=0,o=a.requestAnimationFrame||l("RequestAnimationFrame")||u,e=a.cancelAnimationFrame||l("CancelAnimationFrame")||l("CancelRequestAnimationFrame")||function(t){a.clearTimeout(t)},m.Util.requestAnimFrame=function(t,e,n,i){return t=m.bind(t,e),n&&o===u?void t():o.call(a,t,i)},m.Util.cancelAnimFrame=function(t){t&&e.call(a,t)},m.extend=m.Util.extend,m.bind=m.Util.bind,m.stamp=m.Util.stamp,m.setOptions=m.Util.setOptions,m.Class=function(){},m.Class.extend=function(t){function e(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()}function n(){}n.prototype=this.prototype;var i=new n;for(var o in(i.constructor=e).prototype=i,this)this.hasOwnProperty(o)&&"prototype"!==o&&(e[o]=this[o]);t.statics&&(m.extend(e,t.statics),delete t.statics),t.includes&&(m.Util.extend.apply(null,[i].concat(t.includes)),delete t.includes),t.options&&i.options&&(t.options=m.extend({},i.options,t.options)),m.extend(i,t),i._initHooks=[];var a=this;return e.__super__=a.prototype,i.callInitHooks=function(){if(!this._initHooksCalled){a.prototype.callInitHooks&&a.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=i._initHooks.length;t<e;t++)i._initHooks[t].call(this)}},e},m.Class.include=function(t){m.extend(this.prototype,t)},m.Class.mergeOptions=function(t){m.extend(this.prototype.options,t)},m.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n)};var c,d,p,f,g,v,_,y,b,w,M,T,L,k,D,S,x,C,E,P,Y,j,A,I="_leaflet_events";function O(t){return m.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var n=0,i=e.length;for(this.eachLayer(function(t){n<i?t.setLatLngs(e[n++]):this.removeLayer(t)},this);n<i;)this.addLayer(new t(e[n++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}m.Mixin={},m.Mixin.Events={addEventListener:function(t,e,n){if(m.Util.invokeEach(t,this.addEventListener,this,e,n))return this;var i,o,a,r,s,l,u,c=this[I]=this[I]||{},d=n&&n!==this&&m.stamp(n);for(i=0,o=(t=m.Util.splitWords(t)).length;i<o;i++)a={action:e,context:n||this},r=t[i],d?(l=(s=r+"_idx")+"_len",(u=c[s]=c[s]||{})[d]||(u[d]=[],c[l]=(c[l]||0)+1),u[d].push(a)):(c[r]=c[r]||[],c[r].push(a));return this},hasEventListeners:function(t){var e=this[I];return!!e&&(t in e&&0<e[t].length||t+"_idx"in e&&0<e[t+"_idx_len"])},removeEventListener:function(t,e,n){if(!this[I])return this;if(!t)return this.clearAllEventListeners();if(m.Util.invokeEach(t,this.removeEventListener,this,e,n))return this;var i,o,a,r,s,l,u,c,d=this[I],h=n&&n!==this&&m.stamp(n);for(i=0,o=(t=m.Util.splitWords(t)).length;i<o;i++)if(u=(l=(a=t[i])+"_idx")+"_len",c=d[l],e){if(r=h&&c?c[h]:d[a]){for(s=r.length-1;0<=s;s--)r[s].action!==e||n&&r[s].context!==n||(r.splice(s,1)[0].action=m.Util.falseFn);n&&c&&0===r.length&&(delete c[h],d[u]--)}}else delete d[a],delete d[l],delete d[u];return this},clearAllEventListeners:function(){return delete this[I],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var n,i,o,a,r,s=m.Util.extend({},e,{type:t,target:this}),l=this[I];if(l[t])for(i=0,o=(n=l[t].slice()).length;i<o;i++)n[i].action.call(n[i].context,s);for(r in a=l[t+"_idx"])if(n=a[r].slice())for(i=0,o=n.length;i<o;i++)n[i].action.call(n[i].context,s);return this},addOneTimeEventListener:function(t,e,n){if(m.Util.invokeEach(t,this.addOneTimeEventListener,this,e,n))return this;var i=m.bind(function(){this.removeEventListener(t,e,n).removeEventListener(t,i,n)},this);return this.addEventListener(t,e,n).addEventListener(t,i,n)}},m.Mixin.Events.on=m.Mixin.Events.addEventListener,m.Mixin.Events.off=m.Mixin.Events.removeEventListener,m.Mixin.Events.once=m.Mixin.Events.addOneTimeEventListener,m.Mixin.Events.fire=m.Mixin.Events.fireEvent,g=(f="ActiveXObject"in a)&&!h.addEventListener,v=navigator.userAgent.toLowerCase(),_=-1!==v.indexOf("webkit"),y=-1!==v.indexOf("chrome"),b=-1!==v.indexOf("phantom"),w=-1!==v.indexOf("android"),M=-1!==v.search("android [23]"),T=-1!==v.indexOf("gecko"),L=typeof orientation!=r+"",k=a.navigator&&a.navigator.msPointerEnabled&&a.navigator.msMaxTouchPoints&&!a.PointerEvent,D=a.PointerEvent&&a.navigator.pointerEnabled&&a.navigator.maxTouchPoints||k,S="devicePixelRatio"in a&&1<a.devicePixelRatio||"matchMedia"in a&&a.matchMedia("(min-resolution:144dpi)")&&a.matchMedia("(min-resolution:144dpi)").matches,x=h.documentElement,C=f&&"transition"in x.style,E="WebKitCSSMatrix"in a&&"m11"in new a.WebKitCSSMatrix,P="MozPerspective"in x.style,Y="OTransition"in x.style,j=!a.L_DISABLE_3D&&(C||E||P||Y)&&!b,A=!a.L_NO_TOUCH&&!b&&function(){var t="ontouchstart";if(D||t in x)return!0;var e=h.createElement("div"),n=!1;return!!e.setAttribute&&(e.setAttribute(t,"return;"),"function"==typeof e[t]&&(n=!0),e.removeAttribute(t),e=null,n)}(),m.Browser={ie:f,ielt9:g,webkit:_,gecko:T&&!_&&!a.opera&&!f,android:w,android23:M,chrome:y,ie3d:C,webkit3d:E,gecko3d:P,opera3d:Y,any3d:j,mobile:L,mobileWebkit:L&&_,mobileWebkit3d:L&&E,mobileOpera:L&&a.opera,touch:A,msPointer:k,pointer:D,retina:S},m.Point=function(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e},m.Point.prototype={clone:function(){return new m.Point(this.x,this.y)},add:function(t){return this.clone()._add(m.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(m.point(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(t){var e=(t=m.point(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=m.point(t)).x===this.x&&t.y===this.y},contains:function(t){return t=m.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+m.Util.formatNum(this.x)+", "+m.Util.formatNum(this.y)+")"}},m.point=function(t,e,n){return t instanceof m.Point?t:m.Util.isArray(t)?new m.Point(t[0],t[1]):t===r||null===t?t:new m.Point(t,e,n)},m.Bounds=function(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])},m.Bounds.prototype={extend:function(t){return t=m.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new m.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new m.Point(this.min.x,this.max.y)},getTopRight:function(){return new m.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof m.Point?m.point(t):m.bounds(t))instanceof m.Bounds?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=m.bounds(t);var e=this.min,n=this.max,i=t.min,o=t.max,a=o.x>=e.x&&i.x<=n.x,r=o.y>=e.y&&i.y<=n.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},m.bounds=function(t,e){return!t||t instanceof m.Bounds?t:new m.Bounds(t,e)},m.Transformation=function(t,e,n,i){this._a=t,this._b=e,this._c=n,this._d=i},m.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new m.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},m.DomUtil={get:function(t){return"string"==typeof t?h.getElementById(t):t},getStyle:function(t,e){var n=t.style[e];if(!n&&t.currentStyle&&(n=t.currentStyle[e]),(!n||"auto"===n)&&h.defaultView){var i=h.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n},getViewportOffset:function(t){var e,n=0,i=0,o=t,a=h.body,r=h.documentElement;do{if(n+=o.offsetTop||0,i+=o.offsetLeft||0,n+=parseInt(m.DomUtil.getStyle(o,"borderTopWidth"),10)||0,i+=parseInt(m.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,e=m.DomUtil.getStyle(o,"position"),o.offsetParent===a&&"absolute"===e)break;if("fixed"===e){n+=a.scrollTop||r.scrollTop||0,i+=a.scrollLeft||r.scrollLeft||0;break}if("relative"===e&&!o.offsetLeft){var s=m.DomUtil.getStyle(o,"width"),l=m.DomUtil.getStyle(o,"max-width"),u=o.getBoundingClientRect();"none"===s&&"none"===l||(i+=u.left+o.clientLeft),n+=u.top+(a.scrollTop||r.scrollTop||0);break}o=o.offsetParent}while(o);o=t;do{if(o===a)break;n-=o.scrollTop||0,i-=o.scrollLeft||0,o=o.parentNode}while(o);return new m.Point(i,n)},documentIsLtr:function(){return m.DomUtil._docIsLtrCached||(m.DomUtil._docIsLtrCached=!0,m.DomUtil._docIsLtr="ltr"===m.DomUtil.getStyle(h.body,"direction")),m.DomUtil._docIsLtr},create:function(t,e,n){var i=h.createElement(t);return i.className=e,n&&n.appendChild(i),i},hasClass:function(t,e){if(t.classList!==r)return t.classList.contains(e);var n=m.DomUtil._getClass(t);return 0<n.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==r)for(var n=m.Util.splitWords(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!m.DomUtil.hasClass(t,e)){var a=m.DomUtil._getClass(t);m.DomUtil._setClass(t,(a?a+" ":"")+e)}},removeClass:function(t,e){t.classList!==r?t.classList.remove(e):m.DomUtil._setClass(t,m.Util.trim((" "+m.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===r?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===r?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}},testProp:function(t){for(var e=h.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1},getTranslateString:function(t){var e=m.Browser.webkit3d,n=(e?",0":"")+")";return"translate"+(e?"3d":"")+"("+t.x+"px,"+t.y+"px"+n},getScaleString:function(t,e){return m.DomUtil.getTranslateString(e.add(e.multiplyBy(-1*t)))+(" scale("+t+") ")},setPosition:function(t,e,n){t._leaflet_pos=e,!n&&m.Browser.any3d?(t.style[m.DomUtil.TRANSFORM]=m.DomUtil.getTranslateString(e),m.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden")):(t.style.left=e.x+"px",t.style.top=e.y+"px")},getPosition:function(t){return t._leaflet_pos}},m.DomUtil.TRANSFORM=m.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),m.DomUtil.TRANSITION=m.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),m.DomUtil.TRANSITION_END="webkitTransition"===m.DomUtil.TRANSITION||"OTransition"===m.DomUtil.TRANSITION?m.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in h)m.extend(m.DomUtil,{disableTextSelection:function(){m.DomEvent.on(a,"selectstart",m.DomEvent.preventDefault)},enableTextSelection:function(){m.DomEvent.off(a,"selectstart",m.DomEvent.preventDefault)}});else{var e=m.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);m.extend(m.DomUtil,{disableTextSelection:function(){if(e){var t=h.documentElement.style;this._userSelect=t[e],t[e]="none"}},enableTextSelection:function(){e&&(h.documentElement.style[e]=this._userSelect,delete this._userSelect)}})}m.extend(m.DomUtil,{disableImageDrag:function(){m.DomEvent.on(a,"dragstart",m.DomEvent.preventDefault)},enableImageDrag:function(){m.DomEvent.off(a,"dragstart",m.DomEvent.preventDefault)}})}(),m.LatLng=function(t,e,n){if(t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=t,this.lng=e,n!==r&&(this.alt=parseFloat(n))},m.extend(m.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),m.LatLng.prototype={equals:function(t){return!!t&&(t=m.latLng(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=m.LatLng.MAX_MARGIN)},toString:function(t){return"LatLng("+m.Util.formatNum(this.lat,t)+", "+m.Util.formatNum(this.lng,t)+")"},distanceTo:function(t){t=m.latLng(t);var e=m.LatLng.DEG_TO_RAD,n=(t.lat-this.lat)*e,i=(t.lng-this.lng)*e,o=this.lat*e,a=t.lat*e,r=Math.sin(n/2),s=Math.sin(i/2),l=r*r+s*s*Math.cos(o)*Math.cos(a);return 12756274*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(t,e){var n=this.lng;return n=(n+(e=e||180))%(e-(t=t||-180))+(n<t||n===e?e:t),new m.LatLng(this.lat,n)}},m.latLng=function(t,e){return t instanceof m.LatLng?t:m.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new m.LatLng(t[0],t[1],t[2]):null:t===r||null===t?t:"object"==typeof t&&"lat"in t?new m.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===r?null:new m.LatLng(t,e)},m.LatLngBounds=function(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])},m.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=m.latLng(t);return(t=null!==e?e:m.latLngBounds(t))instanceof m.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new m.LatLng(t.lat,t.lng),this._northEast=new m.LatLng(t.lat,t.lng)):t instanceof m.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new m.LatLngBounds(new m.LatLng(e.lat-i,e.lng-o),new m.LatLng(n.lat+i,n.lng+o))},getCenter:function(){return new m.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new m.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new m.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof m.LatLng?m.latLng(t):m.latLngBounds(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof m.LatLngBounds?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=m.latLngBounds(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),a=o.lat>=e.lat&&i.lat<=n.lat,r=o.lng>=e.lng&&i.lng<=n.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return!!t&&(t=m.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast()))},isValid:function(){return!(!this._southWest||!this._northEast)}},m.latLngBounds=function(t,e){return!t||t instanceof m.LatLngBounds?t:new m.LatLngBounds(t,e)},m.Projection={},m.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=m.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=t.lng*e,a=i*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new m.Point(o,a)},unproject:function(t){var e=m.LatLng.RAD_TO_DEG,n=t.x*e,i=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new m.LatLng(i,n)}},m.Projection.LonLat={project:function(t){return new m.Point(t.lng,t.lat)},unproject:function(t){return new m.LatLng(t.y,t.x)}},m.CRS={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return m.point(e,e)}},m.CRS.Simple=m.extend({},m.CRS,{projection:m.Projection.LonLat,transformation:new m.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),m.CRS.EPSG3857=m.extend({},m.CRS,{code:"EPSG:3857",projection:m.Projection.SphericalMercator,transformation:new m.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){return this.projection.project(t).multiplyBy(6378137)}}),m.CRS.EPSG900913=m.extend({},m.CRS.EPSG3857,{code:"EPSG:900913"}),m.CRS.EPSG4326=m.extend({},m.CRS,{code:"EPSG:4326",projection:m.Projection.LonLat,transformation:new m.Transformation(1/360,.5,-1/360,.5)}),m.Map=m.Class.extend({includes:m.Mixin.Events,options:{crs:m.CRS.EPSG3857,fadeAnimation:m.DomUtil.TRANSITION&&!m.Browser.android23,trackResize:!0,markerZoomAnimation:m.DomUtil.TRANSITION&&m.Browser.any3d},initialize:function(t,e){e=m.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=m.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==r&&this.setView(m.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===r?this.getZoom():e,this._resetView(m.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),a=(t instanceof m.Point?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),r=this.containerPointToLatLng(o.add(a));return this.setView(r,e,{zoom:n})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():m.latLngBounds(t);var n=m.point(e.paddingTopLeft||e.padding||[0,0]),i=m.point(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i)),a=i.subtract(n).divideBy(2),r=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o),l=this.unproject(r.add(s).divideBy(2).add(a),o);return o=e&&e.maxZoom?Math.min(e.maxZoom,o):o,this.setView(l,o,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(m.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=m.latLngBounds(t),(this.options.maxBounds=t)?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var n=this.getCenter(),i=this._limitCenter(n,this._zoom,t);return n.equals(i)?this:this.panTo(i,e)},addLayer:function(t){var e=m.stamp(t);return this._layers[e]||(!(this._layers[e]=t).options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&m.TileLayer&&t instanceof m.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t)),this},removeLayer:function(t){var e=m.stamp(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&m.TileLayer&&t instanceof m.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this))),this},hasLayer:function(t){return!!t&&m.stamp(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},invalidateSize:function(t){t=m.extend({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();if(this._sizeChanged=!0,this._initialCenter=null,!this._loaded)return this;var n=this.getSize(),i=e.divideBy(2).round(),o=n.divideBy(2).round(),a=i.subtract(o);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(m.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=r}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new m.LatLngBounds(e,n)},getMinZoom:function(){return this.options.minZoom===r?this._layersMinZoom===r?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===r?this._layersMaxZoom===r?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=m.latLngBounds(t);var i,o=this.getMinZoom()-(e?1:0),a=this.getMaxZoom(),r=this.getSize(),s=t.getNorthWest(),l=t.getSouthEast(),u=!0;for(n=m.point(n||[0,0]);o++,i=this.project(l,o).subtract(this.project(s,o)).add(n),(u=e?i.x<r.x||i.y<r.y:r.contains(i))&&o<=a;);return u&&e?null:e?o:o-1},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new m.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new m.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===r?this._zoom:e,this.options.crs.latLngToPoint(m.latLng(t),e)},unproject:function(t,e){return e=e===r?this._zoom:e,this.options.crs.pointToLatLng(m.point(t),e)},layerPointToLatLng:function(t){var e=m.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(m.latLng(t))._round()._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return m.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return m.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(m.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(m.latLng(t)))},mouseEventToContainerPoint:function(t){return m.DomEvent.getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=m.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;m.DomUtil.addClass(t,"leaflet-container"+(m.Browser.touch?" leaflet-touch":"")+(m.Browser.retina?" leaflet-retina":"")+(m.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=m.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(m.DomUtil.addClass(t.markerPane,e),m.DomUtil.addClass(t.shadowPane,e),m.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return m.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){for(var e=0,n=(t=t?m.Util.isArray(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_resetView:function(t,e,n,i){var o=this._zoom!==e;i||(this.fire("movestart"),o&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),n?this._initialTopLeftPoint._add(this._getMapPanePos()):m.DomUtil.setPosition(this._mapPane,new m.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var a=!this._loaded;this._loaded=!0,a&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("viewreset",{hard:!n}),this.fire("move"),(o||i)&&this.fire("zoomend"),this.fire("moveend",{hard:!n})},_rawPanBy:function(t){m.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,i=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t];isNaN(o.options.minZoom)||(e=Math.min(e,o.options.minZoom)),isNaN(o.options.maxZoom)||(n=Math.max(n,o.options.maxZoom))}t===r?this._layersMaxZoom=this._layersMinZoom=r:(this._layersMaxZoom=n,this._layersMinZoom=e),i!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){if(m.DomEvent){t=t||"on",m.DomEvent[t](this._container,"click",this._onMouseClick,this);var e,n,i=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(e=0,n=i.length;e<n;e++)m.DomEvent[t](this._container,i[e],this._fireMouseEvent,this);this.options.trackResize&&m.DomEvent[t](a,"resize",this._onResize,this)}},_onResize:function(){m.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=m.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||m.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!m.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&m.DomEvent.preventDefault(t);var n=this.mouseEventToContainerPoint(t),i=this.containerPointToLayerPoint(n),o=this.layerPointToLatLng(i);this.fire(e,{latlng:o,layerPoint:i,containerPoint:n,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return m.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewTopLeftPoint(n,e).add(this._getMapPanePos());return this.project(t,e)._subtract(i)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),a=new m.Bounds(i.subtract(o),i.add(o)),r=this._getBoundsOffset(a,n,e);return this.unproject(i.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new m.Bounds(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=this.project(e.getNorthWest(),n).subtract(t.min),o=this.project(e.getSouthEast(),n).subtract(t.max),a=this._rebound(i.x,-o.x),r=this._rebound(i.y,-o.y);return new m.Point(a,r)},_rebound:function(t,e){return 0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom();return Math.max(e,Math.min(n,t))}}),m.map=function(t,e){return new m.Map(t,e)},m.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=m.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=this.R_MAJOR,a=this.R_MINOR,r=t.lng*e*o,s=i*e,l=a/o,u=Math.sqrt(1-l*l),c=u*Math.sin(s);c=Math.pow((1-c)/(1+c),.5*u);var d=Math.tan(.5*(.5*Math.PI-s))/c;return s=-o*Math.log(d),new m.Point(r,s)},unproject:function(t){for(var e,n=m.LatLng.RAD_TO_DEG,i=this.R_MAJOR,o=this.R_MINOR,a=t.x*n/i,r=o/i,s=Math.sqrt(1-r*r),l=Math.exp(-t.y/i),u=Math.PI/2-2*Math.atan(l),c=15,d=.1;1e-7<Math.abs(d)&&0<--c;)e=s*Math.sin(u),u+=d=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*s))-u;return new m.LatLng(u*n,a)}},m.CRS.EPSG3395=m.extend({},m.CRS,{code:"EPSG:3395",projection:m.Projection.Mercator,transformation:(d=m.Projection.Mercator.R_MAJOR,p=.5/(Math.PI*d),new m.Transformation(p,.5,-p,.5))}),m.TileLayer=m.Class.extend({includes:m.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:m.Browser.mobile,updateWhenIdle:m.Browser.mobile},initialize:function(t,e){(e=m.setOptions(this,e)).detectRetina&&m.Browser.retina&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,0<e.minZoom&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=m.latLngBounds(e.bounds)),this._url=t;var n=this.options.subdomains;"string"==typeof n&&(this.options.subdomains=n.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=m.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==r&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var n,i,o,a=t.children,r=-e(1/0,-1/0);for(i=0,o=a.length;i<o;i++)a[i]!==this._container&&(n=parseInt(a[i].style.zIndex,10),isNaN(n)||(r=e(r,n)));this.options.zIndex=this._container.style.zIndex=(isFinite(r)?r:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(m.Browser.ielt9)for(t in e)m.DomUtil.setOpacity(e[t],this.options.opacity);else m.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=m.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=m.DomUtil.create("div",e,this._container),this._tileContainer=m.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,n=this.options.maxNativeZoom,i=this.options.tileSize;return n&&n<e&&(i=Math.round(t.getZoomScale(e)/t.getZoomScale(n)*i)),i},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),n=t.getZoom(),i=this._getTileSize();if(!(n>this.options.maxZoom||n<this.options.minZoom)){var o=m.bounds(e.min.divideBy(i)._floor(),e.max.divideBy(i)._floor());this._addTilesFromCenterOut(o),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(o)}}},_addTilesFromCenterOut:function(t){var e,n,i,o=[],a=t.getCenter();for(e=t.min.y;e<=t.max.y;e++)for(n=t.min.x;n<=t.max.x;n++)i=new m.Point(n,e),this._tileShouldBeLoaded(i)&&o.push(i);var r=o.length;if(0!==r){o.sort(function(t,e){return t.distanceTo(a)-e.distanceTo(a)});var s=h.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=r,n=0;n<r;n++)this._addTile(o[n],s);this._tileContainer.appendChild(s)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var n=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=n.x)||t.y<0||t.y>=n.y)return!1}if(e.bounds){var i=e.tileSize,o=t.multiplyBy(i),a=o.add([i,i]),r=this._map.unproject(o),s=this._map.unproject(a);if(e.continuousWorld||e.noWrap||(r=r.wrap(),s=s.wrap()),!e.bounds.intersects([r,s]))return!1}return!0},_removeOtherTiles:function(t){var e,n,i,o;for(o in this._tiles)e=o.split(":"),n=parseInt(e[0],10),i=parseInt(e[1],10),(n<t.min.x||n>t.max.x||i<t.min.y||i>t.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(m.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),m.Browser.android||(e.onload=null,e.src=m.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var n=this._getTilePos(t),i=this._getTile();m.DomUtil.setPosition(i,n,m.Browser.chrome||m.Browser.android23),this._tiles[t.x+":"+t.y]=i,this._loadTile(i,t),i.parentNode!==this._tileContainer&&e.appendChild(i)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),n=this._getTileSize();return t.multiplyBy(n).subtract(e)},getTileUrl:function(t){return m.Util.template(this._url,m.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return this._map.options.crs.getSize(this._map.getZoom()).divideBy(this.options.tileSize)},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&0<this._unusedTiles.length){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=m.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=m.Util.falseFn,m.Browser.ielt9&&this.options.opacity!==r&&m.DomUtil.setOpacity(t,this.options.opacity),m.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&m.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(m.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==m.Util.emptyImageUrl&&(m.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),m.tileLayer=function(t,e){return new m.TileLayer(t,e)},m.TileLayer.WMS=m.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var n=m.extend({},this.defaultWmsParams),i=e.tileSize||this.options.tileSize;for(var o in n.width=n.height=e.detectRetina&&m.Browser.retina?2*i:i,e)this.options.hasOwnProperty(o)||"crs"===o||(n[o]=e[o]);this.wmsParams=n,m.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,m.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,n=this.options.tileSize,i=t.multiplyBy(n),o=i.add([n,n]),a=this._crs.project(e.unproject(i,t.z)),r=this._crs.project(e.unproject(o,t.z)),s=1.3<=this._wmsVersion&&this._crs===m.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),l=m.Util.template(this._url,{s:this._getSubdomain(t)});return l+m.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+s},setParams:function(t,e){return m.extend(this.wmsParams,t),e||this.redraw(),this}}),m.tileLayer.wms=function(t,e){return new m.TileLayer.WMS(t,e)},m.TileLayer.Canvas=m.TileLayer.extend({options:{async:!1},initialize:function(t){m.setOptions(this,t)},redraw:function(){for(var t in this._map&&(this._reset({hard:!0}),this._update()),this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=m.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=m.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),m.tileLayer.canvas=function(t){return new m.TileLayer.Canvas(t)},m.ImageOverlay=m.Class.extend({includes:m.Mixin.Events,options:{opacity:1},initialize:function(t,e,n){this._url=t,this._bounds=m.latLngBounds(e),m.setOptions(this,n)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&m.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=m.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&m.Browser.any3d?m.DomUtil.addClass(this._image,"leaflet-zoom-animated"):m.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),m.extend(this._image,{galleryimg:"no",onselectstart:m.Util.falseFn,onmousemove:m.Util.falseFn,onload:m.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,n=this._image,i=e.getZoomScale(t.zoom),o=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(o,t.zoom,t.center),s=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),l=r._add(s._multiplyBy(.5*(1-1/i)));n.style[m.DomUtil.TRANSFORM]=m.DomUtil.getTranslateString(l)+" scale("+i+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),n=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);m.DomUtil.setPosition(t,e),t.style.width=n.x+"px",t.style.height=n.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){m.DomUtil.setOpacity(this._image,this.options.opacity)}}),m.imageOverlay=function(t,e,n){return new m.ImageOverlay(t,e,n)},m.Icon=m.Class.extend({options:{className:""},initialize:function(t){m.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n,i=this._getIconUrl(t);if(i)return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n;if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(t,e){var n,i=this.options,o=m.point(i[e+"Size"]);!(n="shadow"===e?m.point(i.shadowAnchor||i.iconAnchor):m.point(i.iconAnchor))&&o&&(n=o.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+i.className,n&&(t.style.marginLeft=-n.x+"px",t.style.marginTop=-n.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||h.createElement("img")).src=t,e},_getIconUrl:function(t){return m.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),m.icon=function(t){return new m.Icon(t)},m.Icon.Default=m.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];m.Browser.retina&&"icon"===t&&(t+="-2x");var n=m.Icon.Default.imagePath;if(!n)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return n+"/marker-"+t+".png"}}),m.Icon.Default.imagePath=function(){var t,e,n,i,o=h.getElementsByTagName("script"),a=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,e=o.length;t<e;t++)if((n=o[t].src).match(a))return((i=n.split(a)[0])?i+"/":"")+"images"}(),m.Marker=m.Class.extend({includes:m.Mixin.Events,options:{icon:new m.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){m.setOptions(this,e),this._latlng=m.latLng(t)},onAdd:function(t){(this._map=t).on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=m.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e=this._map,n=e.options.zoomAnimation&&e.options.markerZoomAnimation?"leaflet-zoom-animated":"leaflet-zoom-hide",i=t.icon.createIcon(this._icon),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),t.alt&&(i.alt=t.alt)),m.DomUtil.addClass(i,n),t.keyboard&&(i.tabIndex="0"),this._icon=i,this._initInteraction(),t.riseOnHover&&m.DomEvent.on(i,"mouseover",this._bringToFront,this).on(i,"mouseout",this._resetZIndex,this);var a=t.icon.createShadow(this._shadow),r=!1;a!==this._shadow&&(this._removeShadow(),r=!0),a&&m.DomUtil.addClass(a,n),this._shadow=a,t.opacity<1&&this._updateOpacity();var s=this._map._panes;o&&s.markerPane.appendChild(this._icon),a&&r&&s.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&m.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){m.DomUtil.setPosition(this._icon,t),this._shadow&&m.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];m.DomUtil.addClass(t,"leaflet-clickable"),m.DomEvent.on(t,"click",this._onMouseClick,this),m.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var n=0;n<e.length;n++)m.DomEvent.on(t,e[n],this._fireMouseEvent,this);m.Handler.MarkerDrag&&(this.dragging=new m.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(t){var e=this.dragging&&this.dragging.moved();(this.hasEventListeners(t.type)||e)&&m.DomEvent.stopPropagation(t),e||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(t.type,{originalEvent:t,latlng:this._latlng})},_onKeyPress:function(t){13===t.keyCode&&this.fire("click",{originalEvent:t,latlng:this._latlng})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&m.DomEvent.preventDefault(t),"mousedown"!==t.type?m.DomEvent.stopPropagation(t):m.DomEvent.preventDefault(t)},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){m.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&m.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),m.marker=function(t,e){return new m.Marker(t,e)},m.DivIcon=m.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:h.createElement("div"),n=this.options;return e.innerHTML=!1!==n.html?n.html:"",n.bgPos&&(e.style.backgroundPosition=-n.bgPos.x+"px "+-n.bgPos.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}),m.divIcon=function(t){return new m.DivIcon(t)},m.Map.mergeOptions({closePopupOnClick:!0}),m.Popup=m.Class.extend({includes:m.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(t,e){m.setOptions(this,t),this._source=e,this._animated=m.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._container||this._initLayout();var e=t.options.fadeAnimation;e&&m.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e&&m.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(t){return t.addLayer(this),this},openOn:function(t){return t.openPopup(this),this},onRemove:function(t){t._panes.popupPane.removeChild(this._container),m.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation&&m.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=m.latLng(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var t={viewreset:this._updatePosition};return this._animated&&(t.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",n=e+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),i=this._container=m.DomUtil.create("div",n);this.options.closeButton&&((t=this._closeButton=m.DomUtil.create("a",e+"-close-button",i)).href="#close",t.innerHTML="×",m.DomEvent.disableClickPropagation(t),m.DomEvent.on(t,"click",this._onCloseButtonClick,this));var o=this._wrapper=m.DomUtil.create("div",e+"-content-wrapper",i);m.DomEvent.disableClickPropagation(o),this._contentNode=m.DomUtil.create("div",e+"-content",o),m.DomEvent.disableScrollPropagation(this._contentNode),m.DomEvent.on(o,"contextmenu",m.DomEvent.stopPropagation),this._tipContainer=m.DomUtil.create("div",e+"-tip-container",i),this._tip=m.DomUtil.create("div",e+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,a="leaflet-popup-scrolled";o&&o<i?(e.height=o+"px",m.DomUtil.addClass(t,a)):m.DomUtil.removeClass(t,a),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,n=m.point(this.options.offset);e&&m.DomUtil.setPosition(this._container,t),this._containerBottom=-n.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+n.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);m.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,n=this._containerWidth,i=new m.Point(this._containerLeft,-e-this._containerBottom);this._animated&&i._add(m.DomUtil.getPosition(this._container));var o=t.layerPointToContainerPoint(i),a=m.point(this.options.autoPanPadding),r=m.point(this.options.autoPanPaddingTopLeft||a),s=m.point(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),u=0,c=0;o.x+n+s.x>l.x&&(u=o.x+n-l.x+s.x),o.x-u-r.x<0&&(u=o.x-r.x),o.y+e+s.y>l.y&&(c=o.y+e-l.y+s.y),o.y-c-r.y<0&&(c=o.y-r.y),(u||c)&&t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close(),m.DomEvent.stop(t)}}),m.popup=function(t,e){return new m.Popup(t,e)},m.Map.include({openPopup:function(t,e,n){if(this.closePopup(),!(t instanceof m.Popup)){var i=t;t=new m.Popup(n).setLatLng(e).setContent(i)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),m.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var n=m.point(this.options.icon.options.popupAnchor||[0,0]);return n=n.add(m.Popup.prototype.options.offset),e&&e.offset&&(n=n.add(e.offset)),e=m.extend({offset:n},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof m.Popup?(m.setOptions(t,e),this._popup=t):this._popup=new m.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),m.LayerGroup=m.Class.extend({initialize:function(t){var e,n;if(this._layers={},t)for(e=0,n=t.length;e<n;e++)this.addLayer(t[e])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return m.stamp(t)}}),m.layerGroup=function(t){return new m.LayerGroup(t)},m.FeatureGroup=m.LayerGroup.extend({includes:m.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(m.FeatureGroup.EVENTS,this._propagateEvent,this),m.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.off(m.FeatureGroup.EVENTS,this._propagateEvent,this),m.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new m.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof m.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(t){t=m.extend({},t,{layer:t.target,target:this}),this.fire(t.type,t)}}),m.featureGroup=function(t){return new m.FeatureGroup(t)},m.Path=m.Class.extend({includes:[m.Mixin.Events],statics:{CLIP_PADDING:(c=((m.Browser.mobile?1280:2e3)/Math.max(a.outerWidth,a.outerHeight)-1)/2,Math.max(0,Math.min(.5,c)))},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){m.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,m.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return m.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),m.Map.include({_updatePathViewport:function(){var t=m.Path.CLIP_PADDING,e=this.getSize(),n=m.DomUtil.getPosition(this._mapPane).multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),i=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new m.Bounds(n,i)}}),m.Path.SVG_NS="http://www.w3.org/2000/svg",m.Browser.svg=!(!h.createElementNS||!h.createElementNS(m.Path.SVG_NS,"svg").createSVGRect),m.Path=m.Path.extend({statics:{SVG:m.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,n=t.firstChild;return e&&n!==e&&t.insertBefore(e,n),this},getPathString:function(){},_createElement:function(t){return h.createElementNS(m.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&m.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t=t||"M0 0",this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){!m.Browser.svg&&m.Browser.vml||m.DomUtil.addClass(this._path,"leaflet-clickable"),m.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e<t.length;e++)m.DomEvent.on(this._container,t[e],this._fireMouseEvent,this)}},_onMouseClick:function(t){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)},_fireMouseEvent:function(t){if(this.hasEventListeners(t.type)){var e=this._map,n=e.mouseEventToContainerPoint(t),i=e.containerPointToLayerPoint(n),o=e.layerPointToLatLng(i);this.fire(t.type,{latlng:o,layerPoint:i,containerPoint:n,originalEvent:t}),"contextmenu"===t.type&&m.DomEvent.preventDefault(t),"mousemove"!==t.type&&m.DomEvent.stopPropagation(t)}}}),m.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=m.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&m.Browser.any3d?(m.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):m.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(t){var e=this.getZoomScale(t.zoom),n=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[m.DomUtil.TRANSFORM]=m.DomUtil.getTranslateString(n)+" scale("+e+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,n=t.max,i=n.x-e.x,o=n.y-e.y,a=this._pathRoot,r=this._panes.overlayPane;m.Browser.mobileWebkit&&r.removeChild(a),m.DomUtil.setPosition(a,e),a.setAttribute("width",i),a.setAttribute("height",o),a.setAttribute("viewBox",[e.x,e.y,i,o].join(" ")),m.Browser.mobileWebkit&&r.appendChild(a)}}}),m.Path.include({bindPopup:function(t,e){return t instanceof m.Popup?this._popup=t:(this._popup&&!e||(this._popup=new m.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(t){return this._popup&&(t=t||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:t})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup)}}),m.Browser.vml=!m.Browser.svg&&function(){try{var t=h.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),m.Path=m.Browser.svg||!m.Browser.vml?m.Path:m.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return h.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return h.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return h.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");m.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&m.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,n=this.options,i=this._container;i.stroked=n.stroke,i.filled=n.fill,n.stroke?(t||((t=this._stroke=this._createElement("stroke")).endcap="round",i.appendChild(t)),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,t.dashStyle=n.dashArray?m.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):"",n.lineCap&&(t.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(t.joinstyle=n.lineJoin)):t&&(i.removeChild(t),this._stroke=null),n.fill?(e||(e=this._fill=this._createElement("fill"),i.appendChild(e)),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(i.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),m.Map.include(m.Browser.svg||!m.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=h.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),m.Browser.canvas=!!h.createElement("canvas").getContext,m.Path=m.Path.SVG&&!a.L_PREFER_CANVAS||!m.Browser.canvas?m.Path:m.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return m.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this._map=null},_requestUpdate:function(){this._map&&!m.Path._updateRequest&&(m.Path._updateRequest=m.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){m.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color)},_drawPath:function(){var t,e,n,i,o,a;for(this._ctx.beginPath(),t=0,n=this._parts.length;t<n;t++){for(e=0,i=this._parts[t].length;e<i;e++)o=this._parts[t][e],a=(0===e?"move":"line")+"To",this._ctx[a](o.x,o.y);this instanceof m.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill()),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onClick,this))},_onClick:function(t){this._containsPoint(t.layerPoint)&&this.fire("click",t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),m.Map.include(m.Path.SVG&&!a.L_PREFER_CANVAS||!m.Browser.canvas?{}:{_initPathRoot:function(){var t,e=this._pathRoot;e||((e=this._pathRoot=h.createElement("canvas")).style.position="absolute",(t=this._canvasCtx=e.getContext("2d")).lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(e),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,n=t.max.subtract(e),i=this._pathRoot;m.DomUtil.setPosition(i,e),i.width=n.x,i.height=n.y,i.getContext("2d").translate(-e.x,-e.y)}}}),m.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=this._reducePoints(t,n),this._simplifyDP(t,n)},pointToSegmentDistance:function(t,e,n){return Math.sqrt(this._sqClosestPointOnSegment(t,e,n,!0))},closestPointOnSegment:function(t,e,n){return this._sqClosestPointOnSegment(t,e,n)},_simplifyDP:function(t,e){var n=t.length,i=new(typeof Uint8Array!=r+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,this._simplifyDPStep(t,i,e,0,n-1);var o,a=[];for(o=0;o<n;o++)i[o]&&a.push(t[o]);return a},_simplifyDPStep:function(t,e,n,i,o){var a,r,s,l=0;for(r=i+1;r<=o-1;r++)l<(s=this._sqClosestPointOnSegment(t[r],t[i],t[o],!0))&&(a=r,l=s);n<l&&(e[a]=1,this._simplifyDPStep(t,e,n,i,a),this._simplifyDPStep(t,e,n,a,o))},_reducePoints:function(t,e){for(var n=[t[0]],i=1,o=0,a=t.length;i<a;i++)this._sqDist(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<a-1&&n.push(t[a-1]),n},clipSegment:function(t,e,n,i){var o,a,r,s=i?this._lastCode:this._getBitCode(t,n),l=this._getBitCode(e,n);for(this._lastCode=l;;){if(!(s|l))return[t,e];if(s&l)return!1;o=s||l,a=this._getEdgeIntersection(t,e,o,n),r=this._getBitCode(a,n),o===s?(t=a,s=r):(e=a,l=r)}},_getEdgeIntersection:function(t,e,n,i){var o=e.x-t.x,a=e.y-t.y,r=i.min,s=i.max;return 8&n?new m.Point(t.x+o*(s.y-t.y)/a,s.y):4&n?new m.Point(t.x+o*(r.y-t.y)/a,r.y):2&n?new m.Point(s.x,t.y+a*(s.x-t.x)/o):1&n?new m.Point(r.x,t.y+a*(r.x-t.x)/o):void 0},_getBitCode:function(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n},_sqDist:function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i},_sqClosestPointOnSegment:function(t,e,n,i){var o,a=e.x,r=e.y,s=n.x-a,l=n.y-r,u=s*s+l*l;return 0<u&&(1<(o=((t.x-a)*s+(t.y-r)*l)/u)?(a=n.x,r=n.y):0<o&&(a+=s*o,r+=l*o)),s=t.x-a,l=t.y-r,i?s*s+l*l:new m.Point(a,r)}},m.Polyline=m.Path.extend({initialize:function(t,e){m.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;t<e;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,n="";t<e;t++)n+=this._getPathPartStr(this._parts[t]);return n},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(m.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,n,i=1/0,o=this._parts,a=null,r=0,s=o.length;r<s;r++)for(var l=o[r],u=1,c=l.length;u<c;u++){e=l[u-1],n=l[u];var d=m.LineUtil._sqClosestPointOnSegment(t,e,n,!0);d<i&&(i=d,a=m.LineUtil._sqClosestPointOnSegment(t,e,n))}return a&&(a.distance=Math.sqrt(i)),a},getBounds:function(){return new m.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var n,i,o=e?t:[];for(n=0,i=t.length;n<i;n++){if(m.Util.isArray(t[n])&&"number"!=typeof t[n][0])return;o[n]=m.latLng(t[n])}return o},_initEvents:function(){m.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,n=m.Path.VML,i=0,o=t.length,a="";i<o;i++)e=t[i],n&&e._round(),a+=(i?"L":"M")+e.x+" "+e.y;return a},_clipPoints:function(){var t,e,n,i=this._originalPoints,o=i.length;if(this.options.noClip)this._parts=[i];else{this._parts=[];var a=this._parts,r=this._map._pathViewport,s=m.LineUtil;for(e=t=0;t<o-1;t++)(n=s.clipSegment(i[t],i[t+1],r,t))&&(a[e]=a[e]||[],a[e].push(n[0]),n[1]===i[t+1]&&t!==o-2||(a[e].push(n[1]),e++))}},_simplifyPoints:function(){for(var t=this._parts,e=m.LineUtil,n=0,i=t.length;n<i;n++)t[n]=e.simplify(t[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),m.Path.prototype._updatePath.call(this))}}),m.polyline=function(t,e){return new m.Polyline(t,e)},m.PolyUtil={},m.PolyUtil.clipPolygon=function(t,e){var n,i,o,a,r,s,l,u,c,d=[1,4,2,8],h=m.LineUtil;for(i=0,l=t.length;i<l;i++)t[i]._code=h._getBitCode(t[i],e);for(a=0;a<4;a++){for(u=d[a],n=[],i=0,o=(l=t.length)-1;i<l;o=i++)r=t[i],s=t[o],r._code&u?s._code&u||((c=h._getEdgeIntersection(s,r,u,e))._code=h._getBitCode(c,e),n.push(c)):(s._code&u&&((c=h._getEdgeIntersection(s,r,u,e))._code=h._getBitCode(c,e),n.push(c)),n.push(r));t=n}return t},m.Polygon=m.Polyline.extend({options:{fill:!0},initialize:function(t,e){m.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,n,i;if(t&&m.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,n=this._holes.length;e<n;e++)(i=this._holes[e]=this._convertLatLngs(this._holes[e]))[0].equals(i[i.length-1])&&i.pop();2<=(t=this._latlngs).length&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){var t,e,n,i;if(m.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes)for(t=0,n=this._holes.length;t<n;t++)for(this._holePoints[t]=[],e=0,i=this._holes[t].length;e<i;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])},setLatLngs:function(t){return t&&m.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):m.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var n=0,i=this._parts.length;n<i;n++){var o=m.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport);o.length&&e.push(o)}this._parts=e}},_getPathPartStr:function(t){return m.Polyline.prototype._getPathPartStr.call(this,t)+(m.Browser.svg?"z":"x")}}),m.polygon=function(t,e){return new m.Polygon(t,e)},m.MultiPolyline=O(m.Polyline),m.MultiPolygon=O(m.Polygon),m.multiPolyline=function(t,e){return new m.MultiPolyline(t,e)},m.multiPolygon=function(t,e){return new m.MultiPolygon(t,e)},m.Rectangle=m.Polygon.extend({initialize:function(t,e){m.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=m.latLngBounds(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),m.rectangle=function(t,e){return new m.Rectangle(t,e)},m.Circle=m.Path.extend({initialize:function(t,e,n){m.Path.prototype.initialize.call(this,n),this._latlng=m.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=m.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,n=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-n.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,n=this._latlng;return new m.LatLngBounds([n.lat-e,n.lng-t],[n.lat+e,n.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":m.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(m.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,n=this._point;return n.x-e>t.max.x||n.y-e>t.max.y||n.x+e<t.min.x||n.y+e<t.min.y}}),m.circle=function(t,e,n){return new m.Circle(t,e,n)},m.CircleMarker=m.Circle.extend({options:{radius:10,weight:2},initialize:function(t,e){m.Circle.prototype.initialize.call(this,t,null,e),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){m.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(t){m.Circle.prototype.setLatLng.call(this,t),this._popup&&this._popup._isOpen&&this._popup.setLatLng(t)},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}}),m.circleMarker=function(t,e){return new m.CircleMarker(t,e)},m.Polyline.include(m.Path.CANVAS?{_containsPoint:function(t,e){var n,i,o,a,r,s,l=this.options.weight/2;for(m.Browser.touch&&(l+=10),n=0,a=this._parts.length;n<a;n++)for(i=0,o=(r=(s=this._parts[n]).length)-1;i<r;o=i++)if((e||0!==i)&&m.LineUtil.pointToSegmentDistance(t,s[o],s[i])<=l)return!0;return!1}}:{}),m.Polygon.include(m.Path.CANVAS?{_containsPoint:function(t){var e,n,i,o,a,r,s,l,u=!1;if(m.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(o=0,s=this._parts.length;o<s;o++)for(a=0,r=(l=(e=this._parts[o]).length)-1;a<l;r=a++)n=e[a],i=e[r],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u}}:{}),m.Circle.include(m.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,n=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+n}}:{}),m.CircleMarker.include(m.Path.CANVAS?{_updateStyle:function(){m.Path.prototype._updateStyle.call(this)}}:{}),m.GeoJSON=m.FeatureGroup.extend({initialize:function(t,e){m.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=m.Util.isArray(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(o[e]);return this}var a=this.options;if(!a.filter||a.filter(t)){var r=m.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature=m.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(m.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),m.extend(m.GeoJSON,{geometryToLayer:function(t,e,n,i){var o,a,r,s,l="Feature"===t.type?t.geometry:t,u=l.coordinates,c=[];switch(n=n||this.coordsToLatLng,l.type){case"Point":return o=n(u),e?e(t,o):new m.Marker(o);case"MultiPoint":for(r=0,s=u.length;r<s;r++)o=n(u[r]),c.push(e?e(t,o):new m.Marker(o));return new m.FeatureGroup(c);case"LineString":return a=this.coordsToLatLngs(u,0,n),new m.Polyline(a,i);case"Polygon":if(2===u.length&&!u[1].length)throw new Error("Invalid GeoJSON object.");return a=this.coordsToLatLngs(u,1,n),new m.Polygon(a,i);case"MultiLineString":return a=this.coordsToLatLngs(u,1,n),new m.MultiPolyline(a,i);case"MultiPolygon":return a=this.coordsToLatLngs(u,2,n),new m.MultiPolygon(a,i);case"GeometryCollection":for(r=0,s=l.geometries.length;r<s;r++)c.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,n,i));return new m.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new m.LatLng(t[1],t[0],t[2])},coordsToLatLngs:function(t,e,n){var i,o,a,r=[];for(o=0,a=t.length;o<a;o++)i=e?this.coordsToLatLngs(t[o],e-1,n):(n||this.coordsToLatLng)(t[o]),r.push(i);return r},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==r&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(m.GeoJSON.latLngToCoords(t[n]));return e},getFeature:function(t,e){return t.feature?m.extend({},t.feature,{geometry:e}):m.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var N={toGeoJSON:function(){return m.GeoJSON.getFeature(this,{type:"Point",coordinates:m.GeoJSON.latLngToCoords(this.getLatLng())})}};function H(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),m.GeoJSON.getFeature(this,{type:t,coordinates:e})}}m.Marker.include(N),m.Circle.include(N),m.CircleMarker.include(N),m.Polyline.include({toGeoJSON:function(){return m.GeoJSON.getFeature(this,{type:"LineString",coordinates:m.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),m.Polygon.include({toGeoJSON:function(){var t,e,n,i=[m.GeoJSON.latLngsToCoords(this.getLatLngs())];if(i[0].push(i[0][0]),this._holes)for(t=0,e=this._holes.length;t<e;t++)(n=m.GeoJSON.latLngsToCoords(this._holes[t])).push(n[0]),i.push(n);return m.GeoJSON.getFeature(this,{type:"Polygon",coordinates:i})}}),m.MultiPolyline.include({toGeoJSON:H("MultiLineString")}),m.MultiPolygon.include({toGeoJSON:H("MultiPolygon")}),m.LayerGroup.include({toGeoJSON:function(){var e,t=this.feature&&this.feature.geometry,n=[];if(t&&"MultiPoint"===t.type)return H("MultiPoint").call(this);var i=t&&"GeometryCollection"===t.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(i?e.geometry:m.GeoJSON.asFeature(e)))}),i?m.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}}),m.geoJson=function(t,e){return new m.GeoJSON(t,e)},m.DomEvent={addListener:function(e,t,n,i){var o,a,r,s=m.stamp(n),l="_leaflet_"+t+s;return e[l]?this:(o=function(t){return n.call(i||e,t||m.DomEvent._getEvent())},m.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,o,s):(m.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,o,s),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",o,!1),e.addEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?(a=o,r="mouseenter"===t?"mouseover":"mouseout",o=function(t){return m.DomEvent._checkMouse(e,t)?a(t):void 0},e.addEventListener(r,o,!1)):("click"===t&&m.Browser.android&&(a=o,o=function(t){return m.DomEvent._filterClick(t,a)}),e.addEventListener(t,o,!1)):"attachEvent"in e&&e.attachEvent("on"+t,o),e[l]=o,this))},removeListener:function(t,e,n){var i=m.stamp(n),o="_leaflet_"+e+i,a=t[o];return a&&(m.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,i):m.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,i):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[o]=null),this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,m.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=m.DomEvent.stopPropagation;return m.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=m.DomEvent.stopPropagation,n=m.Draggable.START.length-1;0<=n;n--)m.DomEvent.on(t,m.Draggable.START[n],e);return m.DomEvent.on(t,"click",m.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return m.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){var n=h.body,i=h.documentElement,o=m.DomUtil.documentIsLtr()?t.pageX?t.pageX-n.scrollLeft-i.scrollLeft:t.clientX:m.Browser.gecko?t.pageX-n.scrollLeft-i.scrollLeft:t.pageX?t.pageX-n.scrollLeft+i.scrollLeft:t.clientX,a=t.pageY?t.pageY-n.scrollTop-i.scrollTop:t.clientY,r=new m.Point(o,a);if(!e)return r;var s=e.getBoundingClientRect(),l=s.left-e.clientLeft,u=s.top-e.clientTop;return r._subtract(new m.Point(l,u))},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){m.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t},_getEvent:function(){var t=a.event;if(!t)for(var e=arguments.callee.caller;e&&(!(t=e.arguments[0])||a.Event!==t.constructor);)e=e.caller;return t},_filterClick:function(t,e){var n=t.timeStamp||t.originalEvent.timeStamp,i=m.DomEvent._lastClick&&n-m.DomEvent._lastClick;return i&&100<i&&i<1e3||t.target._simulatedClick&&!t._simulated?void m.DomEvent.stop(t):(m.DomEvent._lastClick=n,e(t))}},m.DomEvent.on=m.DomEvent.addListener,m.DomEvent.off=m.DomEvent.removeListener,m.Draggable=m.Class.extend({includes:m.Mixin.Events,statics:{START:m.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=m.Draggable.START.length-1;0<=t;t--)m.DomEvent.on(this._dragStartTarget,m.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=m.Draggable.START.length-1;0<=t;t--)m.DomEvent.off(this._dragStartTarget,m.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!(t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(m.DomEvent.stopPropagation(t),m.Draggable._disabled||(m.DomUtil.disableImageDrag(),m.DomUtil.disableTextSelection(),this._moving)))){var e=t.touches?t.touches[0]:t;this._startPoint=new m.Point(e.clientX,e.clientY),this._startPos=this._newPos=m.DomUtil.getPosition(this._element),m.DomEvent.on(h,m.Draggable.MOVE[t.type],this._onMove,this).on(h,m.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new m.Point(e.clientX,e.clientY).subtract(this._startPoint);(n.x||n.y)&&(m.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=m.DomUtil.getPosition(this._element).subtract(n),m.DomUtil.addClass(h.body,"leaflet-dragging"),m.DomUtil.addClass(t.target||t.srcElement,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,m.Util.cancelAnimFrame(this._animRequest),this._animRequest=m.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget))}},_updatePosition:function(){this.fire("predrag"),m.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(t){for(var e in m.DomUtil.removeClass(h.body,"leaflet-dragging"),m.DomUtil.removeClass(t.target||t.srcElement,"leaflet-drag-target"),m.Draggable.MOVE)m.DomEvent.off(h,m.Draggable.MOVE[e],this._onMove).off(h,m.Draggable.END[e],this._onUp);m.DomUtil.enableImageDrag(),m.DomUtil.enableTextSelection(),this._moved&&(m.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),m.Handler=m.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),m.Map.mergeOptions({dragging:!0,inertia:!m.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:m.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),m.Map.Drag=m.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new m.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),200<t-this._times[0]&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,a=(i+e+n)%t-e-n,r=Math.abs(o+n)<Math.abs(a+n)?o:a;this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,n=e.options,i=new Date-this._lastTime,o=!n.inertia||i>n.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),o)e.fire("moveend");else{var a=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+i-this._times[0])/1e3,s=n.easeLinearity,l=a.multiplyBy(s/r),u=l.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,u),d=l.multiplyBy(c/u),h=c/(n.inertiaDeceleration*s),p=d.multiplyBy(-h/2).round();p.x&&p.y?(p=e._limitOffset(p,e.options.maxBounds),m.Util.requestAnimFrame(function(){e.panBy(p,{duration:h,easeLinearity:s,noMoveStart:!0})})):e.fire("moveend")}}}),m.Map.addInitHook("addHandler","dragging",m.Map.Drag),m.Map.mergeOptions({doubleClickZoom:!0}),m.Map.DoubleClickZoom=m.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}}),m.Map.addInitHook("addHandler","doubleClickZoom",m.Map.DoubleClickZoom),m.Map.mergeOptions({scrollWheelZoom:!0}),m.Map.ScrollWheelZoom=m.Handler.extend({addHooks:function(){m.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),m.DomEvent.on(this._map._container,"MozMousePixelScroll",m.DomEvent.preventDefault),this._delta=0},removeHooks:function(){m.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),m.DomEvent.off(this._map._container,"MozMousePixelScroll",m.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=m.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(40-(new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(m.bind(this._performZoom,this),n),m.DomEvent.preventDefault(t),m.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,n=t.getZoom();e=0<e?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(n+e)-n,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(n+e):t.setZoomAround(this._lastMousePos,n+e))}}),m.Map.addInitHook("addHandler","scrollWheelZoom",m.Map.ScrollWheelZoom),m.extend(m.DomEvent,{_touchstart:m.Browser.msPointer?"MSPointerDown":m.Browser.pointer?"pointerdown":"touchstart",_touchend:m.Browser.msPointer?"MSPointerUp":m.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,a,e){function n(t){if(!(1<(m.Browser.pointer?(c.push(t.pointerId),c.length):t.touches.length))){var e=Date.now(),n=e-(r||e);s=t.touches?t.touches[0]:t,l=0<n&&n<=250,r=e}}function i(t){if(m.Browser.pointer){var e=c.indexOf(t.pointerId);if(-1===e)return;c.splice(e,1)}if(l){if(m.Browser.pointer){var n,i={};for(var o in s)n=s[o],i[o]="function"==typeof n?n.bind(s):n;s=i}s.type="dblclick",a(s),r=null}}var r,s,l=!1,o=this._touchstart,u=this._touchend,c=[];t["_leaflet_"+o+e]=n,t["_leaflet_"+u+e]=i;var d=m.Browser.pointer?h.documentElement:t;return t.addEventListener(o,n,!1),d.addEventListener(u,i,!1),m.Browser.pointer&&d.addEventListener(m.DomEvent.POINTER_CANCEL,i,!1),this},removeDoubleTapListener:function(t,e){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+e],!1),(m.Browser.pointer?h.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+e],!1),m.Browser.pointer&&h.documentElement.removeEventListener(m.DomEvent.POINTER_CANCEL,t[n+this._touchend+e],!1),this}}),m.extend(m.DomEvent,{POINTER_DOWN:m.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:m.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:m.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:m.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,n,i){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,n,i);case"touchend":return this.addPointerListenerEnd(t,e,n,i);case"touchmove":return this.addPointerListenerMove(t,e,n,i);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,e,i,n){function o(t){m.DomEvent.preventDefault(t);for(var e=!1,n=0;n<a.length;n++)if(a[n].pointerId===t.pointerId){e=!0;break}e||a.push(t),t.touches=a.slice(),t.changedTouches=[t],i(t)}var a=this._pointers;if(t["_leaflet_touchstart"+n]=o,t.addEventListener(this.POINTER_DOWN,o,!1),!this._pointerDocumentListener){function r(t){for(var e=0;e<a.length;e++)if(a[e].pointerId===t.pointerId){a.splice(e,1);break}}h.documentElement.addEventListener(this.POINTER_UP,r,!1),h.documentElement.addEventListener(this.POINTER_CANCEL,r,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(t,e,n,i){function o(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons){for(var e=0;e<a.length;e++)if(a[e].pointerId===t.pointerId){a[e]=t;break}t.touches=a.slice(),t.changedTouches=[t],n(t)}}var a=this._pointers;return t["_leaflet_touchmove"+i]=o,t.addEventListener(this.POINTER_MOVE,o,!1),this},addPointerListenerEnd:function(t,e,n,i){function o(t){for(var e=0;e<a.length;e++)if(a[e].pointerId===t.pointerId){a.splice(e,1);break}t.touches=a.slice(),t.changedTouches=[t],n(t)}var a=this._pointers;return t["_leaflet_touchend"+i]=o,t.addEventListener(this.POINTER_UP,o,!1),t.addEventListener(this.POINTER_CANCEL,o,!1),this},removePointerListener:function(t,e,n){var i=t["_leaflet_"+e+n];switch(e){case"touchstart":t.removeEventListener(this.POINTER_DOWN,i,!1);break;case"touchmove":t.removeEventListener(this.POINTER_MOVE,i,!1);break;case"touchend":t.removeEventListener(this.POINTER_UP,i,!1),t.removeEventListener(this.POINTER_CANCEL,i,!1)}return this}}),m.Map.mergeOptions({touchZoom:m.Browser.touch&&!m.Browser.android23,bounceAtZoomLimits:!0}),m.Map.TouchZoom=m.Handler.extend({addHooks:function(){m.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){m.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToLayerPoint(t.touches[0]),i=e.mouseEventToLayerPoint(t.touches[1]),o=e._getCenterLayerPoint();this._startCenter=n.add(i)._divideBy(2),this._startDist=n.distanceTo(i),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),e._panAnim&&e._panAnim.stop(),m.DomEvent.on(h,"touchmove",this._onTouchMove,this).on(h,"touchend",this._onTouchEnd,this),m.DomEvent.preventDefault(t)}},_onTouchMove:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&this._zooming){var n=e.mouseEventToLayerPoint(t.touches[0]),i=e.mouseEventToLayerPoint(t.touches[1]);this._scale=n.distanceTo(i)/this._startDist,this._delta=n._add(i)._divideBy(2)._subtract(this._startCenter),1===this._scale||!e.options.bounceAtZoomLimits&&(e.getZoom()===e.getMinZoom()&&this._scale<1||e.getZoom()===e.getMaxZoom()&&1<this._scale)||(this._moved||(m.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),m.Util.cancelAnimFrame(this._animRequest),this._animRequest=m.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),m.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),n=t.layerPointToLatLng(e),i=t.getScaleZoom(this._scale);t._animateZoom(n,i,this._startCenter,this._scale,this._delta)},_onTouchEnd:function(){if(this._moved&&this._zooming){var t=this._map;this._zooming=!1,m.DomUtil.removeClass(t._mapPane,"leaflet-touching"),m.Util.cancelAnimFrame(this._animRequest),m.DomEvent.off(h,"touchmove",this._onTouchMove).off(h,"touchend",this._onTouchEnd);var e=this._getScaleOrigin(),n=t.layerPointToLatLng(e),i=t.getZoom(),o=t.getScaleZoom(this._scale)-i,a=0<o?Math.ceil(o):Math.floor(o),r=t._limitZoom(i+a),s=t.getZoomScale(r)/this._scale;t._animateZoom(n,r,e,s)}else this._zooming=!1},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),m.Map.addInitHook("addHandler","touchZoom",m.Map.TouchZoom),m.Map.mergeOptions({tap:!0,tapTolerance:15}),m.Map.Tap=m.Handler.extend({addHooks:function(){m.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){m.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(m.DomEvent.preventDefault(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new m.Point(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&m.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(m.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),m.DomEvent.on(h,"touchmove",this._onMove,this).on(h,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),m.DomEvent.off(h,"touchmove",this._onMove,this).off(h,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],n=e.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&m.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new m.Point(e.clientX,e.clientY)},_simulateEvent:function(t,e){var n=h.createEvent("MouseEvents");n._simulated=!0,e.target._simulatedClick=!0,n.initMouseEvent(t,!0,!0,a,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}}),m.Browser.touch&&!m.Browser.pointer&&m.Map.addInitHook("addHandler","tap",m.Map.Tap),m.Map.mergeOptions({boxZoom:!0}),m.Map.BoxZoom=m.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){m.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){m.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!(!t.shiftKey||1!==t.which&&1!==t.button)&&(m.DomUtil.disableTextSelection(),m.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),void m.DomEvent.on(h,"mousemove",this._onMouseMove,this).on(h,"mouseup",this._onMouseUp,this).on(h,"keydown",this._onKeyDown,this))},_onMouseMove:function(t){this._moved||(this._box=m.DomUtil.create("div","leaflet-zoom-box",this._pane),m.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,n=this._box,i=this._map.mouseEventToLayerPoint(t),o=i.subtract(e),a=new m.Point(Math.min(i.x,e.x),Math.min(i.y,e.y));m.DomUtil.setPosition(n,a),this._moved=!0,n.style.width=Math.max(0,Math.abs(o.x)-4)+"px",n.style.height=Math.max(0,Math.abs(o.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),m.DomUtil.enableTextSelection(),m.DomUtil.enableImageDrag(),m.DomEvent.off(h,"mousemove",this._onMouseMove).off(h,"mouseup",this._onMouseUp).off(h,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,n=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(n)){var i=new m.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(n));e.fitBounds(i),e.fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),m.Map.addInitHook("addHandler","boxZoom",m.Map.BoxZoom),m.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),m.Map.Keyboard=m.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),m.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;m.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var t=h.body,e=h.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),a.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){m.DomEvent.on(h,"keydown",this._onKeyDown,this)},_removeHooks:function(){m.DomEvent.off(h,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,n=this._map;if(e in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;n.panBy(this._panKeys[e]),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else{if(!(e in this._zoomKeys))return;n.setZoom(n.getZoom()+this._zoomKeys[e])}m.DomEvent.stop(t)}}),m.Map.addInitHook("addHandler","keyboard",m.Map.Keyboard),m.Handler.MarkerDrag=m.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new m.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),m.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),m.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,n=m.DomUtil.getPosition(t._icon),i=t._map.layerPointToLatLng(n);e&&m.DomUtil.setPosition(e,n),t._latlng=i,t.fire("move",{latlng:i}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),m.Control=m.Class.extend({options:{position:"topright"},initialize:function(t){m.setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return m.DomUtil.addClass(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this},removeFrom:function(t){var e=this.getPosition();return t._controlCorners[e].removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),m.control=function(t){return new m.Control(t)},m.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,e){var n=o+t+" "+o+e;i[t+e]=m.DomUtil.create("div",n,a)}var i=this._controlCorners={},o="leaflet-",a=this._controlContainer=m.DomUtil.create("div",o+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),m.Control.Zoom=m.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=m.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",n,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",n,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,n,i,o,a){var r=m.DomUtil.create("a",n,i);r.innerHTML=t,r.href="#",r.title=e;var s=m.DomEvent.stopPropagation;return m.DomEvent.on(r,"click",s).on(r,"mousedown",s).on(r,"dblclick",s).on(r,"click",m.DomEvent.preventDefault).on(r,"click",o,a).on(r,"click",this._refocusOnMap,a),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";m.DomUtil.removeClass(this._zoomInButton,e),m.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&m.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&m.DomUtil.addClass(this._zoomInButton,e)}}),m.Map.mergeOptions({zoomControl:!0}),m.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new m.Control.Zoom,this.addControl(this.zoomControl))}),m.control.zoom=function(t){return new m.Control.Zoom(t)},m.Control.Attribution=m.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){m.setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in this._container=m.DomUtil.create("div","leaflet-control-attribution"),m.DomEvent.disableClickPropagation(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),m.Map.mergeOptions({attributionControl:!0}),m.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new m.Control.Attribution).addTo(this))}),m.control.attribution=function(t){return new m.Control.Attribution(t)},m.Control.Scale=m.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",n=m.DomUtil.create("div",e),i=this.options;return this._addScales(i,e,n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=m.DomUtil.create("div",e+"-line",n)),t.imperial&&(this._iScale=m.DomUtil.create("div",e+"-line",n))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,n=6378137*Math.PI*Math.cos(e*Math.PI/180)*(t.getNorthEast().lng-t.getSouthWest().lng)/180,i=this._map.getSize(),o=this.options,a=0;0<i.x&&(a=n*(o.maxWidth/i.x)),this._updateScales(o,a)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=e<1e3?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,n,i,o=3.2808399*t,a=this._iScale;5280<o?(e=o/5280,n=this._getRoundNum(e),a.style.width=this._getScaleWidth(n/e)+"px",a.innerHTML=n+" mi"):(i=this._getRoundNum(o),a.style.width=this._getScaleWidth(i/o)+"px",a.innerHTML=i+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=10<=n?10:5<=n?5:3<=n?3:2<=n?2:1)}}),m.control.scale=function(t){return new m.Control.Scale(t)},m.Control.Layers=m.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,n){for(var i in m.setOptions(this,n),this._layers={},this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange).off("layerremove",this._onLayerChange)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=m.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=m.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),m.Browser.touch?m.DomEvent.on(e,"click",m.DomEvent.stopPropagation):m.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var n=this._form=m.DomUtil.create("form",t+"-list");if(this.options.collapsed){m.Browser.android||m.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var i=this._layersLink=m.DomUtil.create("a",t+"-toggle",e);i.href="#",i.title="Layers",m.Browser.touch?m.DomEvent.on(i,"click",m.DomEvent.stop).on(i,"click",this._expand,this):m.DomEvent.on(i,"focus",this._expand,this),m.DomEvent.on(n,"click",function(){setTimeout(m.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=m.DomUtil.create("div",t+"-base",n),this._separator=m.DomUtil.create("div",t+"-separator",n),this._overlaysList=m.DomUtil.create("div",t+"-overlays",n),e.appendChild(n)},_addLayer:function(t,e,n){var i=m.stamp(t);this._layers[i]={layer:t,name:e,overlay:n},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,n=!1,i=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),i=i||e.overlay,n=n||!e.overlay;this._separator.style.display=i&&n?"":"none"}},_onLayerChange:function(t){var e=this._layers[m.stamp(t.layer)];if(e){this._handlingClick||this._update();var n=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)}},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"';e&&(n+=' checked="checked"'),n+="/>";var i=h.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=h.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=h.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers",i),e.layerId=m.stamp(t.layer),m.DomEvent.on(e,"click",this._onInputClick,this);var o=h.createElement("span");return o.innerHTML=" "+t.name,n.appendChild(e),n.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),n},_onInputClick:function(){var t,e,n,i=this._form.getElementsByTagName("input"),o=i.length;for(this._handlingClick=!0,t=0;t<o;t++)e=i[t],n=this._layers[e.layerId],e.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!e.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){m.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),m.control.layers=function(t,e,n){return new m.Control.Layers(t,e,n)},m.PosAnimation=m.Class.extend({includes:m.Mixin.Events,run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[m.DomUtil.TRANSITION]="all "+(n||.25)+"s cubic-bezier(0,0,"+(i||.5)+",1)",m.DomEvent.on(t,m.DomUtil.TRANSITION_END,this._onTransitionEnd,this),m.DomUtil.setPosition(t,e),m.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(m.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(m.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),m.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var t,e,n,i=this._el,o=a.getComputedStyle(i);if(m.Browser.any3d){if(!(n=o[m.DomUtil.TRANSFORM].match(this._transformRe)))return;t=parseFloat(n[1]),e=parseFloat(n[2])}else t=parseFloat(o.left),e=parseFloat(o.top);return new m.Point(t,e,!0)},_onTransitionEnd:function(){m.DomEvent.off(this._el,m.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[m.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),m.Map.include({setView:function(t,e,n){if((e=e===r?this._zoom:this._limitZoom(e),t=this._limitCenter(m.latLng(t),e,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&!0!==n)&&(n.animate!==r&&(n.zoom=m.extend({animate:n.animate},n.zoom),n.pan=m.extend({animate:n.animate},n.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,e),this},panBy:function(t,e){if(e=e||{},!(t=m.point(t).round()).x&&!t.y)return this;if(this._panAnim||(this._panAnim=new m.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){m.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){m.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)}}),m.PosAnimation=m.DomUtil.TRANSITION?m.PosAnimation:m.PosAnimation.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=m.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=m.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=new Date-this._startTime,e=1e3*this._duration;t<e?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));m.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){m.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),m.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),m.DomUtil.TRANSITION&&m.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&m.DomUtil.TRANSITION&&m.Browser.any3d&&!m.Browser.android23&&!m.Browser.mobileOpera,this._zoomAnimated&&m.DomEvent.on(this._mapPane,m.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),m.Map.include(m.DomUtil.TRANSITION?{_catchTransitionEnd:function(){this._animatingZoom&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i),a=this._getCenterLayerPoint()._add(o);return!(!0!==n.animate&&!this.getSize().contains(o))&&(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,a,i,null,!0),!0)},_animateZoom:function(t,e,n,i,o,a){this._animatingZoom=!0,m.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,m.Draggable&&(m.Draggable._disabled=!0),this.fire("zoomanim",{center:t,zoom:e,origin:n,scale:i,delta:o,backwards:a})},_onZoomTransitionEnd:function(){this._animatingZoom=!1,m.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),m.Draggable&&(m.Draggable._disabled=!1)}}:{}),m.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,n=m.DomUtil.TRANSFORM,i=t.delta?m.DomUtil.getTranslateString(t.delta):e.style[n],o=m.DomUtil.getScaleString(t.scale,t.origin);e.style[n]=t.backwards?o+" "+i:i+" "+o},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),m.Util.falseFn(e.offsetWidth),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[m.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,n=this._getLoadedTilesPercentage(e),i=this._getLoadedTilesPercentage(t);return e&&.5<n&&i<.5?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(e.style.visibility="hidden",e.style[m.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(t){var e,n,i=t.getElementsByTagName("img"),o=0;for(e=0,n=i.length;e<n;e++)i[e].complete&&o++;return o/n},_stopLoadingImages:function(t){var e,n,i,o=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,n=o.length;e<n;e++)(i=o[e]).complete||(i.onload=m.Util.falseFn,i.onerror=m.Util.falseFn,i.src=m.Util.emptyImageUrl,i.parentNode.removeChild(i))}}),m.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=m.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=m.bind(this._handleGeolocationResponse,this),n=m.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,n=t.coords.longitude,i=new m.LatLng(e,n),o=180*t.coords.accuracy/40075017,a=o/Math.cos(m.LatLng.DEG_TO_RAD*e),r=m.latLngBounds([e-o,n-a],[e+o,n+a]),s=this._locateOptions;if(s.setView){var l=Math.min(this.getBoundsZoom(r),s.maxZoom);this.setView(i,l)}var u={latlng:i,bounds:r,timestamp:t.timestamp};for(var c in t.coords)"number"==typeof t.coords[c]&&(u[c]=t.coords[c]);this.fire("locationfound",u)}})}(window,document),define("castle-url/components/beautifymarker",["jquery","castle-url/libs/leaflet-dist/leaflet"],function(t,a){"use strict";var e={iconColor:"#1EB300",iconAnchor:{marker:[14,36],circle:[11,10],"circle-dot":[5,5],"rectangle-dot":[5,6],doughnut:[8,8]},popupAnchor:{marker:[0,-25],circle:[-3,-76],"circle-dot":[0,-2],"rectangle-dot":[0,-2],doughnut:[0,-2]},innerIconAnchor:{marker:[-2,5],circle:[0,2]},iconSize:{marker:[28,28],circle:[22,22],"circle-dot":[2,2],"rectangle-dot":[2,2],doughnut:[15,15]}};return a.BeautifyIcon={Icon:a.Icon.extend({options:{icon:"leaf",iconSize:e.iconSize.circle,iconAnchor:e.iconAnchor.circle,iconShape:"circle",iconStyle:"",innerIconAnchor:[0,3],innerIconStyle:"",isAlphaNumericIcon:!1,text:1,borderColor:e.iconColor,borderWidth:2,borderStyle:"solid",backgroundColor:"white",textColor:e.iconColor,customClasses:"",spin:!1,prefix:"fa",html:""},initialize:function(t){this.applyDefaults(t),this.options=t&&t.html?t:a.Util.setOptions(this,t)},applyDefaults:function(t){t&&(!t.iconSize&&t.iconShape&&(t.iconSize=e.iconSize[t.iconShape]),!t.iconAnchor&&t.iconShape&&(t.iconAnchor=e.iconAnchor[t.iconShape]),!t.popupAnchor&&t.iconShape&&(t.popupAnchor=e.popupAnchor[t.iconShape]),t.innerIconAnchor||"circle"!==t.iconShape&&"marker"!==t.iconShape||("circle"===t.iconShape&&t.isAlphaNumericIcon?t.innerIconAnchor=[0,-1]:"marker"!==t.iconShape||t.isAlphaNumericIcon||(t.innerIconAnchor=e.innerIconAnchor[t.iconShape])))},createIcon:function(){var t=document.createElement("div"),e=this.options;if(t.innerHTML=e.html?e.html:this.createIconInnerHtml(),this._setIconStyles(t),"marker"!==this.options.iconShape)return t;var n=document.createElement("div");return n.appendChild(t),n},createIconInnerHtml:function(){var t=this.options;if("circle-dot"===t.iconShape||"rectangle-dot"===t.iconShape||"doughnut"===t.iconShape)return"";var e=this.getInnerIconStyle(t);if(t.isAlphaNumericIcon)return'<div style="'+e+'">'+t.text+"</div>";var n="";return t.spin&&(n=" fa-spin"),'<i class="'+t.prefix+" "+t.prefix+"-"+t.icon+n+'" style="'+e+'"></i>'},getInnerIconStyle:function(t){var e=a.point(t.innerIconAnchor);return"color:"+t.textColor+";margin-top:"+e.y+"px; margin-left:"+e.x+"px;"+t.innerIconStyle},_setIconStyles:function(t){var e=this.options,n=a.point(e.iconSize),i=a.point(e.iconAnchor);if(t.className="beautify-marker ",e.iconShape&&(t.className+=e.iconShape),e.customClasses&&(t.className+=" "+e.customClasses),t.style.backgroundColor=e.backgroundColor,t.style.color=e.textColor,t.style.borderColor=e.borderColor,t.style.borderWidth=e.borderWidth+"px",t.style.borderStyle=e.borderStyle,n&&(t.style.width=n.x+"px",t.style.height=n.y+"px"),i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),e.iconStyle){var o=t.getAttribute("style");o+=e.iconStyle,t.setAttribute("style",o)}}})},a.BeautifyIcon.icon=function(t){return new a.BeautifyIcon.Icon(t)},a}),define("castle-url/patterns/map",["jquery","pat-base","underscore","castle-url/components/beautifymarker"],function(o,t,a,r){"use strict";return t.extend({name:"map",trigger:".pat-map",parser:"mockup",defaults:{markers:[],center:null,initialZoom:10,height:200},init:function(){r.Icon.Default.imagePath=o("body").attr("data-portal-url")+"/++plone++castle/libs/leaflet-dist/images";var i=this,t=i.$el.attr("id");t||(t="mapid"+Math.floor(999999*Math.random()),i.$el.attr("id",t)),"string"==typeof i.options.markers&&(i.options.markers=o.parseJSON(i.options.markers)),"string"==typeof i.options.center&&(i.options.center=o.parseJSON(i.options.center)),i.$el.height(i.options.height);var e=i.options.center,n=i.options.markers;e||0<n.length&&(e=n[0]),e=e||{lat:0,lng:0},i.map=r.map(i.$el[0],{scrollWheelZoom:!1}).setView([e.lat,e.lng],i.options.initialZoom),r.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'}).addTo(i.map),i.map.attributionControl.setPrefix(!1),a.each(n,function(t){if(t){var e={};null!=t.icon&&(e={icon:r.BeautifyIcon.icon({isAlphaNumericIcon:!0,text:t.icon.iconText,borderColor:t.icon.color,textColor:t.icon.color,iconShape:"marker"})});var n=r.marker([t.lat,t.lng],e).addTo(i.map);t.popup&&n.bindPopup(t.popup)}})}})}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define("castle-url/libs/react/react.min",[],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).React=t()}}(function(){return function a(r,s,l){function u(n,t){if(!s[n]){if(!r[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var o=s[n]={exports:{}};r[n][0].call(o.exports,function(t){var e=r[n][1][t];return u(e||t)},o,o.exports,a,r,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(t,e,n){"use strict";var i=t(19),o=t(32),a=t(34),r=t(33),s=t(38),l=t(39),u=t(55),c=(t(56),t(40)),d=t(51),h=t(54),p=t(64),m=t(68),f=t(73),g=t(76),v=t(79),_=t(82),y=t(27),b=t(115),w=t(142);h.inject();var M=u.createElement,T=u.createFactory,L=u.cloneElement,k=f.measure("React","render",m.render),D={Children:{map:o.map,forEach:o.forEach,count:o.count,only:w},Component:a,DOM:c,PropTypes:g,initializeTouchEvents:function(t){i.useTouchEvents=t},createClass:r.createClass,createElement:M,cloneElement:L,createFactory:T,createMixin:function(t){return t},constructAndRenderComponent:m.constructAndRenderComponent,constructAndRenderComponentByID:m.constructAndRenderComponentByID,findDOMNode:b,render:k,renderToString:_.renderToString,renderToStaticMarkup:_.renderToStaticMarkup,unmountComponentAtNode:m.unmountComponentAtNode,isValidElement:u.isValidElement,withContext:s.withContext,__spread:y};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:l,InstanceHandles:p,Mount:m,Reconciler:v,TextComponent:d}),D.version="0.13.3",e.exports=D},{115:115,142:142,19:19,27:27,32:32,33:33,34:34,38:38,39:39,40:40,51:51,54:54,55:55,56:56,64:64,68:68,73:73,76:76,79:79,82:82}],2:[function(t,e,n){"use strict";var i=t(117),o={componentDidMount:function(){this.props.autoFocus&&i(this.getDOMNode())}};e.exports=o},{117:117}],3:[function(t,e,n){"use strict";function u(t,e){switch(t){case T.topKeyUp:return-1!==m.indexOf(e.keyCode);case T.topKeyDown:return e.keyCode!==f;case T.topKeyPress:case T.topMouseDown:case T.topBlur:return 1;default:return}}function c(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function o(t,e,n,i){var o,a,r;if(g?o=function(t){switch(t){case T.topCompositionStart:return L.compositionStart;case T.topCompositionEnd:return L.compositionEnd;case T.topCompositionUpdate:return L.compositionUpdate}}(t):D?u(t,i)&&(o=L.compositionEnd):(r=i,t===T.topKeyDown&&r.keyCode===f&&(o=L.compositionStart)),!o)return null;b&&(D||o!==L.compositionStart?o===L.compositionEnd&&D&&(a=D.getData()):D=h.getPooled(e));var s=p.getPooled(o,n,i);if(a)s.data=a;else{var l=c(i);null!==l&&(s.data=l)}return d.accumulateTwoPhaseDispatches(s),s}function a(t,e,n,i){var o;if(!(o=(y?function(t,e){switch(t){case T.topCompositionEnd:return c(e);case T.topKeyPress:return e.which!==w?null:(k=!0,M);case T.topTextInput:var n=e.data;return n===M&&k?null:n;default:return null}}:function(t,e){if(D){if(t===T.topCompositionEnd||u(t,e)){var n=D.getData();return h.release(D),D=null,n}return null}switch(t){case T.topPaste:return null;case T.topKeyPress:return e.which&&(!((i=e).ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey)?String.fromCharCode(e.which):null;case T.topCompositionEnd:return b?null:e.data;default:return null}var i})(t,i)))return null;var a=s.getPooled(L.beforeInput,n,i);return a.data=o,d.accumulateTwoPhaseDispatches(a),a}var i=t(15),d=t(20),r=t(21),h=t(22),p=t(91),s=t(95),l=t(139),m=[9,13,27,32],f=229,g=r.canUseDOM&&"CompositionEvent"in window,v=null;r.canUseDOM&&"documentMode"in document&&(v=document.documentMode);var _,y=r.canUseDOM&&"TextEvent"in window&&!v&&!("object"==typeof(_=window.opera)&&"function"==typeof _.version&&parseInt(_.version(),10)<=12),b=r.canUseDOM&&(!g||v&&8<v&&v<=11),w=32,M=String.fromCharCode(w),T=i.topLevelTypes,L={beforeInput:{phasedRegistrationNames:{bubbled:l({onBeforeInput:null}),captured:l({onBeforeInputCapture:null})},dependencies:[T.topCompositionEnd,T.topKeyPress,T.topTextInput,T.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:l({onCompositionEnd:null}),captured:l({onCompositionEndCapture:null})},dependencies:[T.topBlur,T.topCompositionEnd,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:l({onCompositionStart:null}),captured:l({onCompositionStartCapture:null})},dependencies:[T.topBlur,T.topCompositionStart,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:l({onCompositionUpdate:null}),captured:l({onCompositionUpdateCapture:null})},dependencies:[T.topBlur,T.topCompositionUpdate,T.topKeyDown,T.topKeyPress,T.topKeyUp,T.topMouseDown]}},k=!1,D=null,S={eventTypes:L,extractEvents:function(t,e,n,i){return[o(t,e,n,i),a(t,0,n,i)]}};e.exports=S},{139:139,15:15,20:20,21:21,22:22,91:91,95:95}],4:[function(t,e,n){"use strict";var i={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(n){o.forEach(function(t){var e;i[t+(e=n).charAt(0).toUpperCase()+e.substring(1)]=i[n]})});var a={isUnitlessNumber:i,shorthandPropertyExpansions:{background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}}};e.exports=a},{}],5:[function(t,e,n){"use strict";var s=t(4),i=t(21),l=(t(106),t(111)),o=t(131),a=t(141),r=(t(150),a(function(t){return o(t)})),u="cssFloat";i.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(u="styleFloat");var c={createMarkupForStyles:function(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];null!=i&&(e+=r(n)+":",e+=l(n,i)+";")}return e||null},setValueForStyles:function(t,e){var n=t.style;for(var i in e)if(e.hasOwnProperty(i)){var o=l(i,e[i]);if("float"===i&&(i=u),o)n[i]=o;else{var a=s.shorthandPropertyExpansions[i];if(a)for(var r in a)n[r]="";else n[i]=""}}}};e.exports=c},{106:106,111:111,131:131,141:141,150:150,21:21,4:4}],6:[function(t,e,n){"use strict";function i(){this._callbacks=null,this._contexts=null}var o=t(28),a=t(27),r=t(133);a(i.prototype,{enqueue:function(t,e){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(t),this._contexts.push(e)},notifyAll:function(){var t=this._callbacks,e=this._contexts;if(t){r(t.length===e.length),this._callbacks=null,this._contexts=null;for(var n=0,i=t.length;n<i;n++)t[n].call(e[n]);t.length=0,e.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(i),e.exports=i},{133:133,27:27,28:28}],7:[function(t,e,n){"use strict";function i(t){var e=y.getPooled(L.change,D,t);g.accumulateTwoPhaseDispatches(e),_.batchedUpdates(o,e)}function o(t){u.enqueueEvents(t),u.processEventQueue()}function a(){k&&(k.detachEvent("onchange",i),D=k=null)}function c(t,e,n){return t===T.topChange?n:void 0}function d(t,e,n){t===T.topFocus?(a(),D=n,(k=e).attachEvent("onchange",i)):t===T.topBlur&&a()}function r(){k&&(delete k.value,k.detachEvent("onpropertychange",s),x=S=D=k=null)}function s(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==S&&(S=e,i(t))}}function h(t,e,n){return t===T.topInput?n:void 0}function p(t,e,n){var i;t===T.topFocus?(r(),D=n,S=(k=i=e).value,x=Object.getOwnPropertyDescriptor(i.constructor.prototype,"value"),Object.defineProperty(k,"value",P),k.attachEvent("onpropertychange",s)):t===T.topBlur&&r()}function m(t,e,n){return t!==T.topSelectionChange&&t!==T.topKeyUp&&t!==T.topKeyDown||!k||k.value===S?void 0:(S=k.value,D)}function f(t,e,n){return t===T.topClick?n:void 0}var l=t(15),u=t(17),g=t(20),v=t(21),_=t(85),y=t(93),b=t(134),w=t(136),M=t(139),T=l.topLevelTypes,L={change:{phasedRegistrationNames:{bubbled:M({onChange:null}),captured:M({onChangeCapture:null})},dependencies:[T.topBlur,T.topChange,T.topClick,T.topFocus,T.topInput,T.topKeyDown,T.topKeyUp,T.topSelectionChange]}},k=null,D=null,S=null,x=null,C=!1;v.canUseDOM&&(C=b("change")&&(!("documentMode"in document)||8<document.documentMode));var E=!1;v.canUseDOM&&(E=b("input")&&(!("documentMode"in document)||9<document.documentMode));var P={get:function(){return x.get.call(this)},set:function(t){S=""+t,x.set.call(this,t)}},Y={eventTypes:L,extractEvents:function(t,e,n,i){var o,a,r,s;if("SELECT"===(s=e).nodeName||"INPUT"===s.nodeName&&"file"===s.type?C?o=c:a=d:w(e)?E?o=h:(o=m,a=p):"INPUT"!==(r=e).nodeName||"checkbox"!==r.type&&"radio"!==r.type||(o=f),o){var l=o(t,e,n);if(l){var u=y.getPooled(L.change,l,i);return g.accumulateTwoPhaseDispatches(u),u}}a&&a(t,e,n)}};e.exports=Y},{134:134,136:136,139:139,15:15,17:17,20:20,21:21,85:85,93:93}],8:[function(t,e,n){"use strict";var i=0,o={createReactRootIndex:function(){return i++}};e.exports=o},{}],9:[function(t,e,n){"use strict";function h(t,e,n){t.insertBefore(e,t.childNodes[n]||null)}var p=t(12),m=t(70),f=t(145),g=t(133),i={dangerouslyReplaceNodeWithMarkup:p.dangerouslyReplaceNodeWithMarkup,updateTextContent:f,processUpdates:function(t,e){for(var n,i=null,o=null,a=0;a<t.length;a++)if((n=t[a]).type===m.MOVE_EXISTING||n.type===m.REMOVE_NODE){var r=n.fromIndex,s=n.parentNode.childNodes[r],l=n.parentID;g(s),(i=i||{})[l]=i[l]||[],i[l][r]=s,(o=o||[]).push(s)}var u=p.dangerouslyRenderMarkup(e);if(o)for(var c=0;c<o.length;c++)o[c].parentNode.removeChild(o[c]);for(var d=0;d<t.length;d++)switch(n=t[d],n.type){case m.INSERT_MARKUP:h(n.parentNode,u[n.markupIndex],n.toIndex);break;case m.MOVE_EXISTING:h(n.parentNode,i[n.parentID][n.fromIndex],n.toIndex);break;case m.TEXT_CONTENT:f(n.parentNode,n.textContent);break;case m.REMOVE_NODE:}}};e.exports=i},{12:12,133:133,145:145,70:70}],10:[function(t,e,n){"use strict";function u(t,e){return(t&e)===e}var c=t(133),d={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=t.Properties||{},n=t.DOMAttributeNames||{},i=t.DOMPropertyNames||{},o=t.DOMMutationMethods||{};for(var a in t.isCustomAttribute&&h._isCustomAttributeFunctions.push(t.isCustomAttribute),e){c(!h.isStandardName.hasOwnProperty(a)),h.isStandardName[a]=!0;var r=a.toLowerCase();if(h.getPossibleStandardName[r]=a,n.hasOwnProperty(a)){var s=n[a];h.getPossibleStandardName[s]=a,h.getAttributeName[a]=s}else h.getAttributeName[a]=r;h.getPropertyName[a]=i.hasOwnProperty(a)?i[a]:a,o.hasOwnProperty(a)?h.getMutationMethod[a]=o[a]:h.getMutationMethod[a]=null;var l=e[a];h.mustUseAttribute[a]=u(l,d.MUST_USE_ATTRIBUTE),h.mustUseProperty[a]=u(l,d.MUST_USE_PROPERTY),h.hasSideEffects[a]=u(l,d.HAS_SIDE_EFFECTS),h.hasBooleanValue[a]=u(l,d.HAS_BOOLEAN_VALUE),h.hasNumericValue[a]=u(l,d.HAS_NUMERIC_VALUE),h.hasPositiveNumericValue[a]=u(l,d.HAS_POSITIVE_NUMERIC_VALUE),h.hasOverloadedBooleanValue[a]=u(l,d.HAS_OVERLOADED_BOOLEAN_VALUE),c(!h.mustUseAttribute[a]||!h.mustUseProperty[a]),c(h.mustUseProperty[a]||!h.hasSideEffects[a]),c(!!h.hasBooleanValue[a]+!!h.hasNumericValue[a]+!!h.hasOverloadedBooleanValue[a]<=1)}}},o={},h={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<h._isCustomAttributeFunctions.length;e++){if((0,h._isCustomAttributeFunctions[e])(t))return!0}return!1},getDefaultValueForProperty:function(t,e){var n,i=o[t];return i||(o[t]=i={}),e in i||(n=document.createElement(t),i[e]=n[e]),i[e]},injection:d};e.exports=h},{133:133}],11:[function(t,e,n){"use strict";function a(t,e){return null==e||r.hasBooleanValue[t]&&!e||r.hasNumericValue[t]&&isNaN(e)||r.hasPositiveNumericValue[t]&&e<1||r.hasOverloadedBooleanValue[t]&&!1===e}var r=t(10),i=t(143),o=(t(150),{createMarkupForID:function(t){return r.ID_ATTRIBUTE_NAME+"="+i(t)},createMarkupForProperty:function(t,e){if(r.isStandardName.hasOwnProperty(t)&&r.isStandardName[t]){if(a(t,e))return"";var n=r.getAttributeName[t];return r.hasBooleanValue[t]||r.hasOverloadedBooleanValue[t]&&!0===e?n:n+"="+i(e)}return r.isCustomAttribute(t)?null==e?"":t+"="+i(e):null},setValueForProperty:function(t,e,n){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){var i=r.getMutationMethod[e];if(i)i(t,n);else if(a(e,n))this.deleteValueForProperty(t,e);else if(r.mustUseAttribute[e])t.setAttribute(r.getAttributeName[e],""+n);else{var o=r.getPropertyName[e];r.hasSideEffects[e]&&""+t[o]==""+n||(t[o]=n)}}else r.isCustomAttribute(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))},deleteValueForProperty:function(t,e){if(r.isStandardName.hasOwnProperty(e)&&r.isStandardName[e]){var n=r.getMutationMethod[e];if(n)n(t,void 0);else if(r.mustUseAttribute[e])t.removeAttribute(r.getAttributeName[e]);else{var i=r.getPropertyName[e],o=r.getDefaultValueForProperty(t.nodeName,i);r.hasSideEffects[e]&&""+t[i]===o||(t[i]=o)}}else r.isCustomAttribute(e)&&t.removeAttribute(e)}});e.exports=o},{10:10,143:143,150:150}],12:[function(t,e,n){"use strict";var p=t(21),m=t(110),f=t(112),g=t(125),v=t(133),_=/^(<[^ \/>]+)/,y="data-danger-index",i={dangerouslyRenderMarkup:function(t){v(p.canUseDOM);for(var e,n={},i=0;i<t.length;i++)v(t[i]),e=(o=t[i]).substring(1,o.indexOf(" ")),n[e=g(e)?e:"*"]=n[e]||[],n[e][i]=t[i];var o,a=[],r=0;for(e in n)if(n.hasOwnProperty(e)){var s,l=n[e];for(s in l)if(l.hasOwnProperty(s)){var u=l[s];l[s]=u.replace(_,"$1 "+y+'="'+s+'" ')}for(var c=m(l.join(""),f),d=0;d<c.length;++d){var h=c[d];h.hasAttribute&&h.hasAttribute(y)&&(s=+h.getAttribute(y),h.removeAttribute(y),v(!a.hasOwnProperty(s)),a[s]=h,r+=1)}}return v(r===a.length),v(a.length===t.length),a},dangerouslyReplaceNodeWithMarkup:function(t,e){v(p.canUseDOM),v(e),v("html"!==t.tagName.toLowerCase());var n=m(e,f)[0];t.parentNode.replaceChild(n,t)}};e.exports=i},{110:110,112:112,125:125,133:133,21:21}],13:[function(t,e,n){"use strict";var i=t(139),o=[i({ResponderEventPlugin:null}),i({SimpleEventPlugin:null}),i({TapEventPlugin:null}),i({EnterLeaveEventPlugin:null}),i({ChangeEventPlugin:null}),i({SelectEventPlugin:null}),i({BeforeInputEventPlugin:null}),i({AnalyticsEventPlugin:null}),i({MobileSafariClickEventPlugin:null})];e.exports=o},{139:139}],14:[function(t,e,n){"use strict";var i=t(15),h=t(20),p=t(97),m=t(68),o=t(139),f=i.topLevelTypes,g=m.getFirstReactDOM,v={mouseEnter:{registrationName:o({onMouseEnter:null}),dependencies:[f.topMouseOut,f.topMouseOver]},mouseLeave:{registrationName:o({onMouseLeave:null}),dependencies:[f.topMouseOut,f.topMouseOver]}},_=[null,null],a={eventTypes:v,extractEvents:function(t,e,n,i){if(t===f.topMouseOver&&(i.relatedTarget||i.fromElement))return null;if(t!==f.topMouseOut&&t!==f.topMouseOver)return null;var o,a,r;if(e.window===e)o=e;else{var s=e.ownerDocument;o=s?s.defaultView||s.parentWindow:window}if(r=t===f.topMouseOut?(a=e,g(i.relatedTarget||i.toElement)||o):(a=o,e),a===r)return null;var l=a?m.getID(a):"",u=r?m.getID(r):"",c=p.getPooled(v.mouseLeave,l,i);c.type="mouseleave",c.target=a,c.relatedTarget=r;var d=p.getPooled(v.mouseEnter,u,i);return d.type="mouseenter",d.target=r,d.relatedTarget=a,h.accumulateEnterLeaveDispatches(c,d,l,u),_[0]=c,_[1]=d,_}};e.exports=a},{139:139,15:15,20:20,68:68,97:97}],15:[function(t,e,n){"use strict";var i=t(138),o=i({bubbled:null,captured:null}),a={topLevelTypes:i({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),PropagationPhases:o};e.exports=a},{138:138}],16:[function(t,e,n){var i=t(112),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i}},registerDefault:function(){}};e.exports=o},{112:112}],17:[function(t,e,n){"use strict";function i(t){if(t){var e=o.executeDispatch,n=c.getPluginModuleForEvent(t);n&&n.executeDispatch&&(e=n.executeDispatch),o.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t)}}var c=t(18),o=t(19),d=t(103),a=t(118),r=t(133),s={},l=null,u=null,h={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(t){u=t},getInstanceHandle:function(){return u},injectEventPluginOrder:c.injectEventPluginOrder,injectEventPluginsByName:c.injectEventPluginsByName},eventNameDispatchConfigs:c.eventNameDispatchConfigs,registrationNameModules:c.registrationNameModules,putListener:function(t,e,n){r(!n||"function"==typeof n),(s[e]||(s[e]={}))[t]=n},getListener:function(t,e){var n=s[e];return n&&n[t]},deleteListener:function(t,e){var n=s[e];n&&delete n[t]},deleteAllListeners:function(t){for(var e in s)delete s[e][t]},extractEvents:function(t,e,n,i){for(var o,a=c.plugins,r=0,s=a.length;r<s;r++){var l=a[r];if(l){var u=l.extractEvents(t,e,n,i);u&&(o=d(o,u))}}return o},enqueueEvents:function(t){t&&(l=d(l,t))},processEventQueue:function(){var t=l;l=null,a(t,i),r(!l)},__purge:function(){s={}},__getListenerBank:function(){return s}};e.exports=h},{103:103,118:118,133:133,18:18,19:19}],18:[function(t,e,n){"use strict";function o(){if(l)for(var t in u){var e=u[t],n=l.indexOf(t);if(s(-1<n),!c.plugins[n]){s(e.extractEvents);var i=(c.plugins[n]=e).eventTypes;for(var o in i)s(a(i[o],e,o))}}}function a(t,e,n){s(!c.eventNameDispatchConfigs.hasOwnProperty(n));var i=(c.eventNameDispatchConfigs[n]=t).phasedRegistrationNames;if(i){for(var o in i)if(i.hasOwnProperty(o)){r(i[o],e,n)}return!0}return!!t.registrationName&&(r(t.registrationName,e,n),!0)}function r(t,e,n){s(!c.registrationNameModules[t]),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var s=t(133),l=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(t){s(!l),l=Array.prototype.slice.call(t),o()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];u.hasOwnProperty(n)&&u[n]===i||(s(!u[n]),u[n]=i,e=!0)}e&&o()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var i=c.registrationNameModules[e.phasedRegistrationNames[n]];if(i)return i}return null},_resetEventPlugins:function(){for(var t in l=null,u)u.hasOwnProperty(t)&&delete u[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var i=c.registrationNameModules;for(var o in i)i.hasOwnProperty(o)&&delete i[o]}};e.exports=c},{133:133}],19:[function(t,e,n){"use strict";var i=t(15),o=t(133),a={Mount:null,injectMount:function(t){a.Mount=t}},r=i.topLevelTypes,s={isEndish:function(t){return t===r.topMouseUp||t===r.topTouchEnd||t===r.topTouchCancel},isMoveish:function(t){return t===r.topMouseMove||t===r.topTouchMove},isStartish:function(t){return t===r.topMouseDown||t===r.topTouchStart},executeDirectDispatch:function(t){var e=t._dispatchListeners,n=t._dispatchIDs;o(!Array.isArray(e));var i=e?e(t,n):null;return t._dispatchListeners=null,t._dispatchIDs=null,i},executeDispatch:function(t,e,n){t.currentTarget=a.Mount.getNode(n);var i=e(t,n);return t.currentTarget=null,i},executeDispatchesInOrder:function(t,e){(function(t,e){var n=t._dispatchListeners,i=t._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!t.isPropagationStopped();o++)e(t,n[o],i[o]);else n&&e(t,n,i)})(t,e),t._dispatchListeners=null,t._dispatchIDs=null},executeDispatchesInOrderStopAtTrue:function(t){var e=function(t){var e=t._dispatchListeners,n=t._dispatchIDs;if(Array.isArray(e)){for(var i=0;i<e.length&&!t.isPropagationStopped();i++)if(e[i](t,n[i]))return n[i]}else if(e&&e(t,n))return n;return null}(t);return t._dispatchIDs=null,t._dispatchListeners=null,e},hasDispatches:function(t){return!!t._dispatchListeners},injection:a,useTouchEvents:!1};e.exports=s},{133:133,15:15}],20:[function(t,e,n){"use strict";function i(t,e,n){var i,o,a,r=e?d.bubbled:d.captured,s=(i=t,o=r,a=n.dispatchConfig.phasedRegistrationNames[o],h(i,a));s&&(n._dispatchListeners=u(n._dispatchListeners,s),n._dispatchIDs=u(n._dispatchIDs,t))}function o(t){t&&t.dispatchConfig.phasedRegistrationNames&&l.injection.getInstanceHandle().traverseTwoPhase(t.dispatchMarker,i,t)}function a(t,e,n){if(n&&n.dispatchConfig.registrationName){var i=n.dispatchConfig.registrationName,o=h(t,i);o&&(n._dispatchListeners=u(n._dispatchListeners,o),n._dispatchIDs=u(n._dispatchIDs,t))}}function r(t){t&&t.dispatchConfig.registrationName&&a(t.dispatchMarker,0,t)}var s=t(15),l=t(17),u=t(103),c=t(118),d=s.PropagationPhases,h=l.getListener,p={accumulateTwoPhaseDispatches:function(t){c(t,o)},accumulateDirectDispatches:function(t){c(t,r)},accumulateEnterLeaveDispatches:function(t,e,n,i){l.injection.getInstanceHandle().traverseEnterLeave(n,i,a,t,e)}};e.exports=p},{103:103,118:118,15:15,17:17}],21:[function(t,e,n){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=o},{}],22:[function(t,e,n){"use strict";function i(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=t(28),a=t(27),r=t(128);a(i.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[r()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,i=n.length,o=this.getText(),a=o.length;for(t=0;t<i&&n[t]===o[t];t++);var r=i-t;for(e=1;e<=r&&n[i-e]===o[a-e];e++);var s=1<e?1-e:void 0;return this._fallbackText=o.slice(t,s),this._fallbackText}}),o.addPoolingTo(i),e.exports=i},{128:128,27:27,28:28}],23:[function(t,e,n){"use strict";var i,o=t(10),a=t(21),r=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,u=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,d=o.injection.HAS_POSITIVE_NUMERIC_VALUE,h=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var p=document.implementation;i=p&&p.hasFeature&&p.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var m={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:r|l,allowTransparency:r,alt:null,async:l,autoComplete:null,autoPlay:l,cellPadding:null,cellSpacing:null,charSet:r,checked:s|l,classID:r,className:i?r:s,cols:r|d,colSpan:null,content:null,contentEditable:null,contextMenu:r,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:r,defer:l,dir:null,disabled:r|l,download:h,draggable:null,encType:null,form:r,formAction:r,formEncType:r,formMethod:r,formNoValidate:l,formTarget:r,frameBorder:r,headers:null,height:r,hidden:r|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:r,loop:s|l,low:null,manifest:r,marginHeight:null,marginWidth:null,max:null,maxLength:r,media:r,mediaGroup:null,method:null,min:null,multiple:s|l,muted:s|l,name:null,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,role:r,rows:r|d,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:r|l,selected:s|l,shape:null,size:r|d,sizes:r,span:d,spellCheck:null,src:null,srcDoc:s,srcSet:r,start:c,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|u,width:r,wmode:r,autoCapitalize:null,autoCorrect:null,itemProp:r,itemScope:r|l,itemType:r,itemID:r,itemRef:r,property:null,unselectable:r},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=m},{10:10,21:21}],24:[function(t,e,n){"use strict";function i(t){u(null==t.props.checkedLink||null==t.props.valueLink)}function o(t){i(t),u(null==t.props.value&&null==t.props.onChange)}function a(t){i(t),u(null==t.props.checked&&null==t.props.onChange)}function r(t){this.props.valueLink.requestChange(t.target.value)}function s(t){this.props.checkedLink.requestChange(t.target.checked)}var l=t(76),u=t(133),c={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},d={Mixin:{propTypes:{value:function(t,e,n){return!t[e]||c[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e,n){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:l.func}},getValue:function(t){return t.props.valueLink?(o(t),t.props.valueLink.value):t.props.value},getChecked:function(t){return t.props.checkedLink?(a(t),t.props.checkedLink.value):t.props.checked},getOnChange:function(t){return t.props.valueLink?(o(t),r):t.props.checkedLink?(a(t),s):t.props.onChange}};e.exports=d},{133:133,76:76}],25:[function(t,e,n){"use strict";function i(t){t.remove()}var o=t(30),a=t(103),r=t(118),s=t(133),l={trapBubbledEvent:function(t,e){s(this.isMounted());var n=this.getDOMNode();s(n);var i=o.trapBubbledEvent(t,e,n);this._localEventListeners=a(this._localEventListeners,i)},componentWillUnmount:function(){this._localEventListeners&&r(this._localEventListeners,i)}};e.exports=l},{103:103,118:118,133:133,30:30}],26:[function(t,e,n){"use strict";var i=t(15),a=t(112),r=i.topLevelTypes,o={eventTypes:null,extractEvents:function(t,e,n,i){if(t===r.topTouchStart){var o=i.target;o&&!o.onclick&&(o.onclick=a)}}};e.exports=o},{112:112,15:15}],27:[function(t,e,n){"use strict";e.exports=function(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),i=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var a=arguments[o];if(null!=a){var r=Object(a);for(var s in r)i.call(r,s)&&(n[s]=r[s])}}return n}},{}],28:[function(t,e,n){"use strict";function i(t){if(this.instancePool.length){var e=this.instancePool.pop();return this.call(e,t),e}return new this(t)}function o(t){a(t instanceof this),t.destructor&&t.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(t)}var a=t(133),r=i,s={addPoolingTo:function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||r,n.poolSize||(n.poolSize=10),n.release=o,n},oneArgumentPooler:i,twoArgumentPooler:function(t,e){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t,e),n}return new this(t,e)},threeArgumentPooler:function(t,e,n){if(this.instancePool.length){var i=this.instancePool.pop();return this.call(i,t,e,n),i}return new this(t,e,n)},fiveArgumentPooler:function(t,e,n,i,o){if(this.instancePool.length){var a=this.instancePool.pop();return this.call(a,t,e,n,i,o),a}return new this(t,e,n,i,o)}};e.exports=s},{133:133}],29:[function(t,e,n){"use strict";var i=t(115),o={getDOMNode:function(){return i(this)}};e.exports=o},{115:115}],30:[function(t,e,n){"use strict";var c=t(15),i=t(17),d=t(18),o=t(59),a=t(102),r=t(27),h=t(134),p={},s=!1,m=0,f={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),v=r({},o,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=t}},setEnabled:function(t){v.ReactEventListener&&v.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,i=(u=n,Object.prototype.hasOwnProperty.call(u,g)||(u[g]=m++,p[u[g]]={}),p[u[g]]),o=d.registrationNameDependencies[t],a=c.topLevelTypes,r=0,s=o.length;r<s;r++){var l=o[r];i.hasOwnProperty(l)&&i[l]||(l===a.topWheel?h("wheel")?v.ReactEventListener.trapBubbledEvent(a.topWheel,"wheel",n):h("mousewheel")?v.ReactEventListener.trapBubbledEvent(a.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(a.topWheel,"DOMMouseScroll",n):l===a.topScroll?h("scroll",!0)?v.ReactEventListener.trapCapturedEvent(a.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(a.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):l===a.topFocus||l===a.topBlur?(h("focus",!0)?(v.ReactEventListener.trapCapturedEvent(a.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(a.topBlur,"blur",n)):h("focusin")&&(v.ReactEventListener.trapBubbledEvent(a.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(a.topBlur,"focusout",n)),i[a.topBlur]=!0,i[a.topFocus]=!0):f.hasOwnProperty(l)&&v.ReactEventListener.trapBubbledEvent(l,f[l],n),i[l]=!0)}var u},trapBubbledEvent:function(t,e,n){return v.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return v.ReactEventListener.trapCapturedEvent(t,e,n)},ensureScrollValueMonitoring:function(){if(!s){var t=a.refreshScrollValues;v.ReactEventListener.monitorScrollValue(t),s=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});e.exports=v},{102:102,134:134,15:15,17:17,18:18,27:27,59:59}],31:[function(t,e,n){"use strict";var c=t(79),d=t(116),h=t(132),p=t(147),i={instantiateChildren:function(t,e,n){var i=d(t);for(var o in i)if(i.hasOwnProperty(o)){var a=i[o],r=h(a,null);i[o]=r}return i},updateChildren:function(t,e,n,i){var o,a=d(e);if(!a&&!t)return null;for(o in a)if(a.hasOwnProperty(o)){var r=t&&t[o],s=r&&r._currentElement,l=a[o];if(p(s,l))c.receiveComponent(r,l,n,i),a[o]=r;else{r&&c.unmountComponent(r,o);var u=h(l,null);a[o]=u}}for(o in t)!t.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||c.unmountComponent(t[o]);return a},unmountChildren:function(t){for(var e in t){var n=t[e];c.unmountComponent(n)}}};e.exports=i},{116:116,132:132,147:147,79:79}],32:[function(t,e,n){"use strict";function o(t,e){this.forEachFunction=t,this.forEachContext=e}function a(t,e,n,i){t.forEachFunction.call(t.forEachContext,e,i)}function r(t,e,n){this.mapResult=t,this.mapFunction=e,this.mapContext=n}function s(t,e,n,i){var o=t,a=o.mapResult;if(!a.hasOwnProperty(n)){var r=o.mapFunction.call(o.mapContext,e,i);a[n]=r}}function i(t,e,n,i){return null}var l=t(28),u=t(61),c=t(149),d=(t(150),l.twoArgumentPooler),h=l.threeArgumentPooler;l.addPoolingTo(o,d),l.addPoolingTo(r,h);var p={forEach:function(t,e,n){if(null==t)return t;var i=o.getPooled(e,n);c(t,a,i),o.release(i)},map:function(t,e,n){if(null==t)return t;var i={},o=r.getPooled(i,e,n);return c(t,s,o),r.release(o),u.create(i)},count:function(t,e){return c(t,i,null)}};e.exports=p},{149:149,150:150,28:28,61:61}],33:[function(t,e,n){"use strict";function i(t,e){if(e){f("function"!=typeof e),f(!m.isValidElement(e));var n=t.prototype;for(var i in e.hasOwnProperty(_)&&M.mixins(t,e.mixins),e)if(e.hasOwnProperty(i)&&i!==_){var o=e[i];if(u=n,c=i,d=w.hasOwnProperty(c)?w[c]:null,T.hasOwnProperty(c)&&f(d===y.OVERRIDE_BASE),u.hasOwnProperty(c)&&f(d===y.DEFINE_MANY||d===y.DEFINE_MANY_MERGED),M.hasOwnProperty(i))M[i](t,o);else{var a=w.hasOwnProperty(i),r=n.hasOwnProperty(i),s=o&&o.__reactDontBind;if("function"==typeof o&&!a&&!r&&!s)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[i]=o,n[i]=o;else if(r){var l=w[i];f(a&&(l===y.DEFINE_MANY_MERGED||l===y.DEFINE_MANY)),l===y.DEFINE_MANY_MERGED?n[i]=h(n[i],o):l===y.DEFINE_MANY&&(n[i]=p(n[i],o))}else n[i]=o}}}var u,c,d}function a(t,e){for(var n in f(t&&e&&"object"==typeof t&&"object"==typeof e),e)e.hasOwnProperty(n)&&(f(void 0===t[n]),t[n]=e[n]);return t}function h(i,o){return function(){var t=i.apply(this,arguments),e=o.apply(this,arguments);if(null==t)return e;if(null==e)return t;var n={};return a(n,t),a(n,e),n}}function p(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function o(){}var r=t(34),m=(t(39),t(55)),s=t(58),l=t(65),u=t(66),c=(t(75),t(74),t(84)),d=t(27),f=t(133),g=t(138),v=t(139),_=(t(150),v({mixins:null})),y=g({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),b=[],w={mixins:y.DEFINE_MANY,statics:y.DEFINE_MANY,propTypes:y.DEFINE_MANY,contextTypes:y.DEFINE_MANY,childContextTypes:y.DEFINE_MANY,getDefaultProps:y.DEFINE_MANY_MERGED,getInitialState:y.DEFINE_MANY_MERGED,getChildContext:y.DEFINE_MANY_MERGED,render:y.DEFINE_ONCE,componentWillMount:y.DEFINE_MANY,componentDidMount:y.DEFINE_MANY,componentWillReceiveProps:y.DEFINE_MANY,shouldComponentUpdate:y.DEFINE_ONCE,componentWillUpdate:y.DEFINE_MANY,componentDidUpdate:y.DEFINE_MANY,componentWillUnmount:y.DEFINE_MANY,updateComponent:y.OVERRIDE_BASE},M={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)i(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=d({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=d({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=h(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=d({},t.propTypes,e)},statics:function(t,e){!function(t,e){if(e)for(var n in e){var i=e[n];if(e.hasOwnProperty(n))f(!(n in M)),f(!(n in t)),t[n]=i}}(t,e)}},T={replaceState:function(t,e){c.enqueueReplaceState(this,t),e&&c.enqueueCallback(this,e)},isMounted:function(){var t=l.get(this);return t&&t!==u.currentlyMountingInstance},setProps:function(t,e){c.enqueueSetProps(this,t),e&&c.enqueueCallback(this,e)},replaceProps:function(t,e){c.enqueueReplaceProps(this,t),e&&c.enqueueCallback(this,e)}};d(o.prototype,r.prototype,T);var L={createClass:function(t){function e(t,e){this.__reactAutoBindMap&&function(t){for(var e in t.__reactAutoBindMap)if(t.__reactAutoBindMap.hasOwnProperty(e)){var n=t.__reactAutoBindMap[e];t[e]=(i=t,s.guard(n,t.constructor.displayName+"."+e).bind(i))}var i}(this),this.props=t,this.context=e,this.state=null;var n=this.getInitialState?this.getInitialState():null;f("object"==typeof n&&!Array.isArray(n)),this.state=n}for(var n in(e.prototype=new o).constructor=e,b.forEach(i.bind(null,e)),i(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),f(e.prototype.render),w)e.prototype[n]||(e.prototype[n]=null);return e.type=e},injection:{injectMixin:function(t){b.push(t)}}};e.exports=L},{133:133,138:138,139:139,150:150,27:27,34:34,39:39,55:55,58:58,65:65,66:66,74:74,75:75,84:84}],34:[function(t,e,n){"use strict";function i(t,e){this.props=t,this.context=e}var o=t(84),a=t(133);t(150),i.prototype.setState=function(t,e){a("object"==typeof t||"function"==typeof t||null==t),o.enqueueSetState(this,t),e&&o.enqueueCallback(this,e)},i.prototype.forceUpdate=function(t){o.enqueueForceUpdate(this),t&&o.enqueueCallback(this,t)},e.exports=i},{133:133,150:150,84:84}],35:[function(t,e,n){"use strict";var i=t(44),o=t(68),a={processChildrenUpdates:i.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:i.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(t){o.purgeID(t)}};e.exports=a},{44:44,68:68}],36:[function(t,e,n){"use strict";var i=t(133),o=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){i(!o),a.unmountIDFromEnvironment=t.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=t.replaceNodeWithMarkupByID,a.processChildrenUpdates=t.processChildrenUpdates,o=!0}}};e.exports=a},{133:133}],37:[function(t,e,n){"use strict";function r(t){var e=t._currentElement._owner||null;if(e&&e.getName())return 1}var i=t(36),o=t(38),a=t(39),s=t(55),d=(t(56),t(65)),h=t(66),p=t(71),l=t(73),u=t(75),m=(t(74),t(79)),c=t(85),f=t(27),g=t(113),v=t(133),_=t(147),y=(t(150),1),b={construct:function(t){this._currentElement=t,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(t,e,n){this._context=n,this._mountOrder=y++,this._rootNodeID=t;var i=this._processProps(this._currentElement.props),o=this._processContext(this._currentElement._context),a=new(p.getComponentClassForElement(this._currentElement))(i,o);a.props=i,a.context=o,a.refs=g,this._instance=a,d.set(a,this);var r=a.state;void 0===r&&(a.state=r=null),v("object"==typeof r&&!Array.isArray(r)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var s,l,u=h.currentlyMountingInstance;h.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),s=this._getValidatedChildContext(n),l=this._renderValidatedComponent(s)}finally{h.currentlyMountingInstance=u}this._renderedComponent=this._instantiateReactComponent(l,this._currentElement.type);var c=m.mountComponent(this._renderedComponent,t,e,this._mergeChildContext(n,s));return a.componentDidMount&&e.getReactMountReady().enqueue(a.componentDidMount,a),c},unmountComponent:function(){var t=this._instance;if(t.componentWillUnmount){var e=h.currentlyUnmountingInstance;h.currentlyUnmountingInstance=this;try{t.componentWillUnmount()}finally{h.currentlyUnmountingInstance=e}}m.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,d.remove(t)},_setPropsInternal:function(t,e){var n=this._pendingElement||this._currentElement;this._pendingElement=s.cloneAndReplaceProps(n,f({},n.props,t)),c.enqueueUpdate(this,e)},_maskContext:function(t){var e=null;if("string"==typeof this._currentElement.type)return g;var n=this._currentElement.type.contextTypes;if(!n)return g;for(var i in e={},n)e[i]=t[i];return e},_processContext:function(t){return this._maskContext(t)},_getValidatedChildContext:function(t){var e=this._instance,n=e.getChildContext&&e.getChildContext();if(n){for(var i in v("object"==typeof e.constructor.childContextTypes),n)v(i in e.constructor.childContextTypes);return n}return null},_mergeChildContext:function(t,e){return e?f({},t,e):t},_processProps:function(t){return t},_checkPropTypes:function(t,e,n){var i=this.getName();for(var o in t)if(t.hasOwnProperty(o)){var a;try{v("function"==typeof t[o]),a=t[o](e,o,i,n)}catch(t){a=t}a instanceof Error&&(r(this),u.prop)}},receiveComponent:function(t,e,n){var i=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,i,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement&&m.receiveComponent(this,this._pendingElement||this._currentElement,t,this._context),null===this._pendingStateQueue&&!this._pendingForceUpdate||this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(t,e){t=this._maskContext(t),e=this._maskContext(e);for(var n=Object.keys(e).sort(),i=(this.getName(),0);i<n.length;i++)n[i]},updateComponent:function(t,e,n,i,o){var a=this._instance,r=a.context,s=a.props;e!==n&&(r=this._processContext(n._context),s=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(s,r));var l=this._processPendingState(s,r);this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(s,l,r)?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,l,r,t,o)):(this._currentElement=n,this._context=o,a.props=s,a.state=l,a.context=r)},_processPendingState:function(t,e){var n=this._instance,i=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!i)return n.state;if(o&&1===i.length)return i[0];for(var a=f({},o?i[0]:n.state),r=o?1:0;r<i.length;r++){var s=i[r];f(a,"function"==typeof s?s.call(n,a,t,e):s)}return a},_performComponentUpdate:function(t,e,n,i,o,a){var r=this._instance,s=r.props,l=r.state,u=r.context;r.componentWillUpdate&&r.componentWillUpdate(e,n,i),this._currentElement=t,this._context=a,r.props=e,r.state=n,r.context=i,this._updateRenderedComponent(o,a),r.componentDidUpdate&&o.getReactMountReady().enqueue(r.componentDidUpdate.bind(r,s,l,u),r)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,i=n._currentElement,o=this._getValidatedChildContext(),a=this._renderValidatedComponent(o);if(_(i,a))m.receiveComponent(n,a,t,this._mergeChildContext(e,o));else{var r=this._rootNodeID,s=n._rootNodeID;m.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(a,this._currentElement.type);var l=m.mountComponent(this._renderedComponent,r,t,this._mergeChildContext(e,o));this._replaceNodeWithMarkupByID(s,l)}},_replaceNodeWithMarkupByID:function(t,e){i.replaceNodeWithMarkupByID(t,e)},_renderValidatedComponentWithoutOwnerOrContext:function(){return this._instance.render()},_renderValidatedComponent:function(t){var e,n=o.current;o.current=this._mergeChildContext(this._currentElement._context,t),a.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{o.current=n,a.current=null}return v(null===e||!1===e||s.isValidElement(e)),e},attachRef:function(t,e){var n=this.getPublicInstance();(n.refs===g?n.refs={}:n.refs)[t]=e.getPublicInstance()},detachRef:function(t){delete this.getPublicInstance().refs[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};l.measureMethods(b,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var w={Mixin:b};e.exports=w},{113:113,133:133,147:147,150:150,27:27,36:36,38:38,39:39,55:55,56:56,65:65,66:66,71:71,73:73,74:74,75:75,79:79,85:85}],38:[function(t,e,n){"use strict";var o=t(27),i=t(113),a=(t(150),{current:i,withContext:function(t,e){var n,i=a.current;a.current=o({},i,t);try{n=e()}finally{a.current=i}return n}});e.exports=a},{113:113,150:150,27:27}],39:[function(t,e,n){"use strict";e.exports={current:null}},{}],40:[function(t,e,n){"use strict";var i=t(55),o=(t(56),t(140))({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},function(t){return i.createFactory(t)});e.exports=o},{140:140,55:55,56:56}],41:[function(t,e,n){"use strict";var i=t(2),o=t(29),a=t(33),r=t(55),s=t(138),l=r.createFactory("button"),u=s({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),c=a.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[i,o],render:function(){var t={};for(var e in this.props)!this.props.hasOwnProperty(e)||this.props.disabled&&u[e]||(t[e]=this.props[e]);return l(t,this.props.children)}});e.exports=c},{138:138,2:2,29:29,33:33,55:55}],42:[function(t,e,n){"use strict";function o(t){t&&(null!=t.dangerouslySetInnerHTML&&(g(null==t.children),g("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML)),g(null==t.style||"object"==typeof t.style))}function u(t,e,n,i){var o=d.findReactContainerForID(t);if(o){var a=o.nodeType===T?o.ownerDocument:o;y(e,a)}i.getPutListenerQueue().enqueuePutListener(t,e,n)}function i(t){var e;e=t,x.call(S,e)||(g(D.test(e)),S[e]=!0),this._tag=t,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var r=t(5),c=t(10),s=t(11),a=t(30),l=t(35),d=t(68),h=t(69),p=t(73),m=t(27),f=t(114),g=t(133),v=(t(134),t(139)),_=(t(150),a.deleteListener),y=a.listenTo,b=a.registrationNameModules,w={string:!0,number:!0},M=v({style:null}),T=1,L=null,k={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},D=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,S={},x={}.hasOwnProperty;i.displayName="ReactDOMComponent",i.Mixin={construct:function(t){this._currentElement=t},mountComponent:function(t,e,n){this._rootNodeID=t,o(this._currentElement.props);var i=k[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(e)+this._createContentMarkup(e,n)+i},_createOpenTagMarkupAndPutListeners:function(t){var e=this._currentElement.props,n="<"+this._tag;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(null!=o)if(b.hasOwnProperty(i))u(this._rootNodeID,i,o,t);else{i===M&&(o=o&&(this._previousStyleCopy=m({},e.style)),o=r.createMarkupForStyles(o));var a=s.createMarkupForProperty(i,o);a&&(n+=" "+a)}}return t.renderToStaticMarkup?n+">":n+" "+s.createMarkupForID(this._rootNodeID)+">"},_createContentMarkup:function(t,e){var n="";"listing"!==this._tag&&"pre"!==this._tag&&"textarea"!==this._tag||(n="\n");var i=this._currentElement.props,o=i.dangerouslySetInnerHTML;if(null!=o){if(null!=o.__html)return n+o.__html}else{var a=w[typeof i.children]?i.children:null,r=null!=a?null:i.children;if(null!=a)return n+f(a);if(null!=r)return n+this.mountChildren(r,t,e).join("")}return n},receiveComponent:function(t,e,n){var i=this._currentElement;this._currentElement=t,this.updateComponent(e,i,t,n)},updateComponent:function(t,e,n,i){o(this._currentElement.props),this._updateDOMProperties(e.props,t),this._updateDOMChildren(e.props,t,i)},_updateDOMProperties:function(t,e){var n,i,o,a=this._currentElement.props;for(n in t)if(!a.hasOwnProperty(n)&&t.hasOwnProperty(n))if(n===M){var r=this._previousStyleCopy;for(i in r)r.hasOwnProperty(i)&&((o=o||{})[i]="");this._previousStyleCopy=null}else b.hasOwnProperty(n)?_(this._rootNodeID,n):(c.isStandardName[n]||c.isCustomAttribute(n))&&L.deletePropertyByID(this._rootNodeID,n);for(n in a){var s=a[n],l=n===M?this._previousStyleCopy:t[n];if(a.hasOwnProperty(n)&&s!==l)if(n===M)if(s?s=this._previousStyleCopy=m({},s):this._previousStyleCopy=null,l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||((o=o||{})[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&((o=o||{})[i]=s[i])}else o=s;else b.hasOwnProperty(n)?u(this._rootNodeID,n,s,e):(c.isStandardName[n]||c.isCustomAttribute(n))&&L.updatePropertyByID(this._rootNodeID,n,s)}o&&L.updateStylesByID(this._rootNodeID,o)},_updateDOMChildren:function(t,e,n){var i=this._currentElement.props,o=w[typeof t.children]?t.children:null,a=w[typeof i.children]?i.children:null,r=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,s=i.dangerouslySetInnerHTML&&i.dangerouslySetInnerHTML.__html,l=null!=o?null:t.children,u=null!=a?null:i.children,c=null!=o||null!=r,d=null!=a||null!=s;null!=l&&null==u?this.updateChildren(null,e,n):c&&!d&&this.updateTextContent(""),null!=a?o!==a&&this.updateTextContent(""+a):null!=s?r!==s&&L.updateInnerHTMLByID(this._rootNodeID,s):null!=u&&this.updateChildren(u,e,n)},unmountComponent:function(){this.unmountChildren(),a.deleteAllListeners(this._rootNodeID),l.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},p.measureMethods(i,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),m(i.prototype,i.Mixin,h.Mixin),i.injection={injectIDOperations:function(t){i.BackendIDOperations=L=t}},e.exports=i},{10:10,11:11,114:114,133:133,134:134,139:139,150:150,27:27,30:30,35:35,5:5,68:68,69:69,73:73}],43:[function(t,e,n){"use strict";var i=t(15),o=t(25),a=t(29),r=t(33),s=t(55).createFactory("form"),l=r.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[a,o],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(i.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(i.topLevelTypes.topSubmit,"submit")}});e.exports=l},{15:15,25:25,29:29,33:33,55:55}],44:[function(t,e,n){"use strict";var i=t(5),o=t(9),a=t(11),r=t(68),s=t(73),l=t(133),u=t(144),c={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},d={updatePropertyByID:function(t,e,n){var i=r.getNode(t);l(!c.hasOwnProperty(e)),null!=n?a.setValueForProperty(i,e,n):a.deleteValueForProperty(i,e)},deletePropertyByID:function(t,e,n){var i=r.getNode(t);l(!c.hasOwnProperty(e)),a.deleteValueForProperty(i,e,n)},updateStylesByID:function(t,e){var n=r.getNode(t);i.setValueForStyles(n,e)},updateInnerHTMLByID:function(t,e){var n=r.getNode(t);u(n,e)},updateTextContentByID:function(t,e){var n=r.getNode(t);o.updateTextContent(n,e)},dangerouslyReplaceNodeWithMarkupByID:function(t,e){var n=r.getNode(t);o.dangerouslyReplaceNodeWithMarkup(n,e)},dangerouslyProcessChildrenUpdates:function(t,e){for(var n=0;n<t.length;n++)t[n].parentNode=r.getNode(t[n].parentID);o.processUpdates(t,e)}};s.measureMethods(d,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=d},{11:11,133:133,144:144,5:5,68:68,73:73,9:9}],45:[function(t,e,n){"use strict";var i=t(15),o=t(25),a=t(29),r=t(33),s=t(55).createFactory("iframe"),l=r.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[a,o],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(i.topLevelTypes.topLoad,"load")}});e.exports=l},{15:15,25:25,29:29,33:33,55:55}],46:[function(t,e,n){"use strict";var i=t(15),o=t(25),a=t(29),r=t(33),s=t(55).createFactory("img"),l=r.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[a,o],render:function(){return s(this.props)},componentDidMount:function(){this.trapBubbledEvent(i.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(i.topLevelTypes.topError,"error")}});e.exports=l},{15:15,25:25,29:29,33:33,55:55}],47:[function(t,e,n){"use strict";function h(){this.isMounted()&&this.forceUpdate()}var i=t(2),a=t(11),p=t(24),o=t(29),r=t(33),s=t(55),m=t(68),f=t(85),l=t(27),g=t(133),u=s.createFactory("input"),v={},c=r.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[i,p.Mixin,o],getInitialState:function(){var t=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=t?t:null}},render:function(){var t=l({},this.props);t.defaultChecked=null,t.defaultValue=null;var e=p.getValue(this);t.value=null!=e?e:this.state.initialValue;var n=p.getChecked(this);return t.checked=null!=n?n:this.state.initialChecked,t.onChange=this._handleChange,u(t,this.props.children)},componentDidMount:function(){var t=m.getID(this.getDOMNode());v[t]=this},componentWillUnmount:function(){var t=this.getDOMNode(),e=m.getID(t);delete v[e]},componentDidUpdate:function(t,e,n){var i=this.getDOMNode();null!=this.props.checked&&a.setValueForProperty(i,"checked",this.props.checked||!1);var o=p.getValue(this);null!=o&&a.setValueForProperty(i,"value",""+o)},_handleChange:function(t){var e,n=p.getOnChange(this);n&&(e=n.call(this,t)),f.asap(h,this);var i=this.props.name;if("radio"===this.props.type&&null!=i){for(var o=this.getDOMNode(),a=o;a.parentNode;)a=a.parentNode;for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),s=0,l=r.length;s<l;s++){var u=r[s];if(u!==o&&u.form===o.form){var c=m.getID(u);g(c);var d=v[c];g(d),f.asap(h,d)}}}return e}});e.exports=c},{11:11,133:133,2:2,24:24,27:27,29:29,33:33,55:55,68:68,85:85}],48:[function(t,e,n){"use strict";var i=t(29),o=t(33),a=t(55),r=(t(150),a.createFactory("option")),s=o.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[i],componentWillMount:function(){},render:function(){return r(this.props,this.props.children)}});e.exports=s},{150:150,29:29,33:33,55:55}],49:[function(t,e,n){"use strict";function i(){if(this._pendingUpdate){this._pendingUpdate=!1;var t=s.getValue(this);null!=t&&this.isMounted()&&a(this,t)}}function o(t,e,n){if(null==t[e])return null;if(t.multiple){if(!Array.isArray(t[e]))return new Error("The `"+e+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(t[e]))return new Error("The `"+e+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function a(t,e){var n,i,o,a=t.getDOMNode().options;if(t.props.multiple){for(n={},i=0,o=e.length;i<o;i++)n[""+e[i]]=!0;for(i=0,o=a.length;i<o;i++){var r=n.hasOwnProperty(a[i].value);a[i].selected!==r&&(a[i].selected=r)}}else{for(n=""+e,i=0,o=a.length;i<o;i++)if(a[i].value===n)return a[i].selected=!0,0;a.length&&(a[0].selected=!0)}}var r=t(2),s=t(24),l=t(29),u=t(33),c=t(55),d=t(85),h=t(27),p=c.createFactory("select"),m=u.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[r,s.Mixin,l],propTypes:{defaultValue:o,value:o},render:function(){var t=h({},this.props);return t.onChange=this._handleChange,t.value=null,p(t,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var t=s.getValue(this);null!=t?a(this,t):null!=this.props.defaultValue&&a(this,this.props.defaultValue)},componentDidUpdate:function(t){var e=s.getValue(this);null!=e?(this._pendingUpdate=!1,a(this,e)):!t.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?a(this,this.props.defaultValue):a(this,this.props.multiple?[]:""))},_handleChange:function(t){var e,n=s.getOnChange(this);return n&&(e=n.call(this,t)),this._pendingUpdate=!0,d.asap(i,this),e}});e.exports=m},{2:2,24:24,27:27,29:29,33:33,55:55,85:85}],50:[function(t,e,n){"use strict";function p(t,e,n,i){return t===n&&e===i}var i=t(21),c=t(126),d=t(128),o=i.canUseDOM&&"selection"in document&&!("getSelection"in window),a={getOffsets:o?function(t){var e=document.selection.createRange(),n=e.text.length,i=e.duplicate();i.moveToElementText(t),i.setEndPoint("EndToStart",e);var o=i.text.length;return{start:o,end:o+n}}:function(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,i=e.anchorOffset,o=e.focusNode,a=e.focusOffset,r=e.getRangeAt(0),s=p(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)?0:r.toString().length,l=r.cloneRange();l.selectNodeContents(t),l.setEnd(r.startContainer,r.startOffset);var u=p(l.startContainer,l.startOffset,l.endContainer,l.endOffset)?0:l.toString().length,c=u+s,d=document.createRange();d.setStart(n,i),d.setEnd(o,a);var h=d.collapsed;return{start:h?c:u,end:h?u:c}},setOffsets:o?function(t,e){var n,i,o=document.selection.createRange().duplicate();i=void 0===e.end?n=e.start:e.start>e.end?(n=e.end,e.start):(n=e.start,e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",i-n),o.select()}:function(t,e){if(window.getSelection){var n=window.getSelection(),i=t[d()].length,o=Math.min(e.start,i),a=void 0===e.end?o:Math.min(e.end,i);if(!n.extend&&a<o){var r=a;a=o,o=r}var s=c(t,o),l=c(t,a);if(s&&l){var u=document.createRange();u.setStart(s.node,s.offset),n.removeAllRanges(),a<o?(n.addRange(u),n.extend(l.node,l.offset)):(u.setEnd(l.node,l.offset),n.addRange(u))}}}};e.exports=a},{126:126,128:128,21:21}],51:[function(t,e,n){"use strict";function i(t){}var o=t(11),a=t(35),r=t(42),s=t(27),l=t(114);s(i.prototype,{construct:function(t){this._currentElement=t,this._stringText=""+t,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(t,e,n){this._rootNodeID=t;var i=l(this._stringText);return e.renderToStaticMarkup?i:"<span "+o.createMarkupForID(t)+">"+i+"</span>"},receiveComponent:function(t,e){if(t!==this._currentElement){var n=""+(this._currentElement=t);n!==this._stringText&&(this._stringText=n,r.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){a.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=i},{11:11,114:114,27:27,35:35,42:42}],52:[function(t,e,n){"use strict";function i(){this.isMounted()&&this.forceUpdate()}var o=t(2),a=t(11),r=t(24),s=t(29),l=t(33),u=t(55),c=t(85),d=t(27),h=t(133),p=(t(150),u.createFactory("textarea")),m=l.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[o,r.Mixin,s],getInitialState:function(){var t=this.props.defaultValue,e=this.props.children;null!=e&&(h(null==t),Array.isArray(e)&&(h(e.length<=1),e=e[0]),t=""+e),null==t&&(t="");var n=r.getValue(this);return{initialValue:""+(null!=n?n:t)}},render:function(){var t=d({},this.props);return h(null==t.dangerouslySetInnerHTML),t.defaultValue=null,t.value=null,t.onChange=this._handleChange,p(t,this.state.initialValue)},componentDidUpdate:function(t,e,n){var i=r.getValue(this);if(null!=i){var o=this.getDOMNode();a.setValueForProperty(o,"value",""+i)}},_handleChange:function(t){var e,n=r.getOnChange(this);return n&&(e=n.call(this,t)),c.asap(i,this),e}});e.exports=m},{11:11,133:133,150:150,2:2,24:24,27:27,29:29,33:33,55:55,85:85}],53:[function(t,e,n){"use strict";function i(){this.reinitializeTransaction()}var o=t(85),a=t(101),r=t(27),s=t(112),l={initialize:s,close:function(){d.isBatchingUpdates=!1}},u=[{initialize:s,close:o.flushBatchedUpdates.bind(o)},l];r(i.prototype,a.Mixin,{getTransactionWrappers:function(){return u}});var c=new i,d={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,i,o){var a=d.isBatchingUpdates;d.isBatchingUpdates=!0,a?t(e,n,i,o):c.perform(t,null,e,n,i,o)}};e.exports=d},{101:101,112:112,27:27,85:85}],54:[function(t,e,n){"use strict";function i(t){return p.createClass({tagName:t.toUpperCase(),render:function(){return new S(t,null,null,null,null,this.props)}})}var o=t(3),a=t(7),r=t(8),s=t(13),l=t(14),u=t(21),c=t(23),d=t(26),h=t(29),p=t(33),m=t(35),f=t(53),g=t(42),v=t(41),_=t(43),y=t(46),b=t(44),w=t(45),M=t(47),T=t(48),L=t(49),k=t(52),D=t(51),S=t(55),x=t(60),C=t(62),E=t(64),P=t(68),Y=t(78),j=t(87),A=t(88),I=t(89),O=t(86),N=t(109);e.exports={inject:function(){C.EventEmitter.injectReactEventListener(x),C.EventPluginHub.injectEventPluginOrder(s),C.EventPluginHub.injectInstanceHandle(E),C.EventPluginHub.injectMount(P),C.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:I,EnterLeaveEventPlugin:l,ChangeEventPlugin:a,MobileSafariClickEventPlugin:d,SelectEventPlugin:j,BeforeInputEventPlugin:o}),C.NativeComponent.injectGenericComponentClass(g),C.NativeComponent.injectTextComponentClass(D),C.NativeComponent.injectAutoWrapper(i),C.Class.injectMixin(h),C.NativeComponent.injectComponentClasses({button:v,form:_,iframe:w,img:y,input:M,option:T,select:L,textarea:k,html:N("html"),head:N("head"),body:N("body")}),C.DOMProperty.injectDOMPropertyConfig(c),C.DOMProperty.injectDOMPropertyConfig(O),C.EmptyComponent.injectEmptyComponent("noscript"),C.Updates.injectReconcileTransaction(Y),C.Updates.injectBatchingStrategy(f),C.RootIndex.injectCreateReactRootIndex(u.canUseDOM?r.createReactRootIndex:A.createReactRootIndex),C.Component.injectEnvironment(m),C.DOMComponent.injectIDOperations(b)}}},{109:109,13:13,14:14,21:21,23:23,26:26,29:29,3:3,33:33,35:35,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,51:51,52:52,53:53,55:55,60:60,62:62,64:64,68:68,7:7,78:78,8:8,86:86,87:87,88:88,89:89}],55:[function(t,e,n){"use strict";function d(t,e,n,i,o,a){this.type=t,this.key=e,this.ref=n,this._owner=i,this._context=o,this.props=a}var h=t(38),p=t(39),m=t(27),f=(t(150),{key:!0,ref:!0});d.prototype={_isReactElement:!0},d.createElement=function(t,e,n){var i,o={},a=null,r=null;if(null!=e)for(i in r=void 0===e.ref?null:e.ref,a=void 0===e.key?null:""+e.key,e)e.hasOwnProperty(i)&&!f.hasOwnProperty(i)&&(o[i]=e[i]);var s=arguments.length-2;if(1==s)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(t&&t.defaultProps){var c=t.defaultProps;for(i in c)void 0===o[i]&&(o[i]=c[i])}return new d(t,a,r,p.current,h.current,o)},d.createFactory=function(t){var e=d.createElement.bind(null,t);return e.type=t,e},d.cloneAndReplaceProps=function(t,e){return new d(t.type,t.key,t.ref,t._owner,t._context,e)},d.cloneElement=function(t,e,n){var i,o=m({},t.props),a=t.key,r=t.ref,s=t._owner;if(null!=e)for(i in void 0!==e.ref&&(r=e.ref,s=p.current),void 0!==e.key&&(a=""+e.key),e)e.hasOwnProperty(i)&&!f.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1==l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}return new d(t.type,a,r,s,t._context,o)},d.isValidElement=function(t){return!(!t||!t._isReactElement)},e.exports=d},{150:150,27:27,38:38,39:39}],56:[function(t,e,n){"use strict";function r(){if(c.current&&c.current.getName())return 1}function l(t){var e=t&&t.getPublicInstance();if(e){var n=e.constructor;return n&&(n.displayName||n.name)||void 0}}function h(t,e){t._store.validated||null!=t.key||(t._store.validated=!0,p('Each child in an array or iterator should have a unique "key" prop.',t,e))}function p(t,e,n){var i,o=(i=c.current)&&l(i)||void 0,a="string"==typeof n?n:n.displayName||n.name,r=o||a,s=v[t]||(v[t]={});if(!s.hasOwnProperty(r)){s[r]=!0;if(e&&e._owner&&e._owner!==c.current)l(e._owner)}}function a(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++){var i=t[n];m.isValidElement(i)&&h(i,e)}else if(m.isValidElement(t))t._store.validated=!0;else if(t){var o=g(t);if(o){if(o!==t.entries)for(var a,r=o.call(t);!(a=r.next()).done;)m.isValidElement(a.value)&&h(a.value,e)}else if("object"==typeof t){var s=f.extractIfFragment(t);for(var l in s)s.hasOwnProperty(l)&&(c=s[u=l],d=e,y.test(u)&&p("Child objects should have non-numeric keys so ordering is preserved.",c,d))}}var u,c,d}function s(t,e){var n=e.type,i="string"==typeof n?n:n.displayName,o=e._owner?e._owner.getPublicInstance().constructor.displayName:null,a=t+"|"+i+"|"+o;if(!b.hasOwnProperty(a)){b[a]=!0;i&&0;o&&0}}function u(t){if(null!=t.type){var e=o.getComponentClassForElement(t),n=e.displayName||e.name;e.propTypes&&function(t,e,n,i){for(var o in e)if(e.hasOwnProperty(o)){var a;try{d("function"==typeof e[o]),a=e[o](n,o,t,i)}catch(t){a=t}a instanceof Error&&!(a.message in _)&&(_[a.message]=!0,r())}}(n,e.propTypes,t.props,i.prop),e.getDefaultProps}}var m=t(55),f=t(61),i=t(75),c=(t(74),t(39)),o=t(71),g=t(124),d=t(133),v=(t(150),{}),_={},y=/^\d+$/,b={},w={checkAndWarnForMutatedProps:function(t){if(t._store){var e=t._store.originalProps,n=t.props;for(var i in n)n.hasOwnProperty(i)&&(e.hasOwnProperty(i)&&(o=e[i],a=n[i],o!=o?a!=a:0===o&&0===a?1/o==1/a:o===a)||(s(i,t),e[i]=n[i]))}var o,a},createElement:function(t,e,n){var i=m.createElement.apply(this,arguments);if(null==i)return i;for(var o=2;o<arguments.length;o++)a(arguments[o],t);return u(i),i},createFactory:function(t){var e=w.createElement.bind(null,t);return e.type=t,e},cloneElement:function(t,e,n){for(var i=m.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],i.type);return u(i),i}};e.exports=w},{124:124,133:133,150:150,39:39,55:55,61:61,71:71,74:74,75:75}],57:[function(t,e,n){"use strict";function i(){}var o,a=t(55),r=t(65),s=t(133),l={},u={injectEmptyComponent:function(t){o=a.createFactory(t)}};i.prototype.componentDidMount=function(){var t,e=r.get(this);e&&(t=e._rootNodeID,l[t]=!0)},i.prototype.componentWillUnmount=function(){var t,e=r.get(this);e&&(t=e._rootNodeID,delete l[t])},i.prototype.render=function(){return s(o),o()};var c={emptyElement:a.createElement(i),injection:u,isNullComponentID:function(t){return!!l[t]}};e.exports=c},{133:133,55:55,65:65}],58:[function(t,e,n){"use strict";e.exports={guard:function(t,e){return t}}},{}],59:[function(t,e,n){"use strict";var r=t(17),i={handleTopLevel:function(t,e,n,i){var o,a=r.extractEvents(t,e,n,i);o=a,r.enqueueEvents(o),r.processEventQueue()}};e.exports=i},{17:17}],60:[function(t,e,n){"use strict";function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function o(t){for(var e=d.getFirstReactDOM(h(t.nativeEvent))||window,n=e;n;)t.ancestors.push(n),i=n,0,o=d.getID(i),a=c.getReactRootIDFromNodeID(o),r=d.findReactContainerForID(a),n=d.getFirstReactDOM(r);for(var i,o,a,r,s=0,l=t.ancestors.length;s<l;s++){e=t.ancestors[s];var u=d.getID(e)||"";m._handleTopLevel(t.topLevelType,e,u,t.nativeEvent)}}var a=t(16),r=t(21),s=t(28),c=t(64),d=t(68),l=t(85),u=t(27),h=t(123),p=t(129);u(i.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),s.addPoolingTo(i,s.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:r.canUseDOM?window:null,setHandleTopLevel:function(t){m._handleTopLevel=t},setEnabled:function(t){m._enabled=!!t},isEnabled:function(){return m._enabled},trapBubbledEvent:function(t,e,n){return n?a.listen(n,e,m.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){return n?a.capture(n,e,m.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=function(t){t(p(window))}.bind(null,t);a.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(m._enabled){var n=i.getPooled(t,e);try{l.batchedUpdates(o,n)}finally{i.release(n)}}}};e.exports=m},{123:123,129:129,16:16,21:21,27:27,28:28,64:64,68:68,85:85}],61:[function(t,e,n){"use strict";var i=(t(55),t(150),{create:function(t){return t},extract:function(t){return t},extractIfFragment:function(t){return t}});e.exports=i},{150:150,55:55}],62:[function(t,e,n){"use strict";var i=t(10),o=t(17),a=t(36),r=t(33),s=t(57),l=t(30),u=t(71),c=t(42),d=t(73),h=t(81),p=t(85),m={Component:a.injection,Class:r.injection,DOMComponent:c.injection,DOMProperty:i.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:l.injection,NativeComponent:u.injection,Perf:d.injection,RootIndex:h.injection,Updates:p.injection};e.exports=m},{10:10,17:17,30:30,33:33,36:36,42:42,57:57,71:71,73:73,81:81,85:85}],63:[function(t,e,n){"use strict";var a=t(50),r=t(107),s=t(117),l=t(119),u={hasSelectionCapabilities:function(t){return t&&("INPUT"===t.nodeName&&"text"===t.type||"TEXTAREA"===t.nodeName||"true"===t.contentEditable)},getSelectionInformation:function(){var t=l();return{focusedElem:t,selectionRange:u.hasSelectionCapabilities(t)?u.getSelection(t):null}},restoreSelection:function(t){var e,n=l(),i=t.focusedElem,o=t.selectionRange;n!==i&&(e=i,r(document.documentElement,e))&&(u.hasSelectionCapabilities(i)&&u.setSelection(i,o),s(i))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&"INPUT"===t.nodeName){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=a.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,i=e.end;if(void 0===i&&(i=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(i,t.value.length);else if(document.selection&&"INPUT"===t.nodeName){var o=t.createTextRange();o.collapse(!0),o.moveStart("character",n),o.moveEnd("character",i-n),o.select()}else a.setOffsets(t,e)}};e.exports=u},{107:107,117:117,119:119,50:50}],64:[function(t,e,n){"use strict";function r(t,e){return t.charAt(e)===o||e===t.length}function s(t){return""===t||t.charAt(0)===o&&t.charAt(t.length-1)!==o}function d(t,e){return 0===e.indexOf(t)&&r(e,t.length)}function h(t){return t?t.substr(0,t.lastIndexOf(o)):""}function p(t,e){if(m(s(t)&&s(e)),m(d(t,e)),t===e)return t;var n;for(n=t.length+a;n<e.length&&!r(e,n);n++);return e.substr(0,n)}function l(t,e){var n=Math.min(t.length,e.length);if(0===n)return"";for(var i=0,o=0;o<=n;o++)if(r(t,o)&&r(e,o))i=o;else if(t.charAt(o)!==e.charAt(o))break;var a=t.substr(0,i);return m(s(a)),a}function u(t,e,n,i,o,a){m((t=t||"")!==(e=e||""));var r=d(e,t);m(r||d(t,e));for(var s=0,l=r?h:p,u=t;;u=l(u,e)){var c;if(o&&u===t||a&&u===e||(c=n(u,r,i)),!1===c||u===e)break;m(s++<100)}}var i=t(81),m=t(133),o=".",a=o.length,c={createReactRootID:function(){return t=i.createReactRootIndex(),o+t.toString(36);var t},createReactID:function(t,e){return t+e},getReactRootIDFromNodeID:function(t){if(t&&t.charAt(0)===o&&1<t.length){var e=t.indexOf(o,1);return-1<e?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,i,o){var a=l(t,e);a!==t&&u(t,a,n,i,!1,!0),a!==e&&u(a,e,n,o,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(u("",t,e,n,!0,!1),u(t,"",e,n,!1,!0))},traverseAncestors:function(t,e,n){u("",t,e,n,!0,!1)},_getFirstCommonAncestorID:l,_getNextDescendantID:p,isAncestorIDOf:d,SEPARATOR:o};e.exports=c},{133:133,81:81}],65:[function(t,e,n){"use strict";e.exports={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}}},{}],66:[function(t,e,n){"use strict";e.exports={currentlyMountingInstance:null,currentlyUnmountingInstance:null}},{}],67:[function(t,e,n){"use strict";var i=t(104),o={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=i(t);return t.replace(">"," "+o.CHECKSUM_ATTR_NAME+'="'+e+'">')},canReuseMarkup:function(t,e){var n=e.getAttribute(o.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),i(t)===n}};e.exports=o},{104:104}],68:[function(t,e,n){"use strict";function l(t){var e=M(t);return e&&A.getID(e)}function i(t){return t&&t.getAttribute&&t.getAttribute(x)||""}function o(t,e){if(t){L(i(t)===e);var n=A.findReactContainerForID(e);if(n&&w(n,t))return 1}}function u(t){var e=C[t];return!(!e||!o(e,t))&&void(j=e)}function a(t,e,n,i,o){var a=v.mountComponent(t,e,i,b);t._isTopLevel=!0,A._mountImageIntoNode(a,n,o)}function r(t,e,n,i){var o=y.ReactReconcileTransaction.getPooled();o.perform(a,null,t,e,n,o,i),y.ReactReconcileTransaction.release(o)}var s=t(10),c=t(30),d=(t(39),t(55)),h=(t(56),t(57)),p=t(64),m=t(65),f=t(67),g=t(73),v=t(79),_=t(84),y=t(85),b=t(113),w=t(107),M=t(127),T=t(132),L=t(133),k=t(144),D=t(147),S=(t(150),p.SEPARATOR),x=s.ID_ATTRIBUTE_NAME,C={},E={},P={},Y=[],j=null,A={_instancesByReactRootID:E,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,n,i){return A.scrollMonitor(n,function(){_.enqueueElementInternal(t,e),i&&_.enqueueCallbackInternal(t,i)}),t},_registerComponent:function(t,e){L(e&&(1===e.nodeType||9===e.nodeType)),c.ensureScrollValueMonitoring();var n=A.registerContainer(e);return E[n]=t,n},_renderNewRootComponent:function(t,e,n){var i=T(t,null),o=A._registerComponent(i,e);return y.batchedUpdates(r,i,o,e,n),i},render:function(t,e,n){L(d.isValidElement(t));var i=E[l(e)];if(i){var o=i._currentElement;if(D(o,t))return A._updateRootComponent(i,t,e,n).getPublicInstance();A.unmountComponentAtNode(e)}var a=M(e),r=a&&A.isRenderedByReact(a)&&!i,s=A._renderNewRootComponent(t,e,r).getPublicInstance();return n&&n.call(s),s},constructAndRenderComponent:function(t,e,n){var i=d.createElement(t,e);return A.render(i,n)},constructAndRenderComponentByID:function(t,e,n){var i=document.getElementById(n);return L(i),A.constructAndRenderComponent(t,e,i)},registerContainer:function(t){var e=l(t);return e=(e=e&&p.getReactRootIDFromNodeID(e))||p.createReactRootID(),P[e]=t,e},unmountComponentAtNode:function(t){L(t&&(1===t.nodeType||9===t.nodeType));var e=l(t),n=E[e];return!!n&&(A.unmountComponentFromNode(n,t),delete E[e],delete P[e],!0)},unmountComponentFromNode:function(t,e){for(v.unmountComponent(t),9===e.nodeType&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)},findReactContainerForID:function(t){var e=p.getReactRootIDFromNodeID(t);return P[e]},findReactNodeByID:function(t){var e=A.findReactContainerForID(t);return A.findComponentRoot(e,t)},isRenderedByReact:function(t){if(1!==t.nodeType)return!1;var e=A.getID(t);return!!e&&e.charAt(0)===S},getFirstReactDOM:function(t){for(var e=t;e&&e.parentNode!==e;){if(A.isRenderedByReact(e))return e;e=e.parentNode}return null},findComponentRoot:function(t,e){var n=Y,i=0,o=function(t){j=null,p.traverseAncestors(t,u);var e=j;return j=null,e}(e)||t;for(n[0]=o.firstChild,n.length=1;i<n.length;){for(var a,r=n[i++];r;){var s=A.getID(r);s?e===s?a=r:p.isAncestorIDOf(s,e)&&(n.length=i=0,n.push(r.firstChild)):n.push(r.firstChild),r=r.nextSibling}if(a)return n.length=0,a}n.length=0,L(!1)},_mountImageIntoNode:function(t,e,n){if(L(e&&(1===e.nodeType||9===e.nodeType)),n){var i=M(e);if(f.canReuseMarkup(t,i))return;var o=i.getAttribute(f.CHECKSUM_ATTR_NAME);i.removeAttribute(f.CHECKSUM_ATTR_NAME);var a=i.outerHTML;i.setAttribute(f.CHECKSUM_ATTR_NAME,o);var r=function(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++)if(t.charAt(i)!==e.charAt(i))return i;return t.length===e.length?-1:n}(t,a);t.substring(r-20,r+20),a.substring(r-20,r+20),L(9!==e.nodeType)}L(9!==e.nodeType),k(e,t)},getReactRootID:l,getID:function(t){var e=i(t);if(e)if(C.hasOwnProperty(e)){var n=C[e];n!==t&&(L(!o(n,e)),C[e]=t)}else C[e]=t;return e},setID:function(t,e){var n=i(t);n!==e&&delete C[n],t.setAttribute(x,e),C[e]=t},getNode:function(t){return C.hasOwnProperty(t)&&o(C[t],t)||(C[t]=A.findReactNodeByID(t)),C[t]},getNodeFromInstance:function(t){var e=m.get(t)._rootNodeID;return h.isNullComponentID(e)?null:(C.hasOwnProperty(e)&&o(C[e],e)||(C[e]=A.findReactNodeByID(e)),C[e])},purgeID:function(t){delete C[t]}};g.measureMethods(A,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=A},{10:10,107:107,113:113,127:127,132:132,133:133,144:144,147:147,150:150,30:30,39:39,55:55,56:56,57:57,64:64,65:65,67:67,73:73,79:79,84:84,85:85}],69:[function(t,e,n){"use strict";function o(){l.length&&(i.processChildrenUpdates(l,u),a())}function a(){l.length=0,u.length=0}var i=t(36),r=t(70),c=t(79),d=t(31),s=0,l=[],u=[],h={Mixin:{mountChildren:function(t,e,n){var i=d.instantiateChildren(t,e,n);this._renderedChildren=i;var o=[],a=0;for(var r in i)if(i.hasOwnProperty(r)){var s=i[r],l=this._rootNodeID+r,u=c.mountComponent(s,l,e,n);s._mountIndex=a,o.push(u),a++}return o},updateTextContent:function(t){s++;var e=!0;try{var n=this._renderedChildren;for(var i in d.unmountChildren(n),n)n.hasOwnProperty(i)&&this._unmountChildByName(n[i],i);this.setTextContent(t),e=!1}finally{--s||(e?a:o)()}},updateChildren:function(t,e,n){s++;var i=!0;try{this._updateChildren(t,e,n),i=!1}finally{--s||(i?a:o)()}},_updateChildren:function(t,e,n){var i=this._renderedChildren,o=d.updateChildren(i,t,e,n);if((this._renderedChildren=o)||i){var a,r=0,s=0;for(a in o)if(o.hasOwnProperty(a)){var l=i&&i[a],u=o[a];l===u?(this.moveChild(l,s,r),r=Math.max(l._mountIndex,r),l._mountIndex=s):(l&&(r=Math.max(l._mountIndex,r),this._unmountChildByName(l,a)),this._mountChildByNameAtIndex(u,a,s,e,n)),s++}for(a in i)!i.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||this._unmountChildByName(i[a],a)}},unmountChildren:function(){var t=this._renderedChildren;d.unmountChildren(t),this._renderedChildren=null},moveChild:function(t,e,n){var i,o,a;t._mountIndex<n&&(i=this._rootNodeID,o=t._mountIndex,a=e,l.push({parentID:i,parentNode:null,type:r.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:o,toIndex:a}))},createChild:function(t,e){var n,i,o;n=this._rootNodeID,i=e,o=t._mountIndex,l.push({parentID:n,parentNode:null,type:r.INSERT_MARKUP,markupIndex:u.push(i)-1,textContent:null,fromIndex:null,toIndex:o})},removeChild:function(t){var e,n;e=this._rootNodeID,n=t._mountIndex,l.push({parentID:e,parentNode:null,type:r.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:n,toIndex:null})},setTextContent:function(t){var e,n;e=this._rootNodeID,n=t,l.push({parentID:e,parentNode:null,type:r.TEXT_CONTENT,markupIndex:null,textContent:n,fromIndex:null,toIndex:null})},_mountChildByNameAtIndex:function(t,e,n,i,o){var a=this._rootNodeID+e,r=c.mountComponent(t,a,i,o);t._mountIndex=n,this.createChild(t,r)},_unmountChildByName:function(t,e){this.removeChild(t),t._mountIndex=null}}};e.exports=h},{31:31,36:36,70:70,79:79}],70:[function(t,e,n){"use strict";var i=t(138)({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});e.exports=i},{138:138}],71:[function(t,e,n){"use strict";var i=t(27),o=t(133),a=null,r=null,s={},l=null,u={getComponentClassForElement:function(t){if("function"==typeof t.type)return t.type;var e=t.type,n=s[e];return null==n&&(s[e]=n=a(e)),n},createInternalComponent:function(t){return o(r),new r(t.type,t.props)},createInstanceForText:function(t){return new l(t)},isTextComponent:function(t){return t instanceof l},injection:{injectGenericComponentClass:function(t){r=t},injectTextComponentClass:function(t){l=t},injectComponentClasses:function(t){i(s,t)},injectAutoWrapper:function(t){a=t}}};e.exports=u},{133:133,27:27}],72:[function(t,e,n){"use strict";var i=t(133),o={isValidOwner:function(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)},addComponentAsRefTo:function(t,e,n){i(o.isValidOwner(n)),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){i(o.isValidOwner(n)),n.getPublicInstance().refs[e]===t.getPublicInstance()&&n.detachRef(e)}};e.exports=o},{133:133}],73:[function(t,e,n){"use strict";var i={enableMeasure:!1,storedMeasure:function(t,e,n){return n},measureMethods:function(t,e,n){},measure:function(t,e,n){return n},injection:{injectMeasure:function(t){i.storedMeasure=t}}};e.exports=i},{}],74:[function(t,e,n){"use strict";e.exports={}},{}],75:[function(t,e,n){"use strict";var i=t(138)({prop:null,context:null,childContext:null});e.exports=i},{138:138}],76:[function(t,e,n){"use strict";function i(r){function t(t,e,n,i,o){if(i=i||u,null!=e[n])return r(e,n,i,o);var a=h[o];return t?new Error("Required "+a+" `"+n+"` was not specified in `"+i+"`."):null}var e=t.bind(null,!1);return e.isRequired=t.bind(null,!0),e}function o(s){return i(function(t,e,n,i){var o=t[e];if(d(o)===s)return null;var a=h[i],r=function(t){var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}(o);return new Error("Invalid "+a+" `"+e+"` of type `"+r+"` supplied to `"+n+"`, expected `"+s+"`.")})}function a(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(a);if(null===t||r.isValidElement(t))return!0;for(var e in t=s.extractIfFragment(t))if(!a(t[e]))return!1;return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":e}var r=t(55),s=t(61),h=t(74),l=t(112),u="<<anonymous>>",c=i(function(t,e,n,i){if(r.isValidElement(t[e]))return null;var o=h[i];return new Error("Invalid "+o+" `"+e+"` supplied to `"+n+"`, expected a ReactElement.")}),p=i(function(t,e,n,i){if(a(t[e]))return null;var o=h[i];return new Error("Invalid "+o+" `"+e+"` supplied to `"+n+"`, expected a ReactNode.")}),m={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(l.thatReturns(null)),arrayOf:function(u){return i(function(t,e,n,i){var o=t[e];if(!Array.isArray(o)){var a=h[i],r=d(o);return new Error("Invalid "+a+" `"+e+"` of type `"+r+"` supplied to `"+n+"`, expected an array.")}for(var s=0;s<o.length;s++){var l=u(o,s,n,i);if(l instanceof Error)return l}return null})},element:c,instanceOf:function(r){return i(function(t,e,n,i){if(t[e]instanceof r)return null;var o=h[i],a=r.name||u;return new Error("Invalid "+o+" `"+e+"` supplied to `"+n+"`, expected instance of `"+a+"`.")})},node:p,objectOf:function(u){return i(function(t,e,n,i){var o=t[e],a=d(o);if("object"!==a){var r=h[i];return new Error("Invalid "+r+" `"+e+"` of type `"+a+"` supplied to `"+n+"`, expected an object.")}for(var s in o)if(o.hasOwnProperty(s)){var l=u(o,s,n,i);if(l instanceof Error)return l}return null})},oneOf:function(l){return i(function(t,e,n,i){for(var o=t[e],a=0;a<l.length;a++)if(o===l[a])return null;var r=h[i],s=JSON.stringify(l);return new Error("Invalid "+r+" `"+e+"` of value `"+o+"` supplied to `"+n+"`, expected one of "+s+".")})},oneOfType:function(r){return i(function(t,e,n,i){for(var o=0;o<r.length;o++){if(null==(0,r[o])(t,e,n,i))return null}var a=h[i];return new Error("Invalid "+a+" `"+e+"` supplied to `"+n+"`.")})},shape:function(c){return i(function(t,e,n,i){var o=t[e],a=d(o);if("object"!==a){var r=h[i];return new Error("Invalid "+r+" `"+e+"` of type `"+a+"` supplied to `"+n+"`, expected `object`.")}for(var s in c){var l=c[s];if(l){var u=l(o,s,n,i);if(u)return u}}return null})}};e.exports=m},{112:112,55:55,61:61,74:74}],77:[function(t,e,n){"use strict";function i(){this.listenersToPut=[]}var o=t(28),a=t(30);t(27)(i.prototype,{enqueuePutListener:function(t,e,n){this.listenersToPut.push({rootNodeID:t,propKey:e,propValue:n})},putListeners:function(){for(var t=0;t<this.listenersToPut.length;t++){var e=this.listenersToPut[t];a.putListener(e.rootNodeID,e.propKey,e.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),o.addPoolingTo(i),e.exports=i},{27:27,28:28,30:30}],78:[function(t,e,n){"use strict";function i(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.putListenerQueue=l.getPooled()}var o=t(6),a=t(28),r=t(30),s=t(63),l=t(77),u=t(101),c=t(27),d=[{initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},{initialize:s.getSelectionInformation,close:s.restoreSelection},{initialize:function(){var t=r.isEnabled();return r.setEnabled(!1),t},close:function(t){r.setEnabled(t)}},{initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}}],h={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,l.release(this.putListenerQueue),this.putListenerQueue=null}};c(i.prototype,u.Mixin,h),a.addPoolingTo(i),e.exports=i},{101:101,27:27,28:28,30:30,6:6,63:63,77:77}],79:[function(t,e,n){"use strict";function r(){s.attachRefs(this,this._currentElement)}var s=t(80),i=(t(56),{mountComponent:function(t,e,n,i){var o=t.mountComponent(e,n,i);return n.getReactMountReady().enqueue(r,t),o},unmountComponent:function(t){s.detachRefs(t,t._currentElement),t.unmountComponent()},receiveComponent:function(t,e,n,i){var o=t._currentElement;if(e!==o||null==e._owner){var a=s.shouldUpdateRefs(o,e);a&&s.detachRefs(t,o),t.receiveComponent(e,n,i),a&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e){t.performUpdateIfNecessary(e)}});e.exports=i},{56:56,80:80}],80:[function(t,e,n){"use strict";var r=t(72),i={};i.attachRefs=function(t,e){var n,i,o,a=e.ref;null!=a&&(n=a,i=t,o=e._owner,"function"==typeof n?n(i.getPublicInstance()):r.addComponentAsRefTo(i,n,o))},i.shouldUpdateRefs=function(t,e){return e._owner!==t._owner||e.ref!==t.ref},i.detachRefs=function(t,e){var n,i,o,a=e.ref;null!=a&&(n=a,i=t,o=e._owner,"function"==typeof n?n(null):r.removeComponentAsRefFrom(i,n,o))},e.exports=i},{72:72}],81:[function(t,e,n){"use strict";var i={createReactRootIndex:null,injection:{injectCreateReactRootIndex:function(t){i.createReactRootIndex=t}}};e.exports=i},{}],82:[function(t,e,n){"use strict";var o=t(55),a=t(64),r=t(67),s=t(83),l=t(113),u=t(132),c=t(133);e.exports={renderToString:function(e){var n;c(o.isValidElement(e));try{var i=a.createReactRootID();return(n=s.getPooled(!1)).perform(function(){var t=u(e,null).mountComponent(i,n,l);return r.addChecksumToMarkup(t)},null)}finally{s.release(n)}},renderToStaticMarkup:function(t){var e;c(o.isValidElement(t));try{var n=a.createReactRootID();return(e=s.getPooled(!0)).perform(function(){return u(t,null).mountComponent(n,e,l)},null)}finally{s.release(e)}}}},{113:113,132:132,133:133,55:55,64:64,67:67,83:83}],83:[function(t,e,n){"use strict";function i(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.reactMountReady=a.getPooled(null),this.putListenerQueue=r.getPooled()}var o=t(28),a=t(6),r=t(77),s=t(101),l=t(27),u=t(112),c=[{initialize:function(){this.putListenerQueue.reset()},close:u},{initialize:function(){this.reactMountReady.reset()},close:u}],d={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null,r.release(this.putListenerQueue),this.putListenerQueue=null}};l(i.prototype,s.Mixin,d),o.addPoolingTo(i),e.exports=i},{101:101,112:112,27:27,28:28,6:6,77:77}],84:[function(t,e,n){"use strict";function a(t){t!==i.currentlyMountingInstance&&u.enqueueUpdate(t)}function r(t){d(null==o.current);var e=l.get(t);return!e||e===i.currentlyUnmountingInstance?null:e}var i=t(66),o=t(39),s=t(55),l=t(65),u=t(85),c=t(27),d=t(133),h=(t(150),{enqueueCallback:function(t,e){d("function"==typeof e);var n=r(t);return n&&n!==i.currentlyMountingInstance?(n._pendingCallbacks?n._pendingCallbacks.push(e):n._pendingCallbacks=[e],void a(n)):null},enqueueCallbackInternal:function(t,e){d("function"==typeof e),t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],a(t)},enqueueForceUpdate:function(t){var e=r(t);e&&(e._pendingForceUpdate=!0,a(e))},enqueueReplaceState:function(t,e){var n=r(t);n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,a(n))},enqueueSetState:function(t,e){var n=r(t);n&&((n._pendingStateQueue||(n._pendingStateQueue=[])).push(e),a(n))},enqueueSetProps:function(t,e){var n=r(t);if(n){d(n._isTopLevel);var i=n._pendingElement||n._currentElement,o=c({},i.props,e);n._pendingElement=s.cloneAndReplaceProps(i,o),a(n)}},enqueueReplaceProps:function(t,e){var n=r(t);if(n){d(n._isTopLevel);var i=n._pendingElement||n._currentElement;n._pendingElement=s.cloneAndReplaceProps(i,e),a(n)}},enqueueElementInternal:function(t,e){t._pendingElement=e,a(t)}});e.exports=h},{133:133,150:150,27:27,39:39,55:55,65:65,66:66,85:85}],85:[function(t,e,n){"use strict";function a(){p(b.ReactReconcileTransaction&&v)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=s.getPooled(),this.reconcileTransaction=b.ReactReconcileTransaction.getPooled()}function r(t,e){return t._mountOrder-e._mountOrder}function o(t){var e=t.dirtyComponentsLength;p(e===m.length),m.sort(r);for(var n=0;n<e;n++){var i=m[n],o=i._pendingCallbacks;if(i._pendingCallbacks=null,c.performUpdateIfNecessary(i,t.reconcileTransaction),o)for(var a=0;a<o.length;a++)t.callbackQueue.enqueue(o[a],i.getPublicInstance())}}var s=t(6),l=t(28),u=(t(39),t(73)),c=t(79),d=t(101),h=t(27),p=t(133),m=(t(150),[]),f=s.getPooled(),g=!1,v=null,_=[{initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),y()):m.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];h(i.prototype,d.Mixin,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,s.release(this.callbackQueue),this.callbackQueue=null,b.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),l.addPoolingTo(i);var y=function(){for(;m.length||g;){if(m.length){var t=i.getPooled();t.perform(o,null,t),i.release(t)}if(g){g=!1;var e=f;f=s.getPooled(),e.notifyAll(),s.release(e)}}},b={ReactReconcileTransaction:null,batchedUpdates:function(t,e,n,i,o){a(),v.batchedUpdates(t,e,n,i,o)},enqueueUpdate:function t(e){return a(),v.isBatchingUpdates?void m.push(e):void v.batchedUpdates(t,e)},flushBatchedUpdates:y=u.measure("ReactUpdates","flushBatchedUpdates",y),injection:{injectReconcileTransaction:function(t){p(t),b.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){p(t),p("function"==typeof t.batchedUpdates),p("boolean"==typeof t.isBatchingUpdates),v=t}},asap:function(t,e){p(v.isBatchingUpdates),f.enqueue(t,e),g=!0}};e.exports=b},{101:101,133:133,150:150,27:27,28:28,39:39,6:6,73:73,79:79}],86:[function(t,e,n){"use strict";var i=t(10).injection.MUST_USE_ATTRIBUTE,o={Properties:{clipPath:i,cx:i,cy:i,d:i,dx:i,dy:i,fill:i,fillOpacity:i,fontFamily:i,fontSize:i,fx:i,fy:i,gradientTransform:i,gradientUnits:i,markerEnd:i,markerMid:i,markerStart:i,offset:i,opacity:i,patternContentUnits:i,patternUnits:i,points:i,preserveAspectRatio:i,r:i,rx:i,ry:i,spreadMethod:i,stopColor:i,stopOpacity:i,stroke:i,strokeDasharray:i,strokeLinecap:i,strokeOpacity:i,strokeWidth:i,textAnchor:i,transform:i,version:i,viewBox:i,x1:i,x2:i,x:i,y1:i,y2:i,y:i},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};e.exports=o},{10:10}],87:[function(t,e,n){"use strict";function o(t){if(v||null==m||m!==l())return null;var e=function(t){if("selectionStart"in t&&r.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}(m);if(!g||!d(g,e)){g=e;var n=s.getPooled(p.select,f,t);return n.type="select",n.target=m,a.accumulateTwoPhaseDispatches(n),n}}var i=t(15),a=t(20),r=t(63),s=t(93),l=t(119),u=t(136),c=t(139),d=t(146),h=i.topLevelTypes,p={select:{phasedRegistrationNames:{bubbled:c({onSelect:null}),captured:c({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},m=null,f=null,g=null,v=!1,_={eventTypes:p,extractEvents:function(t,e,n,i){switch(t){case h.topFocus:!u(e)&&"true"!==e.contentEditable||(m=e,f=n,g=null);break;case h.topBlur:g=f=m=null;break;case h.topMouseDown:v=!0;break;case h.topContextMenu:case h.topMouseUp:return v=!1,o(i);case h.topSelectionChange:case h.topKeyDown:case h.topKeyUp:return o(i)}}};e.exports=_},{119:119,136:136,139:139,146:146,15:15,20:20,63:63,93:93}],88:[function(t,e,n){"use strict";var i=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*i)}};e.exports=o},{}],89:[function(t,e,n){"use strict";var i=t(15),o=t(19),s=t(20),l=t(90),u=t(93),c=t(94),d=t(96),h=t(97),p=t(92),m=t(98),f=t(99),g=t(100),v=t(120),_=t(133),a=t(139),y=(t(150),i.topLevelTypes),r={blur:{phasedRegistrationNames:{bubbled:a({onBlur:!0}),captured:a({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:a({onClick:!0}),captured:a({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:a({onContextMenu:!0}),captured:a({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:a({onCopy:!0}),captured:a({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:a({onCut:!0}),captured:a({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:a({onDoubleClick:!0}),captured:a({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:a({onDrag:!0}),captured:a({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:a({onDragEnd:!0}),captured:a({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:a({onDragEnter:!0}),captured:a({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:a({onDragExit:!0}),captured:a({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:a({onDragLeave:!0}),captured:a({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:a({onDragOver:!0}),captured:a({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:a({onDragStart:!0}),captured:a({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:a({onDrop:!0}),captured:a({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:a({onFocus:!0}),captured:a({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:a({onInput:!0}),captured:a({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:a({onKeyDown:!0}),captured:a({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:a({onKeyPress:!0}),captured:a({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:a({onKeyUp:!0}),captured:a({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:a({onLoad:!0}),captured:a({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:a({onError:!0}),captured:a({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:a({onMouseDown:!0}),captured:a({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:a({onMouseMove:!0}),captured:a({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:a({onMouseOut:!0}),captured:a({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:a({onMouseOver:!0}),captured:a({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:a({onMouseUp:!0}),captured:a({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:a({onPaste:!0}),captured:a({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:a({onReset:!0}),captured:a({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:a({onScroll:!0}),captured:a({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:a({onSubmit:!0}),captured:a({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:a({onTouchCancel:!0}),captured:a({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:a({onTouchEnd:!0}),captured:a({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:a({onTouchMove:!0}),captured:a({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:a({onTouchStart:!0}),captured:a({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:a({onWheel:!0}),captured:a({onWheelCapture:!0})}}},b={topBlur:r.blur,topClick:r.click,topContextMenu:r.contextMenu,topCopy:r.copy,topCut:r.cut,topDoubleClick:r.doubleClick,topDrag:r.drag,topDragEnd:r.dragEnd,topDragEnter:r.dragEnter,topDragExit:r.dragExit,topDragLeave:r.dragLeave,topDragOver:r.dragOver,topDragStart:r.dragStart,topDrop:r.drop,topError:r.error,topFocus:r.focus,topInput:r.input,topKeyDown:r.keyDown,topKeyPress:r.keyPress,topKeyUp:r.keyUp,topLoad:r.load,topMouseDown:r.mouseDown,topMouseMove:r.mouseMove,topMouseOut:r.mouseOut,topMouseOver:r.mouseOver,topMouseUp:r.mouseUp,topPaste:r.paste,topReset:r.reset,topScroll:r.scroll,topSubmit:r.submit,topTouchCancel:r.touchCancel,topTouchEnd:r.touchEnd,topTouchMove:r.touchMove,topTouchStart:r.touchStart,topWheel:r.wheel};for(var w in b)b[w].dependencies=[w];var M={eventTypes:r,executeDispatch:function(t,e,n){!1===o.executeDispatch(t,e,n)&&(t.stopPropagation(),t.preventDefault())},extractEvents:function(t,e,n,i){var o,a=b[t];if(!a)return null;switch(t){case y.topInput:case y.topLoad:case y.topError:case y.topReset:case y.topSubmit:o=u;break;case y.topKeyPress:if(0===v(i))return null;case y.topKeyDown:case y.topKeyUp:o=d;break;case y.topBlur:case y.topFocus:o=c;break;case y.topClick:if(2===i.button)return null;case y.topContextMenu:case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:o=h;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:o=p;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:o=m;break;case y.topScroll:o=f;break;case y.topWheel:o=g;break;case y.topCopy:case y.topCut:case y.topPaste:o=l}_(o);var r=o.getPooled(a,n,i);return s.accumulateTwoPhaseDispatches(r),r}};e.exports=M},{100:100,120:120,133:133,139:139,15:15,150:150,19:19,20:20,90:90,92:92,93:93,94:94,96:96,97:97,98:98,99:99}],90:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(93),a={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(i,a),e.exports=i},{93:93}],91:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(93);o.augmentClass(i,{data:null}),e.exports=i},{93:93}],92:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(97);o.augmentClass(i,{dataTransfer:null}),e.exports=i},{97:97}],93:[function(t,e,n){"use strict";function i(t,e,n){this.dispatchConfig=t,this.dispatchMarker=e,this.nativeEvent=n;var i=this.constructor.Interface;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];this[o]=a?a(n):n[o]}var r=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;this.isDefaultPrevented=r?s.thatReturnsTrue:s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse}var o=t(28),a=t(27),s=t(112),r={type:null,target:t(123),currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=s.thatReturnsTrue},stopPropagation:function(){var t=this.nativeEvent;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.isPropagationStopped=s.thatReturnsTrue},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),i.Interface=r,i.augmentClass=function(t,e){var n=Object.create(this.prototype);a(n,t.prototype),t.prototype=n,(t.prototype.constructor=t).Interface=a({},this.Interface,e),t.augmentClass=this.augmentClass,o.addPoolingTo(t,o.threeArgumentPooler)},o.addPoolingTo(i,o.threeArgumentPooler),e.exports=i},{112:112,123:123,27:27,28:28}],94:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(99);o.augmentClass(i,{relatedTarget:null}),e.exports=i},{99:99}],95:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(93);o.augmentClass(i,{data:null}),e.exports=i},{93:93}],96:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(99),a=t(120),r={key:t(121),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:t(122),charCode:function(t){return"keypress"===t.type?a(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?a(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(i,r),e.exports=i},{120:120,121:121,122:122,99:99}],97:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(99),a=t(102),r={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:t(122),button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+a.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+a.currentScrollTop}};o.augmentClass(i,r),e.exports=i},{102:102,122:122,99:99}],98:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(99),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:t(122)};o.augmentClass(i,a),e.exports=i},{122:122,99:99}],99:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(93),a=t(123),r={view:function(t){if(t.view)return t.view;var e=a(t);if(null!=e&&e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(i,r),e.exports=i},{123:123,93:93}],100:[function(t,e,n){"use strict";function i(t,e,n){o.call(this,t,e,n)}var o=t(97);o.augmentClass(i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),e.exports=i},{97:97}],101:[function(t,e,n){"use strict";var c=t(133),r={Mixin:{reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,e,n,i,o,a,r,s){var l,u;c(!this.isInTransaction());try{l=this._isInTransaction=!0,this.initializeAll(0),u=t.call(e,n,i,o,a,r,s),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return u},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var i=e[n];try{this.wrapperInitData[n]=r.OBSERVED_ERROR,this.wrapperInitData[n]=i.initialize?i.initialize.call(this):null}finally{if(this.wrapperInitData[n]===r.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(t){}}}},closeAll:function(t){c(this.isInTransaction());for(var e=this.transactionWrappers,n=t;n<e.length;n++){var i,o=e[n],a=this.wrapperInitData[n];try{i=!0,a!==r.OBSERVED_ERROR&&o.close&&o.close.call(this,a),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(t){}}}this.wrapperInitData.length=0}},OBSERVED_ERROR:{}};e.exports=r},{133:133}],102:[function(t,e,n){"use strict";var i={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){i.currentScrollLeft=t.x,i.currentScrollTop=t.y}};e.exports=i},{}],103:[function(t,e,n){"use strict";var o=t(133);e.exports=function(t,e){if(o(null!=e),null==t)return e;var n=Array.isArray(t),i=Array.isArray(e);return n&&i?(t.push.apply(t,e),t):n?(t.push(e),t):i?[t].concat(e):[t,e]}},{133:133}],104:[function(t,e,n){"use strict";e.exports=function(t){for(var e=1,n=0,i=0;i<t.length;i++)n=(n+(e=(e+t.charCodeAt(i))%65521))%65521;return e|n<<16}},{}],105:[function(t,e,n){var i=/-(.)/g;e.exports=function(t){return t.replace(i,function(t,e){return e.toUpperCase()})}},{}],106:[function(t,e,n){"use strict";var i=t(105),o=/^-ms-/;e.exports=function(t){return i(t.replace(o,"ms-"))}},{105:105}],107:[function(t,e,n){var i=t(137);e.exports=function t(e,n){return!(!e||!n)&&(e===n||!i(e)&&(i(n)?t(e,n.parentNode):e.contains?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},{137:137}],108:[function(t,e,n){var i=t(148);e.exports=function(t){return(e=t)&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)?Array.isArray(t)?t.slice():i(t):[t];var e}},{148:148}],109:[function(t,e,n){"use strict";var i=t(33),o=t(55),a=t(133);e.exports=function(t){var e=o.createFactory(t);return i.createClass({tagName:t.toUpperCase(),displayName:"ReactFullPageComponent"+t,componentWillUnmount:function(){a(!1)},render:function(){return e(this.props)}})}},{133:133,33:33,55:55}],110:[function(t,e,n){var i=t(21),u=t(108),c=t(125),d=t(133),h=i.canUseDOM?document.createElement("div"):null,p=/^\s*<(\w+)/;e.exports=function(t,e){var n=h;d(!!h);var i,o=(i=t.match(p))&&i[1].toLowerCase(),a=o&&c(o);if(a){n.innerHTML=a[1]+t+a[2];for(var r=a[0];r--;)n=n.lastChild}else n.innerHTML=t;var s=n.getElementsByTagName("script");s.length&&(d(e),u(s).forEach(e));for(var l=u(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return l}},{108:108,125:125,133:133,21:21}],111:[function(t,e,n){"use strict";var i=t(4).isUnitlessNumber;e.exports=function(t,e){return null==e||"boolean"==typeof e||""===e?"":isNaN(e)||0===e||i.hasOwnProperty(t)&&i[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}},{4:4}],112:[function(t,e,n){function i(t){return function(){return t}}function o(){}o.thatReturns=i,o.thatReturnsFalse=i(!1),o.thatReturnsTrue=i(!0),o.thatReturnsNull=i(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],113:[function(t,e,n){"use strict";e.exports={}},{}],114:[function(t,e,n){"use strict";function i(t){return o[t]}var o={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;e.exports=function(t){return(""+t).replace(a,i)}},{}],115:[function(t,e,n){"use strict";var i=(t(39),t(65)),o=t(68),a=t(133),r=t(135);t(150),e.exports=function(t){return null==t?null:r(t)?t:i.has(t)?o.getNodeFromInstance(t):(a(null==t.render||"function"!=typeof t.render),void a(!1))}},{133:133,135:135,150:150,39:39,65:65,68:68}],116:[function(t,e,n){"use strict";function i(t,e,n){var i=t;i.hasOwnProperty(n)||null==e||(i[n]=e)}var o=t(149);t(150),e.exports=function(t){if(null==t)return t;var e={};return o(t,i,e),e}},{149:149,150:150}],117:[function(t,e,n){"use strict";e.exports=function(t){try{t.focus()}catch(t){}}},{}],118:[function(t,e,n){"use strict";e.exports=function(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}},{}],119:[function(t,e,n){e.exports=function(){try{return document.activeElement||document.body}catch(t){return document.body}}},{}],120:[function(t,e,n){"use strict";e.exports=function(t){var e,n=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===n&&(e=13):e=n,32<=e||13===e?e:0}},{}],121:[function(t,e,n){"use strict";var i=t(120),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=function(t){if(t.key){var e=o[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"!==t.type)return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":"";var n=i(t);return 13===n?"Enter":String.fromCharCode(n)}},{120:120}],122:[function(t,e,n){"use strict";function i(t){var e=this.nativeEvent;if(e.getModifierState)return e.getModifierState(t);var n=o[t];return!!n&&!!e[n]}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=function(t){return i}},{}],123:[function(t,e,n){"use strict";e.exports=function(t){var e=t.target||t.srcElement||window;return 3===e.nodeType?e.parentNode:e}},{}],124:[function(t,e,n){"use strict";var i="function"==typeof Symbol&&Symbol.iterator;e.exports=function(t){var e=t&&(i&&t[i]||t["@@iterator"]);return"function"==typeof e?e:void 0}},{}],125:[function(t,e,n){var i=t(21),o=t(133),a=i.canUseDOM?document.createElement("div"):null,r={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},s=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],u=[3,"<table><tbody><tr>","</tr></tbody></table>"],c=[1,"<svg>","</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:u,th:u,circle:c,clipPath:c,defs:c,ellipse:c,g:c,line:c,linearGradient:c,path:c,polygon:c,polyline:c,radialGradient:c,rect:c,stop:c,text:c};e.exports=function(t){return o(!!a),d.hasOwnProperty(t)||(t="*"),r.hasOwnProperty(t)||(a.innerHTML="*"===t?"<link />":"<"+t+"></"+t+">",r[t]=!a.firstChild),r[t]?d[t]:null}},{133:133,21:21}],126:[function(t,e,n){"use strict";function a(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}e.exports=function(t,e){for(var n=a(t),i=0,o=0;n;){if(3===n.nodeType){if(o=i+n.textContent.length,i<=e&&e<=o)return{node:n,offset:e-i};i=o}n=a(r(n))}}},{}],127:[function(t,e,n){"use strict";e.exports=function(t){return t?9===t.nodeType?t.documentElement:t.firstChild:null}},{}],128:[function(t,e,n){"use strict";var i=t(21),o=null;e.exports=function(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}},{21:21}],129:[function(t,e,n){"use strict";e.exports=function(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},{}],130:[function(t,e,n){var i=/([A-Z])/g;e.exports=function(t){return t.replace(i,"-$1").toLowerCase()}},{}],131:[function(t,e,n){"use strict";var i=t(130),o=/^ms-/;e.exports=function(t){return i(t).replace(o,"-ms-")}},{130:130}],132:[function(t,e,n){"use strict";function i(t,e){var n,i;if(null!==t&&!1!==t||(t=a.emptyElement),"object"==typeof t){var o=t;n=e===o.type&&"string"==typeof o.type?r.createInternalComponent(o):"function"==typeof(i=o.type)&&void 0!==i.prototype&&"function"==typeof i.prototype.mountComponent&&"function"==typeof i.prototype.receiveComponent?new o.type(o):new u}else"string"==typeof t||"number"==typeof t?n=r.createInstanceForText(t):l(!1);return n.construct(t),n._mountIndex=0,n._mountImage=null,n}var o=t(37),a=t(57),r=t(71),s=t(27),l=t(133),u=(t(150),function(){});s(u.prototype,o.Mixin,{_instantiateReactComponent:i}),e.exports=i},{133:133,150:150,27:27,37:37,57:57,71:71}],133:[function(t,e,n){"use strict";e.exports=function(t,e,n,i,o,a,r,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,r,s],c=0;l=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return u[c++]}))}throw l.framesToPop=1,l}}},{}],134:[function(t,e,n){"use strict";var a,r=t(21);r.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(t,e){if(!r.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,i=n in document;if(!i){var o=document.createElement("div");o.setAttribute(n,"return;"),i="function"==typeof o[n]}return!i&&a&&"wheel"===t&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},{21:21}],135:[function(t,e,n){e.exports=function(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},{}],136:[function(t,e,n){"use strict";var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=function(t){return t&&("INPUT"===t.nodeName&&i[t.type]||"TEXTAREA"===t.nodeName)}},{}],137:[function(t,e,n){var i=t(135);e.exports=function(t){return i(t)&&3==t.nodeType}},{135:135}],138:[function(t,e,n){"use strict";var i=t(133);e.exports=function(t){var e,n={};for(e in i(t instanceof Object&&!Array.isArray(t)),t)t.hasOwnProperty(e)&&(n[e]=e);return n}},{133:133}],139:[function(t,e,n){e.exports=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null}},{}],140:[function(t,e,n){"use strict";var a=Object.prototype.hasOwnProperty;e.exports=function(t,e,n){if(!t)return null;var i={};for(var o in t)a.call(t,o)&&(i[o]=e.call(n,t[o],o,t));return i}},{}],141:[function(t,e,n){"use strict";e.exports=function(e){var n={};return function(t){return n.hasOwnProperty(t)||(n[t]=e.call(this,t)),n[t]}}},{}],142:[function(t,e,n){"use strict";var i=t(55),o=t(133);e.exports=function(t){return o(i.isValidElement(t)),t}},{133:133,55:55}],143:[function(t,e,n){"use strict";var i=t(114);e.exports=function(t){return'"'+i(t)+'"'}},{114:114}],144:[function(t,e,n){"use strict";var i=t(21),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,r=function(t,e){t.innerHTML=e};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(r=function(t,e){MSApp.execUnsafeLocalFunction(function(){t.innerHTML=e})}),i.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(r=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),o.test(e)||"<"===e[0]&&a.test(e)){t.innerHTML="\ufeff"+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e})}e.exports=r},{21:21}],145:[function(t,e,n){"use strict";var i=t(21),o=t(114),a=t(144),r=function(t,e){t.textContent=e};i.canUseDOM&&("textContent"in document.documentElement||(r=function(t,e){a(t,o(e))})),e.exports=r},{114:114,144:144,21:21}],146:[function(t,e,n){"use strict";e.exports=function(t,e){if(t===e)return!0;var n;for(n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}},{}],147:[function(t,e,n){"use strict";t(150),e.exports=function(t,e){if(null!=t&&null!=e){var n=typeof t,i=typeof e;if("string"==n||"number"==n)return"string"==i||"number"==i;if("object"==i&&t.type===e.type&&t.key===e.key)return t._owner===e._owner}return!1}},{150:150}],148:[function(t,e,n){var o=t(133);e.exports=function(t){var e=t.length;if(o(!Array.isArray(t)&&("object"==typeof t||"function"==typeof t)),o("number"==typeof e),o(0===e||e-1 in t),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}},{133:133}],149:[function(t,e,n){"use strict";function i(t){return a[t]}function v(t,e){return t&&null!=t.key?_(t.key):e.toString(36)}function _(t){return"$"+(""+t).replace(r,i)}var y=t(55),b=t(61),o=t(64),w=t(124),M=t(133),T=(t(150),o.SEPARATOR),L=":",a={"=":"=0",".":"=1",":":"=2"},r=/[=.:]/g;e.exports=function(t,e,n){return null==t?0:function t(e,n,i,o,a){var r=typeof e;if("undefined"!=r&&"boolean"!=r||(e=null),null===e||"string"==r||"number"==r||y.isValidElement(e))return o(a,e,""===n?T+v(e,0):n,i),1;var s,l=0;if(Array.isArray(e))for(var u=0;u<e.length;u++)l+=t(s=e[u],(""!==n?n+L:T)+v(s,u),i+l,o,a);else{var c=w(e);if(c){var d,h=c.call(e);if(c!==e.entries)for(var p=0;!(d=h.next()).done;)l+=t(s=d.value,(""!==n?n+L:T)+v(s,p++),i+l,o,a);else for(;!(d=h.next()).done;){var m=d.value;m&&(l+=t(s=m[1],(""!==n?n+L:T)+_(m[0])+L+v(s,0),i+l,o,a))}}else if("object"==r){M(1!==e.nodeType);var f=b.extract(e);for(var g in f)f.hasOwnProperty(g)&&(l+=t(s=f[g],(""!==n?n+L:T)+_(g)+L+v(s,0),i+l,o,a))}}return l}(t,"",0,e,n)}},{124:124,133:133,150:150,55:55,61:61,64:64}],150:[function(t,e,n){"use strict";var i=t(112);e.exports=i},{112:112}]},{},[1])(1)}),define("castle-url/patterns/queryfilter",["jquery","pat-base","mockup-utils","castle-url/libs/react/react.min","underscore","pat-registry"],function(l,t,u,e,r,c){"use strict";function d(t){var e=document.createElement("a");e.href=t;var n=e.pathname+e.search;window.ga&&window.ga("send","pageview",n),window._paq&&window._paq.push(["trackEvent","queryfilter",n])}var s=e.DOM,n=e.createClass({getInitialState:function(){return l.extend({},!0,{SearchableText:"",Subject:[],selectedTags:[],singleFilter:!1,sort_on:"",searchedText:"","selected-year":"",loading:!1},this.props.query)},getDefaultProps:function(){return{tags:[],ajaxResults:!1,query:{}}},valueChange:function(t,e){this.state[t]=e.target.value,this.state.singleFilter=!1,this.forceUpdate()},tagSelected:function(t){var e=this.state.Subject,n=this.state.selectedTags;e.push(t.target.value),n.push(t.target.value),this.setState({Subject:e,selectedTags:n,singleFilter:!1},this.filterClicked)},getActive:function(t,e){var n=this.state.singleFilter;if(n){var i={text:"Title",tag:"Subject"}[t];if(n.name==i&&n.value==e)return"active"}},removeFilter:function(t,e){e.preventDefault();var n=this.state.Subject,i=this.state.selectedTags,o=n.indexOf(t),a=i.indexOf(t);-1<o&&(n.splice(o,1),i.splice(a,1)),this.setState({Subject:n,selectedTags:i,singleFilter:!1},this.filterClicked)},clearFilter:function(t){var e=this;t.preventDefault(),e.setState(e.getInitialState(),function(){e.filterClicked()})},hasFilters:function(){return!!(this.state.searchedText||this.state["selected-year"]||0<this.state.Subject.length)},fetchResults:function(){var i=this;if(i.props.ajaxResults){i.state.loading=!0,u.loading.show();var e=[];i.state.sort_on&&e.push({name:"sort_on",value:i.state.sort_on}),i.state.singleFilter?e.push(i.state.singleFilter):(i.state.SearchableText&&e.push({name:"Title",value:i.state.SearchableText}),i.state["selected-year"]&&e.push({name:"selected-year",value:i.state["selected-year"]}),i.state.Subject.forEach(function(t){e.push({name:"Subject",value:t})}));var o=i.props.ajaxResults.url;-1===o.indexOf("?")?o+="?":o+="&",o+=l.param(e),i.props.pattern.setAjaxUrl(o),l.ajax({url:o}).done(function(t){var e=l(u.parseBodyTag(t)),n=l(i.props.ajaxResults.selector,e);l(i.props.ajaxResults.selector).replaceWith(n),c.scan(n),i.props.pattern.bind(),i.setState({searchedText:i.state.SearchableText,loading:!1}),d(o)}).always(function(){u.loading.hide(),i.state.loading=!1}).fail(function(){alert("error getting query results.")})}},filterClicked:function(t){t&&t.preventDefault(),this.fetchResults()},toggleFilter:function(t){var e=t.target.text,n=this.state.singleFilter,i=t.target.classList,o="";i.contains("filter-tag")?o="Subject":i.contains("filter-text")&&(o="Title"),n&&n.name==o&&n.value==e?this.setState({singleFilter:!1},this.filterClicked):this.setState({singleFilter:{name:o,value:e}},this.filterClicked)},render:function(){var e=this,t=[],n=1;if(0<e.props.tags.length&&(n+=1,t.push(s.div({className:"field-wrapper"},[s.label({htmlFor:"select-categories"},"Filter by "),s.select({type:"text",id:"select-categories",onChange:this.tagSelected,value:""},[s.option({value:""},"Categories")].concat(r.difference(e.props.tags,e.state.Subject).map(function(t){return s.option({value:t},t)})))])),t.push(s.span({className:"and"}," and "))),t.push(s.div({className:"field-wrapper"},[s.label({htmlFor:"filter-input"}," Search for "),s.input({type:"text",name:"SearchableText",placeholder:"Search for...",id:"filter-input",value:this.state.SearchableText,onChange:this.valueChange.bind(this,"SearchableText")})])),e.props.yearFilter){n+=1;var i=[s.option({},"Year")];r.range(2010,(new Date).getFullYear()+1).forEach(function(t){i.push(s.option({value:t},t))}),t.push(s.div({className:"field-wrapper"},[s.label({htmlFor:"filter-year"},"Filter by"),s.select({name:"year",id:"filter-year",value:e.state["selected-year"],onChange:this.valueChange.bind(this,"selected-year")},i)]))}var o=[];o=this.state.selectedTags.map(function(t){return s.li({className:e.getActive("tag",t)},[s.a({className:"filter filter-tag",onClick:e.toggleFilter},t),s.span({className:"glyphicon glyphicon-remove-sign",onClick:e.removeFilter.bind(e,t)})])}),this.state.searchedText&&o.push(s.li({className:e.getActive("text",e.state.searchedText)},[s.a({className:"filter filter-text",onClick:this.toggleFilter},this.state.searchedText),s.span({className:"glyphicon glyphicon-remove-sign",onClick:function(t){t.preventDefault(),e.setState({SearchableText:"",searchedText:"",singleFilter:!1},function(){e.filterClicked()})}})])),e.state["selected-year"]&&o.push(s.li({className:"filter-year",onClick:e.toggleFilter},[this.state["selected-year"],s.button({className:"remove",onClick:function(t){t.preventDefault(),e.setState({"selected-year":""},function(){e.filterClicked()})}},"x")])),t.push(s.button({type:"submit",onClick:this.filterClicked,className:"pull-right plone-btn plone-btn-default"},"Filter")),t.push(s.div({className:"clearfix"}));var a=s.div({className:"filter-fields"},t);return s.form({ref:"form",className:"queryfilter-container field-count-"+n},[a,s.div({className:"row"},[s.div({className:"col-md-9 filters"},[s.ul({className:"filter-list"},o),[this.hasFilters()&&s.button({className:"clear",onClick:this.clearFilter,style:{cursor:"pointer"}},"Clear")||""]]),s.div({className:"col-md-3 sort-by"},[s.label({htmlFor:"select-sort-by"},"Sort by:"),s.select({name:"sort_on",id:"select-sort-by",onChange:this.valueChange.bind(this,"sort_on")},[s.option({value:"effective"},"Newest"),s.option({value:"created"},"Created"),s.option({value:"modified"},"Modified")])])])])}});return t.extend({name:"queryfilter",trigger:".pat-queryfilter",parser:"mockup",defaults:{tags:[],query:{},selector:null,yearFilter:!1},init:function(){var t=l.extend({},!0,this.options,{pattern:this});this.component=e.render(e.createElement(n,t),this.$el[0]),this.setAjaxUrl(this.options.ajaxResults.url),this.bind(),0<l(this.options.ajaxResults.selector+" .infinity").size()&&this.infinitHandler()},setAjaxUrl:function(t){this.ajaxUrl=t},infinitHandler:function(){if(!(0<l(".template-edit,.mosaic-enabled").size())){var t,n=this;l(window).on("scroll",function(){clearTimeout(t),t=setTimeout(function(){if(!n.component.state.loading){var t=l(n.options.ajaxResults.selector+" .load-more");if(0!==t.size()){var e=l(window).scrollTop()+l(window).height();t.offset().top+t.height()<=e&&t.trigger("click")}}},100)})}},bind:function(){var r=this,s=r.options.ajaxResults.selector,t=l(s);l(".load-more",t).off("click").on("click",function(t){var a=r.ajaxUrl;-1!==a.indexOf("?")?a+="&":a+="?",a+="page="+l(this).attr("data-page"),t.preventDefault(),u.loading.show(),l.ajax({url:a}).done(function(t){var e=l(t);l(s+" .top-total").replaceWith(l(s+" .top-total",e)),l(s+" .bottom-total").replaceWith(l(s+" .bottom-total",e));var n=l(s+" ul,"+s+" .query-listing-container"),i=l(s+" ul li,"+s+" .query-listing-container > *",e);if(n.append(i),n.hasClass("pat-masonry")){var o=n.data("pattern-masonry");o&&o.addItems(i)}c.scan(i),r.bind(),d(a)}).always(function(){u.loading.hide()}).fail(function(){alert("error getting query results.")})})}})});var mejs=mejs||{};mejs.version="2.23.0",mejs.meIndex=0,mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/dailymotion","video/x-dailymotion","application/x-mpegURL"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]},mejs.Utility={encodeUrl:function(t){return encodeURIComponent(t)},escapeHTML:function(t){return t.toString().split("&").join("&").split("<").join("<").split('"').join(""")},absolutizeUrl:function(t){var e=document.createElement("div");return e.innerHTML='<a href="'+this.escapeHTML(t)+'">x</a>',e.firstChild.href},getScriptPath:function(t){for(var e,n,i,o,a,r=0,s="",l="",u=document.getElementsByTagName("script"),c=u.length,d=t.length;r<c;r++){for(o=-1<(n=(i=u[r].src).lastIndexOf("/"))?(a=i.substring(n+1),i.substring(0,n+1)):(a=i,""),e=0;e<d;e++)if(l=t[e],-1<a.indexOf(l)){s=o;break}if(""!==s)break}return s},calculateTimeFormat:function(t,e,n){t<0&&(t=0),void 0===n&&(n=25);var i=e.timeFormat,o=i[0],a=i[1]==i[0],r=a?2:1,s=":",l=Math.floor(t/3600)%24,u=Math.floor(t/60)%60,c=Math.floor(t%60),d=[[Math.floor((t%1*n).toFixed(3)),"f"],[c,"s"],[u,"m"],[l,"h"]];i.length<r&&(s=i[r]);for(var h=!1,p=0,m=d.length;p<m;p++)if(-1!==i.indexOf(d[p][1]))h=!0;else if(h){for(var f=!1,g=p;g<m;g++)if(0<d[g][0]){f=!0;break}if(!f)break;a||(i=o+i),i=d[p][1]+s+i,a&&(i=d[p][1]+i),o=d[p][1]}e.currentTimeFormat=i},twoDigitsString:function(t){return t<10?"0"+t:String(t)},secondsToTimeCode:function(t,e){if(t<0&&(t=0),"object"!=typeof e){var n="m:ss";n=e?"hh:mm:ss":n,e={currentTimeFormat:n=arguments[2]?n+":ff":n,framesPerSecond:arguments[3]||25}}var o=e.framesPerSecond;void 0===o&&(o=25);n=e.currentTimeFormat;var a=Math.floor(t/3600)%24,r=Math.floor(t/60)%60,s=Math.floor(t%60),l=Math.floor((t%1*o).toFixed(3));lis=[[l,"f"],[s,"s"],[r,"m"],[a,"h"]];var u=n;for(i=0,len=lis.length;i<len;i++)u=(u=u.replace(lis[i][1]+lis[i][1],this.twoDigitsString(lis[i][0]))).replace(lis[i][1],lis[i][0]);return u},timeCodeToSeconds:function(t,e,n,i){void 0===n?n=!1:void 0===i&&(i=25);var o=t.split(":"),a=parseInt(o[0],10),r=parseInt(o[1],10),s=parseInt(o[2],10),l=0;return n&&(l=parseInt(o[3])/i),3600*a+60*r+s+l},convertSMPTEtoSeconds:function(t){if("string"!=typeof t)return!1;var e=0,n=-1!=(t=t.replace(",",".")).indexOf(".")?t.split(".")[1].length:0,i=1;t=t.split(":").reverse();for(var o=0;o<t.length;o++)i=1,0<o&&(i=Math.pow(60,o)),e+=Number(t[o])*i;return Number(e.toFixed(n))},removeSwf:function(t){var e=document.getElementById(t);e&&/object|embed/i.test(e.nodeName)&&(mejs.MediaFeatures.isIE?(e.style.display="none",function(){4==e.readyState?mejs.Utility.removeObjectInIE(t):setTimeout(arguments.callee,10)}()):e.parentNode.removeChild(e))},removeObjectInIE:function(t){var e=document.getElementById(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}},determineScheme:function(t){return t&&-1!=t.indexOf("://")?t.substr(0,t.indexOf("://")+3):"//"}},mejs.PluginDetector={hasPluginVersion:function(t,e){var n=this.plugins[t];return e[1]=e[1]||0,e[2]=e[2]||0,n[0]>e[0]||n[0]==e[0]&&n[1]>e[1]||n[0]==e[0]&&n[1]==e[1]&&n[2]>=e[2]},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(t,e,n,i,o){this.plugins[t]=this.detectPlugin(e,n,i,o)},detectPlugin:function(t,e,n,i){var o,a,r,s=[0,0,0];if(void 0!==this.nav.plugins&&"object"==typeof this.nav.plugins[t]){if((o=this.nav.plugins[t].description)&&(void 0===this.nav.mimeTypes||!this.nav.mimeTypes[e]||this.nav.mimeTypes[e].enabledPlugin))for(s=o.replace(t,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),a=0;a<s.length;a++)s[a]=parseInt(s[a].match(/\d+/),10)}else if(void 0!==window.ActiveXObject)try{(r=new ActiveXObject(n))&&(s=i(r))}catch(t){}return s}},mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(t){var e=[],n=t.GetVariable("$version");return n&&(n=n.split(" ")[1].split(","),e=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),e}),mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(t){function e(t,e,n,i){for(;t.isVersionSupported(e[0]+"."+e[1]+"."+e[2]+"."+e[3]);)e[n]+=i;e[n]-=i}var n=[0,0,0,0];return e(t,n,0,1),e(t,n,1,1),e(t,n,2,1e4),e(t,n,2,1e3),e(t,n,2,100),e(t,n,2,10),e(t,n,2,1),e(t,n,3,1),n}),mejs.MediaFeatures={init:function(){var t,e,n,i,o,a,r=this,s=document,l=mejs.PluginDetector.nav,u=mejs.PluginDetector.ua.toLowerCase(),c=["source","track","audio","video"];r.isiPad=null!==u.match(/ipad/i),r.isiPhone=null!==u.match(/iphone/i),r.isiOS=r.isiPhone||r.isiPad,r.isAndroid=null!==u.match(/android/i),r.isBustedAndroid=null!==u.match(/android 2\.[12]/),r.isBustedNativeHTTPS="https:"===location.protocol&&(null!==u.match(/android [12]\./)||null!==u.match(/macintosh.* version.* safari/)),r.isIE=-1!=l.appName.toLowerCase().indexOf("microsoft")||null!==l.appName.toLowerCase().match(/trident/gi),r.isChrome=null!==u.match(/chrome/gi),r.isChromium=null!==u.match(/chromium/gi),r.isFirefox=null!==u.match(/firefox/gi),r.isWebkit=null!==u.match(/webkit/gi),r.isGecko=null!==u.match(/gecko/gi)&&!r.isWebkit&&!r.isIE,r.isOpera=null!==u.match(/opera/gi),r.hasTouch="ontouchstart"in window,r.svgAsImg=!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1");for(t=0;t<c.length;t++)e=document.createElement(c[t]);r.supportsMediaTag=void 0!==e.canPlayType||r.isBustedAndroid;try{e.canPlayType("video/mp4")}catch(t){r.supportsMediaTag=!1}r.supportsPointerEvents=(i=document.createElement("x"),o=document.documentElement,a=window.getComputedStyle,"pointerEvents"in i.style&&(i.style.pointerEvents="auto",i.style.pointerEvents="x",o.appendChild(i),n=a&&"auto"===a(i,"").pointerEvents,o.removeChild(i),!!n)),r.hasFirefoxPluginMovingProblem=!1,r.hasiOSFullScreen=void 0!==e.webkitEnterFullscreen,r.hasNativeFullscreen=void 0!==e.requestFullscreen,r.hasWebkitNativeFullScreen=void 0!==e.webkitRequestFullScreen,r.hasMozNativeFullScreen=void 0!==e.mozRequestFullScreen,r.hasMsNativeFullScreen=void 0!==e.msRequestFullscreen,r.hasTrueNativeFullScreen=r.hasWebkitNativeFullScreen||r.hasMozNativeFullScreen||r.hasMsNativeFullScreen,r.nativeFullScreenEnabled=r.hasTrueNativeFullScreen,r.hasMozNativeFullScreen?r.nativeFullScreenEnabled=document.mozFullScreenEnabled:r.hasMsNativeFullScreen&&(r.nativeFullScreenEnabled=document.msFullscreenEnabled),r.isChrome&&(r.hasiOSFullScreen=!1),r.hasTrueNativeFullScreen&&(r.fullScreenEventName="",r.hasWebkitNativeFullScreen?r.fullScreenEventName="webkitfullscreenchange":r.hasMozNativeFullScreen?r.fullScreenEventName="mozfullscreenchange":r.hasMsNativeFullScreen&&(r.fullScreenEventName="MSFullscreenChange"),r.isFullScreen=function(){return r.hasMozNativeFullScreen?s.mozFullScreen:r.hasWebkitNativeFullScreen?s.webkitIsFullScreen:r.hasMsNativeFullScreen?null!==s.msFullscreenElement:void 0},r.requestFullScreen=function(t){r.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():r.hasMozNativeFullScreen?t.mozRequestFullScreen():r.hasMsNativeFullScreen&&t.msRequestFullscreen()},r.cancelFullScreen=function(){r.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():r.hasMozNativeFullScreen?document.mozCancelFullScreen():r.hasMsNativeFullScreen&&document.msExitFullscreen()}),r.hasiOSFullScreen&&u.match(/mac os x 10_5/i)&&(r.hasNativeFullScreen=!1,r.hasiOSFullScreen=!1)}},mejs.MediaFeatures.init(),mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(t){this.currentTime=t},setMuted:function(t){this.muted=t},setVolume:function(t){this.volume=t},stop:function(){this.pause()},setSrc:function(t){for(var e,n,i=this.getElementsByTagName("source");0<i.length;)this.removeChild(i[0]);if("string"==typeof t)this.src=t;else for(e=0;e<t.length;e++)if(n=t[e],this.canPlayType(n.type)){this.src=n.src;break}},setVideoSize:function(t,e){this.width=t,this.height=e}},mejs.PluginMediaElement=function(t,e,n){this.id=t,this.pluginType=e,this.src=n,this.events={},this.attributes={}},mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?1==this.pluginApi.getPlayerState()&&this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(t){var e,n,i,o=mejs.plugins[this.pluginType];for(e=0;e<o.length;e++)if(i=o[e],mejs.PluginDetector.hasPluginVersion(this.pluginType,i.version))for(n=0;n<i.types.length;n++)if(t==i.types[n])return"probably";return""},positionFullscreenButton:function(t,e,n){null!=this.pluginApi&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(t),Math.floor(e),n)},hideFullscreenButton:function(){null!=this.pluginApi&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(t){var e,n;if("string"==typeof t)this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(t)),this.src=mejs.Utility.absolutizeUrl(t);else for(e=0;e<t.length;e++)if(n=t[e],this.canPlayType(n.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n.src)),this.src=mejs.Utility.absolutizeUrl(n.src);break}},setCurrentTime:function(t){null!=this.pluginApi&&("youtube"==this.pluginType||"vimeo"==this.pluginType?this.pluginApi.seekTo(t):this.pluginApi.setCurrentTime(t),this.currentTime=t)},setVolume:function(t){null!=this.pluginApi&&("youtube"==this.pluginType?this.pluginApi.setVolume(100*t):this.pluginApi.setVolume(t),this.volume=t)},setMuted:function(t){null!=this.pluginApi&&("youtube"==this.pluginType?(t?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=t,this.dispatchEvent({type:"volumechange"})):this.pluginApi.setMuted(t),this.muted=t)},setVideoSize:function(t,e){this.pluginElement&&this.pluginElement.style&&(this.pluginElement.style.width=t+"px",this.pluginElement.style.height=e+"px"),null!=this.pluginApi&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(t,e)},setFullscreen:function(t){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(t)},enterFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){null!=this.pluginApi&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(t,e,n){this.events[t]=this.events[t]||[],this.events[t].push(e)},removeEventListener:function(t,e){if(!t)return this.events={},!0;var n=this.events[t];if(!n)return!0;if(!e)return this.events[t]=[],!0;for(var i=0;i<n.length;i++)if(n[i]===e)return this.events[t].splice(i,1),!0;return!1},dispatchEvent:function(t){var e,n=this.events[t.type];if(n)for(e=0;e<n.length;e++)n[e].apply(this,[t])},hasAttribute:function(t){return t in this.attributes},removeAttribute:function(t){delete this.attributes[t]},getAttribute:function(t){return this.hasAttribute(t)?this.attributes[t]:null},setAttribute:function(t,e){this.attributes[t]=e},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id)}},mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",flashScriptAccess:"sameDomain",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,customError:"",success:function(){},error:function(){}},mejs.MediaElement=function(t,e){return mejs.HtmlMediaElementShim.create(t,e)},mejs.HtmlMediaElementShim={create:function(t,e){var n,i,o={},a="string"==typeof t?document.getElementById(t):t,r=a.tagName.toLowerCase(),s="audio"===r||"video"===r,l=s?a.getAttribute("src"):a.getAttribute("href"),u=a.getAttribute("poster"),c=a.getAttribute("autoplay"),d=a.getAttribute("preload"),h=a.getAttribute("controls");for(i in mejs.MediaElementDefaults)o[i]=mejs.MediaElementDefaults[i];for(i in e)o[i]=e[i];return l=null==l||""==l?null:l,u=null==u?"":u,d=null==d||"false"===d?"none":d,c=!(null==c||"false"===c),h=!(null==h||"false"===h),(n=this.determinePlayback(a,o,mejs.MediaFeatures.supportsMediaTag,s,l)).url=null!==n.url?mejs.Utility.absolutizeUrl(n.url):"",n.scheme=mejs.Utility.determineScheme(n.url),"native"==n.method?(mejs.MediaFeatures.isBustedAndroid&&(a.src=n.url,a.addEventListener("click",function(){a.play()},!1)),this.updateNative(n,o,c,d)):""!==n.method?this.createPlugin(n,o,u,c,d,h):(this.createErrorMessage(n,o,u),this)},determinePlayback:function(t,e,n,i,o){var a,r,s,l,u,c,d,h,p,m,f,g=[],v={method:"",url:"",htmlMediaElement:t,isVideo:"audio"!=t.tagName.toLowerCase(),scheme:""};if(void 0!==e.type&&""!==e.type)if("string"==typeof e.type)g.push({type:e.type,url:o});else for(a=0;a<e.type.length;a++)g.push({type:e.type[a],url:o});else if(null!==o)c=this.formatType(o,t.getAttribute("type")),g.push({type:c,url:o});else for(a=0;a<t.childNodes.length;a++)1==(u=t.childNodes[a]).nodeType&&"source"==u.tagName.toLowerCase()&&(o=u.getAttribute("src"),c=this.formatType(o,u.getAttribute("type")),(!(f=u.getAttribute("media"))||!window.matchMedia||window.matchMedia&&window.matchMedia(f).matches)&&g.push({type:c,url:o}));if(!i&&0<g.length&&null!==g[0].url&&-1<this.getTypeFromFile(g[0].url).indexOf("audio")&&(v.isVideo=!1),mejs.MediaFeatures.isBustedAndroid&&(t.canPlayType=function(t){return null!==t.match(/video\/(mp4|m4v)/gi)?"maybe":""}),mejs.MediaFeatures.isChromium&&(t.canPlayType=function(t){return null!==t.match(/video\/(webm|ogv|ogg)/gi)?"maybe":""}),n&&("auto"===e.mode||"auto_plugin"===e.mode||"native"===e.mode)&&(!mejs.MediaFeatures.isBustedNativeHTTPS||!0!==e.httpsBasicAuthSite)){for(i||(m=document.createElement(v.isVideo?"video":"audio"),t.parentNode.insertBefore(m,t),t.style.display="none",v.htmlMediaElement=t=m),a=0;a<g.length;a++)if("video/m3u8"==g[a].type||""!==t.canPlayType(g[a].type).replace(/no/,"")||""!==t.canPlayType(g[a].type.replace(/mp3/,"mpeg")).replace(/no/,"")||""!==t.canPlayType(g[a].type.replace(/m4a/,"mp4")).replace(/no/,"")){v.method="native",v.url=g[a].url;break}if("native"===v.method&&(null!==v.url&&(t.src=v.url),"auto_plugin"!==e.mode))return v}if("auto"===e.mode||"auto_plugin"===e.mode||"shim"===e.mode)for(a=0;a<g.length;a++)for(c=g[a].type,r=0;r<e.plugins.length;r++)for(d=e.plugins[r],h=mejs.plugins[d],s=0;s<h.length;s++)if(null==(p=h[s]).version||mejs.PluginDetector.hasPluginVersion(d,p.version))for(l=0;l<p.types.length;l++)if(c.toLowerCase()==p.types[l].toLowerCase())return v.method=d,v.url=g[a].url,v;return"auto_plugin"===e.mode&&"native"===v.method||""===v.method&&0<g.length&&(v.url=g[0].url),v},formatType:function(t,e){return t&&!e?this.getTypeFromFile(t):e&&~e.indexOf(";")?e.substr(0,e.indexOf(";")):e},getTypeFromFile:function(t){var e=(t=t.split("?")[0]).substring(t.lastIndexOf(".")+1).toLowerCase(),n=/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(e)?"video/":"audio/";return this.getTypeFromExtension(e,n)},getTypeFromExtension:function(t,e){switch(e=e||"",t){case"mp4":case"m4v":case"m4a":case"f4v":case"f4a":return e+"mp4";case"flv":return e+"x-flv";case"webm":case"webma":case"webmv":return e+"webm";case"ogg":case"oga":case"ogv":return e+"ogg";case"m3u8":return"application/x-mpegurl";case"ts":return e+"mp2t";default:return e+t}},createErrorMessage:function(t,e,n){var i=t.htmlMediaElement,o=document.createElement("div"),a=e.customError;o.className="me-cannotplay";try{o.style.width=i.width+"px",o.style.height=i.height+"px"}catch(t){}a||(a='<a href="'+t.url+'">',""!==n&&(a+='<img src="'+n+'" width="100%" height="100%" alt="" />'),a+="<span>"+mejs.i18n.t("Download File")+"</span></a>"),o.innerHTML=a,i.parentNode.insertBefore(o,i),i.style.display="none",e.error(i)},createPlugin:function(t,e,n,i,o,a){var r,s,l,u=t.htmlMediaElement,c=1,d=1,h="me_"+t.method+"_"+mejs.meIndex++,p=new mejs.PluginMediaElement(h,t.method,t.url),m=document.createElement("div");p.tagName=u.tagName;for(var f=0;f<u.attributes.length;f++){var g=u.attributes[f];g.specified&&p.setAttribute(g.name,g.value)}for(s=u.parentNode;null!==s&&null!=s.tagName&&"body"!==s.tagName.toLowerCase()&&null!=s.parentNode&&null!=s.parentNode.tagName&&null!=s.parentNode.constructor&&"ShadowRoot"===s.parentNode.constructor.name;){if("p"===s.parentNode.tagName.toLowerCase()){s.parentNode.parentNode.insertBefore(s,s.parentNode);break}s=s.parentNode}switch(t.isVideo?(c=0<e.pluginWidth?e.pluginWidth:0<e.videoWidth?e.videoWidth:null!==u.getAttribute("width")?u.getAttribute("width"):e.defaultVideoWidth,d=0<e.pluginHeight?e.pluginHeight:0<e.videoHeight?e.videoHeight:null!==u.getAttribute("height")?u.getAttribute("height"):e.defaultVideoHeight,c=mejs.Utility.encodeUrl(c),d=mejs.Utility.encodeUrl(d)):e.enablePluginDebug&&(c=320,d=240),p.success=e.success,m.className="me-plugin",m.id=h+"_container",t.isVideo?u.parentNode.insertBefore(m,u):document.body.insertBefore(m,document.body.childNodes[0]),"flash"!==t.method&&"silverlight"!==t.method||(l=["id="+h,"isvideo="+(t.isVideo?"true":"false"),"autoplay="+(i?"true":"false"),"preload="+o,"width="+c,"startvolume="+e.startVolume,"timerrate="+e.timerRate,"flashstreamer="+e.flashStreamer,"height="+d,"pseudostreamstart="+e.pseudoStreamingStartQueryParam],null!==t.url&&("flash"==t.method?l.push("file="+mejs.Utility.encodeUrl(t.url)):l.push("file="+t.url)),e.enablePluginDebug&&l.push("debug=true"),e.enablePluginSmoothing&&l.push("smoothing=true"),e.enablePseudoStreaming&&l.push("pseudostreaming=true"),a&&l.push("controls=true"),e.pluginVars&&(l=l.concat(e.pluginVars)),window[h+"_init"]=function(){switch(p.pluginType){case"flash":p.pluginElement=p.pluginApi=document.getElementById(h);break;case"silverlight":p.pluginElement=document.getElementById(p.id),p.pluginApi=p.pluginElement.Content.MediaElementJS}null!=p.pluginApi&&p.success&&p.success(p,u)},window[h+"_event"]=function(t,e){var n,i,o;for(i in n={type:t,target:p},e)p[i]=e[i],n[i]=e[i];o=e.bufferedTime||0,n.target.buffered=n.buffered={start:function(t){return 0},end:function(t){return o},length:1},p.dispatchEvent(n)}),t.method){case"silverlight":m.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+h+'" name="'+h+'" width="'+c+'" height="'+d+'" class="mejs-shim"><param name="initParams" value="'+l.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+e.pluginPath+e.silverlightName+'" /></object>';break;case"flash":mejs.MediaFeatures.isIE?(r=document.createElement("div"),m.appendChild(r),r.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+h+'" width="'+c+'" height="'+d+'" class="mejs-shim"><param name="movie" value="'+e.pluginPath+e.flashName+"?"+(new Date).getTime()+'" /><param name="flashvars" value="'+l.join("&")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+e.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /></object>'):m.innerHTML='<embed id="'+h+'" name="'+h+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="'+e.flashScriptAccess+'" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+e.pluginPath+e.flashName+'" flashvars="'+l.join("&")+'" width="'+c+'" height="'+d+'" scale="default"class="mejs-shim"></embed>';break;case"youtube":var v;if(-1!=t.url.lastIndexOf("youtu.be"))-1!=(v=t.url.substr(t.url.lastIndexOf("/")+1)).indexOf("?")&&(v=v.substr(0,v.indexOf("?")));else{var _=t.url.match(/[?&]v=([^&#]+)|&|#|$/);_&&(v=_[1])}youtubeSettings={container:m,containerId:m.id,pluginMediaElement:p,pluginId:h,videoId:v,height:d,width:c,scheme:t.scheme},window.postMessage?mejs.YouTubeApi.enqueueIframe(youtubeSettings):mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])&&mejs.YouTubeApi.createFlash(youtubeSettings,e);break;case"vimeo":var y=h+"_player";if(p.vimeoid=t.url.substr(t.url.lastIndexOf("/")+1),m.innerHTML='<iframe src="'+t.scheme+"player.vimeo.com/video/"+p.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+y+'" width="'+c+'" height="'+d+'" frameborder="0" class="mejs-shim" id="'+y+'" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>',"function"==typeof $f){var b=$f(m.childNodes[0]),w=-1;b.addEvent("ready",function(){function e(t,e,n,i){var o={type:n,target:e};"timeupdate"==n&&(e.currentTime=o.currentTime=i.seconds,e.duration=o.duration=i.duration),e.dispatchEvent(o)}b.playVideo=function(){b.api("play")},b.stopVideo=function(){b.api("unload")},b.pauseVideo=function(){b.api("pause")},b.seekTo=function(t){b.api("seekTo",t)},b.setVolume=function(t){b.api("setVolume",t)},b.setMuted=function(t){t?(b.lastVolume=b.api("getVolume"),b.api("setVolume",0)):(b.api("setVolume",b.lastVolume),delete b.lastVolume)},b.getPlayerState=function(){return w},b.addEvent("play",function(){w=1,e(0,p,"play"),e(0,p,"playing")}),b.addEvent("pause",function(){w=2,e(0,p,"pause")}),b.addEvent("finish",function(){e(w=0,p,"ended")}),b.addEvent("playProgress",function(t){e(0,p,"timeupdate",t)}),b.addEvent("seek",function(t){w=3,e(0,p,"seeked",t)}),b.addEvent("loadProgress",function(t){w=3,e(0,p,"progress",t)}),p.pluginElement=m,p.pluginApi=b,p.success(p,p.pluginElement)})}else console.warn("You need to include froogaloop for vimeo to work")}return u.style.display="none",u.removeAttribute("autoplay"),p},updateNative:function(t,e,n,i){var o,a=t.htmlMediaElement;for(o in mejs.HtmlMediaElement)a[o]=mejs.HtmlMediaElement[o];return e.success(a,a),a}},mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(t){if(!this.isIframeStarted){var e=document.createElement("script");e.src=t.scheme+"www.youtube.com/player_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n),this.isIframeStarted=!0}},iframeQueue:[],enqueueIframe:function(t){this.isLoaded?this.createIframe(t):(this.loadIframeApi(t),this.iframeQueue.push(t))},createIframe:function(e){var n=e.pluginMediaElement,i=new YT.Player(e.containerId,{height:e.height,width:e.width,videoId:e.videoId,playerVars:{controls:0,wmode:"transparent"},events:{onReady:function(t){i.setVideoSize=function(t,e){i.setSize(t,e)},e.pluginMediaElement.pluginApi=i,e.pluginMediaElement.pluginElement=document.getElementById(e.containerId),n.success(n,n.pluginElement),mejs.YouTubeApi.createEvent(i,n,"canplay"),setInterval(function(){mejs.YouTubeApi.createEvent(i,n,"timeupdate")},250),void 0!==n.attributes.autoplay&&i.playVideo()},onStateChange:function(t){mejs.YouTubeApi.handleStateChange(t.data,i,n)}}})},createEvent:function(t,e,n){var i={type:n,target:e};if(t&&t.getDuration){e.currentTime=i.currentTime=t.getCurrentTime(),e.duration=i.duration=t.getDuration(),i.paused=e.paused,i.ended=e.ended,i.muted=t.isMuted(),i.volume=t.getVolume()/100,i.bytesTotal=t.getVideoBytesTotal(),i.bufferedBytes=t.getVideoBytesLoaded();var o=i.bufferedBytes/i.bytesTotal*i.duration;i.target.buffered=i.buffered={start:function(t){return 0},end:function(t){return o},length:1}}e.dispatchEvent(i)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;0<this.iframeQueue.length;){var t=this.iframeQueue.pop();this.createIframe(t)}},flashPlayers:{},createFlash:function(t){var e,n=(this.flashPlayers[t.pluginId]=t).scheme+"www.youtube.com/apiplayer?enablejsapi=1&playerapiid="+t.pluginId+"&version=3&autoplay=0&controls=0&modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(e=document.createElement("div"),t.container.appendChild(e),e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+t.scheme+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+t.pluginId+'" width="'+t.width+'" height="'+t.height+'" class="mejs-shim"><param name="movie" value="'+n+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+options.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /></object>'):t.container.innerHTML='<object type="application/x-shockwave-flash" id="'+t.pluginId+'" data="'+n+'" width="'+t.width+'" height="'+t.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="'+options.flashScriptAccess+'"><param name="wmode" value="transparent"></object>'},flashReady:function(t){var e=this.flashPlayers[t],n=document.getElementById(t),i=e.pluginMediaElement;i.pluginApi=i.pluginElement=n,e.success(i,i.pluginElement),n.cueVideoById(e.videoId);var o=e.containerId+"_callback";window[o]=function(t){mejs.YouTubeApi.handleStateChange(t,n,i)},n.addEventListener("onStateChange",o),setInterval(function(){mejs.YouTubeApi.createEvent(n,i,"timeupdate")},250),mejs.YouTubeApi.createEvent(n,i,"canplay")},handleStateChange:function(t,e,n){switch(t){case-1:n.paused=!0,n.ended=!0,mejs.YouTubeApi.createEvent(e,n,"loadedmetadata");break;case 0:n.paused=!1,n.ended=!0,mejs.YouTubeApi.createEvent(e,n,"ended");break;case 1:n.paused=!1,n.ended=!1,mejs.YouTubeApi.createEvent(e,n,"play"),mejs.YouTubeApi.createEvent(e,n,"playing");break;case 2:n.paused=!0,n.ended=!1,mejs.YouTubeApi.createEvent(e,n,"pause");break;case 3:mejs.YouTubeApi.createEvent(e,n,"progress")}}},window.onYouTubePlayerAPIReady=function(){mejs.YouTubeApi.iFrameReady()},window.onYouTubePlayerReady=function(t){mejs.YouTubeApi.flashReady(t)},window.mejs=mejs,window.MediaElement=mejs.MediaElement,function(t){"use strict";var i={locale:{language:t.i18n&&t.i18n.locale.language||"",strings:t.i18n&&t.i18n.locale.strings||{}},ietf_lang_regex:/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/,methods:{},getLanguage:function(){var t=i.locale.language||window.navigator.userLanguage||window.navigator.language;return i.ietf_lang_regex.exec(t)?t:null}};"undefined"!=typeof mejsL10n&&(i.locale.language=mejsL10n.language),i.methods.checkPlain=function(t){var e,n,i={"&":"&",'"':""","<":"<",">":">"};for(e in t=String(t),i)i.hasOwnProperty(e)&&(n=new RegExp(e,"g"),t=t.replace(n,i[e]));return t},i.methods.t=function(t,e){return i.locale.strings&&i.locale.strings[e.context]&&i.locale.strings[e.context][t]&&(t=i.locale.strings[e.context][t]),i.methods.checkPlain(t)},i.t=function(t,e){if("string"==typeof t&&0<t.length){var n=i.getLanguage();return e=e||{context:n},i.methods.t(t,e)}throw{name:"InvalidArgumentException",message:"First argument is either not a string or empty."}},t.i18n=i}((document,mejs)),function(t){"use strict";"undefined"!=typeof mejsL10n&&(t[mejsL10n.language]=mejsL10n.strings)}(mejs.i18n.locale.strings),"undefined"!=typeof jQuery?mejs.$=jQuery:"undefined"!=typeof Zepto?(mejs.$=Zepto).fn.outerWidth=function(t){var e=$(this).width();return t&&(e+=parseInt($(this).css("margin-right"),10),e+=parseInt($(this).css("margin-left"),10)),e}:"undefined"!=typeof ender&&(mejs.$=ender),function(u){function o(t,i){var o={d:[],w:[]};return u.each((t||"").split(" "),function(t,e){var n=e+"."+i;0===n.indexOf(".")?(o.d.push(n),o.w.push(n)):o[a.test(e)?"w":"d"].push(n)}),o.d=o.d.join(" "),o.w=o.w.join(" "),o}var a;mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(t){return.05*t.duration},defaultSeekForwardInterval:function(t){return.05*t.duration},setDimensions:!0,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,stretching:"auto",enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(t,e){e.paused||e.ended?e.play():e.pause()}},{keys:[38],action:function(t,e){t.container.find(".mejs-volume-slider").css("display","block"),t.isVideo&&(t.showControls(),t.startControlsTimer());var n=Math.min(e.volume+.1,1);e.setVolume(n)}},{keys:[40],action:function(t,e){t.container.find(".mejs-volume-slider").css("display","block"),t.isVideo&&(t.showControls(),t.startControlsTimer());var n=Math.max(e.volume-.1,0);e.setVolume(n)}},{keys:[37,227],action:function(t,e){if(!isNaN(e.duration)&&0<e.duration){t.isVideo&&(t.showControls(),t.startControlsTimer());var n=Math.max(e.currentTime-t.options.defaultSeekBackwardInterval(e),0);e.setCurrentTime(n)}}},{keys:[39,228],action:function(t,e){if(!isNaN(e.duration)&&0<e.duration){t.isVideo&&(t.showControls(),t.startControlsTimer());var n=Math.min(e.currentTime+t.options.defaultSeekForwardInterval(e),e.duration);e.setCurrentTime(n)}}},{keys:[70],action:function(t,e){void 0!==t.enterFullScreen&&(t.isFullScreen?t.exitFullScreen():t.enterFullScreen())}},{keys:[77],action:function(t,e){t.container.find(".mejs-volume-slider").css("display","block"),t.isVideo&&(t.showControls(),t.startControlsTimer()),t.media.muted?t.setMuted(!1):t.setMuted(!0)}}]},mejs.mepIndex=0,mejs.players={},mejs.MediaElementPlayer=function(t,e){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,e);var n=this;return n.$media=n.$node=u(t),n.node=n.media=n.$media[0],n.node?void 0!==n.node.player?n.node.player:(void 0===e&&(e=n.$node.data("mejsoptions")),n.options=u.extend({},mejs.MepDefaults,e),n.options.timeFormat||(n.options.timeFormat="mm:ss",n.options.alwaysShowHours&&(n.options.timeFormat="hh:mm:ss"),n.options.showTimecodeFrameCount&&(n.options.timeFormat+=":ff")),mejs.Utility.calculateTimeFormat(0,n.options,n.options.framesPerSecond||25),n.id="mep_"+mejs.mepIndex++,(mejs.players[n.id]=n).init(),n):void 0},mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var n=this,t=mejs.MediaFeatures,e=u.extend(!0,{},n.options,{success:function(t,e){n.meReady(t,e)},error:function(t){n.handleError(t)}}),i=n.media.tagName.toLowerCase();if(n.isDynamic="audio"!==i&&"video"!==i,n.isDynamic?n.isVideo=n.options.isVideo:n.isVideo="audio"!==i&&n.options.isVideo,t.isiPad&&n.options.iPadUseNativeControls||t.isiPhone&&n.options.iPhoneUseNativeControls)n.$media.attr("controls","controls"),t.isiPad&&null!==n.media.getAttribute("autoplay")&&n.play();else if(!t.isAndroid||!n.options.AndroidUseNativeControls){n.$media.removeAttr("controls");var o=n.isVideo?mejs.i18n.t("Video Player"):mejs.i18n.t("Audio Player");u('<span class="mejs-offscreen">'+o+"</span>").insertBefore(n.$media),n.container=u('<div id="'+n.id+'" class="mejs-container '+(mejs.MediaFeatures.svgAsImg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+o+'"><div class="mejs-inner"><div class="mejs-mediaelement"></div><div class="mejs-layers"></div><div class="mejs-controls"></div><div class="mejs-clear"></div></div></div>').addClass(n.$media[0].className).insertBefore(n.$media).focus(function(t){n.controlsAreVisible||n.hasFocus||!n.controlsEnabled||(n.showControls(!0),n.hasMsNativeFullScreen||n.container.find(".mejs-playpause-button > button").focus())}),"fill"!==n.options.stretching||n.container.parent("mejs-fill-container").length||(n.outerContainer=n.$media.parent(),n.container.wrap('<div class="mejs-fill-container"/>')),n.container.addClass((t.isAndroid?"mejs-android ":"")+(t.isiOS?"mejs-ios ":"")+(t.isiPad?"mejs-ipad ":"")+(t.isiPhone?"mejs-iphone ":"")+(n.isVideo?"mejs-video ":"mejs-audio ")),n.container.find(".mejs-mediaelement").append(n.$media),(n.node.player=n).controls=n.container.find(".mejs-controls"),n.layers=n.container.find(".mejs-layers");var a=n.isVideo?"video":"audio",r=a.substring(0,1).toUpperCase()+a.substring(1);0<n.options[a+"Width"]||-1<n.options[a+"Width"].toString().indexOf("%")?n.width=n.options[a+"Width"]:""!==n.media.style.width&&null!==n.media.style.width?n.width=n.media.style.width:null!==n.media.getAttribute("width")?n.width=n.$media.attr("width"):n.width=n.options["default"+r+"Width"],0<n.options[a+"Height"]||-1<n.options[a+"Height"].toString().indexOf("%")?n.height=n.options[a+"Height"]:""!==n.media.style.height&&null!==n.media.style.height?n.height=n.media.style.height:null!==n.$media[0].getAttribute("height")?n.height=n.$media.attr("height"):n.height=n.options["default"+r+"Height"],n.setPlayerSize(n.width,n.height),e.pluginWidth=n.width,e.pluginHeight=n.height}mejs.MediaElement(n.$media[0],e),void 0!==n.container&&n.controlsAreVisible&&n.container.trigger("controlsshown")},showControls:function(t){var e=this;t=void 0===t||t,e.controlsAreVisible||(t?(e.controls.removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){e.controlsAreVisible=!0,e.container.trigger("controlsshown")}),e.container.find(".mejs-control").removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){e.controlsAreVisible=!0})):(e.controls.removeClass("mejs-offscreen").css("display","block"),e.container.find(".mejs-control").removeClass("mejs-offscreen").css("display","block"),e.controlsAreVisible=!0,e.container.trigger("controlsshown")),e.setControlsSize())},hideControls:function(t){var e=this;t=void 0===t||t,!e.controlsAreVisible||e.options.alwaysShowControls||e.keyboardAction||e.media.paused||e.media.ended||(t?(e.controls.stop(!0,!0).fadeOut(200,function(){u(this).addClass("mejs-offscreen").css("display","block"),e.controlsAreVisible=!1,e.container.trigger("controlshidden")}),e.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){u(this).addClass("mejs-offscreen").css("display","block")})):(e.controls.addClass("mejs-offscreen").css("display","block"),e.container.find(".mejs-control").addClass("mejs-offscreen").css("display","block"),e.controlsAreVisible=!1,e.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(t){var e=this;t=void 0!==t?t:e.options.controlsTimeoutDefault,e.killControlsTimer("start"),e.controlsTimer=setTimeout(function(){e.hideControls(),e.killControlsTimer("hide")},t)},killControlsTimer:function(t){null!==this.controlsTimer&&(clearTimeout(this.controlsTimer),delete this.controlsTimer,this.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){this.killControlsTimer(),this.hideControls(!1),this.controlsEnabled=!1},enableControls:function(){this.showControls(!1),this.controlsEnabled=!0},meReady:function(t,e){var n,i,o=this,a=mejs.MediaFeatures,r=e.getAttribute("autoplay"),s=!(null==r||"false"===r);if(!o.created){if(o.created=!0,o.media=t,o.domNode=e,!(a.isAndroid&&o.options.AndroidUseNativeControls||a.isiPad&&o.options.iPadUseNativeControls||a.isiPhone&&o.options.iPhoneUseNativeControls)){for(n in o.buildposter(o,o.controls,o.layers,o.media),o.buildkeyboard(o,o.controls,o.layers,o.media),o.buildoverlays(o,o.controls,o.layers,o.media),o.findTracks(),o.options.features)if(i=o.options.features[n],o["build"+i])try{o["build"+i](o,o.controls,o.layers,o.media)}catch(t){}o.container.trigger("controlsready"),o.setPlayerSize(o.width,o.height),o.setControlsSize(),o.isVideo&&(mejs.MediaFeatures.hasTouch&&!o.options.alwaysShowControls?o.$media.bind("touchstart",function(){o.controlsAreVisible?o.hideControls(!1):o.controlsEnabled&&o.showControls(!1)}):(o.clickToPlayPauseCallback=function(){if(o.options.clickToPlayPause){o.media.paused?o.play():o.pause();var t=o.$media.closest(".mejs-container").find(".mejs-overlay-button"),e=t.attr("aria-pressed");t.attr("aria-pressed",!e)}},o.media.addEventListener("click",o.clickToPlayPauseCallback,!1),o.container.bind("mouseenter",function(){o.controlsEnabled&&(o.options.alwaysShowControls||(o.killControlsTimer("enter"),o.showControls(),o.startControlsTimer(o.options.controlsTimeoutMouseEnter)))}).bind("mousemove",function(){o.controlsEnabled&&(o.controlsAreVisible||o.showControls(),o.options.alwaysShowControls||o.startControlsTimer(o.options.controlsTimeoutMouseEnter))}).bind("mouseleave",function(){o.controlsEnabled&&(o.media.paused||o.options.alwaysShowControls||o.startControlsTimer(o.options.controlsTimeoutMouseLeave))})),o.options.hideVideoControlsOnLoad&&o.hideControls(!1),s&&!o.options.alwaysShowControls&&o.hideControls(),o.options.enableAutosize&&o.media.addEventListener("loadedmetadata",function(t){o.options.videoHeight<=0&&null===o.domNode.getAttribute("height")&&!isNaN(t.target.videoHeight)&&(o.setPlayerSize(t.target.videoWidth,t.target.videoHeight),o.setControlsSize(),o.media.setVideoSize(t.target.videoWidth,t.target.videoHeight))},!1)),o.media.addEventListener("play",function(){var t;for(t in mejs.players){var e=mejs.players[t];e.id==o.id||!o.options.pauseOtherPlayers||e.paused||e.ended||e.pause(),e.hasFocus=!1}o.hasFocus=!0},!1),o.media.addEventListener("ended",function(t){if(o.options.autoRewind)try{o.media.setCurrentTime(0),window.setTimeout(function(){u(o.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(t){}o.media.pause(),o.setProgressRail&&o.setProgressRail(),o.setCurrentRail&&o.setCurrentRail(),o.options.loop?o.play():!o.options.alwaysShowControls&&o.controlsEnabled&&o.showControls()},!1),o.media.addEventListener("loadedmetadata",function(){mejs.Utility.calculateTimeFormat(o.duration,o.options,o.options.framesPerSecond||25),o.updateDuration&&o.updateDuration(),o.updateCurrent&&o.updateCurrent(),o.isFullScreen||(o.setPlayerSize(o.width,o.height),o.setControlsSize())},!1);var l=null;o.media.addEventListener("timeupdate",function(){l!==this.duration&&(l=this.duration,mejs.Utility.calculateTimeFormat(l,o.options,o.options.framesPerSecond||25),o.updateDuration&&o.updateDuration(),o.updateCurrent&&o.updateCurrent(),o.setControlsSize())},!1),o.container.focusout(function(t){if(t.relatedTarget){var e=u(t.relatedTarget);o.keyboardAction&&0===e.parents(".mejs-container").length&&(o.keyboardAction=!1,o.isVideo&&!o.options.alwaysShowControls&&o.hideControls(!0))}}),setTimeout(function(){o.setPlayerSize(o.width,o.height),o.setControlsSize()},50),o.globalBind("resize",function(){o.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||o.setPlayerSize(o.width,o.height),o.setControlsSize()}),"youtube"==o.media.pluginType&&(a.isiOS||a.isAndroid)&&(o.container.find(".mejs-overlay-play").hide(),o.container.find(".mejs-poster").hide())}s&&"native"==t.pluginType&&o.play(),o.options.success&&("string"==typeof o.options.success?window[o.options.success](o.media,o.domNode,o):o.options.success(o.media,o.domNode,o))}},handleError:function(t){this.controls&&this.controls.hide(),this.options.error&&this.options.error(t)},setPlayerSize:function(t,e){var n=this;if(!n.options.setDimensions)return!1;switch(void 0!==t&&(n.width=t),void 0!==e&&(n.height=e),n.options.stretching){case"fill":n.isVideo?this.setFillMode():this.setDimensions(n.width,n.height);break;case"responsive":this.setResponsiveMode();break;case"none":this.setDimensions(n.width,n.height);break;default:!0===this.hasFluidMode()?this.setResponsiveMode():this.setDimensions(n.width,n.height)}},hasFluidMode:function(){return 0<this.height.toString().indexOf("%")||"none"!==this.$node.css("max-width")&&"t.width"!==this.$node.css("max-width")||this.$node[0].currentStyle&&"100%"===this.$node[0].currentStyle.maxWidth},setResponsiveMode:function(){var t=this,e=t.isVideo?t.media.videoWidth&&0<t.media.videoWidth?t.media.videoWidth:null!==t.media.getAttribute("width")?t.media.getAttribute("width"):t.options.defaultVideoWidth:t.options.defaultAudioWidth,n=t.isVideo?t.media.videoHeight&&0<t.media.videoHeight?t.media.videoHeight:null!==t.media.getAttribute("height")?t.media.getAttribute("height"):t.options.defaultVideoHeight:t.options.defaultAudioHeight,i=t.container.parent().closest(":visible").width(),o=t.container.parent().closest(":visible").height(),a=t.isVideo||!t.options.autosizeProgress?parseInt(i*n/e,10):n;(isNaN(a)||0!==o&&o<a&&n<o)&&(a=o),0<t.container.parent().length&&"body"===t.container.parent()[0].tagName.toLowerCase()&&(i=u(window).width(),a=u(window).height()),a&&i&&(t.container.width(i).height(a),t.$media.add(t.container.find(".mejs-shim")).width("100%").height("100%"),t.isVideo&&t.media.setVideoSize&&t.media.setVideoSize(i,a),t.layers.children(".mejs-layer").width("100%").height("100%"))},setFillMode:function(){var t=this,e=t.outerContainer;e.width()||e.height(t.$media.width()),e.height()||e.height(t.$media.height());var n=e.width(),i=e.height();t.setDimensions("100%","100%"),t.container.find(".mejs-poster img").css("display","block"),targetElement=t.container.find("object, embed, iframe, video");var o=t.height,a=t.width,r=n,s=o*n/a,l=a*i/o,u=i,c=!(n<l),d=c?Math.floor(r):Math.floor(l),h=c?Math.floor(s):Math.floor(u);c?(targetElement.height(h).width(n),t.media.setVideoSize&&t.media.setVideoSize(n,h)):(targetElement.height(i).width(d),t.media.setVideoSize&&t.media.setVideoSize(d,i)),targetElement.css({"margin-left":Math.floor((n-d)/2),"margin-top":0})},setDimensions:function(t,e){this.container.width(t).height(e),this.layers.children(".mejs-layer").width(t).height(e)},setControlsSize:function(){var e=0,t=0,n=this.controls.find(".mejs-time-rail"),i=this.controls.find(".mejs-time-total"),o=n.siblings(),a=o.last(),r=null;if(this.container.is(":visible")&&n.length&&n.is(":visible")){for(this.options&&!this.options.autosizeProgress&&(t=parseInt(n.css("width"),10)),0!==t&&t||(o.each(function(){var t=u(this);"absolute"!=t.css("position")&&t.is(":visible")&&(e+=u(this).outerWidth(!0))}),t=this.controls.width()-e-(n.outerWidth(!0)-n.width()));n.width(t),i.width(t-(i.outerWidth(!0)-i.width())),"absolute"!=a.css("position")&&(r=a.length?a.position():null,t--),null!==r&&0<r.top.toFixed(2)&&0<t;);this.container.trigger("controlsresize")}},buildposter:function(t,e,n,i){var o=u('<div class="mejs-poster mejs-layer"></div>').appendTo(n),a=t.$media.attr("poster");""!==t.options.poster&&(a=t.options.poster),a?this.setPoster(a):o.hide(),i.addEventListener("play",function(){o.hide()},!1),t.options.showPosterWhenEnded&&t.options.autoRewind&&i.addEventListener("ended",function(){o.show()},!1)},setPoster:function(t){var e=this.container.find(".mejs-poster"),n=e.find("img");0===n.length&&(n=u('<img width="100%" height="100%" alt="" />').appendTo(e)),n.attr("src",t),e.css({"background-image":"url("+t+")"})},buildoverlays:function(e,t,n,i){var o=this;if(e.isVideo){var a=u('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span></span></div></div>').hide().appendTo(n),r=u('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"></div></div>').hide().appendTo(n),s=u('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button" role="button" aria-label="'+mejs.i18n.t("Play")+'" aria-pressed="false"></div></div>').appendTo(n).bind("click",function(){if(o.options.clickToPlayPause){i.paused&&i.play();var t=u(this).find(".mejs-overlay-button"),e=t.attr("aria-pressed");t.attr("aria-pressed",!!e)}});i.addEventListener("play",function(){s.hide(),a.hide(),t.find(".mejs-time-buffering").hide(),r.hide()},!1),i.addEventListener("playing",function(){s.hide(),a.hide(),t.find(".mejs-time-buffering").hide(),r.hide()},!1),i.addEventListener("seeking",function(){a.show(),t.find(".mejs-time-buffering").show()},!1),i.addEventListener("seeked",function(){a.hide(),t.find(".mejs-time-buffering").hide()},!1),i.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||s.show()},!1),i.addEventListener("waiting",function(){a.show(),t.find(".mejs-time-buffering").show()},!1),i.addEventListener("loadeddata",function(){a.show(),t.find(".mejs-time-buffering").show(),mejs.MediaFeatures.isAndroid&&(i.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var t=document.createEvent("HTMLEvents");return t.initEvent("canplay",!0,!0),i.dispatchEvent(t)}},300))},!1),i.addEventListener("canplay",function(){a.hide(),t.find(".mejs-time-buffering").hide(),clearTimeout(i.canplayTimeout)},!1),i.addEventListener("error",function(t){o.handleError(t),a.hide(),s.hide(),r.show(),r.find(".mejs-overlay-error").html("Error loading this resource")},!1),i.addEventListener("keydown",function(t){o.onkeydown(e,i,t)},!1)}},buildkeyboard:function(e,t,n,i){var o=this;o.container.keydown(function(){o.keyboardAction=!0}),o.globalBind("keydown",function(t){return e.hasFocus=0!==u(t.target).closest(".mejs-container").length&&u(t.target).closest(".mejs-container").attr("id")===e.$media.closest(".mejs-container").attr("id"),o.onkeydown(e,i,t)}),o.globalBind("click",function(t){e.hasFocus=0!==u(t.target).closest(".mejs-container").length})},onkeydown:function(t,e,n){if(t.hasFocus&&t.options.enableKeyboard)for(var i=0,o=t.options.keyActions.length;i<o;i++)for(var a=t.options.keyActions[i],r=0,s=a.keys.length;r<s;r++)if(n.keyCode==a.keys[r])return"function"==typeof n.preventDefault&&n.preventDefault(),a.action(t,e,n.keyCode,n),!1;return!0},findTracks:function(){var n=this,t=n.$media.find("track");n.tracks=[],t.each(function(t,e){e=u(e),n.tracks.push({srclang:e.attr("srclang")?e.attr("srclang").toLowerCase():"",src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(t){this.container[0].className="mejs-container "+t,this.setPlayerSize(this.width,this.height),this.setControlsSize()},play:function(){this.load(),this.media.play()},pause:function(){try{this.media.pause()}catch(t){}},load:function(){this.isLoaded||this.media.load(),this.isLoaded=!0},setMuted:function(t){this.media.setMuted(t)},setCurrentTime:function(t){this.media.setCurrentTime(t)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(t){this.media.setVolume(t)},getVolume:function(){return this.media.volume},setSrc:function(t){if("youtube"===this.media.pluginType){var e,n,i;if("string"!=typeof t)for(n=0;n<t.length;n++)if(i=t[n],this.canPlayType(i.type)){t=i.src;break}if(-1!==t.lastIndexOf("youtu.be"))-1!==(e=t.substr(t.lastIndexOf("/")+1)).indexOf("?")&&(e=e.substr(0,e.indexOf("?")));else{var o=t.match(/[?&]v=([^&#]+)|&|#|$/);o&&(e=o[1])}null!==this.media.getAttribute("autoplay")?this.media.pluginApi.loadVideoById(e):this.media.pluginApi.cueVideoById(e)}else this.media.setSrc(t)},remove:function(){var t,e,n=this;for(t in n.container.prev(".mejs-offscreen").remove(),n.options.features)if(n["clean"+(e=n.options.features[t])])try{n["clean"+e](n)}catch(t){}n.isDynamic?n.$node.insertBefore(n.container):(n.$media.prop("controls",!0),n.$node.clone().insertBefore(n.container).show(),n.$node.remove()),"native"!==n.media.pluginType&&n.media.remove(),delete mejs.players[n.id],"object"==typeof n.container&&n.container.remove(),n.globalUnbind(),delete n.node.player},rebuildtracks:function(){this.findTracks(),this.buildtracks(this,this.controls,this.layers,this.media)},resetSize:function(){var t=this;setTimeout(function(){t.setPlayerSize(t.width,t.height),t.setControlsSize()},50)}},a=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,mejs.MediaElementPlayer.prototype.globalBind=function(t,e,n){var i=this.node?this.node.ownerDocument:document;(t=o(t,this.id)).d&&u(i).bind(t.d,e,n),t.w&&u(window).bind(t.w,e,n)},mejs.MediaElementPlayer.prototype.globalUnbind=function(t,e){var n=this.node?this.node.ownerDocument:document;(t=o(t,this.id)).d&&u(n).unbind(t.d,e),t.w&&u(window).unbind(t.w,e)},void 0!==u&&(u.fn.mediaelementplayer=function(t){return!1===t?this.each(function(){var t=u(this).data("mediaelementplayer");t&&t.remove(),u(this).removeData("mediaelementplayer")}):this.each(function(){u(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,t))}),this},u(document).ready(function(){u(".mejs-player").mediaelementplayer()})),window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(l){l.extend(mejs.MepDefaults,{playText:mejs.i18n.t("Play"),pauseText:mejs.i18n.t("Pause")}),l.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,e,n,i){var o=this.options,a=l('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+this.id+'" title="'+o.playText+'" aria-label="'+o.playText+'"></button></div>').appendTo(e).click(function(t){return t.preventDefault(),i.paused?i.play():i.pause(),!1}),r=a.find("button");function s(t){"play"===t?(a.removeClass("mejs-play").addClass("mejs-pause"),r.attr({title:o.pauseText,"aria-label":o.pauseText})):(a.removeClass("mejs-pause").addClass("mejs-play"),r.attr({title:o.playText,"aria-label":o.playText}))}s("pse"),i.addEventListener("play",function(){s("play")},!1),i.addEventListener("playing",function(){s("play")},!1),i.addEventListener("pause",function(){s("pse")},!1),i.addEventListener("paused",function(){s("pse")},!1)}})}(mejs.$),function(o){o.extend(mejs.MepDefaults,{stopText:"Stop"}),o.extend(MediaElementPlayer.prototype,{buildstop:function(t,e,n,i){o('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+this.id+'" title="'+this.options.stopText+'" aria-label="'+this.options.stopText+'"></button></div>').appendTo(e).click(function(){i.paused||i.pause(),0<i.currentTime&&(i.setCurrentTime(0),i.pause(),e.find(".mejs-time-current").width("0px"),e.find(".mejs-time-handle").css("left","0px"),e.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0,t.options)),e.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0,t.options)),n.find(".mejs-poster").show())})}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{enableProgressTooltip:!0,progressHelpText:mejs.i18n.t("Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.")}),a.extend(MediaElementPlayer.prototype,{buildprogress:function(s,t,e,l){var u=this,c=!1,r=0,d=!1,n=s.options.autoRewind,i=s.options.enableProgressTooltip?'<span class="mejs-time-float"><span class="mejs-time-float-current">00:00</span><span class="mejs-time-float-corner"></span></span>':"";a('<div class="mejs-time-rail"><span  class="mejs-time-total mejs-time-slider"><span class="mejs-time-buffering"></span><span class="mejs-time-loaded"></span><span class="mejs-time-current"></span><span class="mejs-time-handle"></span>'+i+"</span></div>").appendTo(t),t.find(".mejs-time-buffering").hide(),u.total=t.find(".mejs-time-total"),u.loaded=t.find(".mejs-time-loaded"),u.current=t.find(".mejs-time-current"),u.handle=t.find(".mejs-time-handle"),u.timefloat=t.find(".mejs-time-float"),u.timefloatcurrent=t.find(".mejs-time-float-current"),u.slider=t.find(".mejs-time-slider");function o(t){var e,n=u.total.offset(),i=u.total.width(),o=0,a=0,r=0;e=t.originalEvent&&t.originalEvent.changedTouches?t.originalEvent.changedTouches[0].pageX:t.changedTouches?t.changedTouches[0].pageX:t.pageX,l.duration&&(e<n.left?e=n.left:e>i+n.left&&(e=i+n.left),a=(o=(r=e-n.left)/i)<=.02?0:o*l.duration,c&&a!==l.currentTime&&l.setCurrentTime(a),mejs.MediaFeatures.hasTouch||(u.timefloat.css("left",r),u.timefloatcurrent.html(mejs.Utility.secondsToTimeCode(a,s.options)),u.timefloat.show()))}function h(){1e3<=new Date-r&&l.play()}u.slider.bind("focus",function(t){s.options.autoRewind=!1}),u.slider.bind("blur",function(t){s.options.autoRewind=n}),u.slider.bind("keydown",function(t){1e3<=new Date-r&&(d=l.paused);var e=t.keyCode,n=l.duration,i=l.currentTime,o=s.options.defaultSeekForwardInterval(l),a=s.options.defaultSeekBackwardInterval(l);switch(e){case 37:case 40:i-=a;break;case 39:case 38:i+=o;break;case 36:i=0;break;case 35:i=n;break;case 32:case 13:return void(l.paused?l.play():l.pause());default:return}return i=i<0?0:n<=i?n:Math.floor(i),r=new Date,d||l.pause(),i<l.duration&&!d&&setTimeout(h,1100),l.setCurrentTime(i),t.preventDefault(),t.stopPropagation(),!1}),u.total.bind("mousedown touchstart",function(t){1!==t.which&&0!==t.which||(c=!0,o(t),u.globalBind("mousemove.dur touchmove.dur",function(t){o(t)}),u.globalBind("mouseup.dur touchend.dur",function(t){c=!1,void 0!==u.timefloat&&u.timefloat.hide(),u.globalUnbind(".dur")}))}).bind("mouseenter",function(t){u.globalBind("mousemove.dur",function(t){o(t)}),void 0===u.timefloat||mejs.MediaFeatures.hasTouch||u.timefloat.show()}).bind("mouseleave",function(t){c||(u.globalUnbind(".dur"),void 0!==u.timefloat&&u.timefloat.hide())}),l.addEventListener("progress",function(t){s.setProgressRail(t),s.setCurrentRail(t)},!1),l.addEventListener("timeupdate",function(t){var e,n,i,o;s.setProgressRail(t),s.setCurrentRail(t),e=l.currentTime,n=mejs.i18n.t("Time Slider"),i=mejs.Utility.secondsToTimeCode(e,s.options),o=l.duration,u.slider.attr({"aria-label":n,"aria-valuemin":0,"aria-valuemax":o,"aria-valuenow":e,"aria-valuetext":i,role:"slider",tabindex:0})},!1),u.container.on("controlsresize",function(t){s.setProgressRail(t),s.setCurrentRail(t)})},setProgressRail:function(t){var e=void 0!==t?t.target:this.media,n=null;e&&e.buffered&&0<e.buffered.length&&e.buffered.end&&e.duration?n=e.buffered.end(e.buffered.length-1)/e.duration:e&&void 0!==e.bytesTotal&&0<e.bytesTotal&&void 0!==e.bufferedBytes?n=e.bufferedBytes/e.bytesTotal:t&&t.lengthComputable&&0!==t.total&&(n=t.loaded/t.total),null!==n&&(n=Math.min(1,Math.max(0,n)),this.loaded&&this.total&&this.loaded.width(this.total.width()*n))},setCurrentRail:function(){var t=this;if(void 0!==t.media.currentTime&&t.media.duration&&t.total&&t.handle){var e=Math.round(t.total.width()*t.media.currentTime/t.media.duration),n=e-Math.round(t.handle.outerWidth(!0)/2);t.current.width(e),t.handle.css("left",n)}}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:"<span> | </span>"}),a.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,e,n,i){var o=this;a('<div class="mejs-time" role="timer" aria-live="off"><span class="mejs-currenttime">'+mejs.Utility.secondsToTimeCode(0,t.options)+"</span></div>").appendTo(e),o.currenttime=o.controls.find(".mejs-currenttime"),i.addEventListener("timeupdate",function(){o.controlsAreVisible&&t.updateCurrent()},!1)},buildduration:function(t,e,n,i){var o=this;0<e.children().last().find(".mejs-currenttime").length?a(o.options.timeAndDurationSeparator+'<span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(o.options.duration,o.options)+"</span>").appendTo(e.find(".mejs-time")):(e.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),a('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(o.options.duration,o.options)+"</span></div>").appendTo(e)),o.durationD=o.controls.find(".mejs-duration"),i.addEventListener("timeupdate",function(){o.controlsAreVisible&&t.updateDuration()},!1)},updateCurrent:function(){var t=this.media.currentTime;isNaN(t)&&(t=0),this.currenttime&&this.currenttime.html(mejs.Utility.secondsToTimeCode(t,this.options))},updateDuration:function(){var t=this.media.duration;0<this.options.duration&&(t=this.options.duration),isNaN(t)&&(t=0),this.container.toggleClass("mejs-long-video",3600<t),this.durationD&&0<t&&this.durationD.html(mejs.Utility.secondsToTimeCode(t,this.options))}})}(mejs.$),function(f){f.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),allyVolumeControlText:mejs.i18n.t("Use Up/Down Arrow keys to increase or decrease volume."),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"}),f.extend(MediaElementPlayer.prototype,{buildvolume:function(t,e,n,a){if(!mejs.MediaFeatures.isAndroid&&!mejs.MediaFeatures.isiOS||!this.options.hideVolumeOnTouchDevices){function i(t){var e=null,n=u.offset();if("vertical"===r){var i=u.height();if(e=(i-(t.pageY-n.top))/i,0===n.top||0===n.left)return}else{var o=u.width();e=(t.pageX-n.left)/o}e=Math.max(0,e),e=Math.min(e,1),h(e),0===e?a.setMuted(!0):a.setMuted(!1),a.setVolume(e)}var o=this,r=o.isVideo?o.options.videoVolume:o.options.audioVolume,s="horizontal"==r?f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+o.id+'" title="'+o.options.muteText+'" aria-label="'+o.options.muteText+'"></button></div><a href="javascript:void(0);" class="mejs-horizontal-volume-slider"><span class="mejs-offscreen">'+o.options.allyVolumeControlText+'</span><div class="mejs-horizontal-volume-total"></div><div class="mejs-horizontal-volume-current"></div><div class="mejs-horizontal-volume-handle"></div></a>').appendTo(e):f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+o.id+'" title="'+o.options.muteText+'" aria-label="'+o.options.muteText+'"></button><a href="javascript:void(0);" class="mejs-volume-slider"><span class="mejs-offscreen">'+o.options.allyVolumeControlText+'</span><div class="mejs-volume-total"></div><div class="mejs-volume-current"></div><div class="mejs-volume-handle"></div></a></div>').appendTo(e),l=o.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),u=o.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),c=o.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),d=o.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),h=function(t,e){if(!l.is(":visible")&&void 0===e)return l.show(),h(t,!0),void l.hide();t=Math.max(0,t),0===(t=Math.min(t,1))?(s.removeClass("mejs-mute").addClass("mejs-unmute"),s.children("button").attr("title",mejs.i18n.t("Unmute")).attr("aria-label",mejs.i18n.t("Unmute"))):(s.removeClass("mejs-unmute").addClass("mejs-mute"),s.children("button").attr("title",mejs.i18n.t("Mute")).attr("aria-label",mejs.i18n.t("Mute")));var n=u.position();if("vertical"==r){var i=u.height(),o=i-i*t;d.css("top",Math.round(n.top+o-d.height()/2)),c.height(i-o),c.css("top",n.top+o)}else{var a=u.width()*t;d.css("left",Math.round(n.left+a-d.width()/2)),c.width(Math.round(a))}},p=!1,m=!1;s.hover(function(){l.show(),m=!0},function(){m=!1,p||"vertical"!=r||l.hide()});l.bind("mouseover",function(){m=!0}).bind("mousedown",function(t){return i(t),o.globalBind("mousemove.vol",function(t){i(t)}),o.globalBind("mouseup.vol",function(){p=!1,o.globalUnbind(".vol"),m||"vertical"!=r||l.hide()}),!(p=!0)}).bind("keydown",function(t){var e=t.keyCode,n=a.volume;switch(e){case 38:n=Math.min(n+.1,1);break;case 40:n=Math.max(0,n-.1);break;default:return!0}return p=!1,h(n),a.setVolume(n),!1}),s.find("button").click(function(){a.setMuted(!a.muted)}),s.find("button").bind("focus",function(){l.show()}),a.addEventListener("volumechange",function(t){var e;p||(a.muted?(h(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(h(a.volume),s.removeClass("mejs-unmute").addClass("mejs-mute"))),e=Math.floor(100*a.volume),l.attr({"aria-label":mejs.i18n.t("Volume Slider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e,"aria-valuetext":e+"%",role:"slider",tabindex:0})},!1),0===t.options.startVolume&&a.setMuted(!0),"native"===a.pluginType&&a.setVolume(t.options.startVolume),o.container.on("controlsresize",function(){a.muted?(h(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(h(a.volume),s.removeClass("mejs-unmute").addClass("mejs-mute"))})}}})}(mejs.$),function(u){u.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")}),u.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,fullscreenMode:"",buildfullscreen:function(n,t,e,i){if(n.isVideo){n.isInIframe=window.location!=window.parent.location,i.addEventListener("loadstart",function(){n.detectFullscreenMode()});var o=this,a=null,r=u('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+o.id+'" title="'+o.options.fullscreenText+'" aria-label="'+o.options.fullscreenText+'"></button></div>').appendTo(t).on("click",function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}).on("mouseover",function(){if("plugin-hover"==o.fullscreenMode){null!==a&&(clearTimeout(a),delete a);var t=r.offset(),e=n.container.offset();i.positionFullscreenButton(t.left-e.left,t.top-e.top,!0)}}).on("mouseout",function(){"plugin-hover"==o.fullscreenMode&&(null!==a&&(clearTimeout(a),delete a),a=setTimeout(function(){i.hideFullscreenButton()},1500))});if(n.fullscreenBtn=r,o.globalBind("keydown",function(t){27==t.keyCode&&(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||o.isFullScreen)&&n.exitFullScreen()}),o.normalHeight=0,o.normalWidth=0,mejs.MediaFeatures.hasTrueNativeFullScreen){n.globalBind(mejs.MediaFeatures.fullScreenEventName,function(t){n.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(n.isNativeFullScreen=!0,n.setControlsSize()):(n.isNativeFullScreen=!1,n.exitFullScreen()))})}}},detectFullscreenMode:function(){var t="",e=mejs.MediaFeatures;return e.hasTrueNativeFullScreen&&"native"===this.media.pluginType?t="native-native":e.hasTrueNativeFullScreen&&"native"!==this.media.pluginType&&!e.hasFirefoxPluginMovingProblem?t="plugin-native":this.usePluginFullScreen?mejs.MediaFeatures.supportsPointerEvents?(t="plugin-click",this.createPluginClickThrough()):t="plugin-hover":t="fullwindow",this.fullscreenMode=t},isPluginClickThroughCreated:!1,createPluginClickThrough:function(){var r=this;if(!r.isPluginClickThroughCreated){function e(){if(i){for(var t in l)l[t].hide();r.fullscreenBtn.css("pointer-events",""),r.controls.css("pointer-events",""),r.media.removeEventListener("click",r.clickToPlayPauseCallback),i=!1}}function n(){var t=fullscreenBtn.offset().left-r.container.offset().left,e=fullscreenBtn.offset().top-r.container.offset().top,n=fullscreenBtn.outerWidth(!0),i=fullscreenBtn.outerHeight(!0),o=r.container.width(),a=r.container.height();for(s in l)l[s].css({position:"absolute",top:0,left:0});l.top.width(o).height(e),l.left.width(t).height(i).css({top:e}),l.right.width(o-t-n).height(i).css({top:e,left:t+n}),l.bottom.width(o).height(a-i-e).css({top:e+i})}var s,t,i=!1,l={},o=["top","left","right","bottom"];for(r.globalBind("resize",function(){n()}),s=0,t=o.length;s<t;s++)l[o[s]]=u('<div class="mejs-fullscreen-hover" />').appendTo(r.container).mouseover(e).hide();fullscreenBtn.on("mouseover",function(){if(!r.isFullScreen){var t=fullscreenBtn.offset(),e=player.container.offset();for(s in media.positionFullscreenButton(t.left-e.left,t.top-e.top,!1),r.fullscreenBtn.css("pointer-events","none"),r.controls.css("pointer-events","none"),r.media.addEventListener("click",r.clickToPlayPauseCallback),l)l[s].show();n(),i=!0}}),media.addEventListener("fullscreenchange",function(t){r.isFullScreen=!r.isFullScreen,r.isFullScreen?r.media.removeEventListener("click",r.clickToPlayPauseCallback):r.media.addEventListener("click",r.clickToPlayPauseCallback),e()}),r.globalBind("mousemove",function(t){if(i){var e=fullscreenBtn.offset();(t.pageY<e.top||t.pageY>e.top+fullscreenBtn.outerHeight(!0)||t.pageX<e.left||t.pageX>e.left+fullscreenBtn.outerWidth(!0))&&(fullscreenBtn.css("pointer-events",""),r.controls.css("pointer-events",""),i=!1)}}),r.isPluginClickThroughCreated=!0}},cleanfullscreen:function(t){t.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var i=this;mejs.MediaFeatures.isiOS&&mejs.MediaFeatures.hasiOSFullScreen&&"function"==typeof i.media.webkitEnterFullscreen?i.media.webkitEnterFullscreen():(u(document.documentElement).addClass("mejs-fullscreen"),i.normalHeight=i.container.height(),i.normalWidth=i.container.width(),"native-native"===i.fullscreenMode||"plugin-native"===i.fullscreenMode?(mejs.MediaFeatures.requestFullScreen(i.container[0]),i.isInIframe&&setTimeout(function t(){if(i.isNativeFullScreen){var e=u(window).width(),n=screen.width;.002*n<Math.abs(n-e)?i.exitFullScreen():setTimeout(t,500)}},1e3)):i.fullscreeMode,i.container.addClass("mejs-container-fullscreen").width("100%").height("100%"),i.containerSizeTimeout=setTimeout(function(){i.container.css({width:"100%",height:"100%"}),i.setControlsSize()},500),"native"===i.media.pluginType?i.$media.width("100%").height("100%"):(i.container.find(".mejs-shim").width("100%").height("100%"),setTimeout(function(){var t=u(window),e=t.width(),n=t.height();i.media.setVideoSize(e,n)},500)),i.layers.children("div").width("100%").height("100%"),i.fullscreenBtn&&i.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen"),i.setControlsSize(),i.isFullScreen=!0,i.container.find(".mejs-captions-text").css("font-size",screen.width/i.width*1*100+"%"),i.container.find(".mejs-captions-position").css("bottom","45px"),i.container.trigger("enteredfullscreen"))},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout),mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen(),u(document.documentElement).removeClass("mejs-fullscreen"),t.container.removeClass("mejs-container-fullscreen").width(t.normalWidth).height(t.normalHeight),"native"===t.media.pluginType?t.$media.width(t.normalWidth).height(t.normalHeight):(t.container.find(".mejs-shim").width(t.normalWidth).height(t.normalHeight),t.media.setVideoSize(t.normalWidth,t.normalHeight)),t.layers.children("div").width(t.normalWidth).height(t.normalHeight),t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"),t.setControlsSize(),t.isFullScreen=!1,t.container.find(".mejs-captions-text").css("font-size",""),t.container.find(".mejs-captions-position").css("bottom",""),t.container.trigger("exitedfullscreen")}})}(mejs.$),function(g){g.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"}),g.extend(MediaElementPlayer.prototype,{buildspeed:function(t,e,n,i){var o=this;if("native"==o.media.pluginType){for(var a=null,r=null,s=null,l=null,u=[],c=!1,d=0,h=o.options.speeds.length;d<h;d++){var p=o.options.speeds[d];"string"==typeof p?(u.push({name:p+o.options.speedChar,value:p}),p===o.options.defaultSpeed&&(c=!0)):(u.push(p),p.value===o.options.defaultSpeed&&(c=!0))}c||u.push({name:o.options.defaultSpeed+o.options.speedChar,value:o.options.defaultSpeed}),u.sort(function(t,e){return parseFloat(e.value)-parseFloat(t.value)});function m(t){for(d=0,h=u.length;d<h;d++)if(u[d].value===t)return u[d].name}var f='<div class="mejs-button mejs-speed-button"><button type="button">'+m(o.options.defaultSpeed)+'</button><div class="mejs-speed-selector"><ul>';for(d=0,il=u.length;d<il;d++)l=o.id+"-speed-"+u[d].value,f+='<li><input type="radio" name="speed" value="'+u[d].value+'" id="'+l+'" '+(u[d].value===o.options.defaultSpeed?" checked":"")+' /><label for="'+l+'" '+(u[d].value===o.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+u[d].name+"</label></li>";a=g(f+="</ul></div></div>").appendTo(e),r=a.find(".mejs-speed-selector"),s=o.options.defaultSpeed,i.addEventListener("loadedmetadata",function(t){s&&(i.playbackRate=parseFloat(s))},!0),r.on("click",'input[type="radio"]',function(){var t=g(this).attr("value");s=t,i.playbackRate=parseFloat(t),a.find("button").html(m(t)),a.find(".mejs-speed-selected").removeClass("mejs-speed-selected"),a.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")}),a.one("mouseenter focusin",function(){r.height(a.find(".mejs-speed-selector ul").outerHeight(!0)+a.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*r.height()+"px")})}}})}(mejs.$),function(h){h.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),h.extend(MediaElementPlayer.prototype,{hasChapters:!1,cleartracks:function(t,e,n,i){t&&(t.captions&&t.captions.remove(),t.chapters&&t.chapters.remove(),t.captionsText&&t.captionsText.remove(),t.captionsButton&&t.captionsButton.remove())},buildtracks:function(t,e,n,i){if(0!==t.tracks.length){var o,a,r=this,s=r.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':"";if(r.domNode.textTracks)for(o=r.domNode.textTracks.length-1;0<=o;o--)r.domNode.textTracks[o].mode="hidden";r.cleartracks(t,e,n,i),t.chapters=h('<div class="mejs-chapters mejs-layer"></div>').prependTo(n).hide(),t.captions=h('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover" '+s+'><span class="mejs-captions-text"></span></div></div>').prependTo(n).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=h('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+r.id+'" title="'+r.options.tracksText+'" aria-label="'+r.options.tracksText+'"></button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("None")+"</label></li></ul></div></div>").appendTo(e);var l=0;for(o=0;o<t.tracks.length;o++)"subtitles"!==(a=t.tracks[o].kind)&&"captions"!==a||l++;for(r.options.toggleCaptionsButtonWhenOnlyOne&&1==l?t.captionsButton.on("click",function(){lang=null===t.selectedTrack?t.tracks[0].srclang:"none",t.setTrack(lang)}):(t.captionsButton.on("mouseenter focusin",function(){h(this).find(".mejs-captions-selector").removeClass("mejs-offscreen")}).on("click","input[type=radio]",function(){lang=this.value,t.setTrack(lang)}),t.captionsButton.on("mouseleave focusout",function(){h(this).find(".mejs-captions-selector").addClass("mejs-offscreen")})),t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){i.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,o=0;o<t.tracks.length;o++)"subtitles"!==(a=t.tracks[o].kind)&&"captions"!==a||t.addTrackButton(t.tracks[o].srclang,t.tracks[o].label);t.loadNextTrack(),i.addEventListener("timeupdate",function(){t.displayCaptions()},!1),""!==t.options.slidesSelector&&(t.slidesContainer=h(t.options.slidesSelector),i.addEventListener("timeupdate",function(){t.displaySlides()},!1)),i.addEventListener("loadedmetadata",function(){t.displayChapters()},!1),t.container.hover(function(){t.hasChapters&&(t.chapters.removeClass("mejs-offscreen"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!i.paused&&t.chapters.fadeOut(200,function(){h(this).addClass("mejs-offscreen"),h(this).css("display","block")})}),r.container.on("controlsresize",function(){r.adjustLanguageBox()}),null!==t.node.getAttribute("autoplay")&&t.chapters.addClass("mejs-offscreen")}},setTrack:function(t){var e,n=this;if("none"==t)n.selectedTrack=null,n.captionsButton.removeClass("mejs-captions-enabled");else for(e=0;e<n.tracks.length;e++)if(n.tracks[e].srclang==t){null===n.selectedTrack&&n.captionsButton.addClass("mejs-captions-enabled"),n.selectedTrack=n.tracks[e],n.captions.attr("lang",n.selectedTrack.srclang),n.displayCaptions();break}},loadNextTrack:function(){this.trackToLoad++,this.trackToLoad<this.tracks.length?(this.isLoadingTrack=!0,this.loadTrack(this.trackToLoad)):(this.isLoadingTrack=!1,this.checkForTracks())},loadTrack:function(t){var e=this,n=e.tracks[t];h.ajax({url:n.src,dataType:"text",success:function(t){"string"==typeof t&&/<tt\s+xml/gi.exec(t)?n.entries=mejs.TrackFormatParser.dfxp.parse(t):n.entries=mejs.TrackFormatParser.webvtt.parse(t),n.isLoaded=!0,e.enableTrackButton(n.srclang,n.label),e.loadNextTrack(),"chapters"==n.kind&&e.media.addEventListener("play",function(){0<e.media.duration&&e.displayChapters(n)},!1),"slides"==n.kind&&e.setupSlides(n)},error:function(){e.removeTrackButton(n.srclang),e.loadNextTrack()}})},enableTrackButton:function(t,e){""===e&&(e=mejs.language.codes[t]||t),this.captionsButton.find("input[value="+t+"]").prop("disabled",!1).siblings("label").html(e),this.options.startLanguage==t&&h("#"+this.id+"_captions_"+t).prop("checked",!0).trigger("click"),this.adjustLanguageBox()},removeTrackButton:function(t){this.captionsButton.find("input[value="+t+"]").closest("li").remove(),this.adjustLanguageBox()},addTrackButton:function(t,e){""===e&&(e=mejs.language.codes[t]||t),this.captionsButton.find("ul").append(h('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+this.id+"_captions_"+t+'">'+e+" (loading)</label></li>")),this.adjustLanguageBox(),this.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+this.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var t=!1;if(this.options.hideCaptionsButtonWhenEmpty){for(var e=0;e<this.tracks.length;e++){var n=this.tracks[e].kind;if(("subtitles"===n||"captions"===n)&&this.tracks[e].isLoaded){t=!0;break}}t||(this.captionsButton.hide(),this.setControlsSize())}},displayCaptions:function(){if(void 0!==this.tracks){var t,e=this.selectedTrack;if(null!==e&&e.isLoaded){for(t=0;t<e.entries.times.length;t++)if(this.media.currentTime>=e.entries.times[t].start&&this.media.currentTime<=e.entries.times[t].stop)return this.captionsText.html(e.entries.text[t]).attr("class","mejs-captions-text "+(e.entries.times[t].identifier||"")),void this.captions.show().height(0);this.captions.hide()}else this.captions.hide()}},setupSlides:function(t){this.slides=t,this.slides.entries.imgs=[this.slides.entries.text.length],this.showSlide(0)},showSlide:function(t){if(void 0!==this.tracks&&void 0!==this.slidesContainer){var e=this,n=e.slides.entries.text[t],i=e.slides.entries.imgs[t];void 0===i||void 0===i.fadeIn?e.slides.entries.imgs[t]=i=h('<img src="'+n+'">').on("load",function(){i.appendTo(e.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if(void 0!==this.slides){var t,e=this.slides;for(t=0;t<e.entries.times.length;t++)if(this.media.currentTime>=e.entries.times[t].start&&this.media.currentTime<=e.entries.times[t].stop)return void this.showSlide(t)}},displayChapters:function(){var t;for(t=0;t<this.tracks.length;t++)if("chapters"==this.tracks[t].kind&&this.tracks[t].isLoaded){this.drawChapters(this.tracks[t]),this.hasChapters=!0;break}},drawChapters:function(t){var e,n,i=this,o=0,a=0;for(i.chapters.empty(),e=0;e<t.entries.times.length;e++)n=t.entries.times[e].stop-t.entries.times[e].start,(100<(o=Math.floor(n/i.media.duration*100))+a||e==t.entries.times.length-1&&o+a<100)&&(o=100-a),i.chapters.append(h('<div class="mejs-chapter" rel="'+t.entries.times[e].start+'" style="left: '+a.toString()+"%;width: "+o.toString()+'%;"><div class="mejs-chapter-block'+(e==t.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+t.entries.text[e]+'</span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[e].start,i.options)+"–"+mejs.Utility.secondsToTimeCode(t.entries.times[e].stop,i.options)+"</span></div></div>")),a+=o;i.chapters.find("div.mejs-chapter").click(function(){i.media.setCurrentTime(parseFloat(h(this).attr("rel"))),i.media.paused&&i.media.play()}),i.chapters.show()}}),mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}},mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){for(var e,n,i,o=0,a=mejs.TrackFormatParser.split2(t,/\r?\n/),r={text:[],times:[]};o<a.length;o++){if((e=this.pattern_timecode.exec(a[o]))&&o<a.length){for(0<=o-1&&""!==a[o-1]&&(i=a[o-1]),n=a[++o],o++;""!==a[o]&&o<a.length;)n=n+"\n"+a[o],o++;n=h.trim(n).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),r.text.push(n),r.times.push({identifier:i,start:0===mejs.Utility.convertSMPTEtoSeconds(e[1])?.2:mejs.Utility.convertSMPTEtoSeconds(e[1]),stop:mejs.Utility.convertSMPTEtoSeconds(e[3]),settings:e[5]})}i=""}return r}},dfxp:{parse:function(t){var e,n,i=0,o=(t=h(t).filter("tt")).children("div").eq(0),a=o.find("p"),r=t.find("#"+o.attr("style")),s={text:[],times:[]};if(r.length){var l=r.removeAttr("id").get(0).attributes;if(l.length)for(e={},i=0;i<l.length;i++)e[l[i].name.split(":")[1]]=l[i].value}for(i=0;i<a.length;i++){var u,c={start:null,stop:null,style:null};if(a.eq(i).attr("begin")&&(c.start=mejs.Utility.convertSMPTEtoSeconds(a.eq(i).attr("begin"))),!c.start&&a.eq(i-1).attr("end")&&(c.start=mejs.Utility.convertSMPTEtoSeconds(a.eq(i-1).attr("end"))),a.eq(i).attr("end")&&(c.stop=mejs.Utility.convertSMPTEtoSeconds(a.eq(i).attr("end"))),!c.stop&&a.eq(i+1).attr("begin")&&(c.stop=mejs.Utility.convertSMPTEtoSeconds(a.eq(i+1).attr("begin"))),e)for(var d in u="",e)u+=d+":"+e[d]+";";u&&(c.style=u),0===c.start&&(c.start=.2),s.times.push(c),n=h.trim(a.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),s.text.push(n)}return s}},split2:function(t,e){return t.split(e)}},3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(t,e){var n,i=[],o="";for(n=0;n<t.length;n++)o+=t.substring(n,n+1),e.test(o)&&(i.push(o.replace(e,"")),o="");return i.push(o),i})}(mejs.$),function(l){l.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(t){return void 0===t.enterFullScreen?null:t.isFullScreen?mejs.i18n.t("Turn off Fullscreen"):mejs.i18n.t("Go Fullscreen")},click:function(t){t.isFullScreen?t.exitFullScreen():t.enterFullScreen()}},{render:function(t){return t.media.muted?mejs.i18n.t("Unmute"):mejs.i18n.t("Mute")},click:function(t){t.media.muted?t.setMuted(!1):t.setMuted(!0)}},{isSeparator:!0},{render:function(t){return mejs.i18n.t("Download Video")},click:function(t){window.location.href=t.media.currentSrc}}]}),l.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(e,t,n,i){e.contextMenu=l('<div class="mejs-contextmenu"></div>').appendTo(l("body")).hide(),e.container.bind("contextmenu",function(t){if(e.isContextMenuEnabled)return t.preventDefault(),e.renderContextMenu(t.clientX-1,t.clientY-1),!1}),e.container.bind("click",function(){e.contextMenu.hide()}),e.contextMenu.bind("mouseleave",function(){e.startContextMenuTimer()})},cleancontextmenu:function(t){t.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var t=this;t.killContextMenuTimer(),t.contextMenuTimer=setTimeout(function(){t.hideContextMenu(),t.killContextMenuTimer()},750)},killContextMenuTimer:function(){var t=this.contextMenuTimer;null!=t&&(clearTimeout(t),delete t,t=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,e){for(var i=this,n="",o=i.options.contextMenuItems,a=0,r=o.length;a<r;a++)if(o[a].isSeparator)n+='<div class="mejs-contextmenu-separator"></div>';else{var s=o[a].render(i);null!=s&&(n+='<div class="mejs-contextmenu-item" data-itemindex="'+a+'" id="element-'+1e6*Math.random()+'">'+s+"</div>")}i.contextMenu.empty().append(l(n)).css({top:e,left:t}).show(),i.contextMenu.find(".mejs-contextmenu-item").each(function(){var t=l(this),e=parseInt(t.data("itemindex"),10),n=i.options.contextMenuItems[e];void 0!==n.show&&n.show(t,i),t.click(function(){void 0!==n.click&&n.click(i),i.contextMenu.hide()})}),setTimeout(function(){i.killControlsTimer("rev3")},100)}})}(mejs.$),function(r){r.extend(mejs.MepDefaults,{skipBackInterval:30,skipBackText:mejs.i18n.t("Skip back %1 seconds")}),r.extend(MediaElementPlayer.prototype,{buildskipback:function(t,e,n,i){var o=this,a=o.options.skipBackText.replace("%1",o.options.skipBackInterval);r('<div class="mejs-button mejs-skip-back-button"><button type="button" aria-controls="'+o.id+'" title="'+a+'" aria-label="'+a+'">'+o.options.skipBackInterval+"</button></div>").appendTo(e).click(function(){i.setCurrentTime(Math.max(i.currentTime-o.options.skipBackInterval,0)),r(this).find("button").blur()})}})}(mejs.$),function(a){a.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")}),a.extend(MediaElementPlayer.prototype,{buildpostroll:function(e,t,n,i){var o=this.container.find('link[rel="postroll"]').attr("href");void 0!==o&&(e.postroll=a('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+this.options.postrollCloseText+'</a><div class="mejs-postroll-layer-content"></div></div>').prependTo(n).hide(),this.media.addEventListener("ended",function(t){a.ajax({dataType:"html",url:o,success:function(t,e){n.find(".mejs-postroll-layer-content").html(t)}}),e.postroll.show()},!1))}})}(mejs.$),define("castle-url/libs/mediaelement/build/mediaelement-and-player",function(){}),define("castle-url/patterns/audio",["jquery","pat-base","underscore","castle-url/libs/mediaelement/build/mediaelement-and-player"],function(t,e,n){"use strict";return e.extend({name:"audio",trigger:".pat-audio",defaults:{},parser:"mockup",init:function(){this.$el.mediaelementplayer({})}})}),define("castle-url/patterns/video",["jquery","pat-base","underscore","castle-url/libs/mediaelement/build/mediaelement-and-player"],function(t,e,n){"use strict";return e.extend({name:"video",trigger:".pat-video",parse:"mockup",defaults:{},init:function(){void 0===this.$el.attr("controls")?this.applyClickControls():this.$el.mediaelementplayer({})},applyClickControls:function(){this.$el.on("click",function(){this.paused?this.play():this.pause()})}})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("moment",e):t.moment=e()}(this,function(){"use strict";function g(){return ce.apply(null,arguments)}function a(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){for(var n in e)v(e,n)&&(t[n]=e[n]);return v(e,"toString")&&(t.toString=e.toString),v(e,"valueOf")&&(t.valueOf=e.valueOf),t}function l(t,e,n,i){return K(t,e,n,i,!0).utc()}function _(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),t._pf}function u(t){if(null==t._isValid){var e=_(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function c(t){var e=l(NaN);return null!=t?s(_(e),t):_(e).userInvalidated=!0,e}function d(t,e){var n,i,o;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=_(e)),void 0!==e._locale&&(t._locale=e._locale),0<he.length)for(n in he)void 0!==(o=e[i=he[n]])&&(t[i]=o);return t}function h(t){d(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===pe&&(pe=!0,g.updateOffset(this),pe=!1)}function p(t){return t instanceof h||null!=t&&null!=t._isAMomentObject}function m(t){return t<0?Math.ceil(t):Math.floor(t)}function f(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=m(e)),n}function y(t,e,n){var i,o=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(i=0;i<o;i++)(n&&t[i]!==e[i]||!n&&f(t[i])!==f(e[i]))&&r++;return r+a}function n(){}function b(t){return t?t.toLowerCase().replace("_","-"):t}function w(t){var e=null;if(!me[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=de._abbr,require("./locale/"+t),i(e)}catch(t){}return me[t]}function i(t,e){var n;return t&&((n=void 0===e?M(t):o(t,e))&&(de=n)),de._abbr}function o(t,e){return null!==e?(e.abbr=t,me[t]=me[t]||new n,me[t].set(e),i(t),me[t]):(delete me[t],null)}function M(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return de;if(!a(t)){if(e=w(t))return e;t=[t]}return function(t){for(var e,n,i,o,a=0;a<t.length;){for(e=(o=b(t[a]).split("-")).length,n=(n=b(t[a+1]))?n.split("-"):null;0<e;){if(i=w(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&y(o,n,!0)>=e-1)break;e--}a++}return null}(t)}function t(t,e){var n=t.toLowerCase();fe[n]=fe[n+"s"]=fe[e]=t}function T(t){return"string"==typeof t?fe[t]||fe[t.toLowerCase()]:void 0}function L(t){var e,n,i={};for(n in t)v(t,n)&&((e=T(n))&&(i[e]=t[n]));return i}function e(e,n){return function(t){return null!=t?(D(this,e,t),g.updateOffset(this,n),this):k(this,e)}}function k(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function D(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function S(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if("function"==typeof this[t=T(t)])return this[t](e);return this}function x(t,e,n){var i=""+Math.abs(t),o=e-i.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function C(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(ye[t]=o),e&&(ye[e[0]]=function(){return x(o.apply(this,arguments),e[1],e[2])}),n&&(ye[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function E(t,e){return t.isValid()?(e=P(e,t.localeData()),_e[e]=_e[e]||function(n){var i,o,t,a=n.match(ge);for(i=0,o=a.length;i<o;i++)ye[a[i]]?a[i]=ye[a[i]]:a[i]=(t=a[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var e="";for(i=0;i<o;i++)e+=a[i]instanceof Function?a[i].call(t,n):a[i];return e}}(e),_e[e](t)):t.localeData().invalidDate()}function P(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(ve.lastIndex=0;0<=i&&ve.test(t);)t=t.replace(ve,n),ve.lastIndex=0,--i;return t}function Y(t,e,n){var i;je[t]="function"==typeof(i=e)&&"[object Function]"===Object.prototype.toString.call(i)?e:function(t){return t&&n?n:e}}function j(t,e){return v(je,t)?je[t](e._strict,e._locale):new RegExp(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,o){return e||n||i||o}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}function A(t,n){var e,i=n;for("string"==typeof t&&(t=[t]),"number"==typeof n&&(i=function(t,e){e[n]=f(t)}),e=0;e<t.length;e++)Ae[t[e]]=i}function I(t,o){A(t,function(t,e,n,i){n._w=n._w||{},o(t,n._w,n,i)})}function O(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function N(t,e){var n;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(n=Math.min(t.date(),O(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)),t}function H(t){return null!=t?(N(this,t),g.updateOffset(this,!0),this):k(this,"Month")}function R(t){var e,n=t._a;return n&&-2===_(t).overflow&&(e=n[Oe]<0||11<n[Oe]?Oe:n[Ne]<1||n[Ne]>O(n[Ie],n[Oe])?Ne:n[He]<0||24<n[He]||24===n[He]&&(0!==n[Re]||0!==n[Fe]||0!==n[ze])?He:n[Re]<0||59<n[Re]?Re:n[Fe]<0||59<n[Fe]?Fe:n[ze]<0||999<n[ze]?ze:-1,_(t)._overflowDayOfYear&&(e<Ie||Ne<e)&&(e=Ne),_(t).overflow=e),t}function F(t){!1===g.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function z(t,e){var n=!0;return s(function(){return n&&(F(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function B(t){var e,n,i=t._i,o=$e.exec(i);if(o){for(_(t).iso=!0,e=0,n=Ve.length;e<n;e++)if(Ve[e][1].exec(i)){t._f=Ve[e][0];break}for(e=0,n=qe.length;e<n;e++)if(qe[e][1].exec(i)){t._f+=(o[6]||" ")+qe[e][0];break}i.match(Pe)&&(t._f+="Z"),Z(t)}else t._isValid=!1}function U(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function W(t){return $(t)?366:365}function $(t){return t%4==0&&t%100!=0||t%400==0}function V(t,e,n){var i,o=n-e,a=n-t.day();return o<a&&(a-=7),a<o-7&&(a+=7),i=X(t).add(a,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function q(t,e,n){return null!=t?t:null!=e?e:n}function G(t){var e,n,i,o,a,r,s,l,u,c,d,h,p,m,f=[];if(!t._d){for(p=t,m=void 0,m=new Date,i=p._useUTC?[m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()]:[m.getFullYear(),m.getMonth(),m.getDate()],t._w&&null==t._a[Ne]&&null==t._a[Oe]&&(d=c=u=l=s=void 0,null!=(r=(a=t)._w).GG||null!=r.W||null!=r.E?(c=1,d=4,s=q(r.GG,a._a[Ie],V(X(),1,4).year),l=q(r.W,1),u=q(r.E,1)):(c=a._locale._week.dow,d=a._locale._week.doy,s=q(r.gg,a._a[Ie],V(X(),c,d).year),l=q(r.w,1),null!=r.d?(u=r.d)<c&&++l:u=null!=r.e?r.e+c:c),h=function(t,e,n,i,o){var a,r=6+o-i,s=U(t,0,1+r).getUTCDay();return s<o&&(s+=7),{year:0<(a=1+r+7*(e-1)-s+(n=null!=n?+n:o))?t:t-1,dayOfYear:0<a?a:W(t-1)+a}}(s,l,u,d,c),a._a[Ie]=h.year,a._dayOfYear=h.dayOfYear),t._dayOfYear&&(o=q(t._a[Ie],i[Ie]),t._dayOfYear>W(o)&&(_(t)._overflowDayOfYear=!0),n=U(o,0,t._dayOfYear),t._a[Oe]=n.getUTCMonth(),t._a[Ne]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=f[e]=i[e];for(;e<7;e++)t._a[e]=f[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[He]&&0===t._a[Re]&&0===t._a[Fe]&&0===t._a[ze]&&(t._nextDay=!0,t._a[He]=0),t._d=(t._useUTC?U:function(t,e,n,i,o,a,r){var s=new Date(t,e,n,i,o,a,r);return t<1970&&s.setFullYear(t),s}).apply(null,f),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[He]=24)}}function Z(t){if(t._f!==g.ISO_8601){t._a=[],_(t).empty=!0;var e,n,i,o,a,r,s,l,u,c,d,h,p=""+t._i,m=p.length,f=0;for(i=P(t._f,t._locale).match(ge)||[],e=0;e<i.length;e++)o=i[e],(n=(p.match(j(o,t))||[])[0])&&(0<(a=p.substr(0,p.indexOf(n))).length&&_(t).unusedInput.push(a),p=p.slice(p.indexOf(n)+n.length),f+=n.length),ye[o]?(n?_(t).empty=!1:_(t).unusedTokens.push(o),r=o,l=t,null!=(s=n)&&v(Ae,r)&&Ae[r](s,l._a,l,r)):t._strict&&!n&&_(t).unusedTokens.push(o);_(t).charsLeftOver=m-f,0<p.length&&_(t).unusedInput.push(p),!0===_(t).bigHour&&t._a[He]<=12&&0<t._a[He]&&(_(t).bigHour=void 0),t._a[He]=(u=t._locale,c=t._a[He],null==(d=t._meridiem)?c:null!=u.meridiemHour?u.meridiemHour(c,d):(null!=u.isPM&&((h=u.isPM(d))&&c<12&&(c+=12),h||12!==c||(c=0)),c)),G(t),R(t)}else B(t)}function J(t){var e,n,i=t._i,o=t._f;return t._locale=t._locale||M(t._l),null===i||void 0===o&&""===i?c({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),p(i)?new h(R(i)):(a(o)?function(t){var e,n,i,o,a;if(0===t._f.length)return _(t).invalidFormat=!0,t._d=new Date(NaN);for(o=0;o<t._f.length;o++)a=0,e=d({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],Z(e),u(e)&&(a+=_(e).charsLeftOver,a+=10*_(e).unusedTokens.length,_(e).score=a,(null==i||a<i)&&(i=a,n=e));s(t,n||e)}(t):o?Z(t):r(i)?t._d=i:void 0===(n=(e=t)._i)?e._d=new Date:r(n)?e._d=new Date(+n):"string"==typeof n?function(t){var e=Ge.exec(t._i);null!==e?t._d=new Date(+e[1]):(B(t),!1===t._isValid&&(delete t._isValid,g.createFromInputFallback(t)))}(e):a(n)?(e._a=function(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}(n.slice(0),function(t){return parseInt(t,10)}),G(e)):"object"==typeof n?function(t){if(!t._d){var e=L(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],G(t)}}(e):"number"==typeof n?e._d=new Date(n):g.createFromInputFallback(e),t))}function K(t,e,n,i,o){var a,r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=o,r._l=n,r._i=t,r._f=e,r._strict=i,(a=new h(R(J(r))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function X(t,e,n,i){return K(t,e,n,i,!1)}function Q(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return X();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}function tt(t){var e=L(t),n=e.year||0,i=e.quarter||0,o=e.month||0,a=e.week||0,r=e.day||0,s=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*u+6e4*l+36e5*s,this._days=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=M(),this._bubble()}function et(t){return t instanceof tt}function nt(t,n){C(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+x(~~(t/60),2)+n+x(~~t%60,2)})}function it(t){var e=(t||"").match(Pe)||[],n=((e[e.length-1]||[])+"").match(Xe)||["-",0,0],i=60*n[1]+f(n[2]);return"+"===n[0]?i:-i}function ot(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(p(t)||r(t)?+t:+X(t))-n,n._d.setTime(+n._d+i),g.updateOffset(n,!1),n):X(t).local()}function at(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function rt(){return this._isUTC&&0===this._offset}function st(t,e){var n,i,o,a,r,s,l=t,u=null;return et(t)?l={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(l={},e?l[e]=t:l.milliseconds=t):(u=Qe.exec(t))?(n="-"===u[1]?-1:1,l={y:0,d:f(u[Ne])*n,h:f(u[He])*n,m:f(u[Re])*n,s:f(u[Fe])*n,ms:f(u[ze])*n}):(u=tn.exec(t))?(n="-"===u[1]?-1:1,l={y:lt(u[2],n),M:lt(u[3],n),d:lt(u[4],n),h:lt(u[5],n),m:lt(u[6],n),s:lt(u[7],n),w:lt(u[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(a=X(l.from),r=ot(r=X(l.to),a),a.isBefore(r)?s=ut(a,r):((s=ut(r,a)).milliseconds=-s.milliseconds,s.months=-s.months),(l={}).ms=(o=s).milliseconds,l.M=o.months),i=new tt(l),et(t)&&v(t,"_locale")&&(i._locale=t._locale),i}function lt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function ut(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=e-t.clone().add(n.months,"M"),n}function ct(a,r){return function(t,e){var n,i,o;return null===e||isNaN(+e)||(o="moment()."+(i=r)+"(period, number) is deprecated. Please use moment()."+r+"(number, period).",We[i]||(F(o),We[i]=!0),n=t,t=e,e=n),dt(this,st(t="string"==typeof t?+t:t,e),a),this}}function dt(t,e,n,i){var o=e._milliseconds,a=e._days,r=e._months;i=null==i||i,o&&t._d.setTime(+t._d+o*n),a&&D(t,"Date",k(t,"Date")+a*n),r&&N(t,k(t,"Month")+r*n),i&&g.updateOffset(t,a||r)}function ht(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():E(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function pt(t){var e;return void 0===t?this._locale._abbr:(null!=(e=M(t))&&(this._locale=e),this)}function mt(){return this._locale}function ft(t,e){C(0,[t,t.length],0,e)}function gt(t,e,n){return V(X([t,11,31+e-n]),e,n).week}function vt(t,e){C(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function _t(t,e){return e._meridiemParse}function yt(t,e){e[ze]=f(1e3*("0."+t))}function bt(t){return t}function wt(t,e,n,i){var o=M(),a=l().set(i,e);return o[n](a,t)}function Mt(t,e,n,i,o){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return wt(t,e,n,o);var a,r=[];for(a=0;a<i;a++)r[a]=wt(t,a,n,o);return r}function Tt(t,e,n,i){var o=st(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function Lt(t){return t<0?Math.floor(t):Math.ceil(t)}function kt(t){return 4800*t/146097}function Dt(t){return 146097*t/4800}function St(t){return function(){return this.as(t)}}function xt(t){return function(){return this._data[t]}}function Ct(t,e,n){var i=st(t).abs(),o=jn(i.as("s")),a=jn(i.as("m")),r=jn(i.as("h")),s=jn(i.as("d")),l=jn(i.as("M")),u=jn(i.as("y")),c=(o<An.s?["s",o]:1===a&&["m"])||a<An.m&&["mm",a]||1===r&&["h"]||r<An.h&&["hh",r]||1===s&&["d"]||s<An.d&&["dd",s]||1===l&&["M"]||l<An.M&&["MM",l]||1===u&&["y"]||["yy",u];return c[2]=e,c[3]=0<+t,c[4]=n,function(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}.apply(null,c)}function Et(){var t,e,n=In(this._milliseconds)/1e3,i=In(this._days),o=In(this._months);t=m(n/60),e=m(t/60),n%=60,t%=60;var a=m(o/12),r=o%=12,s=i,l=e,u=t,c=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(r?r+"M":"")+(s?s+"D":"")+(l||u||c?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}function Pt(t,e,n){var i,o;return"m"===n?e?"хвіліна":"хвіліну":"h"===n?e?"гадзіна":"гадзіну":t+" "+(i=+t,o={mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?o[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?o[1]:o[2])}function Yt(t,e,n){var i;return t+" "+(i={mm:"munutenn",MM:"miz",dd:"devezh"}[n],2===t?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(i):i)}function jt(t,e,n){var i=t+" ";switch(n){case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+(1!==t&&(2===t||3===t||4===t)?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return i+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return i+(1===t?"dan":"dana");case"MM":return i+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return i+(1!==t&&(2===t||3===t||4===t)?"godine":"godina")}}function At(t){return 1<t&&t<5&&1!=~~(t/10)}function It(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?o+(At(t)?"minuty":"minut"):o+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(At(t)?"hodiny":"hodin"):o+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?o+(At(t)?"dny":"dní"):o+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?o+(At(t)?"měsíce":"měsíců"):o+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?o+(At(t)?"roky":"let"):o+"lety"}}function Ot(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}function Nt(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}function Ht(t,e,n,i){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?o[n][2]?o[n][2]:o[n][1]:i?o[n][0]:o[n][1]}function Rt(t,e,n,i){var o,a,r="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"m":return i?"minuutin":"minuutti";case"mm":r=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":r=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":r=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":r=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":r=i?"vuoden":"vuotta"}return a=i,((o=t)<10?a?oi[o]:ii[o]:o)+" "+r}function Ft(t,e,n){var i=t+" ";switch(n){case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+(1!==t&&(2===t||3===t||4===t)?"minute":"minuta");case"h":return e?"jedan sat":"jednog sata";case"hh":return i+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return i+(1===t?"dan":"dana");case"MM":return i+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return i+(1!==t&&(2===t||3===t||4===t)?"godine":"godina")}}function zt(t,e,n,i){var o=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return o+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return o+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return o+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return o+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return o+(i||e?" év":" éve")}return""}function Bt(t){return(t?"":"[múlt] ")+"["+ui[this.day()]+"] LT[-kor]"}function Ut(t){return t%100==11||t%10!=1}function Wt(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return e?"mínúta":"mínútu";case"mm":return Ut(t)?o+(e||i?"mínútur":"mínútum"):e?o+"mínúta":o+"mínútu";case"hh":return Ut(t)?o+(e||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return e?"dagur":i?"dag":"degi";case"dd":return Ut(t)?e?o+"dagar":o+(i?"daga":"dögum"):e?o+"dagur":o+(i?"dag":"degi");case"M":return e?"mánuður":i?"mánuð":"mánuði";case"MM":return Ut(t)?e?o+"mánuðir":o+(i?"mánuði":"mánuðum"):e?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return e||i?"ár":"ári";case"yy":return Ut(t)?o+(e||i?"ár":"árum"):o+(e||i?"ár":"ári")}}function $t(t,e,n,i){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?o[n][0]:o[n][1]}function Vt(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return Vt(0==e?t/10:e)}if(t<1e4){for(;10<=t;)t/=10;return Vt(t)}return Vt(t/=1e3)}function qt(t,e,n,i){return e?Zt(n)[0]:i?Zt(n)[1]:Zt(n)[2]}function Gt(t){return t%10==0||10<t&&t<20}function Zt(t){return ci[t].split("_")}function Jt(t,e,n,i){var o=t+" ";return 1===t?o+qt(0,e,n[0],i):e?o+(Gt(t)?Zt(n)[1]:Zt(n)[0]):i?o+Zt(n)[1]:o+(Gt(t)?Zt(n)[1]:Zt(n)[2])}function Kt(t,e,n){return n?e%10==1&&11!==e?t[2]:t[3]:e%10==1&&11!==e?t[0]:t[1]}function Xt(t,e,n){return t+" "+Kt(hi[n],t,e)}function Qt(t,e,n){return Kt(hi[n],t,e)}function te(t){return t%10<5&&1<t%10&&~~(t/10)%10!=1}function ee(t,e,n){var i=t+" ";switch(n){case"m":return e?"minuta":"minutę";case"mm":return i+(te(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return i+(te(t)?"godziny":"godzin");case"MM":return i+(te(t)?"miesiące":"miesięcy");case"yy":return i+(te(t)?"lata":"lat")}}function ne(t,e,n){var i=" ";return(20<=t%100||100<=t&&t%100==0)&&(i=" de "),t+i+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}function ie(t,e,n){var i,o;return"m"===n?e?"минута":"минуту":t+" "+(i=+t,o={mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?o[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?o[1]:o[2])}function oe(t){return 1<t&&t<5}function ae(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"pár sekúnd":"pár sekundami";case"m":return e?"minúta":i?"minútu":"minútou";case"mm":return e||i?o+(oe(t)?"minúty":"minút"):o+"minútami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(oe(t)?"hodiny":"hodín"):o+"hodinami";case"d":return e||i?"deň":"dňom";case"dd":return e||i?o+(oe(t)?"dni":"dní"):o+"dňami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?o+(oe(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?o+(oe(t)?"roky":"rokov"):o+"rokmi"}}function re(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"nekaj sekund":"nekaj sekundami";case"m":return e?"ena minuta":"eno minuto";case"mm":return o+(1===t?e?"minuta":"minuto":2===t?e||i?"minuti":"minutama":t<5?e||i?"minute":"minutami":e||i?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return o+(1===t?e?"ura":"uro":2===t?e||i?"uri":"urama":t<5?e||i?"ure":"urami":e||i?"ur":"urami");case"d":return e||i?"en dan":"enim dnem";case"dd":return o+(1===t?e||i?"dan":"dnem":2===t?e||i?"dni":"dnevoma":e||i?"dni":"dnevi");case"M":return e||i?"en mesec":"enim mesecem";case"MM":return o+(1===t?e||i?"mesec":"mesecem":2===t?e||i?"meseca":"mesecema":t<5?e||i?"mesece":"meseci":e||i?"mesecev":"meseci");case"y":return e||i?"eno leto":"enim letom";case"yy":return o+(1===t?e||i?"leto":"letom":2===t?e||i?"leti":"letoma":t<5?e||i?"leta":"leti":e||i?"let":"leti")}}function se(t,e,n,i){var o={s:["viensas secunds","'iensas secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts"," "+t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras"," "+t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas"," "+t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen"," "+t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars"," "+t+" ars"]};return i||e?o[n][0]:o[n][1].trim()}function le(t,e,n){var i,o;return"m"===n?e?"хвилина":"хвилину":"h"===n?e?"година":"годину":t+" "+(i=+t,o={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?o[0]:2<=i%10&&i%10<=4&&(i%100<10||20<=i%100)?o[1]:o[2])}function ue(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}var ce,de,he=g.momentProperties=[],pe=!1,me={},fe={},ge=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ve=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,_e={},ye={},be=/\d/,we=/\d\d/,Me=/\d{3}/,Te=/\d{4}/,Le=/[+-]?\d{6}/,ke=/\d\d?/,De=/\d{1,3}/,Se=/\d{1,4}/,xe=/[+-]?\d{1,6}/,Ce=/\d+/,Ee=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,Ye=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,je={},Ae={},Ie=0,Oe=1,Ne=2,He=3,Re=4,Fe=5,ze=6;C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),C("MMMM",0,0,function(t){return this.localeData().months(this,t)}),t("month","M"),Y("M",ke),Y("MM",ke,we),Y("MMM",Ye),Y("MMMM",Ye),A(["M","MM"],function(t,e){e[Oe]=f(t)-1}),A(["MMM","MMMM"],function(t,e,n,i){var o=n._locale.monthsParse(t,i,n._strict);null!=o?e[Oe]=o:_(n).invalidMonth=t});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ue="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),We={};g.suppressDeprecationWarnings=!1;var $e=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],qe=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ge=/^\/?Date\((\-?\d+)/i;g.createFromInputFallback=z("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),t("year","y"),Y("Y",Ee),Y("YY",ke,we),Y("YYYY",Se,Te),Y("YYYYY",xe,Le),Y("YYYYYY",xe,Le),A(["YYYYY","YYYYYY"],Ie),A("YYYY",function(t,e){e[Ie]=2===t.length?g.parseTwoDigitYear(t):f(t)}),A("YY",function(t,e){e[Ie]=g.parseTwoDigitYear(t)});var Ze=e("FullYear",!(g.parseTwoDigitYear=function(t){return f(t)+(68<f(t)?1900:2e3)}));C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),Y("w",ke),Y("ww",ke,we),Y("W",ke),Y("WW",ke,we),I(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=f(t)});C("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),Y("DDD",De),Y("DDDD",Me),A(["DDD","DDDD"],function(t,e,n){n._dayOfYear=f(t)}),g.ISO_8601=function(){};var Je=z("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=X.apply(null,arguments);return t<this?this:t}),Ke=z("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=X.apply(null,arguments);return this<t?this:t});nt("Z",":"),nt("ZZ",""),Y("Z",Pe),Y("ZZ",Pe),A(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=it(t)});var Xe=/([\+\-]|\d\d)/gi;g.updateOffset=function(){};var Qe=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,tn=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;st.fn=tt.prototype;var en=ct(1,"add"),nn=ct(-1,"subtract");g.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var on=z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ft("gggg","weekYear"),ft("ggggg","weekYear"),ft("GGGG","isoWeekYear"),ft("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),Y("G",Ee),Y("g",Ee),Y("GG",ke,we),Y("gg",ke,we),Y("GGGG",Se,Te),Y("gggg",Se,Te),Y("GGGGG",xe,Le),Y("ggggg",xe,Le),I(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=f(t)}),I(["gg","GG"],function(t,e,n,i){e[i]=g.parseTwoDigitYear(t)}),C("Q",0,0,"quarter"),t("quarter","Q"),Y("Q",be),A("Q",function(t,e){e[Oe]=3*(f(t)-1)}),C("D",["DD",2],"Do","date"),t("date","D"),Y("D",ke),Y("DD",ke,we),Y("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),A(["D","DD"],Ne),A("Do",function(t,e){e[Ne]=f(t.match(ke)[0])});var an=e("Date",!0);C("d",0,"do","day"),C("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),C("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),C("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),Y("d",ke),Y("e",ke),Y("E",ke),Y("dd",Ye),Y("ddd",Ye),Y("dddd",Ye),I(["dd","ddd","dddd"],function(t,e,n){var i=n._locale.weekdaysParse(t);null!=i?e.d=i:_(n).invalidWeekday=t}),I(["d","e","E"],function(t,e,n,i){e[i]=f(t)});var rn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ln="Su_Mo_Tu_We_Th_Fr_Sa".split("_");C("H",["HH",2],0,"hour"),C("h",["hh",2],0,function(){return this.hours()%12||12}),vt("a",!0),vt("A",!1),t("hour","h"),Y("a",_t),Y("A",_t),Y("H",ke),Y("h",ke),Y("HH",ke,we),Y("hh",ke,we),A(["H","HH"],He),A(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),A(["h","hh"],function(t,e,n){e[He]=f(t),_(n).bigHour=!0});var un=e("Hours",!0);C("m",["mm",2],0,"minute"),t("minute","m"),Y("m",ke),Y("mm",ke,we),A(["m","mm"],Re);var cn=e("Minutes",!1);C("s",["ss",2],0,"second"),t("second","s"),Y("s",ke),Y("ss",ke,we),A(["s","ss"],Fe);var dn,hn=e("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),Y("S",De,be),Y("SS",De,we),Y("SSS",De,Me),dn="SSSS";dn.length<=9;dn+="S")Y(dn,Ce);for(dn="S";dn.length<=9;dn+="S")A(dn,yt);var pn=e("Milliseconds",!1);C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var mn=h.prototype;mn.add=en,mn.calendar=function(t,e){var n=t||X(),i=ot(n,this).startOf("day"),o=this.diff(i,"days",!0),a=o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse";return this.format(e&&e[a]||this.localeData().calendar(a,this,X(n)))},mn.clone=function(){return new h(this)},mn.diff=function(t,e,n){var i,o,a,r,s,l,u,c,d=ot(t,this),h=6e4*(d.utcOffset()-this.utcOffset());return"year"===(e=T(e))||"month"===e||"quarter"===e?(a=this,u=12*((r=d).year()-a.year())+(r.month()-a.month()),c=a.clone().add(u,"months"),l=r-c<0?(s=a.clone().add(u-1,"months"),(r-c)/(c-s)):(s=a.clone().add(1+u,"months"),(r-c)/(s-c)),o=-(u+l),"quarter"===e?o/=3:"year"===e&&(o/=12)):(i=this-d,o="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-h)/864e5:"week"===e?(i-h)/6048e5:i),n?o:m(o)},mn.endOf=function(t){return void 0===(t=T(t))||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},mn.format=function(t){var e=E(this,t||g.defaultFormat);return this.localeData().postformat(e)},mn.from=function(t,e){return this.isValid()?st({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},mn.fromNow=function(t){return this.from(X(),t)},mn.to=function(t,e){return this.isValid()?st({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},mn.toNow=function(t){return this.to(X(),t)},mn.get=S,mn.invalidAt=function(){return _(this).overflow},mn.isAfter=function(t,e){return"millisecond"===(e=T(void 0!==e?e:"millisecond"))?+(t=p(t)?t:X(t))<+this:(p(t)?+t:+X(t))<+this.clone().startOf(e)},mn.isBefore=function(t,e){var n;return"millisecond"===(e=T(void 0!==e?e:"millisecond"))?+this<+(t=p(t)?t:X(t)):(n=p(t)?+t:+X(t),+this.clone().endOf(e)<n)},mn.isBetween=function(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)},mn.isSame=function(t,e){var n;return"millisecond"===(e=T(e||"millisecond"))?+this==+(t=p(t)?t:X(t)):(n=+X(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))},mn.isValid=function(){return u(this)},mn.lang=on,mn.locale=pt,mn.localeData=mt,mn.max=Ke,mn.min=Je,mn.parsingFlags=function(){return s({},_(this))},mn.set=S,mn.startOf=function(t){switch(t=T(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},mn.subtract=nn,mn.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},mn.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},mn.toDate=function(){return this._offset?new Date(+this):this._d},mn.toISOString=ht,mn.toJSON=ht,mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},mn.unix=function(){return Math.floor(this/1e3)},mn.valueOf=function(){return this._d-6e4*(this._offset||0)},mn.year=Ze,mn.isLeapYear=function(){return $(this.year())},mn.weekYear=function(t){var e=V(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},mn.isoWeekYear=function(t){var e=V(this,1,4).year;return null==t?e:this.add(t-e,"y")},mn.quarter=mn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},mn.month=H,mn.daysInMonth=function(){return O(this.year(),this.month())},mn.week=mn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},mn.isoWeek=mn.isoWeeks=function(t){var e=V(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},mn.weeksInYear=function(){var t=this.localeData()._week;return gt(this.year(),t.dow,t.doy)},mn.isoWeeksInYear=function(){return gt(this.year(),1,4)},mn.date=an,mn.day=mn.days=function(t){var e,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-i,"d")):i},mn.weekday=function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},mn.isoWeekday=function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},mn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},mn.hour=mn.hours=un,mn.minute=mn.minutes=cn,mn.second=mn.seconds=hn,mn.millisecond=mn.milliseconds=pn,mn.utcOffset=function(t,e){var n,i=this._offset||0;return null!=t?("string"==typeof t&&(t=it(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(n=at(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==t&&(!e||this._changeInProgress?dt(this,st(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,g.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:at(this)},mn.utc=function(t){return this.utcOffset(0,t)},mn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(at(this),"m")),this},mn.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(it(this._i)),this},mn.hasAlignedHourOffset=function(t){return t=t?X(t).utcOffset():0,(this.utcOffset()-t)%60==0},mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},mn.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var t={};if(d(t,this),(t=J(t))._a){var e=(t._isUTC?l:X)(t._a);this._isDSTShifted=this.isValid()&&0<y(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted},mn.isLocal=function(){return!this._isUTC},mn.isUtcOffset=function(){return this._isUTC},mn.isUtc=rt,mn.isUTC=rt,mn.zoneAbbr=function(){return this._isUTC?"UTC":""},mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},mn.dates=z("dates accessor is deprecated. Use date instead.",an),mn.months=z("months accessor is deprecated. Use month instead",H),mn.years=z("years accessor is deprecated. Use year instead",Ze),mn.zone=z("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()});var fn=mn,gn=n.prototype;gn._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},gn.calendar=function(t,e,n){var i=this._calendar[t];return"function"==typeof i?i.call(e,n):i},gn._longDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},gn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gn._invalidDate="Invalid date",gn.invalidDate=function(){return this._invalidDate},gn._ordinal="%d",gn.ordinal=function(t){return this._ordinal.replace("%d",t)},gn._ordinalParse=/\d{1,2}/,gn.preparse=bt,gn.postformat=bt,gn._relativeTime={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},gn.relativeTime=function(t,e,n,i){var o=this._relativeTime[n];return"function"==typeof o?o(t,e,n,i):o.replace(/%d/i,t)},gn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},gn.set=function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},gn.months=function(t){return this._months[t.month()]},gn._months=Be,gn.monthsShort=function(t){return this._monthsShort[t.month()]},gn._monthsShort=Ue,gn.monthsParse=function(t,e,n){var i,o,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=l([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},gn.week=function(t){return V(t,this._week.dow,this._week.doy).week},gn._week={dow:0,doy:6},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(t){return this._weekdays[t.day()]},gn._weekdays=rn,gn.weekdaysMin=function(t){return this._weekdaysMin[t.day()]},gn._weekdaysMin=ln,gn.weekdaysShort=function(t){return this._weekdaysShort[t.day()]},gn._weekdaysShort=sn,gn.weekdaysParse=function(t){var e,n,i;for(this._weekdaysParse=this._weekdaysParse||[],e=0;e<7;e++)if(this._weekdaysParse[e]||(n=X([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},gn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gn._meridiemParse=/[ap]\.?m?\.?/i,gn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},i("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===f(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),g.lang=z("moment.lang is deprecated. Use moment.locale instead.",i),g.langData=z("moment.langData is deprecated. Use moment.localeData instead.",M);var vn=Math.abs,_n=St("ms"),yn=St("s"),bn=St("m"),wn=St("h"),Mn=St("d"),Tn=St("w"),Ln=St("M"),kn=St("y"),Dn=xt("milliseconds"),Sn=xt("seconds"),xn=xt("minutes"),Cn=xt("hours"),En=xt("days"),Pn=xt("months"),Yn=xt("years"),jn=Math.round,An={s:45,m:45,h:22,d:26,M:11},In=Math.abs,On=tt.prototype;On.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},On.add=function(t,e){return Tt(this,t,e,1)},On.subtract=function(t,e){return Tt(this,t,e,-1)},On.as=function(t){var e,n,i=this._milliseconds;if("month"===(t=T(t))||"year"===t)return e=this._days+i/864e5,n=this._months+kt(e),"month"===t?n:n/12;switch(e=this._days+Math.round(Dt(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},On.asMilliseconds=_n,On.asSeconds=yn,On.asMinutes=bn,On.asHours=wn,On.asDays=Mn,On.asWeeks=Tn,On.asMonths=Ln,On.asYears=kn,On.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12)},On._bubble=function(){var t,e,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return 0<=a&&0<=r&&0<=s||a<=0&&r<=0&&s<=0||(a+=864e5*Lt(Dt(s)+r),s=r=0),l.milliseconds=a%1e3,t=m(a/1e3),l.seconds=t%60,e=m(t/60),l.minutes=e%60,n=m(e/60),l.hours=n%24,r+=m(n/24),s+=o=m(kt(r)),r-=Lt(Dt(o)),i=m(s/12),s%=12,l.days=r,l.months=s,l.years=i,this},On.get=function(t){return this[(t=T(t))+"s"]()},On.milliseconds=Dn,On.seconds=Sn,On.minutes=xn,On.hours=Cn,On.days=En,On.weeks=function(){return m(this.days()/7)},On.months=Pn,On.years=Yn,On.humanize=function(t){var e=this.localeData(),n=Ct(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},On.toISOString=Et,On.toString=Et,On.toJSON=Et,On.locale=pt,On.localeData=mt,On.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Et),On.lang=on,C("X",0,0,"unix"),C("x",0,0,"valueOf"),Y("x",Ee),Y("X",/[+-]?\d+(\.\d{1,3})?/),A("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),A("x",function(t,e,n){n._d=new Date(f(t))}),g.version="2.10.6",ce=X,g.fn=fn,g.min=function(){return Q("isBefore",[].slice.call(arguments,0))},g.max=function(){return Q("isAfter",[].slice.call(arguments,0))},g.utc=l,g.unix=function(t){return X(1e3*t)},g.months=function(t,e){return Mt(t,e,"months",12,"month")},g.isDate=r,g.locale=i,g.invalid=c,g.duration=st,g.isMoment=p,g.weekdays=function(t,e){return Mt(t,e,"weekdays",7,"day")},g.parseZone=function(){return X.apply(null,arguments).parseZone()},g.localeData=M,g.isDuration=et,g.monthsShort=function(t,e){return Mt(t,e,"monthsShort",12,"month")},g.weekdaysMin=function(t,e){return Mt(t,e,"weekdaysMin",7,"day")},g.defineLocale=o,g.weekdaysShort=function(t,e){return Mt(t,e,"weekdaysShort",7,"day")},g.normalizeUnits=T,g.relativeTimeThreshold=function(t,e){return void 0!==An[t]&&(void 0===e?An[t]:(An[t]=e,!0))};function Nn(t){return 0===t?0:1===t?1:2===t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5}function Hn(r){return function(t,e,n,i){var o=Nn(t),a=Wn[r][Nn(t)];return 2===o&&(a=a[e?0:1]),a.replace(/%d/i,t)}}var Rn=g,Fn=(Rn.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?"ste":"de")},week:{dow:1,doy:4}}),Rn.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),zn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Bn=(Rn.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return zn[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return Fn[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),Rn.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}}),{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"}),Un={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Wn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},$n=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"],Vn=(Rn.defineLocale("ar",{months:$n,monthsShort:$n,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Hn("s"),m:Hn("m"),mm:Hn("m"),h:Hn("h"),hh:Hn("h"),d:Hn("d"),dd:Hn("d"),M:Hn("M"),MM:Hn("M"),y:Hn("y"),yy:Hn("y")},preparse:function(t){return t.replace(/\u200f/g,"").replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return Un[t]}).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,function(t){return Bn[t]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),{1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"}),qn=(Rn.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var e=t%10;return t+(Vn[e]||Vn[t%100-e]||Vn[100<=t?100:null])},week:{dow:1,doy:7}}),Rn.defineLocale("be",{months:function(t,e){return{nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(e)?"accusative":"nominative"][t.month()]},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:function(t,e){return{nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")}[/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(e)?"accusative":"nominative"][t.day()]},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:Pt,mm:Pt,h:Pt,hh:Pt,d:"дзень",dd:Pt,M:"месяц",MM:Pt,y:"год",yy:Pt},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}}),Rn.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0==n?t+"-ен":10<n&&n<20?t+"-ти":1==e?t+"-ви":2==e?t+"-ри":7==e||8==e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}}),{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}),Gn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},Zn=(Rn.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্