// 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.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;++db;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.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="",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.lengthh;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="
a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",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]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/\s*$/g,ra={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:k.htmlSerialize?[0,"",""]:[1,"X
","
"]},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>")+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)?""!==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>");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("',"function"==typeof $f?(_=$f(p.childNodes[0]),v=-1,_.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)}_.playVideo=function(){_.api("play")},_.stopVideo=function(){_.api("unload")},_.pauseVideo=function(){_.api("pause")},_.seekTo=function(t){_.api("seekTo",t)},_.setVolume=function(t){_.api("setVolume",t)},_.setMuted=function(t){t?(_.lastVolume=_.api("getVolume"),_.api("setVolume",0)):(_.api("setVolume",_.lastVolume),delete _.lastVolume)},_.getPlayerState=function(){return v},_.addEvent("play",function(){v=1,e(0,h,"play"),e(0,h,"playing")}),_.addEvent("pause",function(){v=2,e(0,h,"pause")}),_.addEvent("finish",function(){e(v=0,h,"ended")}),_.addEvent("playProgress",function(t){e(0,h,"timeupdate",t)}),_.addEvent("seek",function(t){v=3,e(0,h,"seeked",t)}),_.addEvent("loadProgress",function(t){v=3,e(0,h,"progress",t)}),h.pluginElement=p,h.pluginApi=_,h.success(h,h.pluginElement)})):console.warn("You need to include froogaloop for vimeo to work")}return l.style.display="none",l.removeAttribute("autoplay"),h},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){var e;this.isIframeStarted||((e=document.createElement("script")).src=t.scheme+"www.youtube.com/player_api",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t),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,n={type:n,target:e};t&&t.getDuration&&(e.currentTime=n.currentTime=t.getCurrentTime(),e.duration=n.duration=t.getDuration(),n.paused=e.paused,n.ended=e.ended,n.muted=t.isMuted(),n.volume=t.getVolume()/100,n.bytesTotal=t.getVideoBytesTotal(),n.bufferedBytes=t.getVideoBytesLoaded(),i=n.bufferedBytes/n.bytesTotal*n.duration,n.target.buffered=n.buffered={start:function(t){return 0},end:function(t){return i},length:1}),e.dispatchEvent(n)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;0'):t.container.innerHTML=''},flashReady:function(t){var e=this.flashPlayers[t],n=document.getElementById(t),i=e.pluginMediaElement,t=(i.pluginApi=i.pluginElement=n,e.success(i,i.pluginElement),n.cueVideoById(e.videoId),e.containerId+"_callback");window[t]=function(t){mejs.YouTubeApi.handleStateChange(t,n,i)},n.addEventListener("onStateChange",t),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){var n;if("string"==typeof t&&0'+i+"").insertBefore(n.$media),n.container=l('
').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('
')),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"),t=(i=n.isVideo?"video":"audio").substring(0,1).toUpperCase()+i.substring(1),0
').appendTo(n),n=t.$media.attr("poster");(n=""!==t.options.poster?t.options.poster:n)?this.setPoster(n):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");(n=0===n.length?l('').appendTo(e):n).attr("src",t),e.css({"background-image":"url("+t+")"})},buildoverlays:function(e,t,n,i){var o,a,s,r=this;e.isVideo&&(o=l('
').hide().appendTo(n),a=l('
').hide().appendTo(n),s=l('
').appendTo(n).bind("click",function(){var t,e;r.options.clickToPlayPause&&(i.paused&&i.play(),e=(t=l(this).find(".mejs-overlay-button")).attr("aria-pressed"),t.attr("aria-pressed",!!e))}),i.addEventListener("play",function(){s.hide(),o.hide(),t.find(".mejs-time-buffering").hide(),a.hide()},!1),i.addEventListener("playing",function(){s.hide(),o.hide(),t.find(".mejs-time-buffering").hide(),a.hide()},!1),i.addEventListener("seeking",function(){o.show(),t.find(".mejs-time-buffering").show()},!1),i.addEventListener("seeked",function(){o.hide(),t.find(".mejs-time-buffering").hide()},!1),i.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||s.show()},!1),i.addEventListener("waiting",function(){o.show(),t.find(".mejs-time-buffering").show()},!1),i.addEventListener("loadeddata",function(){o.show(),t.find(".mejs-time-buffering").show(),mejs.MediaFeatures.isAndroid&&(i.canplayTimeout=window.setTimeout(function(){var t;if(document.createEvent)return(t=document.createEvent("HTMLEvents")).initEvent("canplay",!0,!0),i.dispatchEvent(t)},300))},!1),i.addEventListener("canplay",function(){o.hide(),t.find(".mejs-time-buffering").hide(),clearTimeout(i.canplayTimeout)},!1),i.addEventListener("error",function(t){r.handleError(t),o.hide(),s.hide(),a.show(),a.find(".mejs-overlay-error").html("Error loading this resource")},!1),i.addEventListener("keydown",function(t){r.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!==l(t.target).closest(".mejs-container").length&&l(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!==l(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').appendTo(e).click(function(t){return t.preventDefault(),i.paused?i.play():i.pause(),!1}),s=a.find("button");function r(t){"play"===t?(a.removeClass("mejs-play").addClass("mejs-pause"),s.attr({title:o.pauseText,"aria-label":o.pauseText})):(a.removeClass("mejs-pause").addClass("mejs-play"),s.attr({title:o.playText,"aria-label":o.playText}))}r("pse"),i.addEventListener("play",function(){r("play")},!1),i.addEventListener("playing",function(){r("play")},!1),i.addEventListener("pause",function(){r("pse")},!1),i.addEventListener("paused",function(){r("pse")},!1)}})}(mejs.$),function(o){o.extend(mejs.MepDefaults,{stopText:"Stop"}),o.extend(MediaElementPlayer.prototype,{buildstop:function(t,e,n,i){o('
').appendTo(e).click(function(){i.paused||i.pause(),0n+e.left&&(t=n+e.left),n=(e=(t=t-e.left)/n)<=.02?0:e*r.duration,i&&n!==r.currentTime&&r.setCurrentTime(n),mejs.MediaFeatures.hasTouch||(o.timefloat.css("left",t),o.timefloatcurrent.html(mejs.Utility.secondsToTimeCode(n,s.options)),o.timefloat.show()))}function l(){1e3<=new Date-u&&r.play()}var o=this,i=!1,u=0,c=!1,a=s.options.autoRewind,d=s.options.enableProgressTooltip?'00:00':"";h('
'+d+"
").appendTo(t),t.find(".mejs-time-buffering").hide(),o.total=t.find(".mejs-time-total"),o.loaded=t.find(".mejs-time-loaded"),o.current=t.find(".mejs-time-current"),o.handle=t.find(".mejs-time-handle"),o.timefloat=t.find(".mejs-time-float"),o.timefloatcurrent=t.find(".mejs-time-float-current"),o.slider=t.find(".mejs-time-slider");o.slider.bind("focus",function(t){s.options.autoRewind=!1}),o.slider.bind("blur",function(t){s.options.autoRewind=a}),o.slider.bind("keydown",function(t){1e3<=new Date-u&&(c=r.paused);var e=t.keyCode,n=r.duration,i=r.currentTime,o=s.options.defaultSeekForwardInterval(r),a=s.options.defaultSeekBackwardInterval(r);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(r.paused?r.play():r.pause());default:return}return i=i<0?0:n<=i?n:Math.floor(i),u=new Date,c||r.pause(),i | "}),a.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,e,n,i){var o=this;a('
'+mejs.Utility.secondsToTimeCode(0,t.options)+"
").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'+mejs.Utility.secondsToTimeCode(o.options.duration,o.options)+"").appendTo(e.find(".mejs-time")):(e.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),a('
'+mejs.Utility.secondsToTimeCode(o.options.duration,o.options)+"
").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'+i.options.allyVolumeControlText+'
':'').appendTo(e),r=i.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),l=i.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),u=i.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),c=i.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),d=function(t,e){var n,i;r.is(":visible")||void 0!==e?(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"))),e=l.position(),"vertical"==a?(n=(i=l.height())-i*t,c.css("top",Math.round(e.top+n-c.height()/2)),u.height(i-n),u.css("top",e.top+n)):(i=l.width()*t,c.css("left",Math.round(e.left+i-c.width()/2)),u.width(Math.round(i)))):(r.show(),d(t,!0),r.hide())},m=p=!(h=function(t){var e=null,n=l.offset();if("vertical"===a){var i=l.height(),e=(i-(t.pageY-n.top))/i;if(0===n.top||0===n.left)return}else{i=l.width();e=(t.pageX-n.left)/i}e=Math.max(0,e),e=Math.min(e,1),d(e),0===e?o.setMuted(!0):o.setMuted(!1),o.setVolume(e)}),s.hover(function(){r.show(),m=!0},function(){m=!1,p||"vertical"!=a||r.hide()}),r.bind("mouseover",function(){m=!0}).bind("mousedown",function(t){return h(t),i.globalBind("mousemove.vol",function(t){h(t)}),i.globalBind("mouseup.vol",function(){p=!1,i.globalUnbind(".vol"),m||"vertical"!=a||r.hide()}),!(p=!0)}).bind("keydown",function(t){var t=t.keyCode,e=o.volume;switch(t){case 38:e=Math.min(e+.1,1);break;case 40:e=Math.max(0,e-.1);break;default:return!0}return p=!1,d(e),o.setVolume(e),!1}),s.find("button").click(function(){o.setMuted(!o.muted)}),s.find("button").bind("focus",function(){r.show()}),o.addEventListener("volumechange",function(t){var e;p||(o.muted?(d(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(d(o.volume),s.removeClass("mejs-unmute").addClass("mejs-mute"))),e=Math.floor(100*o.volume),r.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&&o.setMuted(!0),"native"===o.pluginType&&o.setVolume(t.options.startVolume),i.container.on("controlsresize",function(){o.muted?(d(0),s.removeClass("mejs-mute").addClass("mejs-unmute")):(d(o.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){var o,a,s;n.isVideo&&(n.isInIframe=window.location!=window.parent.location,i.addEventListener("loadstart",function(){n.detectFullscreenMode()}),a=null,s=u('
').appendTo(t).on("click",function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}).on("mouseover",function(){var t,e;"plugin-hover"==o.fullscreenMode&&(null!==a&&(clearTimeout(a),delete a),t=s.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))}),n.fullscreenBtn=s,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 s=this;if(!s.isPluginClickThroughCreated){function e(){if(i){for(var t in l)l[t].hide();s.fullscreenBtn.css("pointer-events",""),s.controls.css("pointer-events",""),s.media.removeEventListener("click",s.clickToPlayPauseCallback),i=!1}}function n(){var t=fullscreenBtn.offset().left-s.container.offset().left,e=fullscreenBtn.offset().top-s.container.offset().top,n=fullscreenBtn.outerWidth(!0),i=fullscreenBtn.outerHeight(!0),o=s.container.width(),a=s.container.height();for(r in l)l[r].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 r,t,i=!1,l={},o=["top","left","right","bottom"];for(s.globalBind("resize",function(){n()}),r=0,t=o.length;r').appendTo(s.container).mouseover(e).hide();fullscreenBtn.on("mouseover",function(){if(!s.isFullScreen){var t=fullscreenBtn.offset(),e=player.container.offset();for(r in media.positionFullscreenButton(t.left-e.left,t.top-e.top,!1),s.fullscreenBtn.css("pointer-events","none"),s.controls.css("pointer-events","none"),s.media.addEventListener("click",s.clickToPlayPauseCallback),l)l[r].show();n(),i=!0}}),media.addEventListener("fullscreenchange",function(t){s.isFullScreen=!s.isFullScreen,s.isFullScreen?s.media.removeEventListener("click",s.clickToPlayPauseCallback):s.media.addEventListener("click",s.clickToPlayPauseCallback),e()}),s.globalBind("mousemove",function(t){var e;i&&(e=fullscreenBtn.offset(),t.pageYe.top+fullscreenBtn.outerHeight(!0)||t.pageXe.left+fullscreenBtn.outerWidth(!0))&&(fullscreenBtn.css("pointer-events",""),s.controls.css("pointer-events",""),i=!1)}),s.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(){var e,n;i.isNativeFullScreen&&(e=u(window).width(),.002*(n=screen.width)
    ',d=0;for(il=u.length;d";s=g(f+="
").appendTo(e),r=s.find(".mejs-speed-selector"),l=o.options.defaultSpeed,i.addEventListener("loadedmetadata",function(t){l&&(i.playbackRate=parseFloat(l))},!0),r.on("click",'input[type="radio"]',function(){var t=g(this).attr("value");l=t,i.playbackRate=parseFloat(t),s.find("button").html(m(t)),s.find(".mejs-speed-selected").removeClass("mejs-speed-selected"),s.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")}),s.one("mouseenter focusin",function(){r.height(s.find(".mejs-speed-selector ul").outerHeight(!0)+s.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*r.height()+"px")})}}})}(mejs.$),function(c){c.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),c.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=this,s=a.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':"";if(a.domNode.textTracks)for(l=a.domNode.textTracks.length-1;0<=l;l--)a.domNode.textTracks[l].mode="hidden";a.cleartracks(t,e,n,i),t.chapters=c('
').prependTo(n).hide(),t.captions=c('
').prependTo(n).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=c('
").appendTo(e);for(var r=0,l=0;l")),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=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()}},setupSlides:function(t){this.slides=t,this.slides.entries.imgs=[this.slides.entries.text.length],this.showSlide(0)},showSlide:function(t){var e,n,i;void 0!==this.tracks&&void 0!==this.slidesContainer&&(n=(e=this).slides.entries.text[t],void 0===(i=e.slides.entries.imgs[t])||void 0===i.fadeIn?e.slides.entries.imgs[t]=i=c('').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)for(var t=this.slides,e=0;e=t.entries.times[e].start&&this.media.currentTime<=t.entries.times[e].stop)return void this.showSlide(e)},displayChapters:function(){for(var t=0;t
'+t.entries.text[e]+''+mejs.Utility.secondsToTimeCode(t.entries.times[e].start,i.options)+"–"+mejs.Utility.secondsToTimeCode(t.entries.times[e].stop,i.options)+"
")),a+=o;i.chapters.find("div.mejs-chapter").click(function(){i.media.setCurrentTime(parseFloat(c(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/),s={text:[],times:[]};o$1"),s.text.push(n),s.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 s}},dfxp:{parse:function(t){var e,n=0,i=(t=c(t).filter("tt")).children("div").eq(0),o=i.find("p"),t=t.find("#"+i.attr("style")),a={text:[],times:[]};if(t.length){var s=t.removeAttr("id").get(0).attributes;if(s.length)for(e={},n=0;n$1"),a.text.push(l)}return a}},split2:function(t,e){return t.split(e)}},3!="x\n\ny".split(/\n/gi).length&&(mejs.TrackFormatParser.split2=function(t,e){for(var n=[],i="",o=0;o').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)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,e){for(var n,i=this,o="",a=i.options.contextMenuItems,s=0,r=a.length;s':null!=(n=a[s].render(i))&&(o+='
'+n+"
");i.contextMenu.empty().append(l(o)).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(s){s.extend(mejs.MepDefaults,{skipBackInterval:30,skipBackText:mejs.i18n.t("Skip back %1 seconds")}),s.extend(MediaElementPlayer.prototype,{buildskipback:function(t,e,n,i){var o=this,a=o.options.skipBackText.replace("%1",o.options.skipBackInterval);s('
").appendTo(e).click(function(){i.setCurrentTime(Math.max(i.currentTime-o.options.skipBackInterval,0)),s(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('').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 p(){return ke.apply(null,arguments)}function O(t){return"[object Array]"===Object.prototype.toString.call(t)}function N(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function H(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function R(t,e){for(var n in e)H(e,n)&&(t[n]=e[n]);return H(e,"toString")&&(t.toString=e.toString),H(e,"valueOf")&&(t.valueOf=e.valueOf),t}function F(t,e,n,i){return Mt(t,e,n,i,!0).utc()}function m(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 z(t){var e;return null==t._isValid&&(e=m(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),t._isValid}function B(t){var e=F(NaN);return null!=t?R(m(e),t):m(e).userInvalidated=!0,e}function U(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=m(e)),void 0!==e._locale&&(t._locale=e._locale),0=n&&$(a,i,!0)>=n-1)break;n--}r++}return null}function t(t,e){var n=t.toLowerCase();Pe[n]=Pe[n+"s"]=Pe[e]=t}function c(t){return"string"==typeof t?Pe[t]||Pe[t.toLowerCase()]:void 0}function X(t){var e,n,i={};for(n in t)H(t,n)&&(e=c(n),e)&&(i[e]=t[n]);return i}function Q(e,n){return function(t){return null!=t?(et(this,e,t),p.updateOffset(this,n),this):tt(this,e)}}function tt(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function et(t,e,n){t._d["set"+(t._isUTC?"UTC":"")+e](n)}function nt(t,e){if("object"==typeof t)for(var n in t)this.set(n,t[n]);else if("function"==typeof this[t=c(t)])return this[t](e);return this}function it(t,e,n){var i=""+Math.abs(t);return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}function i(t,e,n,i){var o="string"==typeof i?function(){return this[i]()}:i;t&&(Ie[t]=o),e&&(Ie[e[0]]=function(){return it(o.apply(this,arguments),e[1],e[2])}),n&&(Ie[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function ot(t,e){return t.isValid()?(e=at(e,t.localeData()),Ae[e]=Ae[e]||function(n){for(var t,i=n.match(Ye),o=0,a=i.length;ort(e[D],e[S])?x:e[C]<0||24ft(i)&&(m(t)._overflowDayOfYear=!0),o=mt(i,0,t._dayOfYear),t._a[S]=o.getUTCMonth(),t._a[x]=o.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=n[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[C]&&0===t._a[Ve]&&0===t._a[qe]&&0===t._a[Ge]&&(t._nextDay=!0,t._a[C]=0),t._d=(t._useUTC?mt:pt).apply(null,c),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[C]=24)}}function bt(t){if(t._f===p.ISO_8601)return ht(t);t._a=[],m(t).empty=!0;for(var e,n,i,o,a,s,r,l=""+t._i,u=l.length,c=0,d=at(t._f,t._locale).match(Ye)||[],h=0;hthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},w.isDSTShifted=function(){var t,e;return void 0===this._isDSTShifted&&(U(t={},this),(t=wt(t))._a?(e=(t._isUTC?F:d)(t._a),this._isDSTShifted=this.isValid()&&0<$(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted},w.isLocal=function(){return!this._isUTC},w.isUtcOffset=function(){return this._isUTC},w.isUtc=Et,w.isUTC=Et,w.zoneAbbr=function(){return this._isUTC?"UTC":""},w.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},w.dates=o("dates accessor is deprecated. Use date instead.",Fe),w.months=o("months accessor is deprecated. Use month instead",ut),w.years=o("years accessor is deprecated. Use year instead",nn),w.zone=o("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()}),w),M=V.prototype,P=(M._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},M.calendar=function(t,e,n){return"function"==typeof(t=this._calendar[t])?t.call(e,n):t},M._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"},M.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])},M._invalidDate="Invalid date",M.invalidDate=function(){return this._invalidDate},M._ordinal="%d",M.ordinal=function(t){return this._ordinal.replace("%d",t)},M._ordinalParse=/\d{1,2}/,M.preparse=Ut,M.postformat=Ut,M._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"},M.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)},M.pastFuture=function(t,e){return"function"==typeof(t=this._relativeTime[0 *").each(function(t,e){e=x(e).outerWidth();nt[0].clientHeight||(o(t),0)}function o(t){t.height("").removeClass("fc-scroller")}function d(t){var e=t.css("position"),n=t.parents().filter(function(){var t=x(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:x(t[0].ownerDocument||document)}function r(t){var e=t.offset();return{left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()}}function B(t){var e=t.offset(),n=a(t),i=e.left+s(t,"border-left-width")+n.left,e=e.top+s(t,"border-top-width")+n.top;return{left:i,right:i+t[0].clientWidth,top:e,bottom:e+t[0].clientHeight}}function a(t){var e=t.innerWidth()-t[0].clientWidth,n={left:0,right:0,top:0,bottom:t.innerHeight()-t[0].clientHeight};return(St=null===St?function(){var t=x("
").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),e=t.children().offset().left>t.offset().left;return t.remove(),e}():St)&&"rtl"==t.css("direction")?n.left=e:n.right=e,n}function s(t,e){return parseFloat(t.css(e))||0}function U(t){return 1==t.which&&!t.ctrlKey}function W(t,e){t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return t.left/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function et(t){return t.replace(/&.*?;/g,"")}function _(t){var n=[];return x.each(t,function(t,e){null!=e&&n.push(t+":"+e)}),n.join(";")}function nt(t,e){return t-e}function it(t){return t%1==0}function v(t,e){var n=t[e];return function(){return n.apply(t,arguments)}}function ot(e,n){function i(){var t=+new Date-r;to.top&&i.top'),t=h.header[t];return t&&x.each(t.split(" "),function(t){var e,u=x(),c=!0;x.each(this.split(","),function(t,e){var n,i,o,a,s,r,l;"title"==e?(u=u.add(x("

 

")),c=!1):((n=(d.options.customButtons||{})[e])?(i=function(t){n.click&&n.click.call(l[0],t)},r="",o=n.text):(a=d.getViewSpec(e))?(i=function(){d.changeView(e)},m.push(e),r=a.buttonTextOverride,o=a.buttonTextDefault):d[e]&&(i=function(){d[e]()},r=(d.overrides.buttonText||{})[e],o=h.buttonText[e]),i&&(a=n?n.themeIcon:h.themeButtonIcons[e],s=n?n.icon:h.buttonIcons[e],r=r?g(r):a&&h.theme?"":s&&!h.theme?"":g(o),l=x('").click(function(t){!l.hasClass(p+"-state-disabled")&&(i(t),l.hasClass(p+"-state-active")||l.hasClass(p+"-state-disabled"))&&l.removeClass(p+"-state-hover")}).mousedown(function(){l.not("."+p+"-state-active").not("."+p+"-state-disabled").addClass(p+"-state-down")}).mouseup(function(){l.removeClass(p+"-state-down")}).hover(function(){l.not("."+p+"-state-active").not("."+p+"-state-disabled").addClass(p+"-state-hover")},function(){l.removeClass(p+"-state-hover").removeClass(p+"-state-down")}),u=u.add(l)))}),c&&u.first().addClass(p+"-corner-left").end().last().addClass(p+"-corner-right").end(),1"),c&&e.addClass("fc-button-group"),e.append(u),n.append(e)):n.append(u)}),n}this.render=function(){var t=h.header;return p=h.theme?"ui":"fc",t?n=x("
").append(e("left")).append(e("right")).append(e("center")).append('
'):void 0},this.removeElement=function(){n.remove(),n=x()},this.updateTitle=function(t){n.find("h2").text(t)},this.activateButton=function(t){n.find(".fc-"+t+"-button").addClass(p+"-state-active")},this.deactivateButton=function(t){n.find(".fc-"+t+"-button").removeClass(p+"-state-active")},this.disableButton=function(t){n.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(p+"-state-disabled")},this.enableButton=function(t){n.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(p+"-state-disabled")},this.getViewsWithButtons=function(){return m};var p,n=x(),m=[]}function kt(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}var j=x.fullCalendar={version:"2.5.0",internalApiVersion:1},b=j.views={},Dt=(x.fn.fullCalendar=function(o){var a=Array.prototype.slice.call(arguments,1),s=this;return this.each(function(t,e){var n,e=x(e),i=e.data("fullCalendar");"string"==typeof o?i&&x.isFunction(i[o])&&(n=i[o].apply(i,a),t||(s=n),"destroy"===o)&&e.removeData("fullCalendar"):i||(i=new A(e,o),e.data("fullCalendar",i),i.render())}),s},["header","buttonText","buttonIcons","themeButtonIcons"]),St=(j.intersectRanges=l,j.applyAll=P,j.debounce=ot,j.isInt=it,j.htmlEscape=g,j.cssToStr=_,j.proxy=v,j.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},j.getOuterRect=r,j.getClientRect=B,j.getContentRect=function(t){var e=(n=t.offset()).left+s(t,"border-left-width")+s(t,"padding-left"),n=n.top+s(t,"border-top-width")+s(t,"padding-top");return{left:e,right:e+t.width(),top:n,bottom:n+t.height()}},j.getScrollbarWidths=a,null),xt=(j.intersectRects=W,j.parseFieldSpecs=$,j.compareByFieldSpecs=V,j.compareByFieldSpec=q,j.flexibleCompare=G,j.computeIntervalUnit=m,j.divideRangeByDuration=function(t,e,n){var i;return f(n)?(e-t)/n:(i=n.asMonths(),1<=Math.abs(i)&&i%1==0?e.diff(t,"months",!0)/i:e.diff(t,"days",!0)/n.asDays())},j.divideDurationByDuration=u,j.multiplyDuration=function(t,e){var n;return f(t)?C.duration(t*e):(n=t.asMonths(),1<=Math.abs(n)&&n%1==0?C.duration({months:n*e}):C.duration({days:t.asDays()*e}))},j.durationHasTime=f,["sun","mon","tue","wed","thu","fri","sat"]),Ct=["year","month","week","day","hour","minute","second","millisecond"];j.log=function(){var t=window.console;return t&&t.log?t.log.apply(t,arguments):void 0},j.warn=function(){var t=window.console;return t&&t.warn?t.warn.apply(t,arguments):j.log.apply(j,arguments)};var Et,Pt,Yt={}.hasOwnProperty,jt=/^\s*\d{4}-\d\d$/,At=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,n=C.fn,w=x.extend({},n),It=(j.moment=function(){return at(arguments)},j.moment.utc=function(){var t=at(arguments,!0);return t.hasTime()&&t.utc(),t},j.moment.parseZone=function(){return at(arguments,!0,!0)},n.clone=function(){var t=w.clone.apply(this,arguments);return rt(this,t),this._fullCalendar&&(t._fullCalendar=!0),t},n.week=n.weeks=function(t){var e=(this._locale||this._lang)._fullCalendar_weekCalc;return null==t&&"function"==typeof e?e(this):("ISO"===e?w.isoWeek:w.week).apply(this,arguments)},n.time=function(t){if(!this._fullCalendar)return w.time.apply(this,arguments);if(null==t)return C.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,C.isDuration(t)||C.isMoment(t)||(t=C.duration(t));var e=0;return C.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},n.stripTime=function(){var t;return this._ambigTime||(t=this.toArray(),this.utc(),Et(this,t.slice(0,3)),this._ambigTime=!0,this._ambigZone=!0),this},n.hasTime=function(){return!this._ambigTime},n.stripZone=function(){var t,e;return this._ambigZone||(t=this.toArray(),e=this._ambigTime,this.utc(),Et(this,t),this._ambigTime=e||!1,this._ambigZone=!0),this},n.hasZone=function(){return!this._ambigZone},n.local=function(){var t=this.toArray(),e=this._ambigZone;return w.local.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,e&&Pt(this,t),this},n.utc=function(){return w.utc.apply(this,arguments),this._ambigTime=!1,this._ambigZone=!1,this},x.each(["zone","utcOffset"],function(t,e){w[e]&&(n[e]=function(t){return null!=t&&(this._ambigTime=!1,this._ambigZone=!1),w[e].apply(this,arguments)})}),n.format=function(){return this._fullCalendar&&arguments[0]?ut(this,pt(arguments[0])):this._ambigTime?y(this,"YYYY-MM-DD"):this._ambigZone?y(this,"YYYY-MM-DD[T]HH:mm:ss"):w.format.apply(this,arguments)},n.toISOString=function(){return this._ambigTime?y(this,"YYYY-MM-DD"):this._ambigZone?y(this,"YYYY-MM-DD[T]HH:mm:ss"):w.toISOString.apply(this,arguments)},n.isWithin=function(t,e){t=st([this,t,e]);return t[0]>=t[1]&&t[0]').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&x(document).on("mousedown",this.documentMousedownProxy=v(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!x(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),x(document).off("mousedown",this.documentMousedownProxy)},position:function(){var t,e=this.options,n=this.el.offsetParent().offset(),i=this.el.outerWidth(),o=this.el.outerHeight(),a=x(window),s=d(this.el),r=e.top||0,l=void 0!==e.left?e.left:void 0!==e.right?e.right-i:0,u=s.is(window)||s.is(document)?(s=a,t=0):(t=(u=s.offset()).top,u.left);t+=a.scrollTop(),u+=a.scrollLeft(),!1!==e.viewportConstrain&&(r=Math.min(r,t+s.outerHeight()-o-this.margin),r=Math.max(r,t+this.margin),l=Math.min(l,u+s.outerWidth()-i-this.margin),l=Math.max(l,u+this.margin)),this.el.css({top:r-n.top,left:l-n.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}}),M=j.CoordCache=t.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=x(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?x(t.offsetParent):null},build:function(){var t=this.forcedOffsetParentEl||this.els.eq(0).offsetParent();this.origin=t.offset(),this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},queryBoundingRect:function(){var t=d(this.els.eq(0));return t.is(document)?void 0:B(t)},buildElHorizontals:function(){var i=[],o=[];this.els.each(function(t,e){var e=x(e),n=e.offset().left,e=e.outerWidth();i.push(n),o.push(n+e)}),this.lefts=i,this.rights=o},buildElVerticals:function(){var i=[],o=[];this.els.each(function(t,e){var e=x(e),n=e.offset().top,e=e.outerHeight();i.push(n),o.push(n+e)}),this.tops=i,this.bottoms=o},getHorizontalIndex:function(t){var e,n=this.boundingRect,i=this.lefts,o=this.rights,a=i.length;if(!n||t>=n.left&&t=i[e]&&t=n.top&&t=i[e]&&t=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):0=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.scrollStop())},scrollHandler:function(){this.scrollIntervalId||this.scrollStop()},scrollStop:function(){}}),L=T.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(t,e){T.call(this,e),this.component=t},listenStart:function(t){var e,n,i,o,a,s=this.subjectEl;T.prototype.listenStart.apply(this,arguments),this.computeCoords(),t?(n={left:t.pageX,top:t.pageY},i=n,s&&(e=r(s),o=i,a=e,i={left:Math.min(Math.max(o.left,a.left),a.right),top:Math.min(Math.max(o.top,a.top),a.bottom)}),this.origHit=this.queryHit(i.left,i.top),s&&this.options.subjectCenter&&(this.origHit&&(e=W(this.origHit,e)||e),i={left:((o=e).left+o.right)/2,top:(o.top+o.bottom)/2}),this.coordAdjust=(a=n,{left:(s=i).left-a.left,top:s.top-a.top})):(this.origHit=null,this.coordAdjust=null)},computeCoords:function(){this.component.prepareHits(),this.computeScrollBounds()},dragStart:function(t){var e;T.prototype.dragStart.apply(this,arguments),(e=this.queryHit(t.pageX,t.pageY))&&this.hitOver(e)},drag:function(t,e,n){var i;T.prototype.drag.apply(this,arguments),gt(i=this.queryHit(n.pageX,n.pageY),this.hit)||(this.hit&&this.hitOut(),i&&this.hitOver(i))},dragStop:function(){this.hitDone(),T.prototype.dragStop.apply(this,arguments)},hitOver:function(t){var e=gt(t,this.origHit);this.hit=t,this.trigger("hitOver",this.hit,e,this.origHit)},hitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.hitDone(),this.hit=null)},hitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},listenStop:function(){T.prototype.listenStop.apply(this,arguments),this.origHit=null,this.hit=null,this.component.releaseHits()},scrollStop:function(){T.prototype.scrollStop.apply(this,arguments),this.computeCoords()},queryHit:function(t,e){return this.coordAdjust&&(t+=this.coordAdjust.left,e+=this.coordAdjust.top),this.component.queryHit(t,e)}}),Rt=t.extend({options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,e){this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?x(e.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),x(document).on("mousemove",this.mousemoveProxy=v(this,"mousemove")))},stop:function(t,e){function n(){this.isAnimating=!1,i.removeElement(),this.top0=this.left0=null,e&&e()}var i=this,o=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,x(document).off("mousemove",this.mousemoveProxy),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:n})):n())},getEl:function(){var t=this.el;return t||(this.sourceEl.width(),t=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),t},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var t,e;this.getEl(),null===this.top0&&(this.sourceEl.width(),t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(t){this.topDelta=t.pageY-this.mouseY0,this.leftDelta=t.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),i=j.Grid=t.extend({view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,externalDragStartProxy:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,constructor:function(t){this.view=t,this.isRTL=t.opt("isRTL"),this.elsByFill={},this.externalDragStartProxy=v(this,"externalDragStart")},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(t){this.start=t.start.clone(),this.end=t.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var t,e=this.view;this.eventTimeFormat=e.opt("eventTimeFormat")||e.opt("timeFormat")||this.computeEventTimeFormat(),null==(t=e.opt("displayEventTime"))&&(t=this.computeDisplayEventTime()),null==(e=e.opt("displayEventEnd"))&&(e=this.computeDisplayEventEnd()),this.displayEventTime=t,this.displayEventEnd=e},spanToSegs:function(t){},diffDates:function(t,e){return this.largeUnit?J(t,e,this.largeUnit):Z(t,e)},prepareHits:function(){},releaseHits:function(){},queryHit:function(t,e){},getHitSpan:function(t){},getHitEl:function(t){},setElement:function(t){var e=this;(this.el=t).on("mousedown",function(t){x(t.target).is(".fc-event-container *, .fc-more")||x(t.target).closest(".fc-popover").length||e.dayMousedown(t)}),this.bindSegHandlers(),this.bindGlobalHandlers()},removeElement:function(){this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){x(document).on("dragstart sortstart",this.externalDragStartProxy)},unbindGlobalHandlers:function(){x(document).off("dragstart sortstart",this.externalDragStartProxy)},dayMousedown:function(t){var i,o,a=this,e=this.view,s=e.opt("selectable");new L(this,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},hitOver:function(t,e,n){n&&(i=e?t:null,s)&&((o=a.computeSelection(a.getHitSpan(n),a.getHitSpan(t)))?a.renderSelection(o):!1===o&&h())},hitOut:function(){o=i=null,a.unrenderSelection(),p()},listenStop:function(t){i&&e.triggerDayClick(a.getHitSpan(i),a.getHitEl(i),t),o&&e.reportSelection(o,t),p()}}).mousedown(t)},renderEventLocationHelper:function(t,e){t=this.fabricateHelperEvent(t,e);this.renderHelper(t,e)},fabricateHelperEvent:function(t,e){var n=e?E(e.event):{};return n.start=t.start.clone(),n.end=t.end?t.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDates(n),n.className=(n.className||[]).concat("fc-helper"),e||(n.editable=!1),n},renderHelper:function(t,e){},unrenderHelper:function(){},renderSelection:function(t){this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(t,e){t=this.computeSelectionSpan(t,e);return!(t&&!this.view.calendar.isSelectionSpanAllowed(t))&&t},computeSelectionSpan:function(t,e){t=[t.start,t.end,e.start,e.end];return t.sort(nt),{start:t[0].clone(),end:t[3].clone()}},renderHighlight:function(t){this.renderFill("highlight",this.spanToSegs(t))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderFill:function(t,e){},unrenderFill:function(t){var e=this.elsByFill[t];e&&(e.remove(),delete this.elsByFill[t])},renderFillSegEls:function(t,n){var e,i=this,o=this[t+"SegEl"],a="",s=[];if(n.length){for(e=0;e"},getDayClasses:function(t){var e=this.view,n=e.calendar.getNow().stripTime(),i=["fc-"+xt[t.day()]];return 1==e.intervalDuration.as("months")&&t.month()!=e.intervalStart.month()&&i.push("fc-other-month"),t.isSame(n,"day")?i.push("fc-today",e.highlightStateClass):i.push(t *",function(t){var e=x(this).data("fc-seg");return!e||i.isDraggingSeg||i.isResizingSeg?void 0:n.call(this,e,t)})})},triggerSegMouseover:function(t,e){this.mousedOverSeg||(this.mousedOverSeg=t,this.view.trigger("eventMouseover",t.el[0],t.event,e))},triggerSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",t.el[0],t.event,e))},segDragMousedown:function(i,t){var o,a=this,s=this.view,r=s.calendar,e=i.el,l=i.event,u=new Rt(i.el,{parentEl:s.el,opacity:s.opt("dragOpacity"),revertDuration:s.opt("dragRevertDuration"),zIndex:2});new L(s,{distance:5,scroll:s.opt("dragScroll"),subjectEl:e,subjectCenter:!0,listenStart:function(t){u.hide(),u.start(t)},dragStart:function(t){a.triggerSegMouseout(i,t),a.segDragStart(i,t),s.hideEvent(l)},hitOver:function(t,e,n){i.hit&&(n=i.hit),(o=a.computeEventDrop(n.component.getHitSpan(n),t.component.getHitSpan(t),l))&&!r.isEventSpanAllowed(a.eventToSpan(o),l)&&(h(),o=null),o&&s.renderDrag(o,i)?u.hide():u.show(),e&&(o=null)},hitOut:function(){s.unrenderDrag(),u.show(),o=null},hitDone:function(){p()},dragStop:function(t){u.stop(!o,function(){s.unrenderDrag(),s.showEvent(l),a.segDragStop(i,t),o&&s.reportEventDrop(l,o,this.largeUnit,e,t)})},listenStop:function(){u.stop()}}).mousedown(t)},segDragStart:function(t,e){this.isDraggingSeg=!0,this.view.trigger("eventDragStart",t.el[0],t.event,e,{})},segDragStop:function(t,e){this.isDraggingSeg=!1,this.view.trigger("eventDragStop",t.el[0],t.event,e,{})},computeEventDrop:function(t,e,n){var i,o=this.view.calendar,t=t.start,e=e.start;return t.hasTime()===e.hasTime()?(t=this.diffDates(e,t),n.allDay&&f(t)?(i={start:n.start.clone(),end:o.getEventEnd(n),allDay:!1},o.normalizeEventTimes(i)):i={start:n.start.clone(),end:n.end?n.end.clone():null,allDay:n.allDay},i.start.add(t),i.end&&i.end.add(t)):i={start:e.clone(),end:null,allDay:!e.hasTime()},i},applyDragOpacity:function(t){var n=this.view.opt("dragOpacity");null!=n&&t.each(function(t,e){e.style.opacity=n})},externalDragStart:function(t,e){var n,i=this.view;i.opt("droppable")&&(n=x((e?e.item:null)||t.target),i=i.opt("dropAccept"),x.isFunction(i)?i.call(n[0],n):n.is(i))&&(this.isDraggingExternal||this.listenToExternalDrag(n,t,e))},listenToExternalDrag:function(t,e,n){var i,o,a,s,r,l,u,c=this,d=(o=t,(u=j.dataAttrPrefix)&&(u+="-"),(a=o.data(u+"event")||null)&&(null==(s=(a="object"==typeof a?x.extend({},a):{}).start)&&(s=a.time),r=a.duration,l=a.stick,delete a.start,delete a.time,delete a.duration,delete a.stick),null==(s=null==s?o.data(u+"start"):s)&&(s=o.data(u+"time")),null==r&&(r=o.data(u+"duration")),null==l&&(l=o.data(u+"stick")),{eventProps:a,startTime:s=null!=s?C.duration(s):null,duration:r=null!=r?C.duration(r):null,stick:l=Boolean(l)});new L(this,{listenStart:function(){c.isDraggingExternal=!0},hitOver:function(t){(i=c.computeExternalDrop(t.component.getHitSpan(t),d))?c.renderDrag(i):h()},hitOut:function(){i=null,c.unrenderDrag(),p()},dragStop:function(){c.unrenderDrag(),p(),i&&c.view.reportExternalDrop(d,i,t,e,n)},listenStop:function(){c.isDraggingExternal=!1}}).startDrag(e)},computeExternalDrop:function(t,e){var n=this.view.calendar,t={start:n.applyTimezone(t.start),end:null};return e.startTime&&!t.start.hasTime()&&t.start.time(e.startTime),e.duration&&(t.end=t.start.clone().add(e.duration)),n.isExternalSpanAllowed(this.eventToSpan(t),t,e.eventProps)?t:null},renderDrag:function(t,e){},unrenderDrag:function(){},segResizeMousedown:function(i,t,o){var a,s=this,r=this.view,l=r.calendar,e=i.el,u=i.event,c=l.getEventEnd(u);new L(this,{distance:5,scroll:r.opt("dragScroll"),subjectEl:e,dragStart:function(t){s.triggerSegMouseout(i,t),s.segResizeStart(i,t)},hitOver:function(t,e,n){n=s.getHitSpan(n),t=s.getHitSpan(t);(a=o?s.computeEventStartResize(n,t,u):s.computeEventEndResize(n,t,u))&&(l.isEventSpanAllowed(s.eventToSpan(a),u)?a.start.isSame(u.start)&&a.end.isSame(c)&&(a=null):(h(),a=null)),a&&(r.hideEvent(u),s.renderEventResize(a,i))},hitOut:function(){a=null},hitDone:function(){s.unrenderEventResize(),r.showEvent(u),p()},dragStop:function(t){s.segResizeStop(i,t),a&&r.reportEventResize(u,a,this.largeUnit,e,t)}}).mousedown(t)},segResizeStart:function(t,e){this.isResizingSeg=!0,this.view.trigger("eventResizeStart",t.el[0],t.event,e,{})},segResizeStop:function(t,e){this.isResizingSeg=!1,this.view.trigger("eventResizeStop",t.el[0],t.event,e,{})},computeEventStartResize:function(t,e,n){return this.computeEventResize("start",t,e,n)},computeEventEndResize:function(t,e,n){return this.computeEventResize("end",t,e,n)},computeEventResize:function(t,e,n,i){var o=this.view.calendar,n=this.diffDates(n[t],e[t]),e={start:i.start.clone(),end:o.getEventEnd(i),allDay:i.allDay};return e.allDay&&f(n)&&(e.allDay=!1,o.normalizeEventTimes(e)),e[t].add(n),e.start.isBefore(e.end)||(n=this.minResizeDuration||(i.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration),"start"==t?e.start=e.end.clone().subtract(n):e.end=e.start.clone().add(n)),e},renderEventResize:function(t,e){},unrenderEventResize:function(){},getEventTimeText:function(t,e,n){return null==e&&(e=this.eventTimeFormat),null==n&&(n=this.displayEventEnd),this.displayEventTime&&t.start.hasTime()?n&&t.end?this.view.formatRange(t,e):t.start.format(e):""},getSegClasses:function(t,e,n){var i=t.event,t=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(i.className,i.source?i.source.className:[]);return e&&t.push("fc-draggable"),n&&t.push("fc-resizable"),t},getEventSkinCss:function(t){var e=this.view,n=t.source||{},i=t.color,o=n.color,a=e.opt("eventColor");return{"background-color":t.backgroundColor||i||n.backgroundColor||o||e.opt("eventBackgroundColor")||a,"border-color":t.borderColor||i||n.borderColor||o||e.opt("eventBorderColor")||a,color:t.textColor||n.textColor||e.opt("eventTextColor")}},eventToSegs:function(t){return this.eventsToSegs([t])},eventToSpan:function(t){var e=this.eventToRange(t);return this.transformEventSpan(e,t),e},eventsToSegs:function(t,o){var a=this,t=function(t){for(var e,n={},i=0;is&&a.push({start:s,end:n.start}),s=n.end;return s=e.length?e[e.length-1]+1:e[t]},computeColHeadFormat:function(){return 1
'+this.renderHeadTrHtml()+"
"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return""+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+""},renderHeadDateCellsHtml:function(){for(var t,e=[],n=0;n"+g(t.format(this.colHeadFormat))+""},renderBgTrHtml:function(t){return""+(this.isRTL?"":this.renderBgIntroHtml(t))+this.renderBgCellsHtml(t)+(this.isRTL?this.renderBgIntroHtml(t):"")+""},renderBgIntroHtml:function(t){return this.renderIntroHtml()},renderBgCellsHtml:function(t){for(var e,n=[],i=0;i'},renderIntroHtml:function(){},bookendCells:function(t){var e=this.renderIntroHtml();e&&(this.isRTL?t.append(e):t.prepend(e))}}),D=j.DayGrid=i.extend(k,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(t){for(var e,n=this.view,i=this.rowCnt,o=this.colCnt,a="",s=0;s
'+this.renderBgTrHtml(t)+'
'+(this.numbersVisible?""+this.renderNumberTrHtml(t)+"":"")+"
"},renderNumberTrHtml:function(t){return""+(this.isRTL?"":this.renderNumberIntroHtml(t))+this.renderNumberCellsHtml(t)+(this.isRTL?this.renderNumberIntroHtml(t):"")+""},renderNumberIntroHtml:function(t){return this.renderIntroHtml()},renderNumberCellsHtml:function(t){for(var e,n=[],i=0;i'+t.date()+""):""},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(t){for(var e,n=this.sliceRangeByRow(t),i=0;i'),i=(o&&o.row===t?o.el:e.find(".fc-content-skeleton tbody")).position().top;n.css("top",i).find("table").append(s[t].tbodyEl),e.append(n),a.push(n[0])}),this.helperEls=x(a)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,e,n){var i,o,a,s=[];for(e=this.renderFillSegEls(t,e),i=0;i
')).find("tr"),0'),n.append(e.el.attr("colspan",a-o)),a'),this.bookendCells(n),t}}),k=(D.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),i.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return i.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){t=x.grep(t,function(t){return t.event.allDay});return i.prototype.renderBgSegs.call(this,t)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,e){x(e).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var t,e=this.rowStructs||[];t=e.pop();)t.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(t){for(var e=[],n=this.groupSegRows(t),i=0;i'+g(t)+""),t=''+(g(i.title||"")||" ")+"",'
'+(this.isRTL?t+" "+s:s+" "+t)+"
"+(a?'
':"")+(e?'
':"")+""},renderSegRow:function(t,e){function n(t){for(;o"),a.append(l)),m[g][o]=l,f[g][o]=l,o++}for(var i,o,a,s,r,l,u=this.colCnt,c=this.buildSegLevels(e),d=Math.max(1,c.length),h=x(""),p=[],m=[],f=[],g=0;g"),p.push([]),m.push([]),f.push([]),i)for(s=0;s').append(r.el),r.leftCol!=r.rightCol?l.attr("colspan",r.rightCol-r.leftCol+1):f[g][o]=l;o<=r.rightCol;)m[g][o]=l,p[g][o]=r,o++;a.append(l)}n(u),this.bookendCells(a),h.append(a)}return{row:t,tbodyEl:h,cellMatrix:m,segMatrix:p,segLevels:c,segs:e}},buildSegLevels:function(t){var e,n,i,o=[];for(this.sortEventSegs(t),e=0;e=t.leftCol)return 1}(n,o[i]);i++);(o[n.level=i]||(o[i]=[])).push(n)}for(i=0;i td > :first-child").each(e),n.position().top+i>o)return s;return!1},limitRow:function(e,n){function t(t){for(;w").append(_),d.append(g),b.push(g[0])),w++}var i,o,a,s,r,l,u,c,d,h,p,m,f,g,_,v=this,y=this.rowStructs[e],b=[],w=0;if(n&&n').attr("rowspan",h),l=c[m],_=this.renderMoreLink(e,r.leftCol+m,[r].concat(l)),g=x("
").append(_),f.append(g),p.push(f[0]),b.push(f[0]);d.addClass("fc-limited").after(x(p)),a.push(d[0])}}t(this.colCnt),y.moreEls=x(b),y.limitedEls=x(a)}},unlimitRow:function(t){t=this.rowStructs[t];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(r,l,u){var c=this,d=this.view;return x('').text(this.getMoreLinkText(u.length)).on("click",function(t){var e=d.opt("eventLimitClick"),n=c.getCellDate(r,l),i=x(this),o=c.getCellEl(r,l),a=c.getCellSegs(r,l),a=c.resliceDaySegs(a,n),s=c.resliceDaySegs(u,n);"popover"===(e="function"==typeof e?d.trigger("eventLimitClick",null,{date:n,dayEl:o,moreEl:i,segs:a,hiddenSegs:s},t):e)?c.showSegPopover(r,l,i,a):"string"==typeof e&&d.calendar.zoomTo(n,e)})},showSegPopover:function(t,e,n,i){var o=this,a=this.view,n=n.parent(),s=1==this.rowCnt?a.el:this.rowEls.eq(t),t={className:"fc-more-popover",content:this.renderSegPopoverContent(t,e,i),parentEl:this.el,top:s.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}};this.isRTL?t.right=n.offset().left+n.outerWidth()+1:t.left=n.offset().left-1,this.segPopover=new Ht(t),this.segPopover.show()},renderSegPopoverContent:function(t,e,n){var i,o=this.view,a=o.opt("theme"),s=this.getCellDate(t,e).format(o.opt("dayPopoverFormat")),a=x('
'+g(s)+'
'),r=a.find(".fc-event-container");for(n=this.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i'+this.renderBgTrHtml(0)+'
'+this.renderSlatRowHtml()+"
"},renderSlatRowHtml:function(){for(var t,e,n=this.view,i=this.isRTL,o="",a=C.duration(+this.minTime);a"+(t?""+g(e.format(this.labelFormat))+"":"")+"",o+=""+(i?"":e)+''+(i?e:"")+"",a.add(this.slotDuration);return o},processOptions:function(){var t=this.view,e=t.opt("slotDuration"),n=t.opt("snapDuration"),e=C.duration(e),n=n?C.duration(n):e;this.slotDuration=e,this.snapDuration=n,this.snapsPerSlot=e/n,this.minResizeDuration=n,this.minTime=C.duration(t.opt("minTime")),this.maxTime=C.duration(t.opt("maxTime")),n=t.opt("slotLabelFormat"),x.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||t.opt("axisFormat")||t.opt("smallTimeFormat"),n=t.opt("slotLabelInterval"),this.labelInterval=n?C.duration(n):this.computeLabelInterval(e)},computeLabelInterval:function(t){for(var e,n,i=Jt.length-1;0<=i;i--)if((n=u(e=C.duration(Jt[i]),t))%1==0&&1').append(t).appendTo(this.el)},unrenderHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(t){this.view.opt("selectHelper")?this.renderEventLocationHelper(t):this.renderHighlight(t)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderFill:function(t,e,n){var i,o,a,s,r,l,u,c,d,h;if(e.length){for(e=this.renderFillSegEls(t,e),i=this.groupSegCols(e),n=n||t.toLowerCase(),a=(o=x('
')).find("tr"),s=0;s").appendTo(a),r.length)for(u=x('
').appendTo(l),c=this.getCellDate(0,s),d=0;d').append(this.renderSegTable(t))),t},unrenderFgSegs:function(t){this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null)},renderSegTable:function(t){var e,n,i,o,a,s=x("
"),r=s.find("tr"),l=this.groupSegCols(t);for(this.computeSegVerticals(t),i=0;i'),e=0;e").append(a))}return this.bookendCells(r),s},placeSlotSegs:function(t){this.sortEventSegs(t);for(var e,n,i,o,a,s,r=t=function(t){for(var e,n,i=[],o=0;o
'+(n?'
'+g(n)+"
":"")+(s.title?'
'+g(s.title)+"
":"")+'
'+(e?'
':"")+""},generateSegPositionCss:function(t){var e,n=this.view.opt("slotEventOverlap"),i=t.backwardCoord,o=t.forwardCoord,a=this.generateSegVerticalCss(t);return n&&(o=Math.min(1,i+2*(o-i))),i=this.isRTL?(e=1-o,i):(e=i,1-o),a.zIndex=t.level+1,a.left=100*e+"%",a.right=100*i+"%",n&&t.forwardPressure&&(a[this.isRTL?"marginLeft":"marginRight"]=20),a},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},groupSegCols:function(t){for(var e=[],n=0;n=this.nextDayThreshold&&i.add(1,"days"),(!t||i<=n)&&(i=n.clone().add(1,"days")),{start:n,end:i}},isMultiDayEvent:function(t){t=this.computeDayRange(t);return 1").appendTo(_)),f.activateButton(t)),v&&(S=v.massageCurrentDate(S),v.displaying&&S.isWithin(v.intervalStart,v.intervalEnd)||n()&&(v.display(S),d(),f.updateTitle(v.title),h.getNow().isWithin(v.intervalStart,v.intervalEnd)?f.disableButton("today"):f.enableButton("today"),(!p.lazyFetching||w(v.start,v.end)?u:l)())),d(),k--}function o(t){return n()?(t&&s(),k++,v.updateSize(!0),k--,!0):void 0}function a(){n()&&s()}function s(){y="number"==typeof p.contentHeight?p.contentHeight:"number"==typeof p.height?p.height-(g?g.outerHeight(!0):0):Math.round(_.width()/Math.max(p.aspectRatio,.5))}function r(t){!k&&t.target===window&&v.start&&o(!0)&&v.trigger("windowResize",T)}function l(){n()&&(c(),v.displayEvents(D),d())}function u(){M(v.start,v.end)}function c(){_.css({width:"100%",height:_.height(),overflow:"hidden"})}function d(){_.css({width:"",height:"",overflow:""})}var h=this,p=(h.initOptions(e||{}),this.options),m=(h.render=function(){_?n()&&(a(),i()):(p.theme,t.addClass("fc"),p.isRTL?t.addClass("fc-rtl"):t.addClass("fc-ltr"),p.theme?t.addClass("ui-widget"):t.addClass("fc-unthemed"),_=x("
").prependTo(t),f=h.header=new Lt(h,p),(g=f.render())&&t.prepend(g),i(p.defaultView),p.handleWindowResize&&(b=ot(r,p.windowResizeDelay),x(window).resize(b)))},h.destroy=function(){v&&v.removeElement(),f.removeElement(),_.remove(),t.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),b&&x(window).unbind("resize",b)},h.refetchEvents=function(){c(),v.clearEvents(),d(),u()},h.reportEvents=function(t){D=t,l()},h.reportEventChange=function(){l()},h.rerenderEvents=l,h.changeView=i,h.select=function(t,e){v.select(h.buildSelectSpan.apply(h,arguments))},h.unselect=function(){v&&v.unselect()},h.prev=function(){S=v.computePrevDate(S),i()},h.next=function(){S=v.computeNextDate(S),i()},h.prevYear=function(){S.add(-1,"years"),i()},h.nextYear=function(){S.add(1,"years"),i()},h.today=function(){S=h.getNow(),i()},h.gotoDate=function(t){S=h.moment(t).stripZone(),i()},h.incrementDate=function(t){S.add(C.duration(t)),i()},h.zoomTo=function(t,e){e=h.getViewSpec(e=e||"day")||h.getUnitViewSpec(e),S=t.clone(),i(e?e.type:null)},h.getDate=function(){return h.applyTimezone(S)},h.getCalendar=function(){return h},h.getView=function(){return v},h.option=function(t,e){return void 0===e?p[t]:void("height"!=t&&"contentHeight"!=t&&"aspectRatio"!=t||(p[t]=e,o(!0)))},h.trigger=function(t,e){var n=Array.prototype.slice.call(arguments,2);return this.triggerWith(t,e=e||T,n),p[t]?p[t].apply(e,n):void 0},E(Tt(p.lang)));p.monthNames&&(m._months=p.monthNames),p.monthNamesShort&&(m._monthsShort=p.monthNamesShort),p.dayNames&&(m._weekdays=p.dayNames),p.dayNamesShort&&(m._weekdaysShort=p.dayNamesShort),null!=p.firstDay&&((e=E(m._week)).dow=p.firstDay,m._week=e),m._fullCalendar_weekCalc="function"==typeof(e=p.weekNumberCalculation)||"local"===e?e:"iso"===e||"ISO"===e?"ISO":void 0,h.defaultAllDayEventDuration=C.duration(p.defaultAllDayEventDuration),h.defaultTimedEventDuration=C.duration(p.defaultTimedEventDuration),h.moment=function(){var t;return"local"===p.timezone?(t=j.moment.apply(null,arguments)).hasTime()&&t.local():t=("UTC"===p.timezone?j.moment.utc:j.moment.parseZone).apply(null,arguments),"_locale"in t?t._locale=m:t._lang=m,t},h.getIsAmbigTimezone=function(){return"local"!==p.timezone&&"UTC"!==p.timezone},h.applyTimezone=function(t){var e,n;return t.hasTime()?(e=h.moment(t.toArray()),(n=t.time()-e.time())&&(n=e.clone().add(n),t.time()-n.time()==0)?n:e):t.clone()},h.getNow=function(){var t=p.now;return"function"==typeof t&&(t=t()),h.moment(t).stripZone()},h.getEventEnd=function(t){return t.end?t.end.clone():h.getDefaultEventEnd(t.allDay,t.start)},h.getDefaultEventEnd=function(t,e){e=e.clone();return t?e.stripTime().add(h.defaultAllDayEventDuration):e.add(h.defaultTimedEventDuration),h.getIsAmbigTimezone()&&e.stripZone(),e},h.humanizeDuration=function(t){return(t.locale||t.lang).call(t,p.lang).humanize()},function(p){function a(o,a){!function t(e,n){var i,o,a=j.sourceFetchers;for(i=0;i=d&&c.end<=u){a=!0;break}if(!a)return!1}for(s=w.getPeerEvents(t,i),r=0;rm){if(!1===n)return!1;if("function"==typeof n&&!n(l,i))return!1;if(i){if(!1===(h=Y(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof h&&!h(i,l))return!1}}return!0}var w=this;w.isFetchNeeded=function(t,e){return!m||t
'},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=F(this.el.find(".fc-week-number")))},setHeight:function(t,e){var n,i=this.opt("eventLimit");o(this.scrollerEl),N(this.headRowEl),this.dayGrid.removeSegPopover(),i&&"number"==typeof i&&this.dayGrid.limitRows(i),n=this.computeScrollerHeight(t),this.setGridHeight(n,e),i&&"number"!=typeof i&&this.dayGrid.limitRows(i),!e&&z(this.scrollerEl,n)&&(O(this.headRowEl,a(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n))},setGridHeight:function(t,e){e?R(this.dayGrid.rowEls):H(this.dayGrid.rowEls,t,!0)},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(t,e){return this.dayGrid.queryHit(t,e)},getHitSpan:function(t){return this.dayGrid.getHitSpan(t)},getHitEl:function(t){return this.dayGrid.getHitEl(t)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(t,e){return this.dayGrid.renderDrag(t,e)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(t){this.dayGrid.renderSelection(t)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}})),Vt={renderHeadIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'"+g(t.opt("weekNumberTitle"))+"":""},renderNumberIntroHtml:function(t){var e=this.view;return e.weekNumbersVisible?'"+this.getCellDate(t,0).format("w")+"":""},renderBgIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'":""},renderIntroHtml:function(){var t=this.view;return t.weekNumbersVisible?'":""}},e=j.MonthView=$t.extend({computeRange:function(t){var e,t=$t.prototype.computeRange.call(this,t);return this.isFixedWeeks()&&(e=Math.ceil(t.end.diff(t.start,"weeks",!0)),t.end.add(6-e,"weeks")),t},setGridHeight:function(t,e){(e=e||"variable"===this.opt("weekMode"))&&(t*=this.rowCnt/6),H(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}}),e=(b.basic={class:$t},b.basicDay={type:"basic",duration:{days:1}},b.basicWeek={type:"basic",duration:{weeks:1}},b.month={class:e,duration:{months:1},defaults:{fixedWeekCount:!0}},j.AgendaView=S.extend({timeGridClass:k,timeGrid:null,dayGridClass:D,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid())},instantiateTimeGrid:function(){return new(this.timeGridClass.extend(qt))(this)},instantiateDayGrid:function(){return new(this.dayGridClass.extend(Gt))(this)},setRange:function(t){S.prototype.setRange.call(this,t),this.timeGrid.setRange(t),this.dayGrid&&this.dayGrid.setRange(t)},renderDates:function(){this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.setElement(this.el.find(".fc-time-grid")),this.timeGrid.renderDates(),this.bottomRuleEl=x('
').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement())},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},renderSkeletonHtml:function(){return'
'+(this.dayGrid?'

':"")+'
'},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(t){this.timeGrid.updateSize(t),S.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=F(this.el.find(".fc-axis"))},setHeight:function(t,e){var n;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),o(this.scrollerEl),N(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),n=(n=this.opt("eventLimit"))&&"number"!=typeof n?Zt:n)&&this.dayGrid.limitRows(n),e||(n=this.computeScrollerHeight(t),z(this.scrollerEl,n)?(O(this.noScrollRowEls,a(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n)):(this.scrollerEl.height(n).css("overflow","hidden"),this.bottomRuleEl.show()))},computeInitialScroll:function(){var t=C.duration(this.opt("scrollTime")),t=this.timeGrid.computeTimeTop(t);return(t=Math.ceil(t))&&t++,t},prepareHits:function(){this.timeGrid.prepareHits(),this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits(),this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(t,e){var n=this.timeGrid.queryHit(t,e);return n=!n&&this.dayGrid?this.dayGrid.queryHit(t,e):n},getHitSpan:function(t){return t.component.getHitSpan(t)},getHitEl:function(t){return t.component.getHitEl(t)},renderEvents:function(t){for(var e=[],n=[],i=0;i"+g(t)+""):'"},renderBgIntroHtml:function(){var t=this.view;return'"},renderIntroHtml:function(){return'"}},Gt={renderBgIntroHtml:function(){var t=this.view;return'"+(t.opt("allDayHtml")||g(t.opt("allDayText")))+""},renderIntroHtml:function(){return'"}},Zt=5,Jt=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];return b.agenda={class:e,defaults:{allDaySlot:!0,allDayText:"all-day",slotDuration:"00:30:00",minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0}},b.agendaDay={type:"agenda",duration:{days:1}},b.agendaWeek={type:"agenda",duration:{weeks:1}},j}),define("castle-url/patterns/fullcalendar",["jquery","pat-base","underscore","castle-url/libs/fullcalendar/dist/fullcalendar.min"],function(t,e){"use strict";return e.extend({name:"fullcalendar",trigger:".pat-fullcalendar",defaults:{},parser:"mockup",init:function(){this.$el.fullCalendar(this.options)}})}),define("mockup-patterns-base",["pat-base"],function(e){"use strict";function t(){return e.apply(this,arguments)}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return((t.prototype=e.prototype).constructor=t).extend=function(){console.log("Usage of the mockup-patterns-base pattern is deprecated and it will eventually be removed.Instead, use pat-base and explicitly set parser to 'mockup' when calling extend.");var t=e.extend.apply(this,arguments);return t.prototype.parser="mockup",t},t}),define("castle-url/patterns/subscribe",["jquery","mockup-patterns-base"],function(a,t){"use strict";return t.extend({name:"subscribe",trigger:".pat-subscribe",parser:"mockup",defaults:{},init:function(){this.setupForm()},setupForm:function(){var o=this;o.$form=o.$el.find("form"),o.url=o.$form.attr("action"),o.$form.submit(function(t){t.preventDefault(),o.$form.ajaxSubmit({type:"POST",url:o.url,data:{"form.buttons.subscribe":"subscribe"},failure:function(t){alert("There was a problem while submitting your subscription."),console.log("Subscribe attempt failed: "+t)},success:function(t,e,n){o.$el.find(".portalMessage").remove();var i=a(".portalMessage",t),t=a("form",t),i=(a(".documentFirstHeading",o.$el).append(i),a("form",o.$el).replaceWith(t),o.$el.find("h1").offset().top);a("body").scrollTop(i),o.setupForm()}})})}})}),function(t){"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd?define("castle-url/libs/script",t):this.$script=t()}(function(){function u(t,e){for(var n=0,i=t.length;nf||g.h>m)&&(f=e},init:function(){if(this.$el.height()<5){for(var t=this.$el.parent();t.height()<5;)t=t.parent();this.$el.height(t.height())}this.$image=this.$el.find("img").first(),this.image=this.$image[0],this.adjustFocus()}})}),function(e,n){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){n(e,t)}):"object"==typeof module&&module.exports?module.exports=n(e,require("jquery")):e.jQueryBridget=n(e,e.jQuery)}(window,function(t,e){"use strict";function n(l,u,c){(c=c||e||t.jQuery)&&(u.prototype.option||(u.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[l]=function(t){var e,i,o,a,s,r;return"string"==typeof t?(e=d.call(arguments,1),o=e,s="$()."+l+'("'+(i=t)+'")',(e=this).each(function(t,e){var n,e=c.data(e,l);e?(n=e[i])&&"_"!=i.charAt(0)?(n=n.apply(e,o),a=void 0===a?n:a):h(s+" is not a valid method"):h(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==a?a:e):(r=t,this.each(function(t,e){var n=c.data(e,l);n?(n.option(r),n._init()):(n=new u(e,r),c.data(e,l,n))}),this)},i(c))}function i(t){t&&!t.bridget&&(t.bridget=n)}var d=Array.prototype.slice,o=t.console,h=void 0===o?function(){}:function(t){o.error(t)};return i(e||t.jQuery),n}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){var n;if(t&&e)return-1==(n=(n=this._events=this._events||{})[t]=n[t]||[]).indexOf(e)&&n.push(e),this},e.once=function(t,e){var n;if(t&&e)return this.on(t,e),((n=this._onceEvents=this._onceEvents||{})[t]=n[t]||[])[e]=!0,this},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length)return-1!=(e=t.indexOf(e))&&t.splice(e,1),this},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=0,o=n[i];e=e||[];for(var a=this._onceEvents&&this._onceEvents[t];o;){var s=a&&a[o];s&&(this.off(t,o),delete a[o]),o.apply(this,e),o=n[i+=s?0:1]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function g(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function _(t){t=getComputedStyle(t);return t||e("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),t}function v(t){if(M||(M=!0,(c=document.createElement("div")).style.width="200px",c.style.padding="1px 2px 3px 4px",c.style.borderStyle="solid",c.style.borderWidth="1px 2px 3px 4px",c.style.boxSizing="border-box",(u=document.body||document.documentElement).appendChild(c),a=_(c),v.isBoxSizeOuter=y=200==g(a.width),u.removeChild(c)),(t="string"==typeof t?document.querySelector(t):t)&&"object"==typeof t&&t.nodeType){var e=_(t);if("none"==e.display){for(var n={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i'),n+='
'+a+'
'+s+'


','
'+o+"
"),s=("modal"==e.display.toLowerCase()?(new u(t,{loadLinksWithinModal:!0}).show(),l(".plone-modal-content").css({"max-width":"50%","min-height":"50%"}),l(".plone-modal-close").css({position:"relative",top:"-15px"}),l(".plone-modal-body").append(n),l(".plone-modal-footer").css({"text-align":"center"}).append(a)):(t.hide(),t.append(n)),"modal"!=e.display.toLowerCase()&&(t.append(a),t.slideDown()),l("#survey-button")),r=this;s.click(function(){r.updateCookie("clicked",!0)}),r.updateCookie("shown",!0)}})}),define("castle-url/components/utils",["jquery","castle-url/libs/react/react.min"],function(a,s){"use strict";function i(){for(var t={},e=0;e');return a("body").append(e),r(n,i,t)(e[0])}},getToolbarSettings:function(){var t=a(".pat-castletoolbar,.castletoolbar-settings");return 0').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),i=function(){n.removeBackdrop(),t&&t()},a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):i()):t&&t()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidthError rendering content

"}}),e)})})}})}),define("castle-url/patterns/sticky",["jquery","pat-base","jquery.cookie"],function(n,t){"use strict";return t.extend({name:"sticky",trigger:".pat-sticky",parser:"mockup",defaults:{},init:function(){var e=this;window.addEventListener("load",function(t){e.cookie_data=n.cookie("sticky-footer"),n(".close-footer").click(function(){e.cookie_data=e.setCookie("closed-footer")}),"closed-footer"!==e.cookie_data&&(n(".sticky-footer").show(),void 0===e.cookie_data)&&(n(".sticky-footer").css({bottom:"-100px"}).animate({bottom:"0px"},"slow"),e.cookie_data=e.setCookie("no-animation"))})},setCookie:function(t){return n.cookie("sticky-footer",t,{path:"/"})}})}),window.jQuery&&define("jquery",[],function(){"use strict";return window.jQuery}),require(["jquery","pat-registry","pat-base","mockup-patterns-modal","mockup-patterns-select2","mockup-patterns-pickadate","mockup-patterns-autotoc","mockup-patterns-cookietrigger","mockup-patterns-formunloadalert","mockup-patterns-preventdoublesubmit","mockup-patterns-formautofocus","mockup-patterns-markspeciallinks","bootstrap-dropdown","bootstrap-collapse","bootstrap-tooltip","castle-url/patterns/slider","castle-url/patterns/gallery","castle-url/patterns/map","castle-url/patterns/queryfilter","castle-url/patterns/audio","castle-url/patterns/video","castle-url/patterns/fullcalendar","castle-url/patterns/subscribe","castle-url/patterns/facebook","castle-url/patterns/focuspoint","castle-url/patterns/masonry","castle-url/patterns/existing","castle-url/patterns/survey","castle-url/patterns/modallink","castle-url/patterns/sticky"],function(o,t,e,n){"use strict";n.prototype.defaults.actionOptions.timeout=1e4,o(document).ready(function(){o("body").addClass("pat-plone"),t.initialized||t.init()}),o(document).ready(function(){o(".portalMessage").each(function(){var e=o(this),t=o('');e.prepend(t),t.on("click",function(t){t.preventDefault(),e.fadeOut()})});var i=o(".feature-tile-container"),e=(i.each(function(){var e=o(this),n=o(".feature-tile-expanded-container",e),t=e.closest(".row .mosaic-grid-cell");t.addClass("feature-tile-row"),n.insertAfter(t),o(".feature-tile-item",e).on("click",function(){var t=!1;e.hasClass("active")&&(t=!0),i.removeClass("active"),o(".feature-tile-expanded-container").removeClass("active"),t||(n.addClass("active"),e.addClass("active"))})}),"__castle_fv__");"acknowledged"!==o.cookie(e)&&(o.cookie(e,"shown",{path:"/",expires:2147483647}),o.ajax({type:"GET",url:PORTAL_URL+"/disclaimer"}).done(function(t){t.enabled&&(o("
"+t.msg+"
").appendTo("body"),o("Close").appendTo("#disclaimerDiv"),document.getElementById("closeButton").addEventListener("click",function(t){document.getElementById("disclaimerOverlay").style.display="none",o.cookie(e,"acknowledged",{path:"/",expires:2147483647})}),document.getElementById("disclaimerOverlay").style.display="block")}))})}),define("/Users/brian.duncan/castle.cms/castle/cms/static/plone.js",function(){}); //# sourceMappingURL=plone-compiled.min.js.map // End Bundle: plone // Start Bundle: castle-advantage-public require(["jquery","pat-base","castle-advantage-url/libs/audioplayer/audioplayer"],function(e,a){"use strict";return a.extend({name:"advanced-audio",trigger:".pat-advanced-audio",defaults:{},parser:"mockup",init:function(){var a={disable_scrub:"default",design_skin:"skin-wave",skinwave_dynamicwaves:"on"};e("document").ready(e(".pat-advanced-audio").each(function(){dzsag_init("#"+e(this).attr("id"),{transition:"fade",autoplay:"off",settings_ap:a,disable_menu_navigation:"on",autoplayNext:"off"})}))}})}); //# sourceMappingURL=public-compiled.min.js.map // End Bundle: castle-advantage-public // Start Bundle: fbigov-theme if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||2this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(idocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&l(l.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},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 n=this.options.trigger.split(" "),o=n.length;o--;){var s,a=n[o];"click"==a?this.$element.on("click."+this.type,this.options.selector,l.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},h.prototype.getDelegateOptions=function(){var i={},n=this.getDefaults();return this._options&&l.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},h.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState?void(e.hoverState="in"):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show())},h.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},h.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t instanceof l.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),e.isInStateTrue()?void 0:(clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide())},h.prototype.show=function(){var e,t,i,n,o,s,a,r=l.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),o=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented())&&o&&(r=(e=this).tip(),o=this.getUID(this.type),this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(o))&&(o=o.replace(t,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=r[0].offsetWidth,n=r[0].offsetHeight,a&&(a=o,s=this.getPosition(this.$viewport),o="bottom"==o&&t.bottom+n>s.bottom?"top":"top"==o&&t.top-ns.width?"left":"left"==o&&t.left-is.top+s.height&&(a.top=s.top+s.height-n)):(t=e.left-o,n=e.left+o+i,ts.right&&(a.left=s.left+s.width-n))),a},h.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)},h.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},h.prototype.tip=function(){if(this.$tip||(this.$tip=l(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(t){var e=this;t&&!(e=l(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},h.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var t=l.fn.tooltip;l.fn.tooltip=function(n){return this.each(function(){var t=l(this),e=t.data("bs.tooltip"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.tooltip",e=new h(this,i)),"string"!=typeof n)||e[n]()})},l.fn.tooltip.Constructor=h,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,this}}(jQuery),function(o){"use strict";function s(t,e){this.init("popover",t,e)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.3.6",s.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((s.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(n){return this.each(function(){var t=o(this),e=t.data("bs.popover"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.popover",e=new s(this,i)),"string"!=typeof n)||e[n]()})},o.fn.popover.Constructor=s,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(o){"use strict";function n(t,e){this.$body=o(document.body),this.$scrollElement=o(o(t).is(document.body)?window:t),this.options=o.extend({},n.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new n(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}n.VERSION="3.3.6",n.DEFAULTS={offset:10},n.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},n.prototype.refresh=function(){var t=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&o(t);return e&&e.length&&e.is(":visible")?[[e[i]().top+n,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},n.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),o=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),n<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e=o[t]&&(void 0===o[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var o=e.find("> .active"),s=i&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),o.removeClass("in")};var i=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(a){"use strict";function i(i){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new r(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}function r(t,e){this.options=a.extend({},r.DEFAULTS,e),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}r.VERSION="3.3.6",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,i,n){var o,s=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();return null!=i&&"top"==this.affixed?s=e.props.images.length?0:t)<0&&(t=e.props.images.length-1),-1===e.state.loaded.indexOf(t))return e.loadImage(t,function(){e.showImage(t)});a("div:animated",e.refs.imagesContainer.getDOMNode()).finish(),e.props.showThumbnails&&(a("li:animated",e.refs.thumbnailContainer.getDOMNode()).finish(),e.moveThumbnailStrip(t));var i=a(e.refs["image"+e.state.currentImage].getDOMNode()),n=a(e.refs["image"+t].getDOMNode()),o=i.width(),s=-o,o=(!(tt.offsetLeft-50&&(s=Math.max(t.offsetLeft-50,0)),s!==e.state.thumbnailPos&&e.animateThumbnailStrip(s)},animateThumbnailStrip:function(t){var e=this;a(e.refs.thumbnailInner.getDOMNode()).animate({left:-t+"px"},500,function(){e.state.thumbnailPos=t})},getImageCounterText:function(){return"Image "+(this.state.currentImage+1)+" of "+this.props.images.length},renderImageCounter:function(){return r.div({className:"image-counter"},this.getImageCounterText())},renderSvg:function(t){return r.svg({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r.path({d:s[t]},null))},getPatGalleryFBIClassList:function(){return document.querySelector(".pat-galleryfbi").classList},addGalleryClass:function(t){this.getPatGalleryFBIClassList().add(t)},removeGalleryClass:function(t){this.getPatGalleryFBIClassList().remove(t)},renderOpenGalleryModalButton:function(){return r.div({className:"gallery-modal-wrapper"},r.button({className:"open-gallery-modal",onClick:function(){this.setState({displayAsModal:!0}),this.addGalleryClass("expanded")}.bind(this)},this.renderSvg("expand")))},renderCloseGalleryModalButton:function(){return r.div({className:"gallery-modal-wrapper"},r.button({className:"close-gallery-modal",onClick:function(){this.setState({displayAsModal:!1}),document.querySelector(".pat-galleryfbi").classList.remove("expanded")}.bind(this)},this.renderSvg("close")))},renderOriginalImageLink:function(){return r.a({href:this.getCurrentImage().original,target:"_blank"},["View original",this.renderSvg("openInNew")])},renderButtons:function(){var t=this,e=t.props.height,e=t.getContainerClass()+"-buttons gallery-buttons-"+e;return r.div({className:e},[r.button({className:"next",onClick:function(){t.showImage(t.getCurrentPosition()+1)}},"Next"),r.button({className:"previous",onClick:function(){t.showImage(t.getCurrentPosition()-1)}},"Previous")])},renderImage:function(t,e){var i={},n=this.getImageContainerClass()+" focuspoint",o=r.img({src:t[this.state.imageSize],alt:t.description});return this.state.currentImage!==e?(i={display:"none"},-1===this.state.loaded.indexOf(e)&&(o=r.img({src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:t.description,className:"placeholder notloaded","data-src":t[this.state.imageSize]}))):n+=" active",r.div({className:n,style:i,key:"imagecontainer"+e,ref:"image"+e},o)},renderImageContainer:function(){var i=this;return r.div({className:i.getImagesContainerClass(),ref:"imagesContainer"},i.props.images.map(function(t,e){return i.renderImage(t,e)}))},showInfo:function(){return this.showCaption()||this.showTitle()},showCaption:function(){return this.props.showImageCaptions&&this.getCurrentImage()&&this.getCurrentImage().description},showTitle:function(){return this.props.showImageTitles&&this.getCurrentImage()&&this.getCurrentImage().title},renderInfo:function(){var t=this.getCurrentImage(),e=[];return this.props.showImageTitles&&t.title&&e.push(r.h3({},t.title)),this.props.showImageCaptions&&t.description&&e.push(r.p({},t.description)),r.div({className:this.getContainerClass()+"-info"},e)},renderThumbnails:function(){var n=this;return r.div({className:n.getThumbnailsContainerClass(),ref:"thumbnailContainer"},r.button({className:"next",onClick:function(){var t=n.refs["thumbnail"+(n.props.images.length-1)].getDOMNode(),e=a(n.refs.thumbnailContainer.getDOMNode()).width(),t=Math.min(n.state.thumbnailPos+200,t.offsetLeft+a(t).width()-e+20);n.animateThumbnailStrip(t)}},r.span({},"Next")),r.button({className:"previous",onClick:function(){var t=Math.max(n.state.thumbnailPos-200,0);n.animateThumbnailStrip(t)}},r.span({},"Previous")),r.ul({className:n.getThumbnailsContainerClass()+"-inner",ref:"thumbnailInner",style:{left:-n.state.thumbnailPos}},this.props.images.map(function(t,e){var i="";return n.state.currentImage===e&&(i+=" active"),r.li({ref:"thumbnail"+e,className:i,onClick:function(){n.showImage(e)}},r.img({src:t.thumb}))})))},render:function(){var t=[this.renderImageContainer(),this.renderButtons()];return this.state.displayAsModal?(t.unshift(this.renderCloseGalleryModalButton()),this.props.showLinkToOriginalImage&&t.push(this.renderOriginalImageLink())):t.push(this.renderOpenGalleryModalButton()),this.props.showImageCounter&&t.unshift(this.renderImageCounter()),this.props.showThumbnails&&t.push(this.renderThumbnails()),this.showInfo()&&t.push(this.renderInfo()),r.div({className:this.getContainerClass()},t)}});return t.extend({name:"galleryfbi",trigger:".pat-galleryfbi",parser:"mockup",defaults:{},init:function(){this.options.$el=this.$el,e.render(e.createElement(l,this.options),this.$el[0])}})}),require(["jquery","mockup-patterns-base"],function(o,t){"use strict";t.extend({name:"cover",trigger:".pat-cover",parser:"mockup",defaults:{reCalcOnWindowResize:!0,throttleDuration:17},adjustFocus:function(){var t=this,e=t.$el.parent(),i=e.width(),n=0,o=0,s=parseInt(e.css("max-height").replace("px","")),a=parseInt(e.css("min-height").replace("px","")),r=s,l=i,h=t.width/l,c=t.height/h,d=!1;cm||v.h>g)&&(m')).insertAfter(t),t.on("keyup",function(t){e[0].value=t.target.value.length}),e[0].value=t[0].value.length,(a=h("label .formHelp",t.parent())).text(a.text()+" Try to keep length between 150-160 characters. Use keywords when possible. Do not use quotation marks.")),h("ul.accordion > li > ul").each(function(){h('').insertBefore(h(this))}),h("ul.accordion > li").on("click",function(){h(this).toggleClass("active")});h("#mobile-navigation-wrapper").find("a").bind("click",function(){h("body").removeClass("mobile-nav-active")}),h(".navbar-toggle").filter(":not(.bound)").addClass("bound").bind("click",function(t){h("body").toggleClass("mobile-nav-active"),(h("body").hasClass("mobile-nav-active")?h(".mobile-links.main > li:first a"):h("button.navbar-toggle")).focus(),t.preventDefault()}),h(".main-wrapper, .main-footer, .header-wrap").click(function(t){h("body").hasClass("mobile-nav-active")&&(t.preventDefault(),h("body").removeClass("mobile-nav-active"))});var i,n,o,s,a=h(".mobile-links.main li.active"),r=h(".section-menu"),l=(0"),i=(h("body").append(t),new n(t,{html:'

Conditions Regarding Use of the FBI Anti-Piracy Warning (APW) Seal

The following conditions of use are specified in 41 CFR, Section 128-1.5009(e):

  1. The APW Seal shall only be used on copyrighted works subject to protection under U.S. Criminal Code provisions such as those in Title 18, U.S. Code, Sections 2319, 2319A, and 2319B.
  2. The APW Seal shall only be used immediately adjacent to the authorized warning language. “Authorized warning language” refers to the language set forth below in paragraph (a) of this section, or alternative language specifically authorized in writing for this purpose by the Director of the FBI or his or her designee and posted on the FBI’s official public Internet website (http://www.fbi.gov). Except as authorized pursuant to paragraph (1) of the prohibitions regarding use of the APW Seal, the APW Seal and authorized warning language shall be enclosed by a plain box border at all times that other text or images appear on the same screen or page.
    1. The unauthorized reproduction or distribution of a copyrighted work is illegal. Criminal copyright infringement, including infringement without monetary gain, is investigated by the FBI and is punishable by fines and federal imprisonment.
  3. The APW Seal image must be obtained from the FBI’s official public Internet website (http://www.fbi.gov). The APW Seal image shall not be animated or altered except that it may be rendered in outline, black and white, or grayscale.
  4. In programming or reproducing the APW Seal in or on a work, users are encouraged to employ industry-recognized copyright anti-circumvention or copy protection techniques to discourage copying of the FBI APW Seal, except that such techniques need not be used if no other content or advertising programmed into the same work on the same media utilizes such copyright anti-circumvention or copy protection techniques.

Prohibitions Regarding Use of the APW Seal

The following prohibitions are specified in 41 CFR, Section 128-1.5009(f):

  1. The APW Seal shall not be used in a manner indicating FBI approval, authorization, or endorsement of any communication other than the authorized warning language. No other text or image that appears on the same screen, page, package, etc., as the APW Seal or authorized warning language shall reference, contradict, or be displayed in a manner that appears to be associated with, the APW Seal or authorized warning language, except as authorized in writing by the Director of the FBI or his or her designee and posted on the FBI’s official public Internet website (http://www.fbi.gov).
  2. The APW Seal shall not be used on any work whose production, sale, public presentation, or distribution by mail or in or affecting interstate commerce would violate the laws of the United States including, but not limited to, those protecting intellectual property and those prohibiting child pornography and obscenity.
  3. The APW Seal shall not be forwarded or copied except as necessary to display it on an eligible work.
  4. The APW Seal shall not be used in any manner:
    1. Indicating that the FBI has approved, authorized, or endorsed any work, product, production, or private entity, including the work on which it appears;
    2. Indicating that the FBI has determined that a particular work or portion thereof is entitled to protection of the law; or,
    3. Indicating that any item or communication, except as provided herein, originated from, on behalf of, or in coordination with the FBI, whether for enforcement purposes, education, or otherwise.

',content:null}));i.on("shown",function(){h("#have-read",i.$modal).off("click").on("click",function(){window.location=e.attr("href")})}),i.show()}),0===h("body.template-edit.template-layout").size()?(t(),h(window).scroll(t)):setTimeout(function(){h(".mosaic-tile-fadein-content.applied").removeClass("applied"),h(".mosaic-tile-fadein-headers").find("h1.applied,h2.applied,h3.applied").removeClass("applied")},1500),h("body").hasClass("ferrari")&&(e(),h(document).on("scroll",e))}),require(["jquery","castle-url/libs/react/react.min"],function(o,t){"use strict";var e,i,n,s,a,r,l,h=t.DOM,c=t.createClass({componentDidMount:function(){var t=this;o(window).on("scroll",function(){t.position()}),o(window).on("resize",function(){t.position()}),o("body").on("toolbar-initialized",function(){t.position()}),t.position(),setTimeout(function(){t.slideOut()},1e3)},slideOut:function(){var t=this;t.getElPosition(t.props.rightEl).left+t.props.rightEl.offsetWidth+o(t.refs.content.getDOMNode()).width()+10>window.innerWidth&&o(t.refs.container.getDOMNode()).animate({left:o(window).width()-10},500,function(){t.state.hidden=!0,t.position()})},getElPosition:function(t,e){var t=t.getBoundingClientRect(),i=document.body,n=document.documentElement,o=window.pageYOffset||n.scrollTop||i.scrollTop,s=window.pageXOffset||n.scrollLeft||i.scrollLeft,a=0,r=0,e=(e||(a=n.clientTop||i.clientTop||0,r=n.clientLeft||i.clientLeft||0),t.top+o-a),n=t.left+s-r;return{top:Math.round(e),left:Math.round(n)}},_position:function(){var t=this.getElPosition(this.props.topEl),e=this.getElPosition(this.props.rightEl),i="wide",t={top:t.top,left:e.left+this.props.rightEl.offsetWidth},e=o(this.refs.content.getDOMNode()).width();t.left+e+10>window.innerWidth&&(t.left=o(window).width()-e-40,i="anchor-narrow"),this.state.hidden&&(t.left=o(window).width()-10),this.setState({position:t,className:i,active:!1,positioned:!0})},getMostVisibleAnchor:function(){var t=this;if(!this.refs.content)return this.props.anchors[0];for(var e=t.getElPosition(this.refs.content.getDOMNode()),i=t.props.anchors[0],n=t.getElPosition(t.props.anchors[0]),o=Math.abs(n.top-e.top),s=1;si.offset().left+i.width()&&(i=t)}),n=-1,s=document.createElement("div"),document.body.appendChild(s),a=t.render(t.createElement(c,{anchors:d.toArray(),topEl:e[0],rightEl:i[0],onAnchorClicked:function(){clearTimeout(n)}}),s),r=o(s),l=function(){a.hidden||a.state.scrolling||r.is(":hover")||a.slideOut()},o(window).on("click",l),o(window).on("scroll",function(){clearTimeout(n),n=setTimeout(l,700)}))}),require(["jquery","castle-url/libs/react/react.min"],function(f,o){"use strict";var t,e,g=o.DOM,m=[],s=o.createClass({getInitialState:function(){return{opened:!1}},render:function(){var e=this,n=[],t=f(e.props.menu),i=f(e.props.menuItem),o=t.outerWidth(),s=!1,a=(t.removeClass("with-more").removeClass("more-opened"),i.removeClass("active"),0),r=0,l="section-menu-more",h=[],c=(e.props.links.forEach(function(t){var e=f(t),i=e.outerWidth();e.show(),o<(a+=i)?(n.push(t),e.hide(),e.hasClass("active")&&(s=!0)):(r+=i,h.push(e))}),"");if(0===n.length)return g.div({className:"visually-hidden"});var d=[g.span({className:"caret"})],p=86;for(o<=600?p=45:d.push(" More");o<=r+p&&0');$(window).scroll(function(){300<$(window).scrollTop()?$("a.back-to-top").fadeIn("slow"):$("a.back-to-top").fadeOut("slow")}),$("a.back-to-top").click(function(){return $("html, body").animate({scrollTop:0},700),!1})}); //# sourceMappingURL=compiled.min.js.map // End Bundle: fbigov-theme // Start Bundle: plone-legacy /* reset requirejs definitions so that people who put requirejs in legacy compilation do not get errors */ var _old_define = define; var _old_require = require; define = undefined; require = undefined; try{ /* resource: ++resource++plone.app.discussion.javascripts/comments.js */ if(require===undefined)require=function(reqs,torun){'use strict';return torun(window.jQuery);};require(['jquery'],function($){'use strict';$.createReplyForm=function(comment_div){var comment_id=comment_div.attr('id');var reply_button=comment_div.find('.reply-to-comment-button');var reply_div=$('#commenting').clone(true);reply_div.find('#formfield-form-widgets-captcha').find('script').remove();reply_div.appendTo(comment_div).css('display','none');reply_div.removeAttr('id');$(reply_button).css('display','none');var reply_form=reply_div.find('form');reply_form.find('#formfield-form-widgets-comment-text').attr('id','formfield-form-widgets-new-textarea'+comment_id);reply_form.find('#form-widgets-comment-text').attr('id','form-widgets-new-textarea'+comment_id);reply_form.find('input[name="form.widgets.in_reply_to"]').val(comment_id);var cancel_reply_button=reply_div.find('.cancelreplytocomment');cancel_reply_button.attr('id',comment_id);reply_form.find('input[name="form.buttons.cancel"]').css('display','inline');reply_div.slideDown('slow');cancel_reply_button.css('display','inline');};$.clearForm=function(form_div){form_div.find('.error').removeClass('error');form_div.find('.fieldErrorBox').remove();form_div.find('input[type="text"]').attr('value','');form_div.find('textarea').attr('value','');};$(window).load(function(){var post_comment_div=$('#commenting');var in_reply_to_field=post_comment_div.find('input[name="form.widgets.in_reply_to"]');if(in_reply_to_field.length!==0&&in_reply_to_field.val()!==''){var current_reply_id='#'+in_reply_to_field.val();var current_reply_to_div=$('.discussion').find(current_reply_id);$.createReplyForm(current_reply_to_div);$.clearForm(post_comment_div);}$('.reply-to-comment-button').bind('click',function(e){var comment_div=$(this).parents().filter('.comment');$.createReplyForm(comment_div);$.clearForm(comment_div);});$('#commenting #form-buttons-cancel').bind('click',function(e){e.preventDefault();var reply_to_comment_button=$(this).parents().filter('.comment').find('.reply-to-comment-button');$.reply_to_comment_form=$(this).parents().filter('.reply');$.reply_to_comment_form.slideUp('slow',function(){$(this).remove();});reply_to_comment_button.css('display','inline');});$('input[name="form.button.PublishComment"]').on('click',function(){var trigger=this;var form=$(this).parents('form');var data=$(form).serialize();var form_url=$(form).attr('action');$.ajax({type:'GET',url:form_url,data:data,context:trigger,success:function(msg){form.find('input[name="form.button.PublishComment"]').remove();form.parents('.state-pending').toggleClass('state-pending').toggleClass('state-published');},error:function(msg){return true;}});return false;});if($.fn.prepOverlay)$('form[name="edit"]').prepOverlay({cssclass:'overlay-edit-comment',width:'60%',subtype:'ajax',filter:'#content>*'});$('input[name="form.button.DeleteComment"]').on('click',function(){var trigger=this;var form=$(this).parents('form');var data=$(form).serialize();var form_url=$(form).attr('action');$.ajax({type:'POST',url:form_url,data:data,context:$(trigger).parents('.comment'),success:function(data){var comment=$(this);var clss=comment.attr('class');var treelevel=parseInt(clss[clss.indexOf('replyTreeLevel')+'replyTreeLevel'.length],10);var selector='.replyTreeLevel'+treelevel;for(var i=0;i 
').text(content);};ci=self.caseInsensitive;while(c&&(index=(ci?c.toLowerCase():c).indexOf(word))>-1){$(node).before(document.createTextNode(c.substr(0,index))).before(highlight(c.substr(index,word.length))).before(document.createTextNode(c.substr(index+word.length)));next=node.previousSibling;$(node).remove();node=next;c=node.nodeValue;}},queryStringValue:function(uri,regexp){var match,pair;if(uri.indexOf('?')<0)return '';uri=uri.substr(uri.indexOf('?')+1);while(uri.indexOf('=')>=0){uri=uri.replace(/^\&*/,'');pair=uri.split('&',1)[0];uri=uri.substr(pair.length);match=pair.match(regexp);if(match)return decodeURIComponent(match[match.length-1].replace(/\+/g,' '));}return '';},termsFromReferrer:function(){var ref,i,se;ref=$.fn.highlightSearchTerms._test_referrer!==null?$.fn.highlightSearchTerms._test_referrer:document.referrer;if(!ref)return '';for(i=0;i0)ret=a;else ret=b;return ret;}function getDateTime(datetimewidget){var date,time,datetime;date=$('input[name="_submit"]:first',datetimewidget).prop('value');date=date.split("-");time=$('input[name="_submit"]:last',datetimewidget).prop('value')||'00:00';time=time.split(":");datetime=new Date(parseInt(date[0],10),parseInt(date[1],10)-1,parseInt(date[2],10),parseInt(time[0],10),parseInt(time[1],10));return datetime;}function initDelta(){var start_datetime,end_datetime;start_datetime=getDateTime(a_or_b($('#formfield-form-widgets-IEventBasic-start'),$('#archetypes-fieldname-startDate')));end_datetime=getDateTime(a_or_b($('#formfield-form-widgets-IEventBasic-end'),$('#archetypes-fieldname-endDate')));end_start_delta=(end_datetime-start_datetime)/1000/60;}function updateEndDate(){var jq_start,jq_end,start_date,new_end_date;jq_start=a_or_b($('#formfield-form-widgets-IEventBasic-start'),$('#archetypes-fieldname-startDate'));jq_end=a_or_b($('#formfield-form-widgets-IEventBasic-end'),$('#archetypes-fieldname-endDate'));start_date=getDateTime(jq_start);new_end_date=new Date(start_date);new_end_date.setMinutes(start_date.getMinutes()+end_start_delta);$('.pattern-pickadate-date',jq_end).pickadate('picker').set('select',new_end_date);$('.pattern-pickadate-time',jq_end).pickatime('picker').set('select',new_end_date);}function validateEndDate(){var jq_start,jq_end,start_datetime,end_datetime;jq_start=a_or_b($('#formfield-form-widgets-IEventBasic-start'),$('#archetypes-fieldname-startDate'));jq_end=a_or_b($('#formfield-form-widgets-IEventBasic-end'),$('#archetypes-fieldname-endDate'));start_datetime=getDateTime(jq_start);end_datetime=getDateTime(jq_end);if(end_datetime0){var get_req_param,val;get_req_param=function(name){if(name===new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)').exec(window.location.search))return decodeURIComponent(name[1]);};val=get_req_param('date');if(val===undefined)val=new Date();else val=new Date(val);cal.dateinput({selectors:true,trigger:true,format:'yyyy-mm-dd',yearRange:[-10,10],firstDay:1,value:val,change:function(){var value=this.getValue("yyyy-mm-dd");window.location.href='event_listing?mode=day&date='+value;}}).unbind('change').bind('onShow',function(){var trigger_offset=$(this).next().offset();$(this).data('dateinput').getCalendar().offset({top:trigger_offset.top+20,left:trigger_offset.left});});}}function initilize_event(){var jq_whole_day,jq_time,jq_open_end,jq_end,jq_start;jq_whole_day=a_or_b($('#formfield-form-widgets-IEventBasic-whole_day input'),$('form[name="edit_form"] input#wholeDay'));jq_time=a_or_b($('#formfield-form-widgets-IEventBasic-start .pattern-pickadate-time-wrapper, #formfield-form-widgets-IEventBasic-end .pattern-pickadate-time-wrapper'),$('#archetypes-fieldname-startDate .pattern-pickadate-time-wrapper, #archetypes-fieldname-endDate .pattern-pickadate-time-wrapper'));if(jq_whole_day.length>0){jq_whole_day.bind('change',function(e){show_hide_widget(jq_time,e.target.checked,true);});show_hide_widget(jq_time,jq_whole_day.get(0).checked,false);}jq_open_end=a_or_b($('#formfield-form-widgets-IEventBasic-open_end input'),$('form[name="edit_form"] input#openEnd'));jq_end=a_or_b($('#formfield-form-widgets-IEventBasic-end'),$('#archetypes-fieldname-endDate'));if(jq_open_end.length>0){jq_open_end.bind('change',function(e){show_hide_widget(jq_end,e.target.checked,true);});show_hide_widget(jq_end,jq_open_end.get(0).checked,false);}jq_start=a_or_b($('#formfield-form-widgets-IEventBasic-start'),$('#archetypes-fieldname-startDate'));jq_start.each(function(){$(this).on('focus','.picker__input',initDelta);$(this).on('change','.picker__input',updateEndDate);});jq_end.each(function(){$(this).on('focus','.picker__input',initDelta);$(this).on('change','.picker__input',validateEndDate);});event_listing_calendar_init($("#event_listing_calendar"));};var interval=setInterval(function(){if($(document.body).hasClass('patterns-loaded')){clearInterval(interval);initilize_event();}},100);}); }catch(e){ // log it if (typeof console !== "undefined"){ console.log('Error loading javascripts!' + e); } }finally{ define = _old_define; require = _old_require; } // End Bundle: plone-legacy